@charset "UTF-8";

/* --- リセット & 基本設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  vertical-align: top;
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: #555;
  display: inline-block;
}

:root {
  --primary: #3b5f43;      /* メインの深緑 */
  --primary-light: #52795b;/* 薄めの緑 */
  --brown-text: #6e4a27;   /* ロゴ用の上品な茶色 */
  --bg-cream: #f9f8f3;     /* 背景の生成り色 */
  --bg-light: #f3f2eb;     /* テーブル等背景 */
  --text-main: #333333;
  --text-sub: #666666;
  --border-color: #dcd9cd;
  --cream: #f5f0e8;
  --dark:  #1c1814;
  --gold:  #b89c6e;
  --gray:  #bfb9af;
}
.text-fill {
  /* カスタマイズ用変数（上書き可能） */
  --tf-color-from: var(--primary);
  --tf-color-to:   var(--gray);
  --tf-duration:   1.8s;
  display: inline-block; /* blockでも可 */
  background-image: linear-gradient(
    135deg,
    var(--tf-color-from) 0%,
    var(--tf-color-from) 45%,
    var(--tf-color-to)   55%,
    var(--tf-color-to)   100%
  );
  background-size: 250% 250%;
  background-position: 100% 100%; /* 初期: 右下（グレー） */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: background-position var(--tf-duration) cubic-bezier(0.65, 0, 0.35, 1);
}

/* スクロールで見えたとき JS が付与するクラス */
.text-fill.is-revealed {
  background-position: 0% 0%; /* 左上（ダーク）へ → 左上から色が入る */
}
/* フォントサイズ指定クラス */
.go01 { font-size: clamp(1.8em, 3vw, 4.6em); }
.go02 { font-size: clamp(1.5em, 3vw, 2.7em); }
.go03 { font-size: clamp(1.3em, 2.5vw, 2em); }
.go04 { font-size: clamp(1.2em, 2vw, 1.5em); }
.go04-1 { font-size: clamp(1.2em, 2vw, 1.8em); }
.go05 { font-size: clamp(0.8em, 1.5vw, 1.2em); }
.go06 { font-size: clamp(0.8em, 1.5vw, 0.95em); }
.go06-1 { font-size: clamp(0.7em, 1.2vw, 0.9em); }
.go07 { font-size: clamp(0.65em, 1.5vw, 0.7em); }

body {
  color: var(--text-main);
  background-color: #fff;
  line-height: 1.6;
}

/* --- Webフォント：見出し(.serif)の Shippori Mincho Bold のみ、各HTMLの <head> のスクリプトが
       ページ読み込み完了後に Google Fonts から取得する。他の指定は端末のフォントで表示される --- */

/* 見出し：Shippori Mincho B1 Bold */
.serif { font-family: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 700; }
/* 旧 Ryumin（本文の明朝）→ 端末の明朝体（Shippori は Bold のみ読み込むため指定しない） */
.shi-r { font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif CJK JP', serif; font-weight: 400; }
/* 旧 Midashi Go（太い見出し）→ Noto Serif JP Bold */
.my-gfont { font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', 'Yu Mincho', serif; font-weight: 700; }
/* 旧 Gothic Medium（body）→ 端末のゴシック体 */
.futo { font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'YuGothic', 'Meiryo', sans-serif; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* --- Top Header Bar --- */
.top-bar {
  width: 100%;
  background-color: var(--primary);
  color: #fff;
  padding: 0.5em 0;
}

.top-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 2px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1em;
  box-sizing: border-box;
}
h2{margin-bottom: 10px;}
/* --- Header --- */
header { background: #fff; padding: 0.5em 0 1em 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; justify-content: space-between; align-items: center; gap: 0.5em; }
.logo-area { display: flex; align-items: center; gap: 0.6em; z-index: 3; }
.logo-mark { width: 60px; height: auto; }

/* 左上ロゴテキスト（茶色） */
.logo-text { color: var(--brown-text); line-height: 1.2; }
.logo-sub { color: var(--brown-text); display: block; font-family: Arial, sans-serif; font-weight: 400; opacity: 0.85; margin-top: 0.2em; margin-left: 0.2em; font-size: 0.6em;}

/* --- PC用ナビゲーション --- */
nav { flex: 1; }

.header-brand-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.5em;
  font-weight: 500;
  justify-content: center;
}
nav a { text-decoration: none; color: var(--text-main); transition: color 0.3s ease; position: relative; }
nav a::after {
  content: '';
  position: absolute;
  bottom: -0.4em;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

/* ハンバーガーボタン --- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 102;
  padding: 0;
  margin-right: 0.5em;
}
.hamburger-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger-btn.is-active span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburger-btn.is-active span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-active span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

.header-contact { display: flex; align-items: center; gap: 1em; }
.tel-box { text-align: right; }
.tel-sub { color: var(--text-sub); margin-top: 0.2em; }
.tel-num { color: var(--primary); line-height: 1; }

.tsume { letter-spacing: -0.15em; }

/* WEB予約ボタン --- */
.btn-reserve-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1em;
  background: linear-gradient(180deg, #4d7a56 0%, #35573d 100%);
  color: #ffffff;
  text-decoration: none;
  border: 2px solid #ffffff;
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-reserve-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}
.btn-reserve-icon { width: 2.4em; height: auto; object-fit: contain; }
.btn-reserve-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.btn-reserve-main { font-weight: bold; letter-spacing: 0.05em; color: #ffffff; white-space: nowrap; font-size: clamp(0.9em, 1.5vw, 1.1em); }
.btn-reserve-sub { font-size: 0.8em; opacity: 0.95; color: #ffffff; margin-top: 0.2em; white-space: nowrap; text-align: center; }

/* --- Hero Section --- */
.hero {
  padding: 6em 0;
  padding-top: 5.8em;
  position: relative;
  overflow: hidden;
  background-image: url('../img/main-optimized.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  padding-bottom: 5em;
  padding-left: 4.5em;
  margin-top: -4em;
  background-image: url('../img/ha01.webp');
  background-position: -20px bottom;
  background-repeat: no-repeat;
}
.hero-title { color: var(--primary); line-height: 1.3em; font-weight: 700; margin-bottom: 0.2em; opacity: 0; animation: heroFadeIn 1s ease forwards 0.2s; }
.hero-subtitle { font-weight: 500; color: #555; margin-bottom: 0.25em; opacity: 0; animation: heroFadeIn 1s ease forwards 0.4s; }
.hero-desc { color: var(--text-sub); line-height: 1.6; opacity: 0; animation: heroFadeIn 1s ease forwards 0.6s; }

/* 下層ページ用ページヘッダー --- */
.page-header {
  background-color: var(--bg-cream);
  padding: 3em 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3em;
}
.page-header h1 { color: var(--primary); margin-top: 20px;}
.page-header p { color: var(--text-sub); margin-top: 0.5em; }



@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Quick Info & Cards --- */
.quick-sec { padding: 2.5em 0; background: var(--bg-cream); }
.quick-sec .container { display: flex; gap: 1.5em; }
.schedule-box { flex: 1.2; background: #ffffff; border: 1px solid var(--border-color); border-radius: 4px; padding: 1.2em; box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.schedule-title { color: var(--primary); margin-bottom: 0.6em; }
.table-wrapper { width: 100%; overflow-x: auto; }
.time-table { width: 100%; border-collapse: collapse; text-align: center; margin-bottom: 0.8em; min-width: 280px; }
.time-table th, .time-table td { border: 1px solid var(--border-color); padding: 0.5em; background: #fff; }
.time-table th { background: #f0eee6; font-weight: normal; color: #555; }
.schedule-note { color: var(--text-sub); line-height: 1.4; margin-top: 0.5em; }

.cards-triple { flex: 2; display: flex; gap: 1em; }
.card-item {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 2em 0.8em 1.2em 0.8em;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  outline: 4px solid #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-item:hover { transform: translateY(-5px); box-shadow: 0 8px 18px rgba(0,0,0,0.08); }
.card-icon { width: 50px; height: auto; margin: 0 auto 0.6em; transition: transform 0.3s ease; }
.card-item:hover .card-icon { transform: scale(1.1); }
.card-item h4 { color: var(--primary); margin-bottom: 0em; }
.card-item p { color: var(--text-sub); line-height: 1.4; }
.card-arrow { color: var(--primary); text-align: right; margin-top: 0.8em; transition: transform 0.3s ease; }
.card-item:hover .card-arrow { transform: translateX(5px); }
.syosai { text-align: right !important; }
.syosai a { display: inline; color: var(--primary); letter-spacing: 0; font-weight: bold; }

/* --- Common Section Style --- */
.sec-header { text-align: center; margin: 0em 0 1.8em; padding-top: 60px;  color: var(--primary);}
.sec-header h3 { color: var(--primary); display: inline-block; position: relative; }
.sec-intro-text { text-align: center; color: var(--text-sub); line-height: 1.8; margin-bottom: 2.5em; }

/* --- Grid & Detail Sections --- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1em; }
.card-service {
  background: var(--bg-cream);
  border: 0px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 1em;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-service:hover { transform: translateY(-5px); box-shadow: 0 8px 15px rgba(0,0,0,0.08); }
.card-img-wrap { position: relative; width: 100%; height: 180px; overflow: hidden; }
.card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-service:hover .card-img-wrap img { transform: scale(1.05); }
.card-service-body { padding: 1.5em 1.5em; flex: 1; display: flex; flex-direction: column; z-index: 1; }
.card-service h4 { color: var(--primary); margin: 0.4em 0 0.6em; }
.card-service p { color: var(--text-sub); line-height: 1.5; text-align: left; letter-spacing: 0.5px; margin-bottom: 0.5em; }

/* 下層ページ内コンテナ・ブロック */
.medical-detail-block {
  margin-bottom: 4em;
  padding: 2.5em;
  background-color: var(--bg-cream);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}
.medical-detail-block h3 {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.4em;
  margin-bottom: 1em;
}
.medical-detail-content {
  display: flex;
  gap: 2em;
  align-items: flex-start;
}
.medical-detail-content img {
  width: 35%;
  border-radius: 6px;
  object-fit: cover;
}
.medical-detail-text {
  flex: 1;
}
.medical-detail-text p {
  margin-bottom: 1em;
  line-height: 1.8;
  color: var(--text-sub);
}

/* --- Director Greeting --- */
.director-box { background: var(--bg-cream); border: 1px solid var(--border-color); border-radius: 4px; padding: 2em; display: flex; gap: 2em; align-items: center; margin-top: 2.5em; background-image: url(../img/ha04.webp); background-position: right bottom; background-repeat: no-repeat; }
.director-img { width: 28%; max-width: 300px; border-radius: 4px; object-fit: cover; }
.director-content { flex: 1; color: var(--text-sub); }
.director-content h4 { color: var(--primary); margin-bottom: 0.5em; }
.director-content h5 { color: var(--primary); margin-bottom: 0.8em; }
.director-content p { margin-bottom: 0.8em; line-height: 1.8; margin-right: 7em; }
.gazo { margin-bottom: 0.8em; line-height: 1.8; margin-right: 7em; }
.director-name { text-align: right; margin-top: 1em; color: var(--primary); margin-right: 8em; margin-left: 7em;}

/* --- CTA Banner（統合版） --- */
.cta-banner {
  background-color: var(--primary);
  color: #fff;
  border-radius: 4px;
  margin: 3em 0;
  padding: 1.8em 8em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2em;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
/* 背景装飾画像専用レイヤー */
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url(../img/ha05.webp), url(../img/ha06.webp);
  background-position: left center, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 80px auto, 80px auto;
  opacity: 0.3;
}
.cta-text { display: flex; align-items: center; gap: 1em; }
p.cta-icon { width: 5em; height: 5em; background-color: white; text-align: center; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cta-title { margin-bottom: 0.3em; }
.cta-desc { opacity: 0.9; }
.btn-cta-white { background: #fff; color: var(--primary); text-decoration: none; padding: 0.8em 2em; border-radius: 4px; display: inline-block; white-space: nowrap; transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; }
.btn-cta-white:hover { background-color: #f0f0f0; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15); }

/* --- カードリンク（index.html のインラインCSSから移動） --- */
a.card-link { color: inherit; text-decoration: none; }
a.card-item.card-link { display: flex; }
a.card-service.card-link { display: block; }
a.card-link:hover { transform: translateY(-3px); }
a.card-link:focus-visible { outline: 3px solid var(--primary-light, #52795b); outline-offset: 3px; }
p.card_icon { text-align: center; margin-top: -2em; z-index: 100; position: absolute; left: 0; right: 0; }
.card-service-body h3 { margin-top: 0.8em; }

/* --- Footer --- */
footer { background: var(--bg-cream); border-top: 1px solid var(--border-color); padding: 2.5em 0 1.2em; color: var(--text-sub); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.8em; margin-bottom: 2em; flex-wrap: wrap; }
.footer-left-logo { display: flex; align-items: center; gap: 0.6em; min-width: 220px; }
.footer-left-logo .logo-mark { width: 40px; height: auto; }
.footer-address-area { flex: 1; min-width: 240px; }
.footer-address { line-height: 1.6; margin-bottom: 0.5em; }
.footer-tel { color: var(--primary); margin-bottom: 0.5em; }
.footer-btns { display: flex; gap: 0.5em; }
.btn-sm { border: 1px solid var(--border-color); background: #fff; padding: 0.3em 0.8em; color: var(--text-sub); text-decoration: none; border-radius: 3px; transition: background-color 0.2s; }
.btn-sm:hover { background-color: #f0eee6; }
.footer-center-table { width: 220px; text-align: center; border-collapse: collapse; }
.footer-center-table th, .footer-center-table td { border: 1px solid var(--border-color); padding: 0.3em; background: #fff; }
.footer-map-img { width: 160px; height: auto; border: 1px solid var(--border-color); border-radius: 4px; }
.copyright { text-align: center; color: #888; border-top: 1px solid var(--border-color); padding-top: 1em; }

/* アニメーション用 --- */
.fade-in-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-in-on-scroll.is-active { opacity: 1; transform: translateY(0); }

footer .demo-site-notice {
  display: block;
  clear: both;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  margin: 2em auto 1em;
  padding: 1em 1.5em;
  text-align: center !important;
  font-size: 0.85rem;
  line-height: 1.8;
}

footer .demo-site-notice strong {
  font-size: 0.95rem;
}


/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.2em; }
  .quick-sec .container { flex-direction: column; }
  .cards-triple { width: 100%; }
}

@media (max-width: 760px) {
  .top-bar__inner { justify-content: center; text-align: center; }
  .hamburger-btn { display: flex; }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    padding: 5.5em 2em 2em;
    transition: right 0.4s ease;
    z-index: 101;
  }
  nav.is-active { right: 0; }
  nav ul { flex-direction: column; gap: 1.2em; }
  nav a::after { display: none; }

.hero .container {
  padding-left: 3em;
}

  .hero-image { max-width: 100%; width: 80%; background-position: center;}
  .cards-triple { flex-direction: column; }
  .director-box { flex-direction: column; }
  .director-img { width: 100%; max-width: 250px; }
  .director-name { text-align: center; }
  .cta-banner { flex-direction: column; text-align: center; justify-content: center; }
  .cta-text { flex-direction: column; }

  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-left-logo { justify-content: center; }
  .footer-btns { justify-content: center; }

  .header-brand-group { flex-direction: column; align-items: center; gap: 0.5em; }
  .tel-box { display: block; text-align: center; }
  .tel-sub { margin-top: 0.2em; }
  .logo-mark { width: 35px; height: auto; }
  
  .medical-detail-content { flex-direction: column; }
  .medical-detail-content img { width: 100%; }
  .director-content h2 {text-align: center;}
  .director-content h3 {text-align: center;}
  .director-content p img {text-align: center;}
}

@media (max-width: 1000px) {
  .director-box { background-size: 100px auto;}
}

/* 614px以下：WEB予約ボタンを「初めての方もお気軽にご連絡ください」の下に配置 */
@media (max-width: 614px) {
  header .container {
    flex-wrap: wrap;
    position: relative;
  }

  .header-brand-group {
    width: 100%;
  }

  /* ハンバーガーボタンは右上に固定し、レイアウトから切り離す */
  .hamburger-btn {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
  }

  /* 予約ボタンだけを新しい行として下に落とす */
  .header-contact {
    width: 100%;
    justify-content: center;
    margin-top: 0.3em;
  }
}


@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .director-box { background-size: 90px auto;}
  .pc {display: none;}
  /* .hero{background-image: url('../img/main-sp.webp');} */
}


/* 特設案内コンテンツ（元のWebサイトの配色テーマを自動継承） */
.service-guide-section { background-color: #f8fafc; color: #334155; padding: 64px 16px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; font-family: inherit; }
.service-guide-container { max-width: 1120px; margin: 0 auto; }
.service-section-header { text-align: center; margin-bottom: 44px; }
.service-section-badge { background-color: #3b5f4315; color: #3b5f43; font-size: 13px; font-weight: 700; padding: 6px 18px; border-radius: 9999px; display: inline-block; margin-bottom: 14px; border: 1px solid #e2e8f0; }
.service-section-title { font-size: clamp(1.5em, 2vw, 2.1em); color: #0f172a; margin-bottom: 14px; line-height: 1.4; }
/* 「東京都港区で痛みに配慮した歯科治療へのこだわり」：Noto Sans JP Bold（.my-gfont より詳細度を上げて上書き） */
h2.service-section-title { font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif; font-weight: 700; }
.service-section-desc { font-size: 15px; color: #64748b; max-width: 820px; margin: 0 auto; line-height: 1.8; }
.service-guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; margin-bottom: 48px; }
.service-guide-card { background-color: #ffffff; border-radius: 16px; padding: 32px 28px; border: 1px solid #e2e8f0; box-shadow: 0 4px 20px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.service-guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.08); }
.service-guide-badge { background-color: #3b5f4315; color: #3b5f43; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 6px; display: inline-block; margin-bottom: 14px; border: 1px solid #e2e8f0; align-self: flex-start; }
.service-guide-title { font-size: 20px; color: #0f172a; margin-bottom: 14px; line-height: 1.45; }
.service-guide-text { font-size: 14px; color: #334155; line-height: 1.85; margin-bottom: 20px; }
.service-guide-box { background-color: #f1f5f9; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 20px; }
.service-guide-box-title { font-size: 15px; font-weight: 700; color: #3b5f43; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.service-guide-list { font-size: 13.5px; color: #1e293b; line-height: 1.8; margin: 0; padding-left: 20px; }
.service-guide-list li { margin-bottom: 8px; }
.service-guide-list li:last-child { margin-bottom: 0; }
.service-guide-list li strong { color: #0f172a; font-weight: 700; }
.service-guide-examples { background-color: rgba(241,245,249,0.85); padding: 18px; border-radius: 12px; border: 1px dashed #e2e8f0; margin-bottom: 20px; }
.service-guide-examples-title { font-size: 14px; font-weight: 700; color: #0f172a; margin-bottom: 10px; }
.service-guide-examples-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; font-size: 13px; color: #0f172a; }
.service-guide-example-item { background: #ffffff; color: #0f172a; font-weight: 600; padding: 10px 14px; border-radius: 8px; border: 1px solid #e2e8f0; display: flex; align-items: center; gap: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.service-guide-flow { background-color: #f1f5f9; padding: 20px; border-radius: 12px; border: 1px solid #e2e8f0; margin-bottom: 24px; }
.service-guide-flow-title { font-size: 14px; font-weight: 700; color: #3b5f43; margin-bottom: 12px; }
.service-guide-flow-steps { display: flex; flex-direction: column; gap: 10px; }
.service-guide-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #1e293b; line-height: 1.6; }
.service-guide-step strong { color: #0f172a; font-weight: 700; }
.service-guide-step-num { background-color: #3b5f43; color: #ffffff; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 9999px; flex-shrink: 0; margin-top: 2px; }
.service-guide-btn { display: inline-block; text-align: center; background-color: #3b5f43; color: #ffffff; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 8px; text-decoration: none; transition: opacity 0.2s, transform 0.15s; margin-top: auto; }
.service-guide-btn:hover { opacity: 0.92; transform: translateY(-1px); }
.faq-container { background-color: #ffffff; border-radius: 16px; padding: 36px 16px; border: 1px solid #e2e8f0; margin-bottom: 40px; box-shadow: 0 4px 20px rgba(0,0,0,0.04); }
.faq-section-heading { font-size: 22px; font-weight: 800; color: #0f172a; margin-bottom: 24px; text-align: center; border-bottom: 1px solid #e2e8f0; padding-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 16px; }
.faq-item { background-color: #ffffff; padding: 22px 24px; border-radius: 12px; border: 1px solid #e2e8f0; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.faq-question { color: #3b5f43; font-size: 16px; font-weight: 700; display: block; margin-bottom: 12px; line-height: 1.5; }
.faq-answer { margin: 0; font-size: 15px; color: #1e293b; line-height: 1.85; font-weight: 500; }
.service-cta-box { text-align: center; background: linear-gradient(135deg, #3b5f43, #3b5f43); color: #ffffff; padding: 40px 24px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.service-cta-title { font-size: 24px; font-weight: 800; color: #ffffff; margin-bottom: 12px; }
.service-cta-text { font-size: 14.5px; color: rgba(255,255,255,0.92); margin-bottom: 24px; max-width: 680px; margin-left: auto; margin-right: auto; line-height: 1.8; }
.service-cta-btn { display: inline-block; background-color: #ffffff; color: #3b5f43; font-weight: 800; font-size: 15px; padding: 14px 36px; border-radius: 9999px; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12); transition: transform 0.15s, box-shadow 0.15s; }
.service-cta-btn:hover { transform: scale(1.03); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }


/* ヒーロー画像：画面幅に応じてCSSで切り替え */
@media (max-width: 810px) {
  .hero {
    background-image: url('../img/main-optimized-m.webp');
  }
}

@media (max-width: 440px) {
  .hero-title,
  .hero-subtitle,
  .hero-desc {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .hero {
    background-image: url('../img/main-optimized-s.webp');
  }
}

/* --- index.html のインラインCSSから移動した追加ルール --- */
@media (max-width: 768px) {
  .cta-banner { padding-left: 1.5em; padding-right: 1.5em; }
  .cta-title { white-space: normal; }
  .director-box { text-align: center !important; }
  .director-box h2.text-fill { display: block !important; text-align: center !important; width: 100%; }
  .director-box p.gazo { text-align: center !important; margin: 0 auto !important; }
  .director-box p.gazo img { display: inline-block !important; margin: 0 auto !important; }
}
@media (max-width: 480px) {
  .cta-banner::before {
    background-position: left bottom, right bottom;
    background-size: 70px auto, 70px auto;
  }
}
