/* ==========================================================================
   DEMAIN — Top Page (front-page.php) 専用CSS — Phase 1
   ========================================================================== */
/*
   元ファイル: demain-website/style.css（prototype全ページ共通デザインシス
   テム）のうち、Top Page（index.html）が実際に使用しているルールだけを
   移植したもの。company.html専用のルール（.company-section 系）はTop
   Pageで未使用のため、Phase 1では含めていない。

   SWELL側の既存CSSとの衝突を避けるため、すべてのセレクタに
   `body.demain-home` を前置してスコープしている（functions.php側で
   front-page.php表示時のみ <body> に demain-home クラスを付与）。
   これにより、SWELLが `.btn` のような一般的なクラス名を使っていても、
   このCSSはDEMAIN Top Page内でしか効かない。

   例外的にスコープしていないのは `html { scroll-behavior: smooth; }` の
   1行のみ。html要素自体にクラスを持たせていないため body 起点でスコー
   プできないが、このファイルは front-page.php 表示時にしか読み込まれ
   ないため（functions.php の is_front_page() 判定）、実質的に他ページへ
   影響することはない。
*/

/* ==========================================================================
   Base / Tokens
   ========================================================================== */
body.demain-home {
  --navy: #0F1C2E;
  --navy-dark: #081422;
  --gold: #C6A86A;
  --off-white: #F7F5F0;
  --white: #FFFFFF;
  --text-dark: #20252B;

  --serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', sans-serif;

  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

body.demain-home,
body.demain-home * { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.demain-home {
  font-family: var(--sans);
  color: var(--text-dark);
  background: var(--off-white);
  font-weight: 300;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.demain-home a { text-decoration: none; color: inherit; }
body.demain-home button { font-family: inherit; background: none; border: none; cursor: pointer; }
body.demain-home ul { list-style: none; }
body.demain-home img { max-width: 100%; display: block; }

body.demain-home .only-mobile { display: none; }

/* ==========================================================================
   Reveal / fade-up
   ========================================================================== */
body.demain-home .fade-up {
  opacity: 1;
  transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
body.demain-home .fade-up.fade-up-hidden {
  opacity: 0;
  transform: translateY(24px);
}
body.demain-home .fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Buttons / Links
   ========================================================================== */
body.demain-home .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
body.demain-home .btn span { transition: transform .3s var(--ease); display: inline-block; }
body.demain-home .btn:hover span { transform: translateX(4px); }

body.demain-home .btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
body.demain-home .btn-gold:hover { background: #d4bb84; }

body.demain-home .btn-outline-gold {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
body.demain-home .btn-outline-gold:hover { background: rgba(198, 168, 106, 0.1); }

body.demain-home .btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
body.demain-home .btn-outline-navy:hover { background: rgba(15, 28, 46, 0.05); }

body.demain-home .btn-small { padding: 10px 22px; font-size: 0.78rem; }

body.demain-home .link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: inherit;
  padding-bottom: 3px;
}
body.demain-home .link-arrow::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
body.demain-home .link-arrow:hover::after { transform: scaleX(1); }
body.demain-home .link-arrow span { transition: transform .3s var(--ease); display: inline-block; }
body.demain-home .link-arrow:hover span { transform: translateX(4px); }

/* ==========================================================================
   Section shared
   ========================================================================== */
body.demain-home .section-head { position: relative; text-align: center; max-width: 640px; margin: 0 auto 64px; padding: 0 24px; }
body.demain-home .section-head::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  margin: 0 auto 22px;
  background: var(--gold);
}
body.demain-home .section-label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 16px;
}
body.demain-home .section-label.light { color: var(--gold); }
body.demain-home .section-sub { font-size: 0.92rem; letter-spacing: 0.02em; color: #4a4f56; }
body.demain-home .section-sub.light { color: rgba(247, 245, 240, 0.75); }
body.demain-home .section-cta { text-align: center; margin-top: 56px; }

body.demain-home .eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 18px;
}

/* ==========================================================================
   Header
   ========================================================================== */
body.demain-home .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 28, 46, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(198, 168, 106, 0.15);
  transition: background .4s var(--ease);
}

/* WP admin bar collision guard — position:fixed要素はbodyのmargin-topの
   影響を受けないため、管理画面ログイン中はAdmin Barの高さぶんだけ手動で
   オフセットしないとヘッダーがAdmin Barの下に隠れる。フロント公開時
   （非ログイン時）はbody.admin-barが付かないため無関係。 */
body.admin-bar.demain-home .site-header { top: 32px; }
body.admin-bar.demain-home .mobile-nav { top: calc(var(--header-h) + 32px); }
@media screen and (max-width: 782px) {
  body.admin-bar.demain-home .site-header { top: 46px; }
  body.admin-bar.demain-home .mobile-nav { top: calc(var(--header-h) + 46px); }
}

body.demain-home .header-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 100%;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.demain-home .logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--white);
  font-weight: 500;
}

body.demain-home .main-nav { display: flex; gap: 44px; }
body.demain-home .main-nav a {
  color: rgba(247, 245, 240, 0.85);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  position: relative;
  padding-bottom: 4px;
}
body.demain-home .main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
body.demain-home .main-nav a:hover::after { transform: scaleX(1); }

body.demain-home .header-right { display: flex; align-items: center; gap: 24px; }

body.demain-home .hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 22px;
}
body.demain-home .hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--off-white);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
body.demain-home .hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.demain-home .hamburger.active span:nth-child(2) { opacity: 0; }
body.demain-home .hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.demain-home .mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--navy-dark);
  border-top: 1px solid rgba(198, 168, 106, 0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
body.demain-home .mobile-nav.open { max-height: 420px; }
body.demain-home .mobile-nav a {
  padding: 18px 32px;
  border-bottom: 1px solid rgba(247, 245, 240, 0.06);
  color: var(--off-white);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
body.demain-home .mobile-nav .btn { margin: 20px 32px; align-self: flex-start; }

/* ==========================================================================
   Hero
   ========================================================================== */
body.demain-home .hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(8, 20, 34, 0.55), rgba(8, 20, 34, 0.55)),
    url('https://images.unsplash.com/photo-1497215728101-856f4ea42174?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}
body.demain-home .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 28, 46, 0.88) 0%, rgba(15, 28, 46, 0.55) 55%, rgba(15, 28, 46, 0.3) 100%);
}
body.demain-home .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  padding-top: var(--header-h);
}
body.demain-home .hero-title {
  font-family: var(--serif);
  color: var(--white);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 26px;
}
body.demain-home .hero-tag {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  margin-bottom: 26px;
}
body.demain-home .hero-desc {
  color: rgba(247, 245, 240, 0.85);
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 46px;
  max-width: 460px;
}
body.demain-home .hero-cta { display: flex; gap: 20px; }

/* ==========================================================================
   Split — Individual / Business
   ========================================================================== */
body.demain-home .split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(to right, var(--navy) 0%, var(--navy) 50%, var(--navy-dark) 50%, var(--navy-dark) 100%);
}
body.demain-home .split-col {
  position: relative;
  padding: 90px 64px;
  overflow: hidden;
}
body.demain-home .split-individual { background: var(--navy); color: var(--off-white); }
body.demain-home .split-business { background: var(--navy-dark); color: var(--off-white); }
body.demain-home .split-title {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 26px;
}
body.demain-home .split-desc {
  font-size: 0.9rem;
  color: rgba(247, 245, 240, 0.75);
  margin-bottom: 30px;
  max-width: 420px;
}
body.demain-home .split-icon {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 90px;
  height: 90px;
  color: rgba(198, 168, 106, 0.35);
}
body.demain-home .split-icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   Tools / 診断
   ========================================================================== */
body.demain-home .tools-section { position: relative; padding: 110px 40px; background: var(--off-white); overflow: hidden; }
body.demain-home .tools-section::before {
  content: 'TOOLS';
  position: absolute;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13vw;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(15, 28, 46, 0.035);
  left: -0.05em;
  top: -0.06em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
body.demain-home .tools-grid {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(15, 28, 46, 0.1);
  border: 1px solid rgba(15, 28, 46, 0.1);
}
body.demain-home .tool-card {
  background: var(--navy);
  color: var(--off-white);
  padding: 36px 28px;
  border-top: 2px solid transparent;
  transition: border-color .35s var(--ease);
}
body.demain-home .tool-card:hover { border-top-color: var(--gold); }
body.demain-home .tool-num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--gold);
  margin-bottom: 14px;
}
body.demain-home .tool-icon {
  width: 32px; height: 32px;
  color: var(--gold);
  margin-bottom: 16px;
}
body.demain-home .tool-icon svg { width: 100%; height: 100%; }
body.demain-home .tool-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 10px;
}
body.demain-home .tool-desc {
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  color: rgba(247, 245, 240, 0.7);
  margin-bottom: 18px;
}

/* ==========================================================================
   Insights
   ========================================================================== */
body.demain-home .insights-section { padding: 120px 40px; background: var(--off-white); border-top: 1px solid rgba(15, 28, 46, 0.08); }
body.demain-home .insights-tabs {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
body.demain-home .tab {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #8a8f96;
  padding-bottom: 8px;
  border-bottom: 1px solid transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
body.demain-home .tab.active, body.demain-home .tab:hover { color: var(--navy); border-color: var(--gold); }

body.demain-home .insights-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
body.demain-home .insight-card { display: block; }
body.demain-home .insight-card.is-hidden { display: none; }
/* Phase 5 QA — 記事コンテンツ未作成のため、is-coming-soonのカードは
   クリック不可にする（pointer-events:nonewで押せないことを明示し、
   ホバー時の拡大・色味変化も発生させない）。記事公開時はこのクラスと
   .insight-coming-soon-badgeを外すだけで既存デザインに戻る。 */
body.demain-home .insight-card.is-coming-soon { cursor: default; pointer-events: none; }
body.demain-home .insight-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 20px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  filter: grayscale(25%) contrast(1.05) brightness(0.96) saturate(0.9);
  transition: transform .5s var(--ease), filter .5s var(--ease);
}
body.demain-home .insight-card:hover .insight-img { transform: scale(1.02); filter: grayscale(10%) contrast(1.05) brightness(0.98) saturate(0.95); }
body.demain-home .insight-coming-soon-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--off-white);
  background: rgba(15, 28, 46, 0.72);
  border: 1px solid rgba(198, 168, 106, 0.55);
  padding: 5px 12px;
}
body.demain-home .insight-img-1 { background-image: url('https://images.unsplash.com/photo-1455390582262-044cdead277a?q=80&w=800&auto=format&fit=crop'); }
body.demain-home .insight-img-2 { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=800&auto=format&fit=crop'); }
body.demain-home .insight-img-3 { background-image: url('https://images.unsplash.com/photo-1524758631624-e2822e304c36?q=80&w=800&auto=format&fit=crop'); }
body.demain-home .insight-img-4 { background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=800&auto=format&fit=crop'); }
body.demain-home .insight-cat {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 10px;
}
body.demain-home .insight-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 12px;
}
body.demain-home .insight-date { font-size: 0.78rem; color: #9a9fa6; }

/* ==========================================================================
   Service（Top Page内・コンパクト表示）
   ========================================================================== */
body.demain-home .service-section { position: relative; padding: 84px 40px; background: var(--navy-dark); overflow: hidden; }
body.demain-home .service-section::before {
  content: 'SERVICE';
  position: absolute;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 10vw;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(247, 245, 240, 0.025);
  right: -0.04em;
  bottom: -0.14em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
body.demain-home .service-grid {
  position: relative;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
}
body.demain-home .service-item { color: var(--off-white); }
body.demain-home .service-icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 24px;
}
body.demain-home .service-icon svg { width: 100%; height: 100%; }
body.demain-home .service-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
body.demain-home .service-item h3 span {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(247, 245, 240, 0.55);
  margin-top: 6px;
  letter-spacing: 0.02em;
}
body.demain-home .service-item p {
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.65);
}

/* ==========================================================================
   Why Demain
   ========================================================================== */
body.demain-home .why-section {
  position: relative;
  padding: 140px 40px;
  background: var(--off-white);
  overflow: hidden;
}
body.demain-home .why-deco {
  position: absolute;
  font-family: var(--serif);
  font-size: 46vw;
  line-height: 1;
  color: rgba(15, 28, 46, 0.03);
  right: -4vw;
  top: -8vw;
  pointer-events: none;
  user-select: none;
}
body.demain-home .why-inner { position: relative; max-width: 720px; margin: 0 auto; text-align: center; }
body.demain-home .why-text { font-size: 1rem; color: #3a3f46; line-height: 2; }

/* ==========================================================================
   Founder / Profile
   ========================================================================== */
body.demain-home .founder-section { position: relative; padding: 130px 40px; background: var(--white); overflow: hidden; }
body.demain-home .founder-section::before {
  content: 'FOUNDER';
  position: absolute;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 11vw;
  line-height: 1;
  letter-spacing: 0.02em;
  color: rgba(15, 28, 46, 0.03);
  right: -0.03em;
  bottom: -0.12em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
body.demain-home .founder-inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 72px;
  align-items: start;
  padding: 0 40px;
}

body.demain-home .founder-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(15, 28, 46, 0.05), rgba(198, 168, 106, 0.08));
  border: 1px solid rgba(15, 28, 46, 0.08);
}
body.demain-home .founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(12%) contrast(1.03) saturate(0.92);
  display: block;
}
body.demain-home .founder-photo.img-error img { display: none; }
body.demain-home .founder-photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: rgba(15, 28, 46, 0.22);
}
body.demain-home .founder-photo.img-error .founder-photo-fallback { display: flex; }
body.demain-home .founder-photo-fallback svg { width: 72px; height: 72px; }

body.demain-home .founder-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--text-dark);
  line-height: 1.3;
}
body.demain-home .founder-name-en {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: #8a8f96;
  font-weight: 400;
  margin-top: 8px;
}
body.demain-home .founder-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 14px 0 30px;
}
body.demain-home .founder-copy p {
  font-size: 0.92rem;
  color: #3a3f46;
  line-height: 1.95;
  margin-bottom: 16px;
  max-width: 560px;
}
body.demain-home .founder-copy p:last-child { margin-bottom: 0; }

body.demain-home .founder-facts {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(15, 28, 46, 0.1);
}
body.demain-home .founder-fact {
  padding: 24px 28px 4px 0;
  border-left: 1px solid rgba(15, 28, 46, 0.1);
}
body.demain-home .founder-fact:first-child { border-left: none; padding-left: 0; }
body.demain-home .founder-fact-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  color: var(--gold);
  margin-bottom: 10px;
}
body.demain-home .founder-fact-value {
  font-size: 0.85rem;
  color: var(--text-dark);
  line-height: 1.7;
}

/* ==========================================================================
   Company（Top Page上はコンパクト導線のみ・company.htmlへのteaser）
   ========================================================================== */
body.demain-home .company-teaser-section { padding: 110px 40px; background: var(--navy); text-align: center; }
body.demain-home .company-teaser-inner { max-width: 480px; margin: 0 auto; }
body.demain-home .company-teaser-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  color: var(--off-white);
  margin-bottom: 26px;
}
body.demain-home .company-teaser-meta { margin-bottom: 34px; }
body.demain-home .company-teaser-meta p {
  font-size: 0.85rem;
  color: rgba(247, 245, 240, 0.75);
  line-height: 2;
}
body.demain-home .company-teaser-meta .meta-sep { color: var(--gold); margin: 0 8px; }
body.demain-home .company-teaser-section .link-arrow { color: var(--off-white); }
body.demain-home .company-teaser-section .link-arrow::after { background: var(--gold); }

/* ==========================================================================
   Follow
   ========================================================================== */
body.demain-home .follow-section { padding: 120px 40px; background: var(--off-white); }
body.demain-home .follow-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(15, 28, 46, 0.14);
  text-align: left;
}
body.demain-home .follow-item {
  padding: 44px 40px;
  border-left: 1px solid rgba(15, 28, 46, 0.14);
}
body.demain-home .follow-item:first-child { border-left: none; padding-left: 4px; }
body.demain-home .follow-icon {
  width: 26px; height: 26px;
  margin-bottom: 24px;
  color: var(--gold);
  opacity: 0.85;
}
body.demain-home .follow-icon svg { width: 100%; height: 100%; }
body.demain-home .follow-item h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
body.demain-home .follow-item p {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: #6a6f76;
  margin-bottom: 22px;
}

/* ==========================================================================
   LINE
   ========================================================================== */
body.demain-home .line-section { padding: 90px 40px; background: var(--off-white); border-top: 1px solid rgba(15,28,46,0.08); border-bottom: 1px solid rgba(15,28,46,0.08); }
body.demain-home .line-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
}
body.demain-home .line-icon { width: 46px; height: 46px; color: #06C755; flex-shrink: 0; }
body.demain-home .line-icon svg { width: 100%; height: 100%; }
body.demain-home .line-text { flex: 1; }
body.demain-home .line-text h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--text-dark); }
body.demain-home .line-inner .btn { flex-shrink: 0; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
body.demain-home .final-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-dark);
}
body.demain-home .final-col {
  padding: 100px 64px;
  color: var(--off-white);
}
body.demain-home .final-col:first-child { border-right: 1px solid rgba(247, 245, 240, 0.08); }
body.demain-home .final-col h3 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 34px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
body.demain-home .site-footer { background: var(--navy-dark); border-top: 1px solid rgba(247, 245, 240, 0.08); padding: 60px 40px 30px; }
body.demain-home .footer-top {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
}
body.demain-home .footer-logo { color: var(--off-white); }
body.demain-home .footer-nav { display: flex; gap: 30px; flex-wrap: wrap; }
body.demain-home .footer-nav a { font-size: 0.78rem; color: rgba(247, 245, 240, 0.65); letter-spacing: 0.05em; }
body.demain-home .footer-nav a:hover { color: var(--gold); }
body.demain-home .footer-bottom {
  max-width: 1320px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(247, 245, 240, 0.08);
}
body.demain-home .footer-bottom p { font-size: 0.72rem; color: rgba(247, 245, 240, 0.4); }

/* ==========================================================================
   Responsive — Tablet
   （company.html専用の .company-inner / .company-office はTop Page未使用
   のためPhase 1では移植していない）
   ========================================================================== */
@media (max-width: 1024px) {
  body.demain-home .tools-grid { grid-template-columns: repeat(2, 1fr); }
  body.demain-home .insights-grid { grid-template-columns: repeat(2, 1fr); }
  body.demain-home .service-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 40px; }
  body.demain-home .follow-grid { grid-template-columns: 1fr; max-width: 420px; }

  body.demain-home .founder-inner { gap: 48px; padding: 0 24px; }
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  body.demain-home { --header-h: 64px; }
  body.demain-home .only-mobile { display: inline; }

  body.demain-home .header-inner { padding: 0 20px; }
  body.demain-home .main-nav { display: none; }
  body.demain-home .header-right .btn-small { display: none; }
  body.demain-home .hamburger { display: flex; }
  body.demain-home .mobile-nav { display: flex; position: fixed; top: var(--header-h); left: 0; right: 0; }

  body.demain-home .hero { min-height: 92vh; }
  body.demain-home .hero-inner { padding: 0 24px; padding-top: calc(var(--header-h) + 20px); }
  body.demain-home .hero-title { font-size: 2rem; }
  body.demain-home .hero-cta { flex-direction: column; }
  body.demain-home .hero-cta .btn { justify-content: center; width: 100%; }

  body.demain-home .split-section {
    grid-template-columns: 1fr;
    background: linear-gradient(to bottom, var(--navy) 0%, var(--navy) 50%, var(--navy-dark) 50%, var(--navy-dark) 100%);
  }
  body.demain-home .split-col { padding: 60px 28px; }
  body.demain-home .split-icon { width: 60px; height: 60px; right: 24px; bottom: 24px; opacity: 0.5; }

  body.demain-home .tools-section, body.demain-home .insights-section, body.demain-home .why-section, body.demain-home .follow-section { padding: 80px 24px; }
  body.demain-home .service-section { padding: 56px 24px; }
  body.demain-home .tools-section::before { font-size: 26vw; }
  body.demain-home .service-section::before { font-size: 20vw; }
  body.demain-home .tools-grid { grid-template-columns: 1fr; }
  body.demain-home .insights-grid { grid-template-columns: 1fr; }
  body.demain-home .insights-tabs { gap: 18px; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }

  body.demain-home .service-grid { grid-template-columns: 1fr; gap: 44px; }

  body.demain-home .why-deco { font-size: 70vw; }

  body.demain-home .founder-section { padding: 80px 24px; }
  body.demain-home .founder-section::before { font-size: 22vw; }

  body.demain-home .founder-inner { grid-template-columns: 1fr; gap: 36px; padding: 0; }
  body.demain-home .founder-photo { max-width: 280px; margin: 0 auto; }
  body.demain-home .founder-facts { grid-template-columns: 1fr; }
  body.demain-home .founder-fact { border-left: none; border-top: 1px solid rgba(15, 28, 46, 0.1); padding: 20px 0 4px; }
  body.demain-home .founder-fact:first-child { border-top: none; padding-top: 0; }

  /* top-page COMPANY teaser */
  body.demain-home .company-teaser-section { padding: 70px 24px; }

  body.demain-home .follow-grid { grid-template-columns: 1fr; border-top: 1px solid rgba(15, 28, 46, 0.14); }
  body.demain-home .follow-item {
    border-left: none;
    border-top: 1px solid rgba(15, 28, 46, 0.14);
    padding: 36px 4px;
  }
  body.demain-home .follow-item:first-child { border-top: none; padding-left: 4px; }

  body.demain-home .line-section { padding: 60px 24px; }
  body.demain-home .line-inner { flex-direction: column; text-align: center; gap: 24px; }

  body.demain-home .final-cta { grid-template-columns: 1fr; }
  body.demain-home .final-col { padding: 60px 28px; }
  body.demain-home .final-col:first-child { border-right: none; border-bottom: 1px solid rgba(247, 245, 240, 0.08); }

  body.demain-home .footer-top { flex-direction: column; align-items: flex-start; }
  body.demain-home .site-footer { padding: 50px 24px 24px; }
}
