/* ==========================================================================
   Transparently — Site Renewal
   Design concept: 透明な温度 (Transparent Warmth)
   ========================================================================== */

:root {
  /* Brand */
  --brand: #f04e4b;
  --brand-deep: #d63d3a;
  --brand-soft: #fef0ef;

  /* Ink */
  --ink: #1a1a1a;
  --ink-sub: #4a4a4a;
  --ink-soft: #8a8a8a;
  --ink-faint: #b8b5ad;

  /* Surface */
  --paper: #fafaf7;
  --paper-deep: #f3f1ea;
  --paper-card: #ffffff;
  --line: #e8e6e0;
  --line-soft: #efede7;

  /* Accent */
  --mint: #eef3ef;

  /* Type */
  --font-jp: "Noto Sans JP", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Noto Serif JP", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --section-pad: clamp(80px, 12vw, 160px);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

/* ===== Reveal Animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ===== Section Header shared ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.section-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--brand);
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.section-lead {
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--ink-sub);
  max-width: 640px;
  line-height: 2;
}

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.logo-img {
  height: 32px;
  width: auto;
  display: block;
}
.logo-fallback {
  display: flex;  /* 画像が無い時だけ表示される（JSで制御） */
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1;
}
.logo-mark {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--brand);
  font-style: italic;
}
.logo-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 11px;
  color: var(--ink-sub);
  letter-spacing: 0.03em;
}
/* 画像ロゴが読み込める場合はフォールバックを隠す */
.nav-logo .logo-img:not([style*="display: none"]) + .logo-fallback,
.footer-brand .logo-img:not([style*="display: none"]) + .logo-mark {
  display: none;
}
@media (max-width: 640px) {
  .logo-img { height: 26px; }
}
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 13px;
  color: var(--ink-sub);
  list-style: none;
}
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content:"";
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--brand);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  transition: all .25s ease;
}
.nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Burger Menu — 3本線トグル + フルスクリーンメニュー
   ========================================================================== */
.nav-burger {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 101;
  transition: background .25s ease, border-color .25s ease;
}
.nav-burger:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.nav-burger-line {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease, background .25s ease;
}
.nav-burger-line:nth-child(1) { top: 16px; }
.nav-burger-line:nth-child(2) { top: 21px; }
.nav-burger-line:nth-child(3) { top: 26px; }

.nav-burger:hover .nav-burger-line { background: #fff; }

/* ×印に変形 */
.nav-burger.is-open {
  background: var(--ink);
  border-color: var(--ink);
}
.nav-burger.is-open .nav-burger-line { background: #fff; }
.nav-burger.is-open .nav-burger-line:nth-child(1) {
  top: 21px;
  transform: translateX(-50%) rotate(45deg);
}
.nav-burger.is-open .nav-burger-line:nth-child(2) {
  opacity: 0;
}
.nav-burger.is-open .nav-burger-line:nth-child(3) {
  top: 21px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ===== フルスクリーンメニュー本体 ===== */
.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
  overflow-y: auto;
}
.nav-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}
/* 背面に赤い斜めブロック（ブランドの継承） */
.nav-menu::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 340px;
  background: var(--brand);
  clip-path: polygon(0 0, 100% 0, 100% 20%, 22% 100%);
  opacity: .12;
  pointer-events: none;
}

.nav-menu-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 40px 40px;     /* 上パディングを詰めて余白を抑える */
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ×で閉じるボタン（右上固定） */
.nav-menu-close {
  position: absolute;
  top: 24px;
  right: 40px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  z-index: 102;
}
.nav-menu-close:hover {
  background: var(--ink);
  color: #fff;
  transform: rotate(90deg);    /* ホバーでくるっと90度回転 */
}
@media (max-width: 640px) {
  .nav-menu-close { top: 18px; right: 22px; width: 40px; height: 40px; }
}

.nav-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-menu-list li {
  border-top: 1px solid var(--line);
  transform: translateY(12px);
  opacity: 0;
  transition: transform .5s ease, opacity .5s ease;
}
.nav-menu-list li:last-child { border-bottom: 1px solid var(--line); }

/* 開いたときに1つずつふわっと現れる */
.nav-menu.is-open .nav-menu-list li { transform: translateY(0); opacity: 1; }
.nav-menu.is-open .nav-menu-list li:nth-child(1) { transition-delay: .10s; }
.nav-menu.is-open .nav-menu-list li:nth-child(2) { transition-delay: .16s; }
.nav-menu.is-open .nav-menu-list li:nth-child(3) { transition-delay: .22s; }
.nav-menu.is-open .nav-menu-list li:nth-child(4) { transition-delay: .28s; }
.nav-menu.is-open .nav-menu-list li:nth-child(5) { transition-delay: .34s; }
.nav-menu.is-open .nav-menu-list li:nth-child(6) { transition-delay: .40s; }

.nav-menu-list a {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 12px 14px;           /* 18px → 12px でさらに詰める */
  color: var(--ink);
  text-decoration: none;
  transition: padding-left .3s ease, color .3s ease, background .25s ease;
}
.nav-menu-list a:hover {
  padding-left: 22px;
  color: var(--brand);
  background: var(--paper-deep);
}

.nav-menu-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--brand);
}
.nav-menu-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 28px);   /* さらに詰めて静かな存在感に */
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.nav-menu-file {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  text-align: right;
}

.nav-menu-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}

@media (max-width: 640px) {
  .nav-menu-inner { padding: 96px 22px 32px; }
  .nav-menu-list a {
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 12px 10px;           /* スマホも詰めて統一感 */
  }
  .nav-menu-list a:hover { padding-left: 14px; }
  .nav-menu-num { font-size: 10px; }
  .nav-menu-label { font-size: 22px; }
  .nav-menu-file {
    grid-column: 2;
    text-align: left;
    font-size: 10px;
    margin-top: 2px;
  }
  .nav-menu-footer { margin-top: 28px; padding-top: 18px; font-size: 12px; }
  .nav-menu::before { height: 180px; }
}

/* ===== Hero ===== */
.hero {
  padding: 180px 0 140px;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
@media (max-width: 960px) {
  .hero { padding: 160px 0 100px; }
}
@media (max-width: 640px) {
  .hero { padding: 140px 0 80px; }
}
/* ============================================
   名刺由来の赤い"傘型"ブロック
   上辺いっぱいを赤で覆い、左下に深く突き出した一点から、
   右端の浅い位置まで、ゆるやかに立ち上がる不等辺のマッス。
   ============================================ */
.hero-shape {
  position: absolute;
  top: 80px;           /* 少し下に移動して、ナビ直下に白い間を作る */
  left: 0;
  width: 100%;
  height: 420px;       /* 赤ブロックの最大高さ（上辺の深さ） */
  background: var(--brand);
  /* 4点:
       左上 (0, 0)       — 画面左上にピタリ
       右上 (100%, 0)    — 画面右上にピタリ
       右下 (100%, 18%)  — 右端は浅く（上辺近く）で切れる
       左の山（20%, 100%）— 左から2割の位置で下辺を最大まで深く落とす
     結果、左側に鋭く突き出した逆三角＋上辺のベタ帯になる */
  clip-path: polygon(0 0, 100% 0, 100% 18%, 20% 100%);
  z-index: 0;
  pointer-events: none;
}
/* 紙の温度：ごく淡い陰影 */
.hero-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0,0,0,.06), transparent 55%);
  clip-path: inherit;
}
@media (max-width: 960px) {
  .hero-shape {
    height: 340px;
    clip-path: polygon(0 0, 100% 0, 100% 22%, 24% 100%);
  }
}
@media (max-width: 640px) {
  .hero-shape {
    height: 260px;
    clip-path: polygon(0 0, 100% 0, 100% 30%, 28% 100%);
  }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;  /* 左右カラムの上辺を揃える */
  position: relative;
  z-index: 2;
}
/* コピー背面に半透明白の下地：赤帯に重なっても可読性を担保 */
.hero-copy {
  position: relative;
  padding: 48px 40px 44px;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: -1;
  border-radius: 2px;
}
@media (max-width: 640px) {
  .hero-copy { padding: 32px 22px 28px; }
}
.hero-kicker {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 24px;
  letter-spacing: .02em;
}
.hero-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
/* ========= 1文字ずつフェードイン（ヒーロータイトル用） ========= */
.hero-title-typed .ht-line {
  display: block;
}
.hero-title-typed .ht-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease-out, transform .5s ease-out;
}
.hero-title-typed.is-typing .ht-char.is-in {
  opacity: 1;
  transform: translateY(0);
}
/* 空白文字もベースラインは保つ */
.hero-title-typed .ht-char.is-space {
  width: .3em;
}
.hero-title .accent {
  color: var(--brand);
  position: relative;
  display: inline-block;
}
.hero-title .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 10px;
  background: var(--brand-soft);
  z-index: -1;
  transform: skewX(-4deg);
}
.hero-sub {
  font-size: 16px;
  color: var(--ink-sub);
  line-height: 2;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  transition: all .25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -10px rgba(240, 78, 75, .45);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
}
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(4px); }

/* Hero portrait */
.hero-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  max-width: 320px;
  margin-left: auto;     /* 右寄せでコピーと距離を保つ */
  background: transparent;
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
  align-self: start;  /* 左のコピー下地と"上辺"を揃える */
  /* 写真単体の軽い影だけ残す（白下地は外す） */
  box-shadow: 0 20px 48px -18px rgba(0, 0, 0, .18);
  /* ========= 微細な呼吸アニメ（±3px、6秒周期） ========= */
  animation: heroPortraitBreath 6s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroPortraitBreath {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
/* モーション過敏な利用者には動きを切る */
@media (prefers-reduced-motion: reduce) {
  .hero-portrait { animation: none; }
}
/* Hero/About 写真本体（画像が入ったときのスタイル） */
.hero-portrait-img,
.about-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-portrait-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
}
/* 「ここに写真を」共通メッセージ */
.ph-msg {
  text-align: center;
  color: var(--ink-soft);
  font-family: var(--font-jp);
  display: grid;
  gap: 8px;
  padding: 12px 20px;
}
.ph-msg-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-sub);
}
.ph-msg small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  opacity: .75;
}
.hero-portrait-tag {
  position: absolute;
  left: 20px; bottom: 20px;
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-soft);
  background: rgba(255,255,255,.85);
  padding: 8px 14px;
  border-radius: 999px;
}
.hero-frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--brand);
  border-style: solid;
}
.hero-frame-corner.tl { top: -6px; left: -6px; border-width: 1px 0 0 1px; }
.hero-frame-corner.tr { top: -6px; right: -6px; border-width: 1px 1px 0 0; }
.hero-frame-corner.bl { bottom: -6px; left: -6px; border-width: 0 0 1px 1px; }
.hero-frame-corner.br { bottom: -6px; right: -6px; border-width: 0 1px 1px 0; }

.hero-meta {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .1em;
  flex-wrap: wrap;
}
.hero-meta span strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  margin-top: 4px;
  letter-spacing: 0;
}

@media (max-width: 820px) {
  .hero { padding: 130px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 360px; }
}

/* ===== Philosophy ===== */
.philosophy {
  padding: var(--section-pad) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  position: relative;
}
.philosophy-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.philosophy-word {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(40px, 7vw, 88px);
  color: var(--brand);
  letter-spacing: .02em;
  line-height: 1;
  margin-bottom: 8px;
}
.philosophy-reading {
  font-size: 12px;
  letter-spacing: .4em;
  color: var(--ink-soft);
  margin-bottom: 56px;
}
.philosophy-text {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 2.2;
  color: var(--ink);
  letter-spacing: .02em;
}
.philosophy-text em {
  color: var(--brand);
  font-style: normal;
  font-weight: 700;
}
.philosophy-sign {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.philosophy-sign-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.philosophy-sign-ph {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
  border: 1px dashed var(--line);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  text-align: center;
}
.philosophy-sign-ph span {
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--ink-sub);
}
.philosophy-sign-ph small {
  font-size: 10px;
  letter-spacing: .1em;
  opacity: .8;
}

/* ===== About ===== */
.about {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 7vw, 100px);
}
.about-portrait {
  aspect-ratio: 3/4;
  background: var(--paper-deep);
  position: relative;
  overflow: hidden;
}
.about-portrait-placeholder {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
}
.about-portrait-caption {
  position: absolute;
  bottom: -28px;
  right: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
}
.about-body p {
  font-size: 16px;
  line-height: 2.1;
  color: var(--ink-sub);
  margin-bottom: 20px;
}
.about-body p strong {
  color: var(--ink);
  font-weight: 500;
}
.about-more {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-more .btn {
  font-size: 13px;
}
.about-details {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 32px;
}
.about-details dt {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.about-details dd {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 300px; }
}

/* ===== Services (empathy) ===== */
.services {
  padding: var(--section-pad) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.services-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.services-lead {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 2;
}
.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 80px;
}
.pain {
  background: var(--paper);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
}
.pain-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--brand);
}
.pain-text {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}

/* ② Services 最後の一文（Pains 直後のステートメント） */
.services-statement {
  text-align: center;
  margin: 48px auto 0;
  max-width: 720px;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .services-statement {
    font-size: 15px;
    line-height: 1.85;
    margin-top: 36px;
    padding: 0 8px;
  }
}

/* ② Services 最後の一文（黒文字・太字・中央揃え）
   下マージンは DELIVER 矢印の縦線と被らないよう、セクション間と同じ余白をとる */
.services-statement {
  text-align: center;
  margin: clamp(56px, 8vw, 96px) auto clamp(56px, 8vw, 96px);
  max-width: 820px;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  line-height: 1.85;
  color: var(--ink);
  letter-spacing: .02em;
}
@media (max-width: 640px) {
  .services-statement {
    font-size: 14px;
    line-height: 1.9;
    margin: 48px 16px 48px;
  }
}

/* statement の直後に来る DELIVER 矢印は、
   statement 側で余白を取っているので上詰めする */
.services-statement + .services-arrow {
  margin-top: 0;
}

.services-arrow {
  text-align: center;
  margin: -40px 0 56px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: .3em;
}
.services-arrow::before {
  content: "";
  display: block;
  width: 1px; height: 40px;
  background: var(--line);
  margin: 0 auto 16px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.offer {
  background: var(--paper);
  padding: 40px 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .4s ease, box-shadow .4s ease;
}
.offer:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.1);
}
.offer-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--brand);
  margin-bottom: 20px;
  letter-spacing: .05em;
}
.offer-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.offer-desc {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.9;
  margin-bottom: 24px;
}
.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.offer-tag {
  font-size: 11px;
  color: var(--ink-sub);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-deep);
}
@media (max-width: 960px) {
  .services-head { grid-template-columns: 1fr; }
  .pains { grid-template-columns: 1fr 1fr; }
  .offer-grid { grid-template-columns: 1fr 1fr; }  /* タブレットは2列×3段 */
}
@media (max-width: 640px) {
  .offer-grid { grid-template-columns: 1fr; }  /* スマホは1列 */
}
@media (max-width: 560px) {
  .pains { grid-template-columns: 1fr; }
}

/* ===== Strength / PDCA ===== */
.strength {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.strength-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.strength-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}

/* SVG 円群 */
.pdca-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.pdca-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}
.pdca-arc {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  transition: none;
  filter: drop-shadow(0 0 8px rgba(240,78,75,.35));
}
.pdca-core {
  fill: var(--brand);
}
.pdca-pulse {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  opacity: 0;
  transform-origin: 200px 200px;
}
.pdca-pulse.is-burst {
  animation: pdcaPulseBurst 600ms ease-out;
}
@keyframes pdcaPulseBurst {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* 軌道を回る光点 */
.pdca-runner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
  left: 50%;
  top: 10%;
  box-shadow: 0 0 0 6px rgba(240,78,75,.2), 0 0 20px rgba(240,78,75,.6);
  transition: left .08s linear, top .08s linear;
  z-index: 3;
}
.pdca-runner::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: .6;
  animation: pdcaRunnerRing 1.4s ease-out infinite;
}
@keyframes pdcaRunnerRing {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 4つのPDCAノード */
.pdca-node {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;                 /* 軌道線より確実に手前へ */
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.pdca-node-dot {
  width: 20px;                /* 18 → 20px：軌道線を確実に覆うサイズ */
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink-faint);
  margin: 0 auto;
  /* 軌道線がドット上部に被って見える現象を解消するため、
     背面に白の下地（box-shadow）を広めに設定して線を完全にマスク */
  box-shadow: 0 0 0 5px var(--paper);
  position: relative;
  z-index: 2;
  transition: all .3s ease;
}
.pdca-node.is-active .pdca-node-dot {
  border-color: var(--brand);
  background: var(--brand);
  transform: scale(1.3);
}
.pdca-node.is-strong .pdca-node-dot {
  box-shadow: 0 0 0 6px rgba(240,78,75,.2);
}
.pdca-node-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
  text-align: center;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-jp);
}
.pdca-node-letter {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--brand);
  line-height: 1;
  opacity: .5;
  transition: opacity .3s;
}
.pdca-node.is-active .pdca-node-letter { opacity: 1; }
.pdca-node-title {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--ink);
  font-weight: 700;
}
.pdca-node-jp {
  font-size: 10px;
  color: var(--ink-soft);
  letter-spacing: .1em;
}
/* ノードの位置ごとにラベル配置を調整 */
.pdca-node[data-step="0"] .pdca-node-label { top: auto; bottom: 24px; } /* PLAN上 → ラベル上 */
.pdca-node[data-step="2"] .pdca-node-label { top: 24px; } /* CHECK下 → ラベル下 */
.pdca-node[data-step="1"] .pdca-node-label { top: 50%; left: auto; right: -14px; transform: translate(100%, -50%); text-align: left; }
.pdca-node[data-step="3"] .pdca-node-label { top: 50%; left: -14px; right: auto; transform: translate(-100%, -50%); text-align: right; }

/* 中央コピー */
.pdca-center {
  position: absolute;
  /* 円（中心y=200, r=64）の中心に完全一致させる */
  top: 50%;
  left: 50%;
  width: 128px;     /* r=64 × 2 */
  height: 128px;
  transform: translate(-50%, -50%);
  display: grid;
  place-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  z-index: 4;
}
.pdca-center-word {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(16px, 1.7vw, 21px);
  letter-spacing: .16em;
  color: #fff;
  text-align: center;
  line-height: 1.4;
  /* 和文を円の中央に端正に収める（letter-spacingの右余白を左で吸収） */
  padding-left: .16em;
}
.pdca-center-kicker {
  font-size: 9px;
  letter-spacing: .3em;
  color: rgba(255,255,255,.75);
  margin-bottom: 8px;
  font-weight: 500;
}
.pdca-center-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.7;
}
.strength-body h3 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.strength-body h3 em {
  color: var(--brand);
  font-style: normal;
}
.strength-body p {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 2;
  margin-bottom: 16px;
}
.strength-points {
  margin-top: 32px;
  list-style: none;
  display: grid;
  gap: 16px;
}
.strength-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.8;
}
.strength-points li::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--brand);
  margin-top: 12px;
}
@media (max-width: 960px) {
  .strength-inner { grid-template-columns: 1fr; }
  .strength-visual { margin: 0 auto; }
}
/* スマホではPDCA装飾を非表示（裕次郎さんの指示 #2） */
@media (max-width: 640px) {
  .strength-visual { display: none; }
  .strength-inner { gap: 0; }
}

/* ===== Numbers ===== */
.numbers {
  padding: var(--section-pad) 0;
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.numbers::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
}
.numbers-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 80px;
}
.numbers-head .section-label { color: var(--brand); }
.numbers-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 640px;
  line-height: 1.5;
}
.numbers-note {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
}
.nums-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.num {
  background: var(--ink);
  padding: 48px 28px;
  text-align: left;
}
.num-label {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .2em;
  margin-bottom: 20px;
}
.num-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 14px;
}
.num-value .val {
  font-family: var(--font-serif);
  font-size: clamp(48px, 6vw, 76px);
  font-weight: 400;
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.num-value .unit {
  font-size: 14px;
  color: var(--brand);
  letter-spacing: .1em;
}
/* 「+」記号は数字と同スケールで大きく見せる（STUDENTSのみ） */
.num-value .unit-plus {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  color: var(--brand);
  line-height: 1;
  letter-spacing: 0;
  margin-left: 4px;
}
.num-desc {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
}
@media (max-width: 900px) {
  .nums-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .nums-grid { grid-template-columns: 1fr; }
}

/* ===== Career (timeline) ===== */
.career {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}
.career-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 80px;
}
.career-domains {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
  padding: 40px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.domain-col h4 {
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--brand);
  margin-bottom: 20px;
}
.domain-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.domain-list li {
  font-size: 13px;
  color: var(--ink);
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
}
.timeline {
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px; bottom: 8px; left: 6px;
  width: 1px;
  background: var(--line);
}
.tl-item {
  position: relative;
  padding: 0 0 48px 32px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -30px; top: 12px;
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  background: var(--paper);
}
.tl-item.active::before {
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(240,78,75,.15);
}
.tl-year {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--brand);
  font-size: 14px;
  letter-spacing: .05em;
  margin-bottom: 6px;
}
.tl-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.tl-desc {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.9;
}
@media (max-width: 760px) {
  .career-head, .career-domains { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Books ===== */
.books {
  padding: var(--section-pad) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.books-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.books-head .section-lead {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.95;
  max-width: 420px;
}
.books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.book {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
  /* 3D起き上がり用のパースペクティブ */
  perspective: 1200px;
}
.book:hover { transform: translateY(-8px); }
.book:hover .book-cover {
  box-shadow:
    -14px 28px 48px -18px rgba(0,0,0,.28),
    0 14px 36px -14px rgba(0,0,0,.18);
  /* 書影が斜めから起き上がる：実物の本を手に取る感覚 */
  transform: rotateY(-10deg) rotateX(3deg) translateZ(8px);
}
.book:hover .book-cta { color: var(--brand); }
.book:hover .book-cta svg { transform: translate(3px, -3px); }

.book-cover {
  position: relative;
  aspect-ratio: 3 / 4.2;   /* 一般的な書籍のプロポーション */
  background: var(--paper-deep);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 14px 36px -14px rgba(0,0,0,.22);
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s cubic-bezier(.2,.7,.2,1);
  transform-style: preserve-3d;
  transform-origin: left center;
}
/* 執筆協力・監修などの役割バッジ */
.book-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  padding: 5px 10px;
  border-radius: 2px;
  box-shadow: 0 4px 12px -4px rgba(240, 78, 75, .55);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.book-cover-ph {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #f3f1ea 0%, #e8e6de 50%, #d9d6cd 100%);
  display: grid;
  place-items: center;
  /* プレースホルダの"背表紙"風ライン */
}
.book-cover-ph::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(0,0,0,.08);
}
.book-cover-ph-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}
.book-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.book-year {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--brand);
}
.book-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.book-pub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}
.book-cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--ink-sub);
  transition: color .25s ease;
}
.book-cta svg { transition: transform .25s ease; }
.books-note {
  margin-top: clamp(32px, 5vw, 48px);
  font-size: 12px;
  color: var(--ink-soft);
  text-align: right;
}
.books-note code {
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
}
@media (max-width: 960px) {
  .books-head { grid-template-columns: 1fr; align-items: start; }
  .books-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .book-title { font-size: 13px; }
  .book-pub { font-size: 11px; }
}

/* ===== Udemy ===== */
.udemy {
  padding: var(--section-pad) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.udemy-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
  margin-bottom: 64px;
}
.udemy-stat {
  text-align: right;
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.9;
}
.udemy-stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  color: var(--brand);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.courses {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.course {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
  transition: all .3s;
}
.course:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -14px rgba(240,78,75,.2);
}
.course-icon {
  width: 72px; height: 72px;
  border-radius: 2px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-size: 28px;
  letter-spacing: .05em;
  flex-shrink: 0;
}
.course:nth-child(2) .course-icon { background: var(--ink); }
.course:nth-child(3) .course-icon { background: #2b6b5a; }
.course:nth-child(4) .course-icon { background: #8a4e2f; }
.course-body h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}
.course-body p {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.course-arrow {
  position: absolute;
  right: 20px; top: 20px;
  opacity: .4;
  transition: all .25s;
}
.course { position: relative; }
.course:hover .course-arrow {
  opacity: 1;
  transform: translate(4px, -4px);
  color: var(--brand);
}
.udemy-mascot {
  margin-top: 40px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
.mascot-illustration {
  width: 80px; height: 80px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mascot-illustration img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;  /* 円のフチに密着させない余白 */
}
.udemy-mascot p {
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.8;
}
.udemy-mascot p strong { color: var(--ink); font-weight: 700; }
@media (max-width: 820px) {
  .udemy-head, .courses { grid-template-columns: 1fr; }
  .udemy-stat { text-align: left; }
}

/* ===== TPLYBOOK ===== */
.tplybook {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
}

/* ===== Nogizaka Scene — 乃木坂の景色（TPLYBOOK の下、フルブリード写真） ===== */
.nogizaka-scene {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.nogizaka-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 7;            /* 横長で景色を広く見せる */
  background: var(--paper-deep);
  overflow: hidden;
}
.nogizaka-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nogizaka-photo-ph {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 8px,
      transparent 8px, transparent 16px),
    var(--paper);
}
.nogizaka-photo figcaption {
  position: absolute;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(14px, 2.4vw, 24px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(0, 0, 0, .42);
  padding: 8px 16px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (max-width: 640px) {
  .nogizaka-photo { aspect-ratio: 4 / 3; }
  .nogizaka-photo figcaption { font-size: 11px; padding: 6px 12px; }
}
.tply-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  padding: 56px clamp(32px, 5vw, 64px);
  border: 1px solid var(--ink);
  position: relative;
  transition: all .3s;
}
.tply-card:hover {
  background: var(--ink);
  color: #fff;
}
.tply-card:hover .tply-label { color: var(--brand); }
.tply-label {
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--brand);
  margin-bottom: 12px;
}
.tply-card h3 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.tply-card p {
  font-size: 14px;
  line-height: 1.9;
  max-width: 540px;
  opacity: .9;
}
.tply-cta {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform .3s;
}
.tply-card:hover .tply-cta { transform: rotate(-10deg) scale(1.05); }
@media (max-width: 700px) {
  .tply-card { grid-template-columns: 1fr; }
}

/* ===== Contact ===== */
.contact {
  padding: var(--section-pad) 0;
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
}
.contact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact-side p {
  font-size: 15px;
  color: var(--ink-sub);
  line-height: 2;
  margin-bottom: 20px;
}
.contact-side p strong {
  color: var(--ink);
  font-weight: 700;
}
.contact-handwrite {
  margin-top: 36px;
  padding: 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-sub);
  font-size: 15px;
  line-height: 1.9;
}
.contact-handwrite span {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: .2em;
  text-align: right;
  font-family: var(--font-jp);
  font-style: normal;
}
.contact-form-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
}
.contact-form-wrap h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.contact-form-lead {
  font-size: 14px;
  color: var(--ink-sub);
  line-height: 1.9;
  margin-bottom: 24px;
}
.contact-form-btn {
  width: 100%;
  justify-content: center;
  padding: 20px 28px;
  font-size: 15px;
  margin-bottom: 8px;
}
.contact-direct {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-sub);
  line-height: 1.9;
}
.contact-direct a {
  color: var(--brand);
  font-weight: 500;
  border-bottom: 1px solid var(--brand);
}
@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  margin-bottom: 4px;
}
.footer-brand .logo-mark {
  color: #fff;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.footer-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--brand);
  margin-bottom: 18px;
  opacity: .9;
}
.footer-tagline {
  font-size: 13px;
  line-height: 1.9;
  max-width: 360px;
  margin-bottom: 24px;
}
/* フッターの住所ブロックは削除。事務所案内へはLINKSから遷移 */
.footer-col h5 {
  font-size: 11px;
  color: #fff;
  letter-spacing: .2em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer-col a:hover { color: var(--brand); }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: rgba(255,255,255,.4);
  letter-spacing: .05em;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span {
  font-family: var(--font-serif);
  font-style: italic;
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ===== Decorative marks ===== */
.deco-rule {
  display: block;
  margin: 64px auto;
  width: 1px; height: 48px;
  background: var(--line);
}

/* ===== Gallery (出張先) ===== */
.gallery {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.gallery-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.gshot {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s;
}
.gshot:hover {
  transform: translateY(-4px) scale(1.02);
  z-index: 2;
  box-shadow: 0 20px 36px -20px rgba(0,0,0,.18);
}
/* Gallery の画像本体（入ったときのスタイル） */
.gshot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gshot-ph {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg,
      var(--paper-deep),
      var(--paper-deep) 6px,
      transparent 6px, transparent 12px),
    var(--paper);
  border: 1px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
}
.gshot-ph span {
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ink-sub);
  line-height: 1.6;
}
.gshot-ph small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  opacity: .7;
  color: var(--ink-soft);
  font-weight: 400;
}
.gshot figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px 10px;
  font-size: 10px;
  letter-spacing: .15em;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
  font-weight: 500;
}
.gshot img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-note {
  margin-top: 32px;
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: .05em;
}
.gallery-note code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand);
}
@media (max-width: 960px) {
  .gallery-head { grid-template-columns: 1fr; gap: 24px; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ===== To Top Button ===== */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  grid-template-rows: auto auto;
  gap: 1px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .25s, color .25s, border-color .25s;
  font-family: var(--font-jp);
}
.to-top span {
  font-size: 9px;
  letter-spacing: .15em;
  font-weight: 500;
}
.to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
  .to-top span { font-size: 8px; }
}

/* ==========================================================================
   Mobile fine-tuning — 375px〜640px 帯の"がたつき"対策
   ========================================================================== */
@media (max-width: 640px) {
  body { line-height: 1.85; }

  /* --- Section rhythm --- */
  :root {
    --section-pad: clamp(64px, 14vw, 100px);
  }

  /* --- Nav --- */
  .nav { padding: 14px 0; }
  .nav-logo { font-size: 14px; }
  .nav-logo svg { width: 18px; height: 18px; }
  .nav-cta { padding: 8px 14px; font-size: 12px; }

  /* --- Hero --- */
  .hero { padding: 110px 0 64px; }
  .hero-kicker { font-size: 14px; margin-bottom: 16px; }
  .hero-title {
    font-size: 28px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 22px;
    text-align: left;
  }
  .hero-title .accent::after { height: 7px; bottom: -2px; }
  .hero-sub {
    font-size: 14px;
    line-height: 1.95;
    margin-bottom: 28px;
  }
  .hero-cta-row { gap: 10px; }
  .btn { padding: 13px 20px; font-size: 13px; }
  .hero-meta {
    gap: 14px 20px;
    margin-top: 28px;
    padding-top: 20px;
    font-size: 10px;
  }
  .hero-meta span strong { font-size: 13px; margin-top: 3px; }
  /* スマホではヒーロー写真は非表示（ABOUTに講義風景があるため） */
  .hero-portrait { display: none; }
  .hero-grid { grid-template-columns: 1fr; }

  /* --- Section head --- */
  .section-label { font-size: 11px; margin-bottom: 14px; }
  .section-label::before { width: 20px; }
  .section-title {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 18px;
    letter-spacing: 0;
  }
  .section-lead { font-size: 13px; line-height: 1.9; }
  /* numbersタイトル（長文）も小さめで2行に収まるように */
  .numbers-title { font-size: 22px; line-height: 1.5; }

  /* --- Philosophy --- */
  .philosophy-word { font-size: 56px; }
  .philosophy-reading {
    font-size: 10px;
    letter-spacing: .25em;
    margin-bottom: 36px;
  }
  .philosophy-text {
    font-size: 16px;
    line-height: 2.05;
    letter-spacing: 0;
  }
  .philosophy-sign { margin-top: 36px; font-size: 14px; }

  /* --- About --- */
  .about-grid { gap: 32px; }
  .about-portrait { max-width: 240px; margin: 0 auto; }
  .about-portrait-caption { bottom: -22px; font-size: 12px; }
  .about-body p { font-size: 14px; line-height: 1.95; }
  .about-details {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
  }
  .about-details dt { font-size: 10px; }
  .about-details dd { font-size: 13px; }

  /* --- Services / Pains / Offers --- */
  .services-head { margin-bottom: 40px; }
  .services-lead { font-size: 14px; }
  .pains { margin-bottom: 48px; }
  .pain { padding: 24px 22px; min-height: auto; }
  .pain-num { font-size: 20px; }
  .pain-text { font-size: 14px; line-height: 1.75; }
  .services-arrow {
    margin: -24px 0 36px;
    font-size: 12px;
    letter-spacing: .2em;
  }
  .services-arrow::before { height: 28px; }
  .offer { padding: 28px 22px; }
  .offer-num { font-size: 13px; margin-bottom: 14px; }
  .offer-title { font-size: 19px; margin-bottom: 12px; line-height: 1.45; }
  .offer-desc { font-size: 13px; line-height: 1.85; margin-bottom: 18px; }
  .offer-tag { font-size: 10px; padding: 3px 8px; }

  /* --- Strength --- */
  .strength-inner { gap: 56px; }
  .strength-visual { max-width: 300px; }
  .strength-body h3 { font-size: 22px; line-height: 1.55; margin-bottom: 18px; }
  .strength-body p { font-size: 14px; line-height: 1.9; }
  .strength-points { gap: 12px; margin-top: 24px; }
  .strength-points li { font-size: 13px; grid-template-columns: 14px 1fr; gap: 10px; }
  .strength-points li::before { margin-top: 10px; }
  .strength-label { font-size: 9px; letter-spacing: .15em; }

  /* --- Numbers --- */
  .numbers-head { margin-bottom: 48px; }
  .numbers-title { font-size: 22px; line-height: 1.5; }
  .numbers-note { font-size: 10px; }
  .num { padding: 28px 22px; }
  .num-label { font-size: 10px; margin-bottom: 14px; }
  .num-value .val { font-size: 48px; }
  .num-value .unit { font-size: 12px; }
  .num-desc { font-size: 11px; line-height: 1.65; }

  /* --- Career --- */
  .career-head { margin-bottom: 48px; gap: 24px; }
  .career-domains {
    padding: 28px 22px;
    gap: 28px;
    margin-bottom: 56px;
  }
  .domain-col h4 { font-size: 11px; margin-bottom: 14px; }
  .domain-list li { font-size: 12px; padding: 5px 9px; }
  .timeline { padding-left: 20px; }
  .timeline::before { left: 4px; }
  .tl-item { padding: 0 0 36px 22px; }
  .tl-item::before { left: -22px; top: 8px; width: 10px; height: 10px; }
  .tl-year { font-size: 13px; }
  .tl-title { font-size: 16px; margin-bottom: 6px; line-height: 1.45; }
  .tl-desc { font-size: 13px; line-height: 1.85; }

  /* --- Gallery --- */
  .gallery-head { margin-bottom: 32px; }
  .gshot figcaption { font-size: 9px; padding: 6px 8px; }

  /* --- Udemy --- */
  .udemy-head { margin-bottom: 40px; gap: 24px; }
  .udemy-stat strong { font-size: 32px; }
  .udemy-stat { font-size: 12px; line-height: 1.8; }
  .course { padding: 20px; gap: 14px; }
  .course-icon { width: 56px; height: 56px; font-size: 22px; }
  .course-body h4 { font-size: 13px; line-height: 1.5; }
  .course-body p { font-size: 11px; line-height: 1.65; }
  .udemy-mascot {
    padding: 22px;
    gap: 16px;
    margin-top: 28px;
  }
  .mascot-illustration { width: 60px; height: 60px; }
  .mascot-illustration svg { width: 48px; height: 48px; }
  .udemy-mascot p { font-size: 12px; line-height: 1.75; }

  /* --- TPLYBOOK --- */
  .tply-card { padding: 36px 24px; gap: 28px; }
  .tply-label { font-size: 10px; }
  .tply-card h3 { font-size: 20px; line-height: 1.45; }
  .tply-card p { font-size: 13px; line-height: 1.8; }
  .tply-cta { width: 52px; height: 52px; }

  /* --- Contact --- */
  .contact-side p { font-size: 14px; line-height: 1.9; }
  .contact-handwrite {
    margin-top: 24px;
    padding: 18px;
    font-size: 13px;
    line-height: 1.8;
  }
  .contact-form-wrap { padding: 24px; }
  .contact-form-placeholder { min-height: 380px; padding: 24px; }
  .contact-form-placeholder .note { font-size: 12px; line-height: 1.8; }
  .contact-form-placeholder .note strong { font-size: 13px; }
  .contact-direct { font-size: 12px; line-height: 1.8; }

  /* --- Footer --- */
  .footer { padding: 48px 0 24px; }
  .footer-brand { font-size: 15px; }
  .footer-tagline { font-size: 12px; line-height: 1.8; }
  .footer-col h5 { font-size: 10px; margin-bottom: 12px; }
  .footer-col a { font-size: 12px; }
  .footer-bottom { font-size: 10px; }
}

/* 375px以下の小型スマホ向け微調整 */
@media (max-width: 380px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 28px; }
  .philosophy-word { font-size: 48px; }
  .section-title { font-size: 22px; }
  .num-value .val { font-size: 40px; }
}
