/* ===========================================
   Tia Design / atelier ito 共通スタイル
   =========================================== */

:root {
  /* トップ（分岐点）の配色：ニュートラル・白〜オフホワイト。差し色は最小限 */
  --color-base: #ffffff;      /* 地色 */
  --color-deep: #f4f3f1;      /* 深い面 */
  --color-text: #2e2a25;      /* 文字 */
  --color-sub: #8a8580;       /* 補助 */
  --color-accent: #8a8580;    /* 差し色メイン：どちらの世界にも寄らないグレー */
  --color-accent-sub: #b8b3ac;/* 差し色サブ */

  --font-heading: "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
  --font-latin: "Cormorant Garamond", serif;
}

/* DESIGNゾーン専用の配色（body に .design-theme）：白ベース＋テラコッタ・ピンク系 */
.design-theme {
  --color-base: #ffffff;      /* 地色 */
  --color-deep: #f7eee9;      /* 深い面 */
  --color-text: #2e2a25;      /* 文字 */
  --color-sub: #8a7a72;       /* 補助 */
  --color-accent: #c47d6a;    /* 差し色メイン（くすみテラコッタ・ピンク寄り） */
  --color-accent-sub: #e8d3c8;/* 差し色サブ（淡いピンクベージュ） */

  /* Service Plan 見出しアンダーライン色 */
  --heading-line-tanpatsu: #b06558; /* テラコッタ、薄背景で読める深め */
  --heading-line-web:      #5c7e92; /* ブルーグレー、薄背景で読める深め */
  --heading-line-hoshu:    #8c8784; /* ニュートラルグレー、保守背景に馴染む控えめトーン */
  --heading-line-flow:     #c07d78; /* ステップグラデーション3色目、制作の流れ用 */
  --heading-line-faq:      #9a9390; /* 暖かみのある控えめグレー、FAQ用 */
}

/* ito ゾーン専用の配色（body に .ito-theme）：生成り・ノスタルジック */
.ito-theme {
  --color-base: #efe7d6;      /* 地色 */
  --color-deep: #e7dcc6;      /* 深い面 */
  --color-text: #42352a;      /* 文字（墨茶） */
  --color-sub: #6f6151;       /* 補助文字 */
  --color-accent: #bf6b34;    /* 差し色メイン（灯りの橙） */
  --color-accent-sub: #7a7f5c;/* 差し色サブ（燻んだ緑） */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-base);
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  position: relative;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ヘッダー（グローバルメニュー） ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-base);
  border-bottom: 1px solid var(--color-deep);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.site-logo {
  font-family: var(--font-latin);
  font-size: 1.4rem;
  letter-spacing: 0.05em;
}

.site-nav {
  display: flex;
  gap: 24px;
}

.site-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  position: relative;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* ハンバーガーメニュー（スマホ用） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-base);
    border-bottom: 1px solid var(--color-deep);
    padding: 16px 20px;
    gap: 16px;
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }
}

/* ===== フッター ===== */
.site-footer {
  background-color: var(--color-deep);
  padding: 40px 20px;
  margin-top: 80px;
  font-size: 0.85rem;
  color: var(--color-sub);
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 著作権 + 資格表記を横並びで、右端に credential を寄せる */
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* UCアドバイザー資格表記 */
.site-footer__credential {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__emblem {
  height: 44px;
  width: auto;
  opacity: 0.8;
}

.site-footer__credential span {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--color-sub);
  line-height: 1.5;
}

.cross-link {
  display: inline-block;
  margin-top: 24px;
  padding: 10px 20px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-size: 0.9rem;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.cross-link:hover {
  background-color: var(--color-accent);
  color: #fff;
}

/* ===== トップページ（分岐の玄関） ===== */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 137px 20px 23px;
}

.hero h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.hero p {
  color: var(--color-sub);
  max-width: 480px;
  margin: 0 auto;
}

/* PC/SP 改行出し分け */
.br-sp { display: none; }
@media (max-width: 768px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }

  /* 糸・リボン装飾はスマホ非表示（スマホ用素材が揃い次第差し替え予定） */
  .thread-decoration {
    display: none;
  }
  /* 糸のスペース分だったpadding-topを縮める */
  .hero {
    padding-top: 60px;
  }
}

.gate {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 720px;           /* 【2】カードグループを約8割に縮小 */
  margin: 40px auto 100px;
  padding: 0 20px;
}

/* 赤い糸の背景装飾（SVG線 + PNGリボン） */
.thread-decoration {
  position: absolute;
  top: -40px;         /* 糸を見出し上に配置 */
  left: 0;
  width: 100%;
  z-index: 0;
  pointer-events: none;
}

.thread-line {
  display: block;
  width: 100%;
  height: auto;       /* viewBoxのアスペクト比を保ったまま伸縮 */
}

/* リボン: JSで自動配置（ribbon-position.js）
   JS未読み込み時のフォールバック位置 */
.thread-ribbon {
  position: absolute;
  left: 80%;
  top: 82.5%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: auto;
}

/* ===== gate カード（共通） =====
   構造: .gate__card > .gate__photo（写真） + .gate__overlay（グラデ） + .gate__content（テキスト）
   写真は絶対配置でカード全体に広がり、overlayが可読性を確保。
   差し替え: CSS内の background-image url() を画像ファイル名に合わせるだけでOK。 */
.gate__card {
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex: 1;
  min-width: 220px;
  aspect-ratio: 3 / 2;
  border-radius: 6px;
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.gate__card:hover {
  transform: translateY(-4px);
}

/* --- 写真レイヤー（カード全体をカバー）--- */
.gate__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(1.12);  /* 【1】写真を少し明るく・軽く */
}

/* images/design-thumb.jpg を置けば反映 */
.gate__photo--design {
  background-image: url('../images/design-thumb.jpg');
  background-color: #ddd;
  background-position: center bottom;
}

/* images/ito-thumb.jpg を置けば反映 */
.gate__photo--ito {
  background-image: url('../images/ito-thumb.jpg');
  background-color: #c9bfaf;
  background-position: center top;
}

/* --- グラデーションオーバーレイ（テキスト側を地色で覆う） --- */
.gate__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 両カードとも「下から上へ」統一。横長3:2になったのでテキスト背面を少し広めに確保 */
.gate__overlay--design {
  background: linear-gradient(
    to top,
    #f7eee9 0%,
    #f7eee9 20%,
    rgba(247, 238, 233, 0.80) 35%,
    rgba(247, 238, 233, 0) 52%
  );
}

.gate__overlay--ito {
  background: linear-gradient(
    to top,
    #efe7d6 0%,
    #efe7d6 20%,
    rgba(239, 231, 214, 0.80) 35%,
    rgba(239, 231, 214, 0) 52%
  );
}

/* --- テキストコンテンツ（写真・オーバーレイより前面） --- */
.gate__content {
  position: relative;
  z-index: 2;
  padding: 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;   /* 【3】常に下部固定（両カード統一） */
  margin-bottom: 0;
}

.gate__card--design {
  border: 1px solid #e8d3c8;
  color: #2e2a25;
}

.gate__card--ito {
  border: 1px solid #d8cdb8;
  color: #42352a;
}

.gate__card h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
}

.gate__card p {
  font-size: 0.88rem;
  margin: 0;
  opacity: 0.8;
}

/* ===== 各ページ共通の見出し ===== */
.page-header {
  text-align: center;
  padding: 80px 20px 40px;
}

.page-header h1 {
  font-size: 1.6rem;
}

.page-content {
  padding: 0 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.placeholder-note {
  background-color: var(--color-deep);
  border-left: 3px solid var(--color-accent);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--color-sub);
  margin-bottom: 32px;
}

/* ---- 準備中バッジ（itoカード右上） ---- */
.coming-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 4px 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: #bf6b34;
  background-color: rgba(239, 231, 214, 0.82);
  border: 1px solid #bf6b34;
  border-radius: 20px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ---- itoゾーン 準備中メッセージブロック ---- */
.ito-coming-soon {
  text-align: center;
  padding: 64px 24px 72px;
  max-width: 600px;
  margin: 0 auto;
}

.ito-coming-soon__label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1rem;
  color: #bf6b34;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 20px;
}

.ito-coming-soon__heading {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: #42352a;
  margin-bottom: 24px;
  line-height: 1.6;
}

.ito-coming-soon__body {
  font-size: 0.92rem;
  color: #6f6151;
  line-height: 2;
  padding: 24px 28px;
  background-color: #e7dcc6;
  border-radius: 6px;
}

/* ===========================================
   DESIGNゾーン（design.html）専用スタイル
   =========================================== */

/* ---- セクション内ナビ ---- */
.section-nav {
  position: sticky;
  top: 57px; /* site-headerの高さ分下げる */
  z-index: 90;
  background-color: var(--color-base);
  border-bottom: 1px solid var(--color-deep);
  padding: 0 20px;
}

.section-nav__list {
  display: flex;
  gap: 0;
  list-style: none;
  max-width: 1080px;
  margin: 0 auto;
}

.section-nav__list a {
  display: block;
  padding: 14px 24px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-sub);
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.section-nav__list a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

/* ---- 共通セクション枠 ---- */
.design-section {
  padding: 80px 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.design-section + .design-section {
  border-top: 1px solid var(--color-deep);
}

.design-section__heading {
  font-family: var(--font-latin);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 40px;
  text-transform: uppercase;
}

/* ---- Profile ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--color-deep);
}

/* 写真がまだない間のプレースホルダー */
.profile-photo--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-size: 0.85rem;
  color: var(--color-sub);
  letter-spacing: 0.1em;
}

.profile-catch {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-bottom: 16px;
  line-height: 1.4;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.8;
}

.profile-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-sub);
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.profile-bio {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text);
}

@media (max-width: 680px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-photo {
    aspect-ratio: 4 / 3;
    max-height: 280px;
    width: 100%;
  }
}

/* ---- Service Plan ---- */
.price-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.price-group {
  background-color: var(--color-deep);
  border-radius: 6px;
  padding: 28px 24px;
  border-top: 3px solid var(--group-color, var(--color-deep)); /* カード上端のアクセントライン */
}

/* 各グループのアクセント色をCSS変数で定義 */
.price-group--spot  { --group-color: #c47d6a; }  /* くすみテラコッタ */
.price-group--sub   { --group-color: #a97a86; }  /* くすみモーヴ／ローズ */
.price-group--web   { --group-color: #7d94a1; }  /* くすみブルーグレー */

.price-group__title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--group-color, var(--color-accent));        /* 見出し文字 */
  border-bottom: 1px solid var(--group-color, var(--color-accent-sub)); /* 区切り線 */
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.price-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-list li {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.price-list__name {
  color: var(--color-text);
}

.price-list__price {
  font-family: var(--font-latin);
  font-size: 0.95rem;
  color: var(--group-color, var(--color-accent));
  white-space: nowrap;
}

.price-list__note {
  font-size: 0.78rem;
  color: var(--color-sub);
  margin-top: 2px;
}

/* ── 価格リスト：カテゴリ見出し行（チラシ・メニュー表など） */
.price-list__group-heading {
  display: block;          /* flex を上書き */
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 4px;
}

/* ── 価格リスト：サブ行（片面・両面・1ページなど） */
.price-list__sub {
  padding-left: 1em;
}

/* ── 価格リスト：説明文付き行（Web制作） */
.price-list li.price-list__item--with-desc {
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}
.price-list__row {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 6px 12px;
}
.price-list__item-desc {
  font-size: 0.72rem;
  color: var(--color-sub);
  line-height: 1.55;
  margin-top: 2px;
}

.price-group__desc {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.8;
}

/* 注記ブロック */
.price-note {
  background-color: rgba(196, 125, 106, 0.06);
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 2;
  margin-top: 24px;
  margin-bottom: 0;
}

/* 制作の流れ */
.flow-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 2px solid var(--heading-line-flow);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: inline-block;
}

/* 【4】横一列レイアウト（各ステップの間に ▶ を CSS で挿入） */
.flow-steps {
  display: flex;
  align-items: stretch;
  list-style: none;
  gap: 0;
}

.flow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 8px 16px;
  position: relative;
}

/* ▶ 矢印をステップ間に配置 */
.flow-step:not(:last-child)::after {
  content: "▶";
  position: absolute;
  right: -6px;
  top: 22px;
  font-size: 0.55rem;
  color: var(--step-color, #c47d6a);
  z-index: 1;
}

.flow-step__num {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--step-color, #c47d6a);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.flow-step__label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--step-color, #c47d6a);
  margin-bottom: 4px;
}

.flow-step__desc {
  font-size: 0.72rem;
  color: var(--color-sub);
  line-height: 1.6;
}

/* スマホ：縦積み・矢印は下向き▼に変更 */
@media (max-width: 680px) {
  .flow-steps {
    flex-direction: column;
    gap: 0;
  }

  .flow-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 14px 0;
    gap: 16px;
    border-bottom: 1px solid var(--color-deep);
  }

  .flow-step:last-child {
    border-bottom: none;
  }

  .flow-step:not(:last-child)::after {
    content: none; /* スマホではボーダー区切りにするので矢印を消す */
  }

  .flow-step__num {
    flex-shrink: 0;
    font-size: 1.2rem;
    margin-bottom: 0;
    padding-top: 2px;
  }

  .flow-step__label,
  .flow-step__desc {
    display: block;
  }
}

/* ---- Work ---- */
.work-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-deep);
  margin-bottom: 32px;
}

.work-tab-btn {
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--color-sub);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.work-tab-btn.is-active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.work-panel {
  display: none;
}

.work-panel.is-active {
  display: block;
}

/* Webタブ：画像下のキャプション */
.work-caption {
  font-size: 0.72rem;
  color: var(--color-sub);
  line-height: 1.6;
  margin-top: 8px;
  text-align: center;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.work-grid__item {
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background-color: var(--color-accent-sub);
  position: relative;
}

.work-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.work-grid__item:hover .work-grid__img {
  transform: scale(1.05);
}

/* 画像なし枠のプレースホルダー */
.work-grid__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(196, 125, 106, 0.5);
  background-color: #e8d3c8;
  transition: transform 0.3s ease;
}

.work-grid__item:hover .work-grid__placeholder {
  transform: scale(1.05);
}

@media (max-width: 680px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ---- Poster タブ：JSメーソンリー ----
   JSが各アイテムを position:absolute で配置する。
   JS実行前は通常フローで表示されるようフォールバックを保持。 */
.poster-masonry {
  list-style: none;
  position: relative;  /* JSが absolute 配置するための基準 */
}

/* JS実行前フォールバック（フレックスで仮並び） */
.poster-masonry:not(.is-laid-out) {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.poster-masonry:not(.is-laid-out) .poster-masonry__item {
  flex: 1 1 260px;
}

/* JS実行後：各アイテムは absolute 配置（位置・幅はJSが設定） */
.poster-masonry.is-laid-out .poster-masonry__item {
  position: absolute;
}

.poster-masonry__item {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-masonry__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.poster-masonry__img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-masonry__placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8d3c8;
  font-family: var(--font-latin);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: rgba(196, 125, 106, 0.5);
}

/* ================================================================
   サブスク（継続プラン）ブロック
================================================================ */
.sub-block {
  margin-top: 28px;
}

.sub-block__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 2px solid #a97a86;
  display: inline-block;
}

.sub-block__lead {
  font-size: 0.84rem;
  color: var(--color-sub);
  line-height: 1.85;
  margin-bottom: 36px;
}

/* ── 3プランカード ── */
.sub-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 16px;
  align-items: start;
}

.sub-plan {
  background: #fff;
  border: 1px solid rgba(169, 122, 134, 0.25);
  border-radius: 16px;
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.sub-plan:hover {
  box-shadow: 0 6px 22px rgba(169, 122, 134, 0.1);
  transform: translateY(-2px);
}

.sub-plan--recommended {
  border: 2px solid #a97a86;
  box-shadow: 0 8px 28px rgba(169, 122, 134, 0.18);
  transform: translateY(-4px);
}

.sub-plan--recommended:hover {
  box-shadow: 0 12px 36px rgba(169, 122, 134, 0.22);
  transform: translateY(-6px);
}

/* おすすめバッジ（カード上辺に重ねて配置） */
.sub-plan__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  color: #fff;
  background: #a97a86;
  border-radius: 100px;
  padding: 4px 16px;
  white-space: nowrap;
}

/* ── カードヘッダー（バッジ＋テキスト横並び） ── */
.sub-plan__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.sub-plan__plant-badge {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(169, 122, 134, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-plan__plant-icon {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.sub-plan__header-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sub-plan__plant-name {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #a97a86;
}

.sub-plan__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

/* ── 価格エリア ── */
.sub-plan__price-wrap {
  margin-bottom: 20px;
}

.sub-plan__price {
  font-family: var(--font-latin);
  font-size: 2rem;
  color: #a97a86;
  line-height: 1.1;
}

.sub-plan__price small {
  font-size: 0.8rem;
  color: var(--color-sub);
  font-family: var(--font-body);
  margin-left: 2px;
}

.sub-plan__price-yearly {
  font-size: 0.68rem;
  color: var(--color-sub);
  margin-top: 5px;
  opacity: 0.75;
}

/* ── 区切り線 ── */
.sub-plan__divider {
  border: none;
  border-top: 1px solid rgba(169, 122, 134, 0.16);
  margin: 0 0 18px;
}

/* ── チェックリスト ── */
.sub-plan__features {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.sub-plan__features li {
  font-size: 0.78rem;
  color: var(--color-sub);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sub-plan__features li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a97a86' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── 対象タグ（枠線ボタン風） ── */
.sub-plan__target {
  display: block;
  font-size: 0.72rem;
  text-align: center;
  padding: 9px 14px;
  border: 1px solid rgba(169, 122, 134, 0.45);
  border-radius: 100px;
  color: #a97a86;
  line-height: 1.5;
  margin-top: auto;
}

.sub-plan__target--filled {
  background: #a97a86;
  color: #fff;
  border-color: #a97a86;
}

/* ── 注記 ── */
.sub-note {
  font-size: 0.72rem;
  color: var(--color-sub);
  opacity: 0.8;
  margin-bottom: 36px;
}

/* ── ベネフィット帯 ── */
.sub-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(169, 122, 134, 0.15);
  border-bottom: 1px solid rgba(169, 122, 134, 0.15);
}

.sub-benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 28px 12px;
}

.sub-benefit + .sub-benefit {
  border-left: 1px solid rgba(169, 122, 134, 0.15);
}

.sub-benefit__icon {
  width: 28px;
  height: 28px;
  color: #a97a86;
  flex-shrink: 0;
}

.sub-benefit__label {
  font-size: 0.74rem;
  color: var(--color-sub);
  line-height: 1.7;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .sub-plans { grid-template-columns: 1fr; gap: 28px; }
  .sub-plan--recommended { transform: none; }
  .sub-plan--recommended:hover { transform: translateY(-2px); }
  .sub-benefits { grid-template-columns: repeat(2, 1fr); }
  .sub-benefit:nth-child(3) { border-top: 1px solid rgba(169, 122, 134, 0.15); }
  .sub-benefit:nth-child(2n+1) { border-left: none; }
  .sub-benefit { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .sub-plan { padding: 24px 18px 20px; }
  .sub-plan__price { font-size: 1.7rem; }
}

/* ================================================================
   Web制作ブロック
================================================================ */
--web-color: #7d94a1;

.web-block {
  margin-top: 28px;
  background-color: var(--color-deep);
  border-radius: 6px;
  border-top: 3px solid #7d94a1;
  padding: 28px 24px 32px;
}

.web-block__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 2px solid var(--heading-line-web);
  padding-bottom: 12px;
  margin-bottom: 12px;
  display: inline-block;
}

.web-block__lead {
  font-size: 0.85rem;
  color: var(--color-sub);
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── 基本プラン ── */
.web-basic {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  background: rgba(125, 148, 161, 0.08);
  border-left: 3px solid #7d94a1;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 24px;
}

.web-basic__label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: #7d94a1;
  font-family: var(--font-heading);
  white-space: nowrap;
}

.web-basic__name {
  font-size: 0.88rem;
  color: var(--color-text);
  flex: 1;
}

.web-basic__price {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  color: #7d94a1;
  white-space: nowrap;
}

/* ── セクション小見出し ── */
.web-section-label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  margin-bottom: 12px;
}

/* ── 含まれる内容グリッド ── */
.web-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.web-feature {
  background: rgba(125, 148, 161, 0.07);
  border-radius: 6px;
  padding: 12px 14px;
  border-left: 2px solid rgba(125, 148, 161, 0.5);
}

.web-feature__title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 5px;
  line-height: 1.4;
}

.web-feature__desc {
  font-size: 0.72rem;
  color: var(--color-sub);
  line-height: 1.55;
}

/* ── 7日間無料サポート ── */
.web-support {
  background: rgba(125, 148, 161, 0.1);
  border-radius: 6px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.web-support__heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: #7d94a1;
  margin-bottom: 6px;
}

.web-support__lead {
  font-size: 0.8rem;
  color: var(--color-sub);
  margin-bottom: 8px;
}

.web-support__items {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 8px;
}

.web-support__items li {
  font-size: 0.8rem;
  color: var(--color-text);
}

.web-support__items li::before {
  content: "・";
  color: #7d94a1;
}

.web-support__note {
  font-size: 0.72rem;
  color: var(--color-sub);
}

/* ── 保守・更新プラン ── */
.web-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.web-plan {
  border: 1px solid rgba(125, 148, 161, 0.3);
  border-radius: 6px;
  padding: 16px;
  position: relative;
}

.web-plan--recommended {
  border-color: #7d94a1;
  border-width: 2px;
}

.web-plan__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  color: #fff;
  background-color: #7d94a1;
  border-radius: 20px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.web-plan__name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: 4px;
}

.web-plan__price {
  font-family: var(--font-latin);
  font-size: 1.15rem;
  color: #7d94a1;
  margin-bottom: 10px;
  line-height: 1;
}

.web-plan__price span {
  font-size: 0.75rem;
  color: var(--color-sub);
}

.web-plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.web-plan__list li {
  font-size: 0.75rem;
  color: var(--color-sub);
  line-height: 1.5;
}

.web-plan__list li::before {
  content: "・";
  color: #7d94a1;
}

/* ── オプション ── */
.web-options {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.web-options li {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 0.85rem;
}

.web-options__name {
  color: var(--color-text);
}

.web-options__price {
  font-family: var(--font-latin);
  color: #7d94a1;
  white-space: nowrap;
}

/* ── 注記 ── */
.web-note {
  font-size: 0.75rem;
  color: var(--color-sub);
  line-height: 1.7;
  border-top: 1px solid rgba(125, 148, 161, 0.2);
  padding-top: 12px;
  margin-top: 4px;
}

/* ── レスポンシブ ── */
@media (max-width: 680px) {
  .web-features  { grid-template-columns: repeat(2, 1fr); }
  .web-plans     { grid-template-columns: 1fr; }
  .web-block     { padding: 20px 16px 24px; }
}

@media (max-width: 420px) {
  .web-features  { grid-template-columns: 1fr; }
}

/* ================================================================
   スクロールフェードイン（IntersectionObserver）
================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ================================================================
   単発（都度）サービスカード
================================================================ */
.spot-block {
  margin-bottom: 40px;
}

.spot-block__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 2px solid var(--heading-line-tanpatsu);
  padding-bottom: 12px;
  margin-bottom: 20px;
  display: inline-block;
}

/* ================================================================
   ① 単発カード：リデザイン
================================================================ */
.spot-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.spot-card {
  background: #fff;
  border: 1px solid rgba(196, 125, 106, 0.18);
  border-radius: 16px;
  padding: 28px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.spot-card:hover {
  box-shadow: 0 6px 20px rgba(196, 125, 106, 0.12);
  transform: translateY(-3px);
}

/* 円形バッジ */
.spot-card__badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(196, 125, 106, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  flex-shrink: 0;
}

.spot-card__icon {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.spot-card__name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-text);
  line-height: 1.4;
}

.spot-card__name small {
  font-size: 0.78em;
  font-weight: 400;
}

.spot-card__copy {
  font-size: 0.72rem;
  color: var(--color-sub);
  line-height: 1.75;
  flex: 1;
}

/* 価格エリア */
.spot-card__prices {
  width: 100%;
}

.spot-card__price {
  font-family: var(--font-latin);
  font-size: 1.3rem;
  color: #c47d6a;
  line-height: 1.2;
  display: block;
  text-align: center;
}

.spot-card__tax {
  font-size: 0.65rem;
  color: var(--color-sub);
  font-family: var(--font-body);
  margin-left: 2px;
}

/* 2段組み価格 */
.spot-card__prices--rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(196, 125, 106, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.spot-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 10px;
  background: #fff;
}

.spot-card__price-row + .spot-card__price-row {
  border-top: 1px solid rgba(196, 125, 106, 0.12);
}

.spot-card__price-label {
  font-size: 0.68rem;
  color: var(--color-sub);
  white-space: nowrap;
}

.spot-card__price-row .spot-card__price {
  font-size: 1.0rem;
  text-align: right;
}

/* 詳しく見るボタン */
.spot-card__btn {
  display: inline-block;
  margin-top: 2px;
  padding: 7px 18px;
  border: 1px solid rgba(196, 125, 106, 0.42);
  border-radius: 100px;
  font-size: 0.72rem;
  font-family: var(--font-latin);
  letter-spacing: 0.06em;
  color: #c47d6a;
  text-decoration: none;
  transition: background 0.18s;
  white-space: nowrap;
}

.spot-card__btn:hover {
  background: rgba(196, 125, 106, 0.08);
}

@media (max-width: 600px) {
  .spot-cards { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .spot-card { padding: 20px 14px 18px; }
  .spot-card__badge { width: 72px; height: 72px; }
  .spot-card__icon { width: 56px; height: 56px; }
}
@media (max-width: 340px) {
  .spot-cards { grid-template-columns: 1fr; }
}

/* ================================================================
   単発 実績バー
================================================================ */
.spot-works-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  background: rgba(196, 125, 106, 0.1);
  border-radius: 12px;
}

.spot-works-bar__text {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spot-works-bar__deco {
  font-size: 1.1rem;
  color: #c47d6a;
  flex-shrink: 0;
  line-height: 1;
}

.spot-works-bar__heading {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.spot-works-bar__desc {
  font-size: 0.72rem;
  color: var(--color-sub);
  margin-top: 3px;
  line-height: 1.5;
}

.spot-works-bar__btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 11px 26px;
  background: #c47d6a;
  color: #fff;
  border-radius: 100px;
  font-size: 0.76rem;
  font-family: var(--font-latin);
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s;
}

.spot-works-bar__btn:hover { background: #b36a57; }

@media (max-width: 680px) {
  .spot-works-bar { flex-direction: column; align-items: flex-start; gap: 16px; padding: 20px 20px; }
  .spot-works-bar__btn { align-self: stretch; text-align: center; }
}

/* ================================================================
   Web機能アイコン
================================================================ */
.web-feature__icon {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 8px;
}

/* ================================================================
   保守プラン 比較表
================================================================ */
.web-plan-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 24px;
  border-radius: 6px;
}

.web-plan-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.web-plan-table th,
.web-plan-table td {
  padding: 9px 14px;
  text-align: center;
  border-bottom: 1px solid rgba(125, 148, 161, 0.12);
  vertical-align: middle;
}

.web-plan-table th {
  background: rgba(125, 148, 161, 0.1);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--color-text);
  line-height: 1.5;
  padding-top: 14px;
  padding-bottom: 14px;
}

.web-plan-table td:first-child,
.web-plan-table th:first-child {
  text-align: left;
  color: var(--color-sub);
  font-size: 0.78rem;
  white-space: nowrap;
  padding-left: 16px;
}

.web-plan-table th.col-recommended {
  background: rgba(125, 148, 161, 0.18);
  color: #7d94a1;
  border-top: 2px solid #7d94a1;
}

.web-plan-table td.col-recommended {
  background: rgba(125, 148, 161, 0.05);
}

.plan-rec-badge {
  display: inline-block;
  font-size: 0.6rem;
  background: #7d94a1;
  color: #fff;
  border-radius: 10px;
  padding: 1px 7px;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.plan-th-price {
  display: block;
  font-family: var(--font-latin);
  font-size: 1.05rem;
  color: #7d94a1;
  margin-top: 3px;
  line-height: 1;
}

.plan-th-price small {
  font-size: 0.65rem;
  font-family: var(--font-body);
  color: var(--color-sub);
}

.tbl-check { color: #7d94a1; font-size: 0.95rem; }
.tbl-minus { color: #ccc; font-size: 0.9rem; }
.tbl-note  { font-size: 0.75rem; color: var(--color-sub); }

/* ================================================================
   制作の流れ アイコン
================================================================ */
.flow-step__icon {
  display: none; /* スマホ用素材差し替えまで非表示 */
}

@media (max-width: 680px) {
  .flow-step__icon {
    display: none;
  }
}

/* ================================================================
   ② 制作実績プレビュー
================================================================ */
.work-preview {
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.work-preview__imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.work-preview__img {
  width: 155px;
  height: 108px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: block;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.work-preview__img:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.work-preview--single .work-preview__img {
  width: 300px;
  height: 185px;
}

@media (max-width: 680px) {
  .work-preview__img { width: 130px; height: 88px; }
  .work-preview--single .work-preview__img { width: 100%; height: auto; max-width: 320px; }
}

/* ⑧ Works 導線ボタン */
.works-cta {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 4px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.works-cta:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ================================================================
   ⑥ Tia Design が選ばれる理由
================================================================ */
.reason-section {
  margin: 48px 0 40px;
  padding: 32px 28px;
  background: var(--color-deep);
  border-radius: 8px;
  border-top: 3px solid var(--color-accent);
}

.reason-section__heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--color-text);
  margin-bottom: 24px;
  text-align: center;
}

.reason-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 14px;
}

.reason-card {
  background: var(--color-base);
  border-radius: 6px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.reason-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.reason-card__icon {
  font-size: 1.6rem;
  line-height: 1;
  display: block;
}

.reason-card__title {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
}

.reason-card__desc {
  font-size: 0.76rem;
  color: var(--color-sub);
  line-height: 1.65;
}

@media (max-width: 680px) {
  .reason-section { padding: 24px 16px; }
  .reason-cards { grid-template-columns: 1fr; }
  .reason-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
  }
  .reason-card__icon { flex-shrink: 0; font-size: 1.4rem; }
}

/* ================================================================
   ⑦ FAQ アコーディオン
================================================================ */
.faq-section {
  margin: 48px 0 40px;
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 2px solid var(--heading-line-faq);
  padding-bottom: 12px;
  margin-bottom: 10px;
  display: inline-block;
}

.faq-lead {
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.75;
  margin-bottom: 24px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-deep);
}

.faq-item {
  border-bottom: 1px solid var(--color-deep);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 2px;
  gap: 12px;
}

.faq-question__text {
  font-size: 0.87rem;
  color: var(--color-text);
  line-height: 1.55;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover .faq-question__text,
.faq-item.is-open .faq-question__text {
  color: var(--color-accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--color-accent);
  font-family: var(--font-latin);
  line-height: 1;
  transition: background 0.22s ease, color 0.22s ease;
}

.faq-item.is-open .faq-icon {
  background: var(--color-accent);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer__inner {
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.8;
  padding: 4px 2px 18px;
}

.faq-note {
  font-size: 0.74rem;
  color: var(--color-sub);
  margin-top: 20px;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  .faq-answer { transition: none; }
  .work-preview__img { transition: none; }
  .reason-card:hover { transition: none; transform: none; }
}

/* ================================================================
   ① アイコン線画ベースクラス
================================================================ */
.icon-line {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  flex-shrink: 0;
  /* stroke/fill は各SVGファイル側で定義済み。
     <img>で使う場合は色変更不可（currentColorが効かない）。
     インラインSVG or CSS mask で色制御すること。 */
}

.icon-line--lg {
  width: 32px;
  height: 32px;
}

/* 植物アイコン：カードのシンボルとして大きめに表示 */
.icon-line--plant {
  width: 52px;
  height: 52px;
}

/* ================================================================
   ② サービスセクション 余白ルール
================================================================ */

/* CSS変数：セクション間の余白 */
:root {
  --section-spacing-pc: 112px;
  --section-spacing-sp: 68px;
}

/* ── セクションラッパー ── */
.service-section {
  padding-top: var(--section-spacing-pc);
  padding-bottom: var(--section-spacing-pc);
}

/* 先頭セクション（Service Planの直下）は上パディングなし */
.service-section:first-child {
  padding-top: 0;
}

/* セクションの背景色（全幅拡張） */
.service-section--spot,
.service-section--sub,
.service-section--web,
.service-section--maintenance,
.service-section--flow {
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.service-section--spot        { background: rgba(196, 125, 106, 0.06); }
.service-section--sub         { background: rgba(169, 122, 134, 0.06); }
.service-section--web         { background: rgba(125, 148, 161, 0.07); }
.service-section--maintenance { background: #f4f2ef; }
.service-section--flow        { background: #faf8f6; }

/* ── セクション番号ラベル ── */
.service-section-no {
  display: block;
  font-family: var(--font-latin);
  font-size: 0.6rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-sub);
  opacity: 0.55;
  margin-bottom: 18px;
  line-height: 1;
}

/* セクションごとに番号の色をアクセントカラーに */
.service-section--spot        .service-section-no { color: #c47d6a; opacity: 0.8; }
.service-section--sub         .service-section-no { color: #a97a86; opacity: 0.8; }
.service-section--web         .service-section-no { color: #7d94a1; opacity: 0.8; }
.service-section--maintenance .service-section-no { color: var(--color-sub); opacity: 0.7; }
.service-section--flow        .service-section-no { color: var(--color-sub); opacity: 0.7; }

@media (max-width: 680px) {
  .service-section {
    padding-top: var(--section-spacing-sp);
    padding-bottom: var(--section-spacing-sp);
  }
}

/* ================================================================
   ① 単発カード：キーボードフォーカス
================================================================ */
.spot-card:focus-visible {
  outline: 2px solid #c47d6a;
  outline-offset: 2px;
}

/* ================================================================
   ③ Web制作：サービス内容一覧（横並び・枠なし）
================================================================ */
.web-services-overview {
  list-style: none;
  padding: 0;
  margin: 0 0 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 28px;
}

.web-service-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.web-service-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
}

.web-service-item__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}

.web-service-item__label {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  line-height: 1.35;
}

.web-service-item__desc {
  font-size: 0.69rem;
  color: var(--color-sub);
  line-height: 1.55;
}

@media (max-width: 680px) {
  .web-services-overview { grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
  .web-service-item__icon { width: 38px; height: 38px; }
}

/* ================================================================
   ③ Web制作：見出しエリア
================================================================ */
.web-heading-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.web-heading-deco {
  width: 56px;
  height: 26px;
  flex-shrink: 0;
  color: rgba(125, 148, 161, 0.55);
}

.web-heading-line {
  flex: 1;
  height: 1px;
  background: rgba(125, 148, 161, 0.2);
  display: block;
}

/* ================================================================
   ③ Web制作：基本プランバー
================================================================ */
.web-plan-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(125, 148, 161, 0.06);
  border-left: 4px solid #7d94a1;
  border-radius: 0 10px 10px 0;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.web-plan-bar__label {
  font-family: var(--font-latin);
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
  background: #7d94a1;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.web-plan-bar__desc {
  flex: 1;
  font-size: 0.84rem;
  color: var(--color-sub);
  min-width: 160px;
  line-height: 1.6;
}

.web-plan-bar__price {
  font-family: var(--font-latin);
  font-size: 1.5rem;
  color: #5c7e92;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 400;
}

.web-plan-bar__price small {
  font-size: 0.72rem;
  color: var(--color-sub);
  font-family: var(--font-body);
  margin-left: 3px;
}

@media (max-width: 680px) {
  .web-plan-bar { padding: 16px 18px; gap: 12px; }
  .web-plan-bar__desc { min-width: 100%; order: 3; }
  .web-plan-bar__price { order: 4; }
}

/* ================================================================
   ④ 保守・更新プラン：セクションタイトル
================================================================ */
.maintenance-block__title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
  border-bottom: 2px solid var(--heading-line-hoshu);
  padding-bottom: 12px;
  margin-bottom: 10px;
  display: inline-block;
}

.maintenance-block__lead {
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.75;
  margin-bottom: 32px;
}

/* ================================================================
   ④ 保守・更新プラン：新レイアウト
================================================================ */

/* ── 見出しエリア ── */
.maint-heading-area {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.maint-heading-deco {
  width: 56px;
  height: 26px;
  flex-shrink: 0;
  color: rgba(140, 135, 130, 0.45);
}

.maint-heading-line {
  flex: 1;
  height: 1px;
  background: rgba(140, 135, 130, 0.2);
  display: block;
}

/* ── 比較表 ── */
.maint-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 32px;
  border-radius: 16px;
  border: 1px solid rgba(140, 135, 130, 0.2);
  padding-top: 20px; /* おすすめバッジ（top:-14px）がクリップされないよう余白を確保 */
}

.maint-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.maint-th {
  padding: 24px 16px 20px;
  text-align: center;
  vertical-align: top;
  background: rgba(140, 135, 130, 0.07);
  border-bottom: 1px solid rgba(140, 135, 130, 0.15);
}

.maint-th--label {
  background: transparent;
  width: 28%;
}

.maint-th--plan {
  position: relative;
  width: 24%;
}

.maint-th--rec {
  background: rgba(140, 135, 130, 0.14);
  border-top: 3px solid #8c8784;
}

.maint-rec-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #fff;
  background: #8c8784;
  border-radius: 100px;
  padding: 3px 14px;
  white-space: nowrap;
}

.maint-plant-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(140, 135, 130, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

.maint-plant-icon {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}

.maint-plan-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.maint-plan-price {
  font-family: var(--font-latin);
  font-size: 1.05rem;
  color: #7a7672;
  line-height: 1.2;
}

.maint-plan-price small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  color: var(--color-sub);
  display: block;
  margin-top: 2px;
}

/* ── 表の本体セル ── */
.maint-td {
  padding: 12px 16px;
  text-align: center;
  border-top: 1px solid rgba(140, 135, 130, 0.12);
  font-size: 0.82rem;
  color: var(--color-sub);
  vertical-align: middle;
}

.maint-td--label {
  text-align: left;
  background: rgba(140, 135, 130, 0.04);
  color: var(--color-text);
  font-size: 0.8rem;
  padding-left: 18px;
}

.maint-td--rec {
  background: rgba(140, 135, 130, 0.07);
}

.maint-td--note {
  font-size: 0.76rem;
  color: var(--color-sub);
}

.maint-label-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.maint-row-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #8c8784;
}

/* チェック（circle + check）は CSS background-image で表現 */
.maint-check {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238c8784' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpolyline points='9 12 11 14 15 10'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.maint-minus {
  color: #c8c4c0;
  font-size: 0.9rem;
}

/* ── 案内カード ── */
.maint-info-card {
  background: #fff;
  border: 1px solid rgba(140, 135, 130, 0.22);
  border-radius: 16px;
  padding: 28px 28px 48px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
}

.maint-vine {
  position: absolute;
  pointer-events: none;
  color: rgba(140, 135, 130, 0.22);
}

.maint-vine--bl {
  bottom: 10px;
  left: 14px;
  width: 64px;
  height: 42px;
}

.maint-vine--br {
  bottom: 10px;
  right: 14px;
  width: 64px;
  height: 42px;
}

.maint-info-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.maint-info-i-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #8c8784;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 1.15rem;
  flex-shrink: 0;
  line-height: 1;
}

.maint-info-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.maint-info-card__desc {
  font-size: 0.8rem;
  color: var(--color-sub);
  line-height: 1.85;
}

.maint-info-features {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 20px;
}

.maint-info-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  color: var(--color-sub);
  line-height: 1.5;
}

.maint-feature-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: #8c8784;
}

/* ── レスポンシブ ── */
@media (max-width: 768px) {
  .maint-info-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .maint-info-features { grid-template-columns: 1fr; }
  .maint-info-card { padding: 22px 18px 44px; }
  .maint-th { padding: 18px 10px 14px; }
  .maint-td { padding: 10px 10px; }
}

/* ================================================================
   ③ Web制作：Group 1 — 基本プランヒーロー
================================================================ */
.web-basic-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 36px 32px;
  border: 1px solid rgba(125, 148, 161, 0.28);
  border-radius: 12px;
  margin-bottom: 40px;
  position: relative;
}

.web-basic-hero__label {
  font-family: var(--font-latin);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #7d94a1;
  opacity: 0.8;
}

.web-basic-hero__price {
  font-family: var(--font-latin);
  font-size: 2.6rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--color-text);
  line-height: 1.1;
  margin: 4px 0 2px;
}

.web-basic-hero__price small {
  font-size: 1rem;
  letter-spacing: 0;
  opacity: 0.65;
}

.web-basic-hero__desc {
  font-size: 0.82rem;
  color: var(--color-sub);
  line-height: 1.6;
}

/* ================================================================
   ③ Web制作：Group 2 — 含まれる内容 3列ミニカード
================================================================ */
/* ── 基本プランに含まれる内容：小見出し ── */
.web-contents-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.web-contents-leaf {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: rgba(125, 148, 161, 0.6);
}

.web-contents-heading__text {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  color: var(--color-text);
  white-space: nowrap;
}

.web-contents-heading__line {
  flex: 1;
  height: 1px;
  background: rgba(125, 148, 161, 0.18);
  display: block;
}

.web-contents-heading__dots {
  font-size: 0.9rem;
  color: rgba(125, 148, 161, 0.4);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

/* ── 3×3 リッチカードグリッド ── */
.web-contents-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.web-ccard {
  background: #fff;
  border: 1px solid rgba(125, 148, 161, 0.18);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s ease;
}

.web-ccard:hover {
  box-shadow: 0 4px 14px rgba(125, 148, 161, 0.12);
}

.web-ccard__badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(125, 148, 161, 0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.web-ccard__icon {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.web-ccard__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.web-ccard__title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

.web-ccard__desc {
  font-size: 0.67rem;
  color: var(--color-sub);
  line-height: 1.65;
}

/* ================================================================
   ③ Web制作：納品後7日間 無料サポートカード
================================================================ */
.web-free-support {
  margin-bottom: 40px;
  border-radius: 14px;
  background: rgba(125, 148, 161, 0.13);
  border: 1px solid rgba(125, 148, 161, 0.25);
  padding: 28px 32px 24px;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  position: relative;
  overflow: hidden;
}

.web-free-support__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(125, 148, 161, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.web-free-support__icon {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
}

.web-free-support__body {
  flex: 1;
  min-width: 0;
}

.web-free-support__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--color-text);
  margin-bottom: 6px;
}

.web-free-support__subtitle {
  font-size: 0.78rem;
  color: var(--color-sub);
  margin-bottom: 14px;
}

.web-free-support__items {
  font-size: 0.8rem;
  color: var(--color-sub);
  line-height: 1.9;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.web-free-support__note {
  font-size: 0.68rem;
  color: var(--color-sub);
  opacity: 0.7;
}

.web-free-support__deco {
  position: absolute;
  bottom: 10px;
  right: 14px;
  width: 70px;
  height: 44px;
  color: rgba(125, 148, 161, 0.25);
  pointer-events: none;
}

/* ================================================================
   ④ 保守プラン：テーブルヘッダー植物アイコン
================================================================ */
.plan-th-plant {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  object-fit: contain;
}

/* ================================================================
   ③ Web制作：Group 4 — オプション Apple-style list
================================================================ */
.web-options-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.web-option-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.web-options-list .web-option-row:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.web-option-row__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  object-fit: contain;
}

.web-option-row__name {
  flex: 1;
  font-size: 0.83rem;
  color: var(--color-text);
}

.web-option-row__price {
  font-family: var(--font-latin);
  font-size: 0.82rem;
  color: #7d94a1;
  white-space: nowrap;
}

@media (max-width: 680px) {
  .web-basic-hero { padding: 24px 20px; }
  .web-basic-hero__price { font-size: 2rem; }
  .web-contents-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .web-ccard { padding: 12px 10px; gap: 10px; }
  .web-ccard__badge { width: 40px; height: 40px; }
  .web-ccard__icon { width: 30px; height: 30px; }
  .web-free-support { flex-direction: column; padding: 22px 20px 20px; gap: 16px; }
  .web-free-support__icon-wrap { width: 56px; height: 56px; }
  .web-free-support__icon { width: 44px; height: 44px; }
  .web-free-support__items { font-size: 0.76rem; }
  .plan-th-plant { width: 36px; height: 36px; margin-bottom: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .spot-card { transition: none; }
}

