@font-face {
    font-family: 'AzukiFont';
    src: url('../fonts/azuki.ttf') format('truetype');
}

/* 全体設定 */
body {
  margin: 0;
  padding-top: 100px; /* ヘッダー分 */
  font-family: sans-serif;
  background-color: white; /* 背景を黒色に */
  font-family: 'AzukiFont', sans-serif;

}

/* 固定ヘッダー */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background-color: white;
  color: white;
  display: flex;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* ↓下方向に薄く影 */
}

.header-inner {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
}

/* ヘッダー内タイトル */
.site-title {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
}

/* ナビゲーション */
.main-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5em;
  flex-wrap: wrap; /* 必要なら折り返す */
  padding-right: 10px;
}

.mobile-nav li {
  border-bottom: 1px solid #e0e0e0;
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  color: #333;
  padding: 10px 20px;
  display: inline-block;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: blue;
    transform: scaleX(0);
    transition: transform 0.3s ease-in-out;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

/* モバイルメニュー */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
  /* display: none; */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background-color: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding: 20px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    /* display: none; */
}

.mobile-nav a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  transition: background-color 0.2s, color 0.2s;
}

.mobile-nav a:hover {
  background-color: #f5f5f5;
  color: #007bff;
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  font-size: 24px;
  color: #333;
  cursor: pointer;
  position: absolute;
  right: 5%;
}

/* 表示時のクラス */
.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-header {
    height: 100px;
}

.close-menu-btn {
  background: none;
  border: none;
  font-size: 42px;
  color: #333;
  cursor: pointer;
  right: 5%;
  position: absolute;
}

/* ===== モバイル・狭い画面用レイアウト ===== */
@media (max-width: 767px) {
  .main-nav ul {
    display: none;
  }
}

/* ===== 少し狭めのレイアウト ===== */
/* @media (min-width: 768px){
  .header-inner {
    justify-content: space-between; /* 両端に配置！ */
  /* }
  .mobile-menu-btn {
    display: none;
  }
} */ 

/* ===== PCなど広い画面用レイアウト ===== */
@media (min-width: 768px) {
  .header-inner {
    max-width: 1300px;
    margin: 0 auto;
    justify-content: space-between;
  }
  .mobile-menu-btn {
    display: none;
  }
}

/* 全画面背景画像 */
.hero-container{
  text-align: center; /* テキストを中央揃え */
  background-color: black; /* 背景を黒色に */
}

.hero {
  background-image: url('../images/Copilot_20250610_180900.png');
  height: calc(100vh - 100px);
  width: auto; /* アスペクト比を保持 */
  display: block; 
  margin: 0 auto; /* 画像を中央揃え */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-left: auto;
  margin-right: auto;
}

/* 重ねるテキスト */
.hero-text {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  padding: 1.5em 2em;
  border-radius: 10px;
  text-align: center;
  font-size: 1.5em;
}

/* セクション共通スタイル */
.section-title h2 {
  display: flex;
  align-items: center;
  font-size: 36px;
  color: #222;
  margin-bottom: 15px;
}

/* 線を h2 のみに付ける */
.section-title h2::before,
.section-title h2::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid black;
  margin: 0 1em;
}

.section-title h3 {
  text-align: center;
  font-size: 20px;
  color: #666;
  margin-top: 5px;
}

/* serviceセクション */
.service,.about,.contact{
  max-width: 1300px;
  margin: 0 auto;
  justify-content: space-between;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

/* デスクトップ用スタイル */
@media (min-width: 768px) {
    /* サービス */
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 40px;
    color: #2c7be5;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: #666;
}

/* アバウトセクション */
.about-container {
    display: flex;
    align-items: center;
    padding: 2em;
    max-width: 80%;
}

.about-image {
    width: 100%;
    max-width: 500px;
    margin-bottom: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-content {
    margin: 0 20px;
}

.profile{
    text-align: center;
    padding: 0px;
}

table{
  width: 100%;
  border-collapse: collapse;
}

table tr{
  border-bottom: solid 2px white;
}

table tr:last-child{
  border-bottom: none;
}

table th{
  position: relative;
  text-align: left;
  width: 30%;
  background-color: #52c2d0;
  color: white;
  text-align: center;
  padding: 10px 0;
}

table th:after{
  display: block;
  content: "";
  width: 0px;
  height: 0px;
  position: absolute;
  top:calc(50% - 10px);
  right:-10px;
  border-left: 10px solid #52c2d0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

table td{
  text-align: left;
  width: 70%;
  text-align: center;
  background-color: #eee;
  padding: 10px 0;
}

/* フッター */
footer {
  background-color: #2c3e50;
  color: #fff;
  padding: 60px 0 30px;
  text-align: center;
}

/* フッター内のメニュー */
.footer-menu ul{
  flex-wrap: wrap;         /* 幅に応じて折り返す */
  display: flex;
  justify-content: center;
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin: 0 10px;
  position: relative;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 5px;
}

/* 縦線（右側）を追加 */
.footer-menu li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  height: 50%;
  width: 1px;
  background-color: #ccc;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: 80px;
  font-size: 14px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease; /* ← フェードアニメーション */
  z-index: 1000;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.btn {
    display: inline-block;
    background-color: #2c7be5;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a68d1;
}

/* 問い合わせページ */
.contact_form {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.contact_form h1 {
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
  color: #333;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: bold;
  color: #333;
}

label span {
  color: red;
  margin-left: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

input:focus,
textarea:focus {
  border-color: #66afe9;
  outline: none;
}

.submit {
  margin-top: 30px;
  width: 100%;
  padding: 14px;
  background-color: #007bff;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit:hover {
  background-color: #0056b3;
}

.thanks-contact {
  max-width: 600px;
  margin: 80px auto;
  padding: 40px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}