/*
#DCCBB3 アクセントカラー
BF9270　メインボタンカラー
2c3e50　フッターカラー
EDCDBB　ホバーカラー
F6E3C9　表カラー
8F674E　濃い目の文字色
fffaf4　背景色
*/

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

/* 全体設定 */
body {
  margin: 0;
  padding-top: 100px; /* ヘッダー分 */
  font-family: sans-serif;
  background-color: #fffaf4; /* 背景を黒色に */
  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.contact-link {
  border: 2px solid #BF9270;
  border-radius: 20px;
  color: #8F674E;
  font-weight: bold;
}
.main-nav a.contact-link:hover {
  background-color: #BF9270;
  color: #fff;
}

.mobile-nav a.contact-link {
  border: 2px solid #BF9270;
  border-radius: 20px;
  color: #8F674E;
  font-weight: bold;
}
.mobile-nav a.contact-link:hover {
  background-color: #BF9270;
  color: #fff;
}
*/

.main-nav a.contact-link {
  border: 2px solid #2c7be5;
  border-radius: 20px;
  color: #2c7be5;
  font-weight: bold;
}
.main-nav a.contact-link:hover {
  background-color: #2c7be5;
  color: #fff;
}

.mobile-nav a.contact-link {
  border: 2px solid #2c7be5;
  border-radius: 20px;
  color: #2c7be5;
  font-weight: bold;
}
.mobile-nav a.contact-link:hover {
  background-color: #2c7be5;
  color: #fff;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #BF9270;
    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;
}

.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'); */
  background-image: url('../images/topHaru3.png');
  height: calc(100vh - 100px);
  width: 100%; /* アスペクト比を保持 */
  display: block; 
  margin: 0 auto; /* 画像を中央揃え */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 80% 100%;
  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;
}

.hero-text h1{
  text-shadow:
    -2px 0 6px rgba(0,0,0,0.5),   /* 左 */
     2px 0 6px rgba(0,0,0,0.5),   /* 右 */
     0 -2px 6px rgba(0,0,0,0.5),  /* 上 */
     0  2px 6px rgba(0,0,0,0.5);  /* 下 */
}

/* セクション共通スタイル */
.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,.features,.about,.contact,.service-start{
  max-width: 1300px;
  margin: 0 auto;
  justify-content: space-between;
  text-align: center; /* テキストを中央揃え */
}

.tax-accounting,.bookkeeping-support,.prepare-submit-tax,.management-advisory{
  max-width: 1300px;
  margin: 0 auto;
  justify-content: space-between;
}

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

/* サービスカードのグリッド整形 */
.service-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 20px;
  padding: 0 10px;
}

/* ハイライト */
.highlight {
  background-color: #fff176;
  padding: 0 4px;
  border-radius: 4px;
}

/* カード見た目 */
.service-card {
  display: flex;              /* ← 追加 */
  flex-direction: column;     /* ← 追加 */
  justify-content: space-between; 
  background: #fff;
  padding: 24px 20px;
  border-radius: 12px;
  height: 100%; /* 各カードを同じ高さに */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* アイコン */
.service-icon {
  font-size: 40px;
  margin-bottom: 16px;
  color: #2c7be5;
}

/* テキスト */
.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}
.service-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 0;
}

.service-card_button{
  align-self: center;  /* 左寄せで下に置く（中央にしたければ center） */
  margin-top: auto;        /* ← 親がflexになったので効くようになる！ */
  display: inline-block;
  padding: 10px 25px;
  background: #BF9270;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.2s ease;
}
.service-card_button:hover{
  background-color: #EDCDBB;
}

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

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

.features-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;
}

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

.features-icon img {
  width: 160px;       /* 好きなサイズに調整 */
  height: auto;      /* 縦横比を保持 */
  display: block;
  margin: 0 auto;    /* 中央寄せ */
}

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

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

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

.about-image {
    width: 100%;
    max-width: 300px;
    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%;
  background-color: white;
  border-collapse: collapse;
}

th,td {
    border: solid 1px;              /* 枠線指定 */
}

table td {
  text-align: center;
  vertical-align: middle; /* 縦方向も中央にしたいとき */
}

table.special-table {
  max-width: 600px;      /* ← 好きな幅に調整 */
  width: 100%;           /* ← 親要素にフィットしつつ、maxまで */
  margin: 0 auto;        /* ← 中央寄せ（左右余白自動） */
  border-collapse: collapse; /* ← 境界線がきれいに重なるように */
  margin: 20px 0 20px 0px;     /* ← 左側の余白20で左寄せ */
}

table.special-table td:first-child,
table.special-table th:first-child {
  text-align: left;
}

th {
  background-color: #F6E3C9; /* 淡い赤ピンク */
  color: #333;               /* 文字色（濃いグレー） */
  padding: 8px;
}

.about-table td {
  border: none;
  vertical-align: top;
  text-align: center; /* ← ここで中央寄せを再指定 */
}

/* 画像コンテナ自体を中央に置く */
.about-image {
  margin: 0 auto;       /* ← これが効く！ */
  max-width: 300px;     /* 既存どおり */
}

/* 念のため画像もブロック＋中央 */
.about-image img {
  display: block;
  margin: 0 auto;
}

/* ★ 画像中央寄せの確実な方法 */
.about-table img {
  display: block;
  margin: 0 auto;
  text-align: center; /* ← ここで中央寄せを再指定 */
}

/* フッター */
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: #BF9270;
  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;
}

.back-to-top:hover{
  background-color: #EDCDBB;
}

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

.btn:hover {
    background-color: #EDCDBB;
}

.hero-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;
}

.hero-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: #BF9270;
  color: #fff;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit:hover {
  background-color: #EDCDBB;
}

.submit:disabled {
  background-color: #ccc;   /* グレーにする */
  color: #666;              /* 文字色も薄く */
  cursor: not-allowed;      /* マウスカーソルを禁止マークに */
  opacity: 0.8;             /* 少し透かすとさらに無効感が出る */
}

.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);
}

.tax-accounting,.bookkeeping-support,.prepare-submit-tax,.management-advisory {
  border: 2px solid #333;   /* 枠線の色と太さ */
  border-radius: 12px;      /* 角丸 */
  padding: 20px;            /* 内側の余白 */
  background-color: #f9f9f9;/* 背景色 */
}

.step {
  max-width: 760px; margin: 24px auto; padding: 8px 16px;
}
.flow h2 { margin: 8px 0 16px; }
.step {
  border: 2px solid #333; border-radius: 12px; padding: 16px; background: #fafafa;
}
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.arrow {
  text-align: center; margin: 8px 0;
  color: #666; font-size: 18px; line-height: 1;
  /* ▼の代わりに下矢印を描く（CSS矢印） */
  position: relative; height: 24px;
}
.arrow::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 2px; height: 16px; background: #999;
}
.arrow::after {
  content: ""; position: absolute; left: 50%; top: 14px; transform: translateX(-50%);
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-top: 8px solid #999;
}
/* 2列にしたい時（広い画面） */
@media (min-width: 900px) {
  .flow--two-col { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 16px 12px; align-items: center; }
  .flow--two-col .arrow { grid-column: 2; }
  .flow--two-col .step { min-height: 100%; }
}

/* === Layout === */
.greeting {
  display: flex;
  align-items: flex-end;      /* 鳥と吹き出しの“底”を揃える */
  justify-content: center;  /* ← 横方向の中央寄せ */
  gap: 24px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 8px 16px;
}

/* === Bird === */
.greeting .bird img{
  width: 130px;               /* お好みで調整 */
  max-width: 38vw;
  height: auto;
  display: block;
  /* ほんのり揺れるアニメ（不要なら削除OK） */
  animation: bob 4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(2px); }
}

/* === Speech Bubble === */
.speech {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  font-size: 1.08rem;
  line-height: 1.9;
}

/* PC表示：左側に矢印 */
.speech::before {
  content: "";
  position: absolute;
  left: -18px;
  bottom: 28px;
  border-width: 12px 18px 12px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
  filter: drop-shadow(-2px 2px 2px rgba(0,0,0,0.05));
}

/* スマホ表示：中央上から下向き矢印 */
@media (max-width: 640px) {
  .speech::before {
    content: "";
    position: absolute;
    top: -18px;               /* 吹き出しの上に配置 */
    left: 50%;                /* 中央に配置 */
    transform: translateX(-50%);
    border-width: 0 12px 18px 12px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.05));
  }
}


/* === Responsive === */
@media (max-width: 640px){
  .greeting{
    flex-direction: column;  /* 縦並び */
    align-items: center;
    text-align: center;
    gap: 16px;
  }
  .speech{
    width: 100%;
  }
  /* スマホでは“しっぽ”を下向きに変更（中央寄せ） */
  .speech::before{
    left: 50%;
    bottom: -18px;
    transform: translateX(-50%) rotate(90deg);
    border-width: 18px 12px 0 12px;
    border-color: #fff transparent transparent transparent;
  }
}

/* ==== モバイルの横はみ出し対策（グローバル） ==== */
html, body {
  max-width: 100%;
  overflow-x: hidden;   /* 横スクロールを根本から封じる */
}

/* 画像・埋め込み要素は親幅に収める */
img, video, iframe, table {
  /* max-width: 100%; */
  /* height: auto; */
  box-sizing: border-box;
}

/* Googleマップ iframe をレスポンシブ化（アスペクト比固定） */
.map-embed {
  position: relative;
  margin: 20px auto; /* 上下20px、左右自動で中央寄せ */
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4 / 3;      /* 好みで 16/9 にしてもOK */
  overflow: hidden;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* オフキャンバス（モバイルメニュー）がレイアウトを押し広げないように */
.mobile-menu {
  width: 80vw;               /* 80%ではなく“ビューポート基準”に */
  max-width: 420px;          /* 上限つけておくと安定 */
  contain: layout;           /* はみ出し副作用の隔離（対応ブラウザで有効） */
}

.skyblue-text {
  color: black;
  background-color: #DCCBB3;
  padding: 10px 15px;
  border-radius: 12px;
}

.color-text {
  color:#006699;
}



[id] {
  scroll-margin-top: 120px; /* ヘッダーの高さに合わせて調整 */
}

/* レイアウト */
.about-wrap{
  display:grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px,3vw,40px);
  align-items:start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
