/*
Theme Name: Lien クラシック
Theme URI: https://lien-global.co.jp/
Author: Lien / Claude Code
Description: 株式会社Lien コーポレートサイト（ウッド / 名門校パンフレット調）。ポータル型トップページ＋教育コラムを備えた、高級感・信頼感あるカスタムテーマ。
Version: 2.5.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lien
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ivory:       #f6efe2;
  --ink:         #2e2115;
  --gold:        #8f5b2e;
  --gold-dark:   #7a4b22;
  --gold-soft:   #c9905a;
  --gold-lift:   #d9a76e;
  --brown:       #362718;
  --cream:       #efe3cd;
  --border:      #dcc7a7;
  --border-2:    #d2bc98;
  --border-3:    #c0a67e;
  --border-soft: #e9dcc2;
  --text-1:      #2e2115;
  --text-2:      #4c3a26;
  --text-3:      #5f4a33;
  --text-4:      #6f573c;
  --muted:       #8d6f4e;
  --muted-2:     #b49a78;
  --foot-text:   #d7c2a2;
  --foot-cream:  #f4e8d2;

  /* ダークセクション用: 磨き上げたウォールナット調（暖色の艶＋深い陰影、ストライプなし） */
  --wood-dark: radial-gradient(130% 90% at 15% -10%, rgba(201, 144, 90, 0.18), rgba(201, 144, 90, 0) 55%),
               radial-gradient(120% 100% at 100% 110%, rgba(15, 9, 3, 0.6), rgba(15, 9, 3, 0) 60%),
               linear-gradient(180deg, #402e1c, #2e2010);

  --serif:  'Shippori Mincho', serif;         /* 見出し（和文明朝） */
  --sans:   'Zen Kaku Gothic New', sans-serif; /* 本文（和文ゴシック） */
  --latin:  'Cormorant Garamond', serif;       /* 欧文ディスプレイ */

  --shell:  1760px;                            /* ワイド画面向けの最大コンテンツ幅 */
  --pad-x:  clamp(20px, 3vw, 56px);            /* 主要セクションの左右余白 */
}

/* ============================================================
   RESET / BASE
   ============================================================ */
* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

input::placeholder,
textarea::placeholder { color: var(--muted-2); }

h1, h2, h3, h4, p, ol, ul { margin: 0; }

.lien-en    { font-family: var(--latin); }
.lien-serif { font-family: var(--serif); }

/* generic placeholder photo frame */
.ph-frame {
  background: repeating-linear-gradient(45deg, #e9dcc2 0 12px, #e0cfad 12px 24px);
  display: grid;
  place-items: center;
}
.ph-label {
  font-family: monospace;
  font-size: 12px;
  color: var(--muted);
}

/* 線画イラスト（文章に紐づけるイメージ図） */
.illus { display: inline-block; color: var(--gold); line-height: 0; }
.illus svg { width: 100%; height: 100%; }
.illus--card { width: clamp(56px, 5vw, 76px); height: clamp(56px, 5vw, 76px); }
.illus--lg { width: clamp(120px, 14vw, 200px); height: clamp(120px, 14vw, 200px); }

/* スクロールで浮かび上がる装飾（JS有効時のみ） */
html.lien-js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
html.lien-js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.lien-js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 239, 226, 0.96);
  border-bottom: 1px solid var(--border);
}
.site-header__rule { height: 3px; background: linear-gradient(90deg, #5f3a1c, #8f5b2e 30%, #a06a38 50%, #8f5b2e 70%, #5f3a1c); }
.site-header__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { cursor: pointer; display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.brand__name {
  font-family: var(--latin);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand__tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.main-nav { display: flex; gap: clamp(18px, 2vw, 30px); margin-left: auto; align-items: center; }
.main-nav a {
  font-size: 14px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding-bottom: 5px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--gold); }
.main-nav a.is-active { color: var(--gold); border-bottom: 1px solid var(--gold); }

.header-cta { display: flex; gap: 12px; align-items: center; }
.btn-gold {
  cursor: pointer;
  font-size: 13.5px;
  letter-spacing: 0.05em;
  color: var(--ivory);
  background: var(--gold);
  padding: 12px 20px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s;
}
.btn-gold:hover { background: var(--gold-dark); }

/* mobile-only header cluster: compact CTA + hamburger */
.header-mobile { display: none; }
.btn-gold--sm {
  cursor: pointer;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ivory);
  background: var(--gold);
  padding: 10px 14px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-toggle {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 2px;
  border: none;
  background: none;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }

/* mobile menu */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--ivory);
  padding: 6px 24px 18px;
}
.mobile-nav.is-open { display: flex; flex-direction: column; }
.mobile-nav a {
  cursor: pointer;
  padding: 14px 4px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--border-soft);
}

/* ============================================================
   SHARED PAGE HEADINGS / SECTIONS
   ============================================================ */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 500;
}
.rule-gold { width: 56px; height: 1px; background: var(--gold); margin: 32px auto; }

/* page hero (services / pricing / media / contact) */
.page-hero { text-align: center; padding: clamp(56px, 8vw, 88px) var(--pad-x) 64px; }
.page-hero--tight { padding-bottom: 56px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.6;
  letter-spacing: 0.12em;
  margin: 18px 0 0;
}
.page-hero__lead {
  max-width: 880px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 2.2;
  color: var(--text-3);
  text-align: left;
}
.page-hero--tight .page-hero__lead { text-align: center; }

.section-head { text-align: center; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0.1em;
  margin: 16px 0 0;
}

/* dark CTA band */
.cta-band { background: var(--wood-dark); text-align: center; padding: clamp(56px, 8vw, 88px) var(--pad-x); }
.cta-band--tight { padding: clamp(48px, 7vw, 76px) var(--pad-x); }
.cta-band h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 4vw, 30px);
  letter-spacing: 0.12em;
  color: var(--foot-cream);
  margin: 0;
}
.cta-band h2.is-sm { font-size: clamp(21px, 3.5vw, 27px); }
.cta-band__lead { color: var(--muted-2); font-size: 15px; letter-spacing: 0.08em; margin: 20px 0 40px; }
.btn-cta {
  cursor: pointer;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--brown);
  background: var(--gold-soft);
  padding: 18px 54px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-cta:hover { background: var(--gold-lift); }
.btn-outline {
  cursor: pointer;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
  border: 1px solid var(--gold);
  padding: 17px 50px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--ivory); }

/* ============================================================
   TOP / トップページ（ポータル）
   ============================================================ */
.top-hero { position: relative; overflow: hidden; }
.top-hero__bg { position: absolute; inset: 0; }
.top-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; }
.top-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(38, 26, 13, 0.82) 0%, rgba(38, 26, 13, 0.62) 44%, rgba(38, 26, 13, 0.18) 100%);
}
.top-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 7vw, 104px) var(--pad-x);
}
.top-hero__fr {
  font-family: var(--latin);
  font-style: italic;
  font-size: 19px;
  color: var(--gold-lift);
  letter-spacing: 0.12em;
}
.top-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 66px);
  line-height: 1.45;
  letter-spacing: 0.08em;
  color: var(--foot-cream);
  margin: 24px 0 0;
}
.top-hero__lead {
  max-width: 640px;
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 2.2;
  color: #efe0c8;
  margin: 28px 0 0;
}
.top-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.btn-hero-ghost {
  cursor: pointer;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--foot-cream);
  border: 1px solid rgba(244, 232, 210, 0.6);
  padding: 18px 44px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-hero-ghost:hover { background: rgba(244, 232, 210, 0.12); border-color: var(--foot-cream); }

/* ヒーロー直下の特徴3点 */
.feature-strip {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(20px, 1.8vw, 30px) var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 40px);
  border-bottom: 1px solid var(--border-soft);
}
.feature-item { display: flex; gap: 16px; align-items: center; }
.feature-item .illus--nav { width: 34px; height: 34px; }
.feature-item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16.5px;
  letter-spacing: 0.1em;
  margin: 0 0 2px;
}
.feature-item p { font-size: 13px; line-height: 1.9; color: var(--text-4); margin: 0; }

/* ステートメント: 見出し左＋本文右の2カラム */
.statement { max-width: var(--shell); margin: 0 auto; padding: clamp(48px, 5vw, 84px) var(--pad-x) 0; }
.statement__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(32px, 4vw, 88px);
  align-items: start;
}
.statement__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.4vw, 37px);
  line-height: 1.75;
  letter-spacing: 0.08em;
  margin: 16px 0 24px;
}
.statement__body p { font-size: 17px; line-height: 2.35; color: var(--text-3); margin: 0 0 18px; }
.statement__body p:last-child { margin-bottom: 0; }

/* サービス×ロードマップの2列帯 */
.duo { background: var(--cream); margin-top: clamp(48px, 5vw, 84px); }
.duo__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(44px, 4.5vw, 72px) var(--pad-x);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 3.5vw, 72px);
  align-items: start;
}
.duo__col .top-section__head { margin-bottom: clamp(22px, 2vw, 32px); }
.duo__col .top-section__head h2 { font-size: clamp(22px, 1.8vw, 27px); }

/* サービスのアイコンチップ */
.svc-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 1.4vw, 24px); }
.svc-chips--duo { grid-template-columns: repeat(2, 1fr); }
.svc-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: clamp(22px, 1.8vw, 32px) 12px;
  text-align: center;
  transition: border-color 0.2s;
}
.svc-chip:hover { border-color: var(--gold); }
.illus--chip { width: 42px; height: 42px; }
.svc-chip span:last-child {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* 海外教育ロードマップ（中央線のジグザグ縦タイムライン） */
.roadmap-list { position: relative; }
.roadmap-list::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: var(--border-3);
}
.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 62px 1fr;
  gap: clamp(16px, 1.6vw, 28px);
  align-items: center;
  padding: clamp(10px, 1vw, 16px) 0;
}
.roadmap-item__icon {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--ivory);
}
.roadmap-item__text { grid-column: 3; grid-row: 1; }
.roadmap-item:nth-child(even) .roadmap-item__text { grid-column: 1; text-align: right; }
.illus--step { width: 56%; height: 56%; }
.roadmap-item__stage {
  display: block;
  font-family: var(--serif);
  font-size: 17.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.roadmap-item__body { display: block; font-size: 13.5px; line-height: 1.9; color: var(--text-4); margin-top: 3px; }

/* 共通: トップの各セクション */
.top-section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--pad-x) 0;
}
.top-section:last-child { padding-bottom: clamp(64px, 7vw, 110px); }
.top-company { padding-bottom: clamp(64px, 7vw, 110px); }
.top-section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 3vw, 44px);
}
.top-section__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: 0.1em;
  margin: 10px 0 0;
}
.top-section__more {
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
  padding-bottom: 4px;
}
.top-section__more:hover { color: var(--gold-dark); }

/* 教育コラム: 左=新着記事一式（特集＋グリッド）、右=人気記事・カテゴリー・CTAのサイド列 */
.journal-portal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(340px, 27vw, 440px);
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
}
.jp-side { display: flex; flex-direction: column; gap: 36px; }
.jp-col__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
}
.jp-col__label { font-size: 11px; letter-spacing: 0.26em; color: var(--gold); font-weight: 500; }
.jp-col__head h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.12em;
  margin: 0;
}
/* 新着記事: 均一カードの2列グリッド */
.jp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2vw, 28px);
}
.jp-grid .article-card__photo { height: clamp(160px, 13vw, 200px); }
.jp-grid .article-card__body { padding: 20px 22px 24px; }
.jp-grid .article-card h3 { font-size: 16.5px; }
.jp-rank { display: flex; flex-direction: column; }
.jp-rank a {
  display: grid;
  grid-template-columns: 28px 78px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: background 0.2s;
}
.jp-rank a:hover { background: var(--cream); }
.jp-rank__num { font-family: var(--latin); font-size: 23px; color: var(--gold); line-height: 1; text-align: center; }
.jp-rank__thumb { width: 78px; height: 58px; overflow: hidden; flex: none; }
.jp-rank__thumb .ph-label { display: none; }
.jp-rank__title { display: block; font-family: var(--serif); font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.jp-rank__cat { display: block; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); margin-top: 5px; }
.jp-cats { display: flex; flex-direction: column; }
.jp-cats a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--text-2);
  transition: color 0.2s;
}
.jp-cats a:hover { color: var(--gold); }
.illus--nav { width: 26px; height: 26px; flex: none; }
.jp-cats__count { margin-left: auto; font-size: 15px; color: var(--muted-2); }
.jp-col .side-cta { margin-top: 28px; }

/* 会社概要＋代表者挨拶（同一行） */
.company-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
}
.company-profile { border-top: 1px solid var(--border); }
.company-message {
  border: 1px solid var(--border);
  background: var(--cream);
  padding: clamp(28px, 2.4vw, 44px);
}
.company-message h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.9;
  letter-spacing: 0.06em;
  margin: 14px 0 16px;
}
.company-message p { font-size: 15px; line-height: 2.2; color: var(--text-3); margin: 0 0 24px; }
.company-message__link {
  display: inline-block;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 24px;
}
.company-message__link:hover { color: var(--gold-dark); }

/* ============================================================
   ABOUT / 会社案内
   ============================================================ */
.about-hero { text-align: center; padding: clamp(64px, 9vw, 104px) var(--pad-x) clamp(48px, 7vw, 80px); }
.about-hero__fr {
  font-family: var(--latin);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.about-hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.6;
  letter-spacing: 0.08em;
  margin: 26px 0 0;
}
.about-hero__rule { width: 56px; height: 1px; background: var(--gold); margin: 36px auto; }
.about-hero__lead {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 2.3;
  color: var(--text-3);
}
.about-visual { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad-x); }

.about-intro {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(52px, 6vw, 88px) var(--pad-x) 0;
  text-align: center;
}
.about-intro p { font-size: 17.5px; line-height: 2.4; color: var(--text-2); margin: 0 0 18px; }

/* Mission / Vision / Philosophy / Approach — 図版帯付きカードの2×2グリッド */
.creed { max-width: var(--shell); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad-x) clamp(56px, 6vw, 96px); }
.creed-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 2.4vw, 40px);
}
.creed-card { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.creed-card__figure {
  display: grid;
  place-items: center;
  height: clamp(140px, 11vw, 200px);
  background: linear-gradient(160deg, #fbf6ea, var(--cream));
  border-bottom: 1px solid var(--border-soft);
}
.creed-card__body { padding: clamp(28px, 2.6vw, 52px); }
.creed-card__body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(21px, 1.8vw, 27px);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin: 14px 0 20px;
}
.creed-card__body p { font-size: 16.5px; line-height: 2.3; color: var(--text-3); margin: 0 0 14px; }
.creed-card__body p:last-child { margin-bottom: 0; }

.illus--md { width: clamp(72px, 6vw, 104px); height: clamp(72px, 6vw, 104px); }
.illus--stamp { width: 88px; height: 88px; }

/* Value */
.values { background: var(--cream); }
.values__inner { max-width: var(--shell); margin: 0 auto; padding: clamp(56px, 6vw, 96px) var(--pad-x); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(36px, 4vw, 60px);
}
.value-card {
  border: 1px solid var(--border);
  background: var(--ivory);
  padding: clamp(32px, 2.6vw, 48px);
  text-align: center;
}
.value-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: 0.1em;
  margin: 22px 0 14px;
}
.value-card p { font-size: 15.5px; line-height: 2.2; color: var(--text-4); text-align: left; }

/* Commitment — 中央寄せの締めセクション */
.commitment {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--pad-x);
  text-align: center;
}
.commitment .illus--stamp { margin-bottom: 20px; }
.commitment h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.2vw, 31px);
  letter-spacing: 0.08em;
  margin: 16px 0 28px;
}
.commitment__body { text-align: left; }
.commitment__body p { font-size: 17px; line-height: 2.35; color: var(--text-3); margin: 0 0 16px; }

/* 代表メッセージ */
.message { background: var(--cream); }
.message__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(60px, 7vw, 104px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
}
.message__photo {
  aspect-ratio: 4 / 5;
  background: var(--cream);
  overflow: hidden;
}
.message__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.message h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.8;
  letter-spacing: 0.08em;
  margin: 18px 0 28px;
}
.message p { font-size: 16.5px; line-height: 2.35; color: var(--text-3); margin: 0 0 18px; }
.message p.is-last { margin: 0 0 36px; }
.message__sign { display: flex; align-items: baseline; gap: 16px; }
.message__role { font-size: 13px; color: var(--muted); letter-spacing: 0.1em; }
.message__name { font-family: var(--serif); font-size: 23px; letter-spacing: 0.2em; }

/* 会社概要テーブル */
.profile { max-width: 960px; margin: 0 auto; padding: clamp(60px, 7vw, 100px) var(--pad-x); }
.profile__table { margin-top: 48px; border-top: 1px solid var(--border); }
.profile__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--border);
  padding: 22px 8px;
}
.profile__k { font-size: 13.5px; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; }
.profile__v { font-size: 16.5px; color: var(--ink); }

/* Legal pages — プライバシーポリシー / 特定商取引法に基づく表記 */
.legal { max-width: 860px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--pad-x) clamp(72px, 8vw, 120px); }
.legal h2 { font-size: 20px; margin: 44px 0 12px; }
.legal p, .legal li { font-size: 15.5px; line-height: 2; color: var(--text-4); }
.legal p { margin: 0 0 14px; }
.legal ul { padding-left: 1.5em; margin: 0 0 14px; }
.legal a { color: var(--ink); }
.legal__date { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* ============================================================
   SERVICES / サービス紹介 — 図版帯付きカードの3×2グリッド
   ============================================================ */
.service-cards-wrap { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad-x) clamp(56px, 6vw, 96px); }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 32px);
}
.service-card { position: relative; border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; }
.service-card__figure {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(130px, 10vw, 180px);
  background: linear-gradient(160deg, #fbf6ea, var(--cream));
  border-bottom: 1px solid var(--border-soft);
}
.service-card__num {
  position: absolute;
  top: 12px;
  left: 16px;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.service-card__body { padding: clamp(26px, 2.2vw, 40px); }
.service-card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(19px, 1.5vw, 23px);
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin: 0 0 16px;
}
.service-card p { font-size: 15.5px; line-height: 2.2; color: var(--text-3); margin: 0 0 14px; }
.service-card p:last-child { margin-bottom: 0; }

/* ご利用について（サービス / 料金 共通） */
.usage-section { background: var(--cream); padding: clamp(56px, 6vw, 96px) var(--pad-x); }
.usage-inner { max-width: 980px; margin: 0 auto; }
.usage-body { margin-top: clamp(28px, 3vw, 44px); }
.usage-body p { font-size: 17px; line-height: 2.35; color: var(--text-3); margin: 0 0 18px; }
.flow-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   PRICING / 料金
   ============================================================ */
.supports-wrap { max-width: var(--shell); margin: 0 auto; padding: 0 var(--pad-x) clamp(56px, 6vw, 96px); }
.supports-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(36px, 4vw, 60px);
}
.support-card {
  border: 1px solid var(--border);
  background: #fff;
  padding: clamp(30px, 2.4vw, 44px) clamp(24px, 2vw, 36px);
  text-align: center;
}
.support-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(17.5px, 1.4vw, 21px);
  letter-spacing: 0.1em;
  margin: 20px 0 12px;
}
.support-card p { font-size: 15px; line-height: 2.15; color: var(--text-4); text-align: left; }

/* 教育は、未来への投資です */
.invest {
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(56px, 6vw, 96px) var(--pad-x);
  display: grid;
  grid-template-columns: minmax(220px, 380px) 1fr;
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.invest__figure {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  background: linear-gradient(160deg, #fbf6ea, var(--cream));
}
.invest__text h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2.2vw, 31px);
  letter-spacing: 0.08em;
  margin: 16px 0 22px;
}
.invest__text p { font-size: 17px; line-height: 2.35; color: var(--text-3); margin: 0 0 16px; max-width: 760px; }

/* ============================================================
   MEDIA / 教育コラム一覧（2カラム：メイン＋サイドバー）
   ============================================================ */
.media-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(64px, 8vw, 110px);
  display: grid;
  grid-template-columns: 1fr clamp(300px, 24vw, 380px);
  gap: clamp(32px, 3.4vw, 64px);
  align-items: start;
}
.media-main { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 40px); }

.article-meta { display: flex; gap: 16px; align-items: center; font-size: 12.5px; letter-spacing: 0.12em; }
.article-meta__cat { color: var(--gold); font-weight: 500; }
.article-meta__date { color: var(--muted); }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.article-card {
  background: #fff;
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
a.article-card:hover { border-color: var(--gold); }
.article-card__photo { height: 180px; }
.article-card__photo .ph-label { font-size: 11px; }
.article-card__body { padding: 24px 24px 28px; }
.article-card .article-meta { gap: 14px; font-size: 12px; }
.article-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  margin: 12px 0 0;
}
.media-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.06em;
}

/* sidebar */
.media-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 106px;
}
.side-box { border: 1px solid var(--border); background: #fff; padding: 28px 26px; }
.side-box__label { font-size: 11px; letter-spacing: 0.26em; color: var(--gold); font-weight: 500; }
.side-box__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  letter-spacing: 0.12em;
  margin: 10px 0 4px;
}
.side-cats { display: flex; flex-direction: column; }
.side-cats a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  letter-spacing: 0.04em;
  color: var(--text-3);
  transition: color 0.2s;
}
.side-cats a:hover, .side-cats a.is-active { color: var(--gold); }
.side-cats__arrow { color: var(--gold); font-size: 11px; }
.side-rank { display: flex; flex-direction: column; }
.side-rank a {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 2px;
  border-bottom: 1px solid var(--border-soft);
}
.side-rank__num { font-family: var(--latin); font-size: 22px; color: var(--gold); line-height: 1.4; }
.side-rank__title { display: block; font-family: var(--serif); font-size: 14.5px; line-height: 1.9; color: var(--ink); }
.side-rank__cat { display: block; font-size: 11.5px; letter-spacing: 0.1em; color: var(--muted); margin-top: 6px; }
.side-cta { background: var(--wood-dark); padding: 34px 30px; text-align: center; }
.side-cta__fr { font-family: var(--latin); font-style: italic; font-size: 15px; color: var(--gold-soft); }
.side-cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17.5px;
  letter-spacing: 0.1em;
  color: var(--foot-cream);
  margin: 12px 0 20px;
  line-height: 1.9;
}
.side-cta__btn {
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--brown);
  background: var(--gold-soft);
  padding: 13px 32px;
  font-weight: 500;
  transition: background 0.2s;
}
.side-cta__btn:hover { background: var(--gold-lift); }

.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-4);
  border: 1px solid var(--border-2);
  padding: 10px 16px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pagination a.page-numbers:hover { background: var(--gold); color: var(--ivory); border-color: var(--gold); }
.pagination .page-numbers.current { background: var(--gold); color: var(--ivory); border-color: var(--gold); }
.pagination .page-numbers.dots { border-color: transparent; }

/* ============================================================
   ARTICLE / 記事詳細（本文＋サイドバーの2カラム）
   ============================================================ */
.article-layout {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(56px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1fr clamp(300px, 24vw, 380px);
  gap: clamp(32px, 3.4vw, 64px);
  align-items: start;
}
.article-layout .article-top,
.article-layout .article-visual,
.article-layout .article-body-wrap { padding-left: 0; padding-right: 0; }
.article-layout .article-body-wrap { padding-bottom: 0; }

.article-top { max-width: 860px; margin: 0 auto; padding: clamp(48px, 7vw, 72px) var(--pad-x) 40px; }
.back-link { cursor: pointer; font-size: 13px; letter-spacing: 0.14em; color: var(--gold); font-weight: 500; }
.article-top .article-meta { margin-top: 36px; }
.article-top h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin: 20px 0 24px;
}
.article-lead { font-size: 17px; line-height: 2.3; color: var(--text-3); margin: 0; }

.article-visual { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad-x); }
.article-visual .ph-frame { height: clamp(280px, 30vw, 440px); }

.article-body-wrap { max-width: 860px; margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--pad-x) clamp(56px, 7vw, 90px); }

/* TOC */
.toc { border: 1px solid var(--border); background: var(--cream); padding: 32px 36px; }
.toc__label { font-size: 12px; letter-spacing: 0.26em; color: var(--gold); font-weight: 500; }
.entry-content .toc ol {
  margin: 16px 0 0;
  padding-left: 20px;
  font-size: 15.5px;
  line-height: 2.4;
  color: var(--text-3);
}
.toc a { color: inherit; }
.toc a:hover { color: var(--gold); }

/* rich content typography (post_content) */
.entry-content > h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(23px, 2.6vw, 28px);
  letter-spacing: 0.08em;
  margin: 64px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold);
  scroll-margin-top: 100px;
}
.entry-content > h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.08em;
  margin: 40px 0 0;
}
.entry-content > p { font-size: 17px; line-height: 2.4; color: var(--text-2); margin: 28px 0 0; }
.entry-content > p:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { margin: 24px 0 0; padding-left: 22px; font-size: 17px; line-height: 2.2; color: var(--text-2); }
.entry-content li { margin: 6px 0; }
.entry-content a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.entry-content strong { font-weight: 700; }
.entry-content img { margin: 32px 0 0; }
.entry-content blockquote {
  margin: 32px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--gold);
  color: var(--text-3);
}
/* keep the CONTENTS box tight even inside the typographic wrapper */
.entry-content .toc { margin: 0; }

/* comparison table (styled in content) */
.compare-table { margin-top: 32px; border: 1px solid var(--border); overflow: hidden; }
.compare-table__head {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  background: var(--brown);
  color: var(--foot-cream);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.compare-table__head > div { padding: 14px 18px; }
.compare-table__row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  border-top: 1px solid var(--border);
  font-size: 15.5px;
  line-height: 1.9;
}
.compare-table__row > div { padding: 16px 18px; color: var(--text-2); }
.compare-table__k { background: var(--cream); color: var(--muted); letter-spacing: 0.06em; font-size: 14px; }

/* article-end CTA box */
.article-cta {
  margin-top: 72px;
  border: 1px solid var(--gold);
  background: var(--cream);
  padding: clamp(28px, 5vw, 44px) clamp(20px, 4.5vw, 40px);
  text-align: center;
}
.article-cta h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.1em;
  margin: 0;
}
.article-cta p { font-size: 15px; color: var(--text-4); margin: 16px 0 30px; line-height: 2; }
.btn-gold-lg {
  cursor: pointer;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.14em;
  color: var(--ivory);
  background: var(--gold);
  padding: 16px 46px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-gold-lg:hover { background: var(--gold-dark); }

/* related articles */
.related {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(64px, 8vw, 110px);
}
.related__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 18px;
}
.related__head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: 0.12em;
  margin: 14px 0 0;
}
.related__more {
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

/* ============================================================
   CONTACT / お問い合わせ
   ============================================================ */
.contact-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--pad-x) 110px;
}

.contact-form { display: flex; flex-direction: column; gap: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--text-4);
  font-weight: 500;
  margin-bottom: 10px;
}
.field .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border-2);
  background: #fff;
  padding: 14px 16px;
  font-size: 16px;
  font-family: var(--sans);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.field textarea { resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold); }
.btn-submit {
  cursor: pointer;
  display: inline-block;
  font-size: 14.5px;
  letter-spacing: 0.16em;
  color: var(--ivory);
  background: var(--gold);
  padding: 17px 64px;
  font-weight: 500;
  border: none;
  font-family: var(--sans);
  transition: background 0.2s;
}
.btn-submit:hover { background: var(--gold-dark); }
.form-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

/* Contact Form 7 — 既存フォームデザインへの適合 */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid-tip { display: block; margin-top: 8px; font-size: 13px; color: #8a3126; }
.wpcf7 form .wpcf7-response-output {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 2;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
  border-color: #b5473a;
  background: #f7ece9;
  color: #8a3126;
}
.wpcf7-spinner { margin: 0 0 0 12px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--wood-dark); color: var(--foot-text); }
.site-footer__top {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 72px var(--pad-x) 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
}
.footer-brand__name {
  font-family: var(--latin);
  font-size: 31px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--foot-cream);
}
.footer-brand__tag { font-size: 9px; letter-spacing: 0.32em; color: var(--gold-soft); font-weight: 500; }
.footer-brand__lead { font-size: 14px; line-height: 2.2; color: var(--muted-2); margin: 24px 0 0; max-width: 420px; }
.footer-col__label { font-size: 11.5px; letter-spacing: 0.26em; color: var(--gold-soft); font-weight: 500; margin-bottom: 20px; }
.footer-menu { display: flex; flex-direction: column; gap: 14px; font-size: 14px; letter-spacing: 0.06em; }
.footer-menu a { color: var(--foot-text); transition: color 0.2s; }
.footer-menu a:hover { color: var(--foot-cream); }
.btn-foot-cta {
  cursor: pointer;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--brown);
  background: var(--gold-soft);
  padding: 13px 30px;
  font-weight: 500;
  transition: background 0.2s;
}
.btn-foot-cta:hover { background: var(--gold-lift); }
.site-footer__bottom {
  max-width: var(--shell);
  margin: 48px auto 0;
  padding: 24px var(--pad-x);
  border-top: 1px solid rgba(215, 194, 162, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #957a58;
}
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE — デザイン準拠の単一ブレークポイント（820px）
   ============================================================ */
@media (max-width: 820px) {
  .main-nav, .header-cta { display: none; }
  .header-mobile { display: flex; gap: 12px; align-items: center; margin-left: auto; }

  .top-hero__inner { grid-template-columns: 1fr; }
  .top-hero__actions { flex-direction: column; align-items: flex-start; }
  .feature-strip { grid-template-columns: 1fr; gap: 14px; }
  .statement__inner { grid-template-columns: 1fr; }
  .duo__inner { grid-template-columns: 1fr; }
  .svc-chips { grid-template-columns: repeat(2, 1fr); }
  /* ロードマップはモバイルでは左寄せの1本線に戻す */
  .roadmap-list::before { left: 31px; }
  .roadmap-item { grid-template-columns: 62px 1fr; }
  .roadmap-item__icon { grid-column: 1; }
  .roadmap-item__text,
  .roadmap-item:nth-child(even) .roadmap-item__text { grid-column: 2; text-align: left; }
  .journal-portal { grid-template-columns: 1fr; }
  .jp-grid { grid-template-columns: 1fr; }
  .company-row { grid-template-columns: 1fr; }
  .top-section__head { flex-wrap: wrap; }
  .article-layout { grid-template-columns: 1fr; }

  .about-intro { text-align: left; }
  .creed-grid { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: 1fr; }
  .invest { grid-template-columns: 1fr; }
  .invest__figure { aspect-ratio: 16 / 9; }

  .values-grid { grid-template-columns: 1fr; }
  .supports-grid { grid-template-columns: 1fr; }

  .message__inner { grid-template-columns: 1fr; }
  .profile__row { grid-template-columns: 96px 1fr; }

  .media-layout { grid-template-columns: 1fr; }
  .media-sidebar { position: static; gap: 28px; }
  .article-grid { grid-template-columns: 1fr; }

  .compare-table__head, .compare-table__row { grid-template-columns: 84px 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr; }

  .field-row { grid-template-columns: 1fr; }

  .site-footer__top { grid-template-columns: 1fr; }
}

@media (min-width: 821px) {
  .mobile-nav { display: none !important; }
}
