/* モバイルハンバーガーメニューCSS（mobile-nav.css 5層防御版）は本ファイル末尾にインライン展開済み。
   _template 配下を外部参照で読み込む方式は案件フォルダ外＝デプロイ/ローカルで404になるため使わない。 */

/* ===========================================
   自社サービスHP（HP制作事業 営業用サイト）
   - マルチページ・5ページ構成
   - カラー: 深いネイビー × ティールグリーン × オレンジCTA
   - フォント: Noto Sans JP + Cormorant Garamond
   =========================================== */

/* ===== ROOT VARIABLES ===== */
:root {
  --color-main: #0F3057;
  --color-main-light: #2A4D7A;
  --color-main-deep: #082040;
  --color-accent: #00A896;
  --color-accent-light: #4FC3B8;
  --color-cta: #F4A261;
  --color-cta-deep: #E8924E;
  --color-text: #1A1A1A;
  --color-text-sub: #555;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F8FB;
  --color-line: #E8EDE5;
  --font-main: 'Noto Sans JP', sans-serif;
  --font-accent: 'Cormorant Garamond', serif;
  --max-width: 1100px;
  --space-section: 100px;
  --radius: 8px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ===== COMMON LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--space-section) 0;
}
.section-soft {
  background: var(--color-bg-soft);
}
.section-dark {
  background: var(--color-main-deep);
  color: #fff;
}

/* セクション見出し共通 */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head .en {
  display: block;
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: .25em;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-main);
  letter-spacing: .03em;
  line-height: 1.4;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p {
  margin-top: 18px;
  color: var(--color-text-sub);
  font-size: 15px;
}
.section-dark .section-head p { color: rgba(255,255,255,.8); }

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: .04em;
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-cta {
  background: var(--color-cta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(244, 162, 97, .35);
}
.btn-cta:hover {
  background: var(--color-cta-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 162, 97, .45);
}
.btn-outline {
  border: 2px solid var(--color-main);
  color: var(--color-main);
  background: transparent;
}
.btn-outline:hover {
  background: var(--color-main);
  color: #fff;
}
.btn-ghost {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  background: #fff;
  color: var(--color-main);
}
.btn-sm { padding: 10px 22px; font-size: 13px; }

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  padding: 16px 0;
  transition: padding .3s, box-shadow .3s, background .3s;
}
body.is-scrolled .site-header {
  padding: 10px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  color: var(--color-main);
  letter-spacing: .05em;
  flex-shrink: 0;
}
.logo .accent {
  color: var(--color-accent);
}
.header-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.header-nav a:hover,
.header-nav a.is-current {
  color: var(--color-main);
  border-bottom-color: var(--color-accent);
}
.header-cta {
  flex-shrink: 0;
}

/* ハンバーガー（PC版） — モバイル時の表示制御は mobile-nav.css 側 */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: transform .3s, opacity .3s;
}
@media (max-width: 768px) {
  .header-cta { display: none; }
}

/* ===== モバイルハンバーガーメニュー（mobile-nav.css 5層防御版をインライン展開）
   経緯: _template を外部参照で読み込む方式はローカルサーバー/Netlify本番でドキュメントルート外となり
   404→ハンバーガー不発（ナビが縦に潰れる）になるため、手順書 §4.1.3 に従い案件CSSへ直接展開する。
   5層防御: display:none / visibility:hidden / opacity:0 / pointer-events:none / 画面外+height0 ===== */
@media (max-width: 768px) {
  .site-header { background: #fff; z-index: 1000; }
  .header-inner { gap: 12px; }
  .logo { font-size: 16px; position: relative; z-index: 1002; }

  .burger {
    display: flex !important;
    position: relative;
    z-index: 1002;
  }

  /* 閉じている状態：5層防御で完全に非表示 */
  .header-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;

    flex-direction: column;
    position: fixed !important;
    top: -200vh !important;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 80px 0 40px;
    background: #fff;
    gap: 0;
    flex: none;
    justify-content: flex-start;
    align-items: stretch;
    z-index: 1001;

    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  /* 開いている状態：is-open クラスで全層を解除 */
  .header-nav.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    top: 0 !important;
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
  }

  .header-nav a {
    display: block;
    padding: 20px 28px;
    font-size: 16px;
    border-bottom: 1px solid var(--color-line, #E8EDE5);
  }

  .header-nav a:hover,
  .header-nav a.is-current {
    background: var(--color-bg-soft, #f8f8f8);
    color: var(--color-main, #333);
  }
}

/* ===== HERO（共通ベース） ===== */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-main-deep) 0%, var(--color-main) 50%, var(--color-main-light) 100%);
  color: #fff;
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 168, 150, .25), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 150, .15), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero .en {
  font-family: var(--font-accent);
  font-size: 14px;
  letter-spacing: .3em;
  color: var(--color-accent-light);
  font-weight: 500;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 44px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .03em;
  margin-bottom: 24px;
}
.hero h1 .highlight {
  background: linear-gradient(transparent 70%, rgba(0, 168, 150, .35) 70%);
  padding: 0 4px;
}
.hero .lead {
  font-size: 17px;
  line-height: 2;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .9);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ページヘッダー（下層ページ用ミニヒーロー） */
.page-hero {
  background: linear-gradient(135deg, var(--color-main-deep), var(--color-main));
  color: #fff;
  padding: 80px 0 60px;
  text-align: center;
}
.page-hero .en {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .3em;
  color: var(--color-accent-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: .04em;
}
.page-hero p {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-main-deep);
  color: rgba(255, 255, 255, .85);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
  display: inline-block;
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, .7);
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .15em;
  color: var(--color-accent-light);
  margin-bottom: 18px;
  text-transform: uppercase;
  font-family: var(--font-accent);
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}
.footer-col ul a:hover {
  color: var(--color-accent-light);
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, .55);
}

/* CTAバナー（フッター直前） */
.cta-banner {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-main) 100%);
  color: #fff;
  padding: 70px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.cta-banner p {
  font-size: 15px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, .92);
}

/* ===== FADE-IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== INDEX PAGE ===== */

/* 課題提起 */
.problems {
  background: var(--color-bg-soft);
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.problem-card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  text-align: center;
}
.problem-card .icon {
  font-size: 32px;
  color: var(--color-cta);
  margin-bottom: 16px;
}
.problem-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* 強み4点 */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 20px;
}
.strength-card {
  background: #fff;
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 48, 87, .08);
}
.strength-card .num {
  font-family: var(--font-accent);
  font-size: 44px;
  font-weight: 500;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 16px;
}
.strength-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 12px;
  letter-spacing: .02em;
}
.strength-card p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* サービス概要（INDEX） */
.services-overview {
  background: var(--color-bg-soft);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.service-card {
  background: #fff;
  padding: 44px 36px;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 48, 87, .1);
}
.service-card .label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-accent);
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.service-card h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-main);
  margin-bottom: 8px;
}
.service-card .price {
  font-size: 14px;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}
.service-card .price strong {
  font-family: var(--font-accent);
  font-size: 30px;
  color: var(--color-cta-deep);
  font-weight: 600;
  margin-right: 4px;
}
.service-card ul {
  margin-bottom: 24px;
}
.service-card ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-accent);
  background-image: linear-gradient(45deg, transparent 40%, #fff 40%, #fff 60%, transparent 60%);
}

/* 制作事例抜粋（INDEX） */
.works-pickup {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
/* 制作事例が1件のみの場合は中央寄せ表示 */
.works-pickup:has(.work-card:only-child) {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}
.work-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-line);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 48, 87, .08);
}
.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--color-main-light), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .1em;
}
.work-body {
  padding: 24px 28px;
}
.work-body .tag {
  display: inline-block;
  font-size: 12px;
  background: var(--color-bg-soft);
  color: var(--color-main);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  font-weight: 500;
}
.work-body h3 {
  font-size: 17px;
  color: var(--color-main);
  margin-bottom: 8px;
  font-weight: 700;
}
.work-body p {
  font-size: 13px;
  color: var(--color-text-sub);
  line-height: 1.8;
}

/* 制作の流れ（INDEX 抜粋） */
.flow-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.flow-mini-item {
  background: #fff;
  padding: 28px 20px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--color-line);
  position: relative;
}
.flow-mini-item .step {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin-bottom: 8px;
  font-weight: 500;
}
.flow-mini-item h4 {
  font-size: 15px;
  color: var(--color-main);
  margin-bottom: 8px;
  font-weight: 700;
}
.flow-mini-item p {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.7;
}

/* FAQ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 26px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-main);
  font-size: 15px;
  line-height: 1.7;
  transition: background .2s;
}
.faq-q:hover { background: var(--color-bg-soft); }
.faq-q::before {
  content: 'Q.';
  flex-shrink: 0;
  font-family: var(--font-accent);
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}
.faq-q::after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: var(--color-accent);
  font-weight: 400;
  transition: transform .3s;
}
.faq-item.is-open .faq-q::after {
  content: '−';
}
.faq-a {
  display: none;
  padding: 0 26px 24px 64px;
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-sub);
  position: relative;
}
.faq-a::before {
  content: 'A.';
  position: absolute;
  left: 26px;
  top: 0;
  font-family: var(--font-accent);
  font-size: 22px;
  color: var(--color-cta);
  font-weight: 600;
}
.faq-item.is-open .faq-a {
  display: block;
}

/* ===== SERVICES PAGE ===== */
.plan-detail {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 50px 44px;
  margin-bottom: 40px;
  position: relative;
}
.plan-detail .label {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 8px;
}
.plan-detail h3 {
  font-size: 28px;
  color: var(--color-main);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: .03em;
}
.plan-detail .price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
}
.plan-detail .price-block strong {
  font-family: var(--font-accent);
  font-size: 42px;
  color: var(--color-cta-deep);
  font-weight: 600;
}
.plan-detail .price-block span {
  font-size: 14px;
  color: var(--color-text-sub);
}
.plan-detail .desc {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-line);
}
.plan-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-text);
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--color-accent);
  border-radius: 50%;
  background-image: linear-gradient(45deg, transparent 35%, #fff 35%, #fff 65%, transparent 65%);
}
/* 差別化訴求の強調項目（契約前の構成案ご提示） */
.plan-features li.plan-feature-highlight {
  grid-column: 1 / -1;
  background: rgba(0, 168, 150, 0.08);
  border-left: 3px solid var(--color-accent);
  padding: 14px 14px 14px 18px;
  border-radius: 6px;
  margin-bottom: 4px;
  list-style: none;
  position: relative;
}
.plan-features li.plan-feature-highlight::before {
  content: '★';
  color: var(--color-accent);
  font-weight: 700;
  margin-right: 8px;
  /* 通常の li::before（緑丸）スタイルを打ち消す */
  position: static;
  width: auto;
  height: auto;
  background: none;
  background-image: none;
  border-radius: 0;
  top: auto;
  left: auto;
}
.plan-features li.plan-feature-highlight strong {
  color: var(--color-main, var(--color-text));
  font-size: 15px;
  line-height: 1.6;
}

/* オプション表 */
.option-table {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  border-collapse: collapse;
}
.option-table th,
.option-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  font-size: 14px;
}
.option-table th {
  background: var(--color-bg-soft);
  color: var(--color-main);
  font-weight: 600;
  width: 40%;
}
.option-table td {
  color: var(--color-text-sub);
}
.option-table tr:last-child th,
.option-table tr:last-child td {
  border-bottom: none;
}
.option-table .price-cell {
  font-family: var(--font-accent);
  font-size: 18px;
  color: var(--color-cta-deep);
  font-weight: 600;
  white-space: nowrap;
}

/* 比較テーブル */
.compare-table {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  border-collapse: collapse;
}
.compare-table th,
.compare-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  border-right: 1px solid var(--color-line);
  font-size: 14px;
  vertical-align: middle;
}
.compare-table th {
  background: var(--color-main);
  color: #fff;
  font-weight: 600;
}
.compare-table td:first-child {
  text-align: left;
  background: var(--color-bg-soft);
  font-weight: 600;
  color: var(--color-main);
}
.compare-table tr:last-child td {
  border-bottom: none;
}
.compare-table td:last-child,
.compare-table th:last-child {
  border-right: none;
}
.compare-yes { color: var(--color-accent); font-weight: 600; }
.compare-no { color: #c0392b; font-weight: 600; }

/* ===== WORKS PAGE ===== */
.works-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}
.work-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.work-detail-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-main), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  letter-spacing: .15em;
  font-weight: 500;
}
.work-detail-thumb.cwi {
  background: linear-gradient(135deg, #C97A3A, #1F1F1F);
}
.work-detail-body {
  padding: 40px 44px 40px 0;
}
.work-detail-body .tag {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.work-detail-body h2 {
  font-size: 24px;
  color: var(--color-main);
  margin-bottom: 6px;
  font-weight: 700;
}
.work-detail-body .sitename {
  font-family: var(--font-accent);
  font-size: 15px;
  color: var(--color-text-sub);
  margin-bottom: 18px;
  letter-spacing: .05em;
}
.work-detail-body dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 16px;
  margin-bottom: 18px;
  font-size: 13px;
}
.work-detail-body dt {
  color: var(--color-main);
  font-weight: 600;
}
.work-detail-body dd {
  color: var(--color-text-sub);
}
.work-detail-body .desc {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  margin-bottom: 20px;
}
.work-detail-body .visit-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
}
.work-detail-body .visit-link:hover {
  color: var(--color-main);
}
.work-detail-body .visit-link::after {
  content: '→';
  transition: transform .2s;
}
.work-detail-body .visit-link:hover::after {
  transform: translateX(4px);
}

/* 制作事例の偶数番目は左右反転 */
.work-detail.reverse {
  grid-template-columns: 1fr 1fr;
}
.work-detail.reverse .work-detail-thumb {
  order: 2;
}
.work-detail.reverse .work-detail-body {
  order: 1;
  padding: 40px 0 40px 44px;
}

/* ===== FLOW PAGE ===== */
.flow-steps {
  position: relative;
  padding-left: 50px;
}
.flow-steps::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--color-accent);
  opacity: .3;
}
.flow-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin-bottom: 28px;
}
.flow-step::before {
  content: '';
  position: absolute;
  left: -42px;
  top: 32px;
  width: 34px;
  height: 34px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 4px solid var(--color-bg-soft);
  box-shadow: 0 0 0 1px var(--color-accent);
}
.flow-step .step-num {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .25em;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.flow-step h3 {
  font-size: 20px;
  color: var(--color-main);
  margin-bottom: 14px;
  font-weight: 700;
}
.flow-step .duration {
  display: inline-block;
  background: var(--color-bg-soft);
  color: var(--color-main);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.flow-step p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
}

/* 契約前後の視覚的グルーピング */
.flow-step[data-phase="free"] {
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(90deg, rgba(0, 168, 150, 0.05) 0%, transparent 30%);
}
.flow-step[data-phase="paid"] {
  /* デフォルトのまま（控えめに既存スタイルを維持） */
}
.flow-phase-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0 24px;
  color: var(--color-text-sub);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}
.flow-phase-divider::before,
.flow-phase-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-line);
}
.flow-phase-divider .badge {
  padding: 6px 14px;
  border-radius: 14px;
  background: var(--color-bg-soft);
  font-size: 12px;
  /* 背景色で縦タイムラインを覆い隠す効果 */
  box-shadow: 0 0 0 6px var(--color-bg-soft);
  position: relative;
  z-index: 3;
}

/* STEP内の箇条書き（旧 inline style から移行） */
.flow-step-bullets {
  margin: 12px 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}
.flow-step-bullets li {
  margin-bottom: 4px;
}

/* STEP補足注記 */
.flow-step-note {
  margin: 8px 0 0;
  padding: 10px 14px;
  background: var(--color-bg-soft);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--color-text-sub);
}

/* ===== CONTACT PAGE ===== */
.contact-intro {
  text-align: center;
  margin-bottom: 50px;
}
.contact-intro p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--color-text-sub);
}
.contact-form {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 50px 44px;
  max-width: 760px;
  margin: 0 auto;
}
.form-row {
  margin-bottom: 28px;
}
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-main);
  margin-bottom: 10px;
}
.form-row .required {
  display: inline-block;
  background: var(--color-cta);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}
.form-row .optional {
  display: inline-block;
  background: var(--color-bg-soft);
  color: var(--color-text-sub);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  font-weight: 500;
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font-size: 15px;
  background: #fff;
  color: var(--color-text);
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 168, 150, .15);
}
.form-row textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  margin-bottom: 0;
  font-weight: 500;
  color: var(--color-text);
  transition: all .2s;
}
.radio-group label:hover {
  border-color: var(--color-accent);
  background: var(--color-bg-soft);
}
.radio-group input[type="radio"] {
  accent-color: var(--color-accent);
}
.form-submit {
  text-align: center;
  margin-top: 40px;
}
.form-submit .btn {
  min-width: 280px;
}
.hidden-field {
  display: none;
}
.form-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--color-text-sub);
  text-align: center;
  line-height: 1.7;
}

/* 通知バナー */
.notice-banner {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translate(-50%, -120%);
  background: #fff;
  color: var(--color-main);
  padding: 18px 28px;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .12);
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  max-width: 90%;
  transition: transform .4s ease;
}
.notice-banner.is-show {
  transform: translate(-50%, 0);
}

/* お問い合わせ補足ボックス */
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}
.contact-info-card {
  background: var(--color-bg-soft);
  padding: 28px 24px;
  border-radius: var(--radius);
  text-align: center;
}
.contact-info-card .en {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: .2em;
  color: var(--color-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 500;
}
.contact-info-card h3 {
  font-size: 15px;
  color: var(--color-main);
  margin-bottom: 8px;
  font-weight: 700;
}
.contact-info-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-text-sub);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero h1 { font-size: 36px; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root {
    --space-section: 70px;
  }
  .hero {
    padding: 80px 0 70px;
  }
  .hero h1 { font-size: 28px; }
  .hero .lead { font-size: 14px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .page-hero { padding: 60px 0 40px; }
  .page-hero h1 { font-size: 24px; }

  .section-head h2 { font-size: 24px; }

  .problems-grid,
  .strengths-grid,
  .service-cards,
  .works-pickup,
  .contact-info {
    grid-template-columns: 1fr;
  }
  /* :has() の中央寄せをスマホで無効化（全幅へ） */
  .works-pickup:has(.work-card:only-child) {
    grid-template-columns: 1fr;
  }
  .flow-mini {
    grid-template-columns: repeat(2, 1fr);
  }
  .plan-detail,
  .contact-form {
    padding: 32px 22px;
  }
  .plan-features {
    grid-template-columns: 1fr;
  }
  .plan-detail h3 { font-size: 22px; }
  .plan-detail .price-block strong { font-size: 32px; }

  .work-detail,
  .work-detail.reverse {
    grid-template-columns: 1fr;
  }
  .work-detail-body,
  .work-detail.reverse .work-detail-body {
    padding: 28px 24px;
    order: 2;
  }
  .work-detail.reverse .work-detail-thumb {
    order: 1;
  }
  .work-detail-body dl {
    grid-template-columns: 80px 1fr;
  }

  .flow-steps {
    padding-left: 36px;
  }
  .flow-steps::before {
    left: 10px;
  }
  .flow-step {
    padding: 24px 22px;
  }
  .flow-step::before {
    left: -32px;
    top: 24px;
    width: 26px;
    height: 26px;
  }

  .compare-table {
    font-size: 12px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cta-banner h2 { font-size: 22px; }
  .cta-banner p { font-size: 13px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 24px; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { font-size: 20px; }
}

/* ========= モニター価格 注記 ========= */
.price-note {
  margin-top: 8px;
  font-size: 13px;
  color: var(--color-accent);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.plan-detail .price-note {
  margin-top: 10px;
  font-size: 14px;
}

/* compare-table 内のモニター注記 */
.compare-note {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 500;
}

/* ========= contact: フォーム以外の直接連絡導線 ========= */
.contact-direct {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--color-bg-soft);
  border-left: 3px solid var(--color-accent);
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.7;
}
.contact-direct a {
  color: var(--color-main);
  font-weight: 700;
  text-decoration: underline;
  word-break: break-all;
}
.contact-direct a:hover {
  color: var(--color-accent);
}

/* ========= option-table: 補足注記 ========= */
.option-table .option-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.6;
}

/* ========= works: サムネ画像 ========= */
.work-thumb,
.work-detail-thumb {
  overflow: hidden;
}
.work-thumb img,
.work-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ========= 日本語の折り返し最適化 =========
   スマホで見出し・短文が「お気軽にどう／ぞ」と途中で割れたり「。」だけ孤立改行するのを防ぐ。
   keep-all で文節（句読点まで含む塊）を保持し、改行は読点「、」や中黒「・」等の区切りでのみ行わせる。
   overflow-wrap は使わない（句点「。」が前の文字から切り離されて孤立改行する原因になるため）。
   見出し（h1-h3）＋ 短めの本文（ヒーローlead・CTA説明・セクション説明）に適用。
   ※ 一般の長い本文 p には当てない。 */
h1, h2, h3,
.hero .lead,
.cta-banner p,
.section-head p {
  word-break: keep-all;
}
