/*
 * 一期一縁会 HP — 共通スタイル（index + サブページの土台）
 *
 * 構成:
 *   :root ………… 色・グラデ・モーション用トークン
 *   reset / layout … html/body、.container*、.header / .nav
 *   .hero …………… ファーストビュー（写真 or グラデ + blob）
 *   .section ……… NEWS / 理念 / VISION / 概要 / 交流会案内
 *   .reveal-on-scroll … スクロール入場（html.js 時のみ）。遅延は各 #section 末尾で指定
 *   @media 768px … モバイルナビ全画面化、レイアウト 1 列化
 *   body.sub-page … サブページで styles.css 側に残す最小セット（詳細は sub-page.css）
 *
 * ページ固有の見た目は about.css / service.css / meetup.css / contact.css。
 */
:root {
--hero-green-1: #16eb84;
--hero-green-2: #10c37b;
--hero-orange-0: #fff0f5;
--hero-orange-3: #fa8072;
--hero-orange-4: #ff0055;
--hero-orange-6: #4a0018;


  /* ヒーロー用ブランド色。
     写真ヒーロー（.hero--photo）では背景グラデが隠れるため現状の見た目には影響しない */
  --brand-hero-deep: var(--hero-orange-6);
  --brand-hero-mid: var(--hero-orange-5);
  --brand-hero-bright: var(--hero-orange-4);

  /* 写真フィーチャー: 左上〜中央は闇 / 右上は細い一筋の光 / 右下はさらに締める（3層） */
  --hero-photo-scrim:
    radial-gradient(
      ellipse 30% 60% at 94% 17%,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.2) 42%,
      rgba(255, 255, 255, 0) 70%
    ),
    radial-gradient(
      ellipse 95% 72% at 98% 102%,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.28) 48%,
      rgba(0, 0, 0, 0) 72%
    ),
    linear-gradient(
      100deg,
      rgba(0, 0, 0, 0.7) 0%,
      rgba(0, 0, 0, 0.6) 12%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 0.2) 56%,
      rgba(0, 0, 0, 0.1) 78%,
      rgba(0, 0, 0, 0.05) 100%
    );

  /* セクション背景 */
  --section-bg: linear-gradient(145deg, #e4f6ff 0%, #ebfaf2 100%);

  --accent-grad-line: linear-gradient(180deg, var(--hero-orange-3), var(--hero-orange-4));
  --accent-grad-line-h: linear-gradient(90deg, var(--hero-orange-3), var(--hero-orange-4));

  /* 水平版と同色ストップ。縦ライン・縦方向の装飾用（上 → 下） */
  --accent-grad-line-v: linear-gradient(180deg, var(--hero-orange-3), var(--hero-orange-4));
  
  --accent-grad-line-h-light: linear-gradient(90deg, #93c5fd, #e9d5ff);
  --accent-grad-btn: linear-gradient(135deg, var(--hero-orange-3) 0%, var(--hero-orange-4) 100%);
  --accent-grad-2: linear-gradient(135deg, var(--hero-green-1) 0%, var(--hero-green-2) 100%);
  --accent-border: rgba(127, 57, 251, 0.14);

  --bg: #fafafa;
  --text: #0a0a0a;
  --text-muted: #737373;

  /* 白背景セクション（NEWS / VISION15 / CONTACT）のインク */
  --ink-on-white: #111827;
  --ink-on-white-muted: #4b5563;
  --border-on-white: #d1d5db;


  --concrete-footer-light: #e4e4e4;
  --concrete-footer-mid: #d8d8d8;
  --concrete-footer-dark: #cecece;
  --concrete-footer-bg-image:
    linear-gradient(168deg, rgba(255, 255, 255, 0.45) 0%, transparent 42%),
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.04) 0%,
      transparent 20%,
      transparent 80%,
      rgba(0, 0, 0, 0.035) 100%
    ),
    linear-gradient(
      180deg,
      var(--concrete-footer-light) 0%,
      var(--concrete-footer-mid) 42%,
      var(--concrete-footer-dark) 100%
    ),
    repeating-linear-gradient(
      -11deg,
      transparent 0,
      transparent 3px,
      rgba(0, 0, 0, 0.025) 3px,
      rgba(0, 0, 0, 0.025) 4px
    );

  /* モーション・モバイルナビ（数値の単一ソース） */
  --reveal-duration: 3.2s;
  --reveal-delay: 0.4s;
  --reveal-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --z-nav-chrome: 140;


  --nav-header-bg: linear-gradient(
    176deg,
    rgba(66, 216, 28, 0.95) 0%,
    rgba(0, 90, 120, 0.85) 100%   /* 右：わずかに彩度を落とした深みのあるトーン */
  );

  /* ヘッダー影（index .header / サブページ .detail-header で共用） */
  --nav-chrome-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 16px rgba(0, 0, 0, 0.55);
}

html {
  font-size: 112.5%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

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

body {
  /* 100vh はモバイルでアドレスバー込みの「高い」高さになりがち → 下に変な余白。
     100dvh は今見えている画面の高さに追従（ツールバーの出し入れに合わせる） */
  min-height: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  position: relative;
  letter-spacing: 0.04em;
}

/* トップ: コンテンツが短くてもフッターを「見えている画面の下」に寄せる（実績ページは fixed フッターで別設計） */
body:not(.sub-page) {
  display: flex;
  flex-direction: column;
}

body:not(.sub-page) main {
  flex: 1 0 auto;
}

.container {
  width: min(720px, 100% - 48px);
  margin-inline: auto;
}

.container-wide {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

.container-narrow {
  width: min(560px, 100% - 48px);
  margin-inline: auto;
}

/* Header（index）— 実績ページ .detail-header とトークン共有 */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-header-bg);
  box-shadow: var(--nav-chrome-shadow);
}

.header .logo,
.header .logo-name {
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.header .logo-name:hover {
  color: #fff;
  font-weight: 700;
}

.header .nav-links a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header .nav-links a:hover {
  color: #fff;
  font-weight: 700;
}


.u-sp-only {
  display: none;
}

.main {
  padding-bottom: 100px;
}

/* 入場アニメの translateX（reveal-from--left / --right）が初期位置では画面外にはみ出し、
   横スクロールが出るのを防ぐ（True Purpose 右カラム・VISION15 の右から入る要素など） */
main {
  overflow-x: hidden;
  overflow-x: clip; /* 対応ブラウザでは clip の方がスクロール連鎖が起きにくい */
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right-group {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav {
  position: relative;
  width: min(1200px, 100% - 48px); /* 960pxから1200pxへ変更 */
  height: 56px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  vertical-align: middle; /* inline-flex のベースライン下余白を消す */
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  z-index: 2;
  text-decoration: none;
  color: inherit;
}


.logo .logo-mark {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  max-height: 64px;
  max-width: min(320px, calc(100vw - 140px));
}

.logo-name {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  /* 重要：line-height を normal（または 1.2 程度）に。
     フォントが持つ「上下のバランス」を維持させます */
  line-height: normal;
  
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: baseline;
  gap: 32px;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.nav-toggle-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1px;
  transition: transform 0.28s ease, top 0.28s ease, background 0.2s ease;
}

.nav-toggle-line:nth-child(1) {
  top: 16px;
}

.nav-toggle-line:nth-child(2) {
  top: 26px;
}

.nav-toggle.is-open .nav-toggle-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggle.is-open .nav-toggle-line:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/*
 * デスクトップではオーバーレイ枠を「なかったこと」にする。
 * → 中の .nav-links が .header-right-group の flex 子として横並びになる。
 * スマホ（768px 以下）では display:flex の全画面メニューに切り替わる。
 */
.nav-mobile-overlay {
  display: contents;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 80px;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-hero-deep) 0%, var(--brand-hero-mid) 100%);
}

.hero-photo,
.hero-scrim {
  display: none;
}

.hero--photo .hero-bg {
  background: transparent;
}

.hero--photo .hero-photo {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero--photo .hero-scrim {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--hero-photo-scrim);
}

.hero-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 写真モード: blob を写真と黒スクリムの間に置き、暗霞のようににじませる（グラデのみ時は従来どおり） */
.hero--photo .hero-blobs {
  z-index: 1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
  opacity: 0.22;
  transform: translateZ(0); /* GPU側の別レイヤーに載せて、スクロールのたびにぼかしを描き直さないようにする */
}

.hero--photo .hero-blob {
  opacity: 0.14;
  filter: blur(20px);
}

.hero--photo .hero-blob-1 {
  background: radial-gradient(circle at 32% 28%, rgba(200, 205, 230, 0.22), rgba(200, 205, 230, 0) 56%);
}

.hero--photo .hero-blob-2 {
  background: radial-gradient(circle at 30% 30%, rgba(100, 95, 130, 0.18), rgba(100, 95, 130, 0) 58%);
}

.hero--photo .hero-blob-3 {
  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--brand-hero-mid) 22%, transparent),
    color-mix(in srgb, var(--brand-hero-mid) 0%, transparent) 62%
  );
}

.hero--photo .hero-blob-4 {
  background: radial-gradient(circle at 30% 30%, rgba(150, 148, 180, 0.16), rgba(150, 148, 180, 0) 60%);
}

.hero-blob-1 {
  width: 60vw;
  height: 60vw;
  max-width: 480px;
  max-height: 480px;
  top: -15%;
  left: -10%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 55%);
}

.hero-blob-2 {
  width: 45vw;
  height: 45vw;
  max-width: 360px;
  max-height: 360px;
  top: 30%;
  right: -5%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 58%);
}

.hero-blob-3 {
  width: 50vw;
  height: 50vw;
  max-width: 400px;
  max-height: 400px;
  bottom: -10%;
  left: -15%;
  background: radial-gradient(
    circle at 30% 30%,
    color-mix(in srgb, var(--brand-hero-bright) 55%, transparent),
    color-mix(in srgb, var(--brand-hero-bright) 0%, transparent) 60%
  );
}

.hero-blob-4 {
  width: 35vw;
  height: 35vw;
  max-width: 280px;
  max-height: 280px;
  top: 50%;
  left: 20%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* --- ファーストビューのフェードインアニメーション --- */

/* 初期状態：暗く、ぼかした状態 */
.hero-reveal {
  opacity: 0;
  filter: blur(12px) brightness(0.5);
  letter-spacing: 0.2em; /* ぼんやりしている時は字間を広げる */
  transition: 
    opacity 1.2s ease-out, 
    filter 1.6s ease-out, 
    letter-spacing 1.6s ease-out,
    transform 1.2s ease-out;
  transform: translateY(6px);
  display: inline-block;
}

/* 発火状態：クリアに浮かび上がる */
.is-revealed .hero-reveal {
  opacity: 1;
  filter: blur(0) brightness(1);
  letter-spacing: 0.08em; /* 本来の字間に収束 */
  transform: translateY(0);
}

/* GOAL：時間差（スタッガー）の設計 */
.is-revealed .line-1 { transition-delay: 0.2s; }
.is-revealed .line-2 { transition-delay: 0.6s; }
.is-revealed .line-3 { transition-delay: 0.6s; }
.is-revealed .line-4 { transition-delay: 1.2s; } /* ボタンを最後に */

/* --- Keyframes：最小限の動き --- */

@keyframes type-reveal {
  from { width: 0; }
  to { width: 100%; border-color: var(--hero-orange-4); } /* 終了時にカーソル色を出す */
}

@keyframes cursor-blink {
  50% { border-color: transparent; }
}

@keyframes fade-in {
  to { opacity: 1; }
}

.hero-name {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.35;
}

.hero-catch {
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.6;
  max-width: 36em;
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

/* フッターと同系のコンクリート（変数・トーンを揃える） */
.btn-hero {
  border-radius: 999px;
  background-color: var(--concrete-footer-mid);
  background-image: var(--concrete-footer-bg-image);
  color: #424242;
  border: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  margin-top: 10px;
  transform: scale(1);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.35s ease,
    transform 0.5s ease,
    opacity 1.5s ease-out, /* 追加：reveal用 */
    filter 1.6s ease-out;    /* 追加：reveal用 */
}

.btn-hero:hover {
  filter: brightness(1.06);
  color: #424242;
  transform: scale(1.06);
}

.btn-hero:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 3px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.scroll-capsule {
  width: 28px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-arrow {
  font-size: 0.7rem;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.scroll-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
}

/* Sections */
.section {
  padding: 64px 0;
  background: linear-gradient(180deg, #f5f8ff 0%, #fafafa 40%, #fafafa 100%);
}


#philosophy .philosophy-body,
#philosophy .philosophy-name,
#philosophy .philosophy-lead {
  color: var(--ink-on-white-muted);
}

#philosophy .philosophy-role {
  color: var(--ink-on-white-muted);
}


#vision15 .vision15-body,
#vision15 .vision15-name,
#vision15 .vision15-lead,
#vision15 .vision15-direction-title {
  color: var(--ink-on-white-muted);
}

#vision15 .vision15-role {
  color: var(--ink-on-white-muted);
}

#vision15 .vision15-direction-list {
  color: var(--ink-on-white-muted);
}


#introduction .introduction-body,
#introduction .introduction-name,
#introduction .introduction-lead,
#introduction .introduction-direction-title {
  color: var(--ink-on-white-muted);
}

#introduction .introduction-role {
  color: var(--ink-on-white-muted);
}

#introduction .introduction-direction-list {
  color: var(--ink-on-white-muted);
}


#contact .contact-intro {
  color: var(--ink-on-white);
}

#philosophy .philosophy-photo-placeholder {
  border-color: var(--border-on-white);
}

#vision15 .vision15-photo-placeholder {
  border-color: var(--border-on-white);
}

#introduction .introduction-photo-placeholder {
  border-color: var(--border-on-white);
}

.section-title {
  font-size: 30px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  width: fit-content;
  max-width: 100%;
  font-weight: 800;
  line-height: 1.3;
  position: relative;
  padding-bottom: 12px;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 56px);
  height: 3px;
  border-radius: 2px;
  background: var(--accent-grad-line-h);
}

.section-title-2::after {
  background: var(--accent-grad-2);
}

.section-lead {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* PHILOSOPHY */
.philosophy-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: start;
}

/* 行の高さは本文側に合わせる。写真だけその中で縦中央 */
.philosophy-photo {
  min-width: 0;
  align-self: center;
}

.philosophy-photo-placeholder {
  aspect-ratio: 1;
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: stretch;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f2ff 0%, #ede8ff 100%);
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.philosophy-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.philosophy-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.philosophy-body p + p {
  margin-top: 12px;
}

/* 英字見出し（PHILOSOPHY）の下、本文より一段だけ強く。字間を少し空けて名刺的な落ち着き */
.philosophy-name {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.10em;
  line-height: 1.45;
  margin: 0 0 6px;
}

/* 氏名の下の肩書き。スラッシュ直後でだけ折り返せるように HTML に <wbr> を入れる */
.philosophy-role {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 14px;
}

.philosophy-lead {
  font-weight: 500;
  margin-bottom: 8px;
}

.philosophy-direction {
  margin-top: 24px;
  padding-top: 20px;
  position: relative;
}

.philosophy-direction-lead {
  font-size: 0.85rem;
  line-height: 1.85;
}

.philosophy-direction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 100%);
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad-line-h);
}


/* VISION: DOM は「写真→本文」だが、見た目は本文を左・写真を右にしたいので .vision15-body のorder で入れ替え */
.vision15-layout {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 280px);
  gap: 40px;
  align-items: end;
}

/* 行の高さは本文側に合わせる。写真だけその中で縦中央 */
.vision15-photo {
  min-width: 0;
  align-self: center;
}

.vision15-photo-placeholder {
  aspect-ratio: 1;
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: stretch;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f2ff 0%, #ede8ff 100%);
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.vision15-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.vision15-body {
  order: -1; /* グリッド内で本文を先頭（左）へ */
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.vision15-body p + p {
  margin-top: 12px;
}

/* 英字見出し（VISION15）の下、本文より一段だけ強く。字間を少し空けて名刺的な落ち着き */
.vision15-name {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.10em;
  line-height: 1.45;
  margin: 0 0 6px;
}

/* 氏名の下の肩書き。スラッシュ直後でだけ折り返せるように HTML に <wbr> を入れる */
.vision15-role {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 14px;
}

.vision15-lead {
  font-weight: 500;
  margin-bottom: 8px;
}

.vision15-direction {
  margin-top: 24px;
  padding-top: 20px;
  position: relative;
}

.vision15-direction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 100%);
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad-line-h);
}

.vision15-direction-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.vision15-direction-list {
  list-style: disc;
  padding-left: 1.25em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vision15-direction-list h4 {
  font-size: 0.85rem;
  margin-top: 6px;
  margin-bottom: 0;
}

.vision15-direction-list p {
  font-size: 0.85rem;
  margin-top: 0;
}

.vision15-direction-list li + li {
  margin-top: 6px;
}


/* INTRODUCTION */
.introduction-layout {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 40px;
  align-items: start;
}

/* 行の高さは本文側に合わせる。写真だけその中で縦中央 */
.introduction-photo {
  min-width: 0;
  align-self: center;
}

.introduction-photo-placeholder {
  aspect-ratio: 1;
  max-width: 280px;
  width: 100%;
  margin-inline: auto;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: stretch;
  overflow: hidden;
  background: linear-gradient(145deg, #e8f2ff 0%, #ede8ff 100%);
  border: 1px solid var(--accent-border);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.introduction-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.introduction-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
}

.introduction-body p + p {
  margin-top: 12px;
}

/* 英字見出し（INTRODUCTION）の下、本文より一段だけ強く。字間を少し空けて名刺的な落ち着き */
.introduction-name {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.45;
  margin: 0 0 6px;
}

/* 氏名の下の肩書き。スラッシュ直後でだけ折り返せるように HTML に <wbr> を入れる */
.introduction-role {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 14px;
}

.introduction-lead {
  font-weight: 500;
  margin-bottom: 8px;
}

.introduction-direction {
  margin-top: 24px;
  padding-top: 20px;
  position: relative;
}

.introduction-direction::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 100%);
  height: 2px;
  border-radius: 2px;
  background: var(--accent-grad-line-h);
}

.introduction-direction-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.introduction-direction-list {
  list-style: disc;
  padding-left: 1.25em;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.introduction-direction-list li + li {
  margin-top: 6px;
}


/* 白背景セクション（最終指定。これより前の同色指定は削除済み） */
#news.section,
#vision15.section,
#contact.section {
  background: #ffffff;
}

/* 理念 / INTRODUCTION */
#philosophy.section,
#introduction.section {
  background: var(--section-bg);
}


/* Experience */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  max-width: 640px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent-grad-line);
}

.timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 28px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, var(--hero-orange-0));
  border: 3px solid var(--hero-orange-4);
  box-shadow: 0 0 0 2px var(--bg), 0 2px 8px rgba(127, 57, 251, 0.2);
}

.timeline-period {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
  color: var(--hero-orange-6);
}

.timeline-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Contact */
.contact-intro {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 28px;
}

/* .btn-cta … CTA リンク */
.btn-cta {
  align-self: center;
  margin-top: 8px;
  padding: 12px 36px;
  border-radius: 999px;
  background: var(--accent-grad-btn);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(55, 0, 179, 0.25);
  transform: scale(1);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.35s ease,
    transform 0.5s ease;
}

a.btn-cta {
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

a.btn-cta-2 {
  align-self: center;
  margin-top: 8px;
  padding: 12px 36px;
  border-radius: 999px;
  background: var(--nav-header-bg);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(55, 0, 179, 0.25);
  transform: scale(1);
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.35s ease,
    transform 0.5s ease;
}

.contact-cta {
  margin-top: 40px;
  text-align: center;
}

/* 複数 CTA が並ぶとき（meetup フッター等）: 一番長いラベル幅に揃えて縦積み */
.contact-cta:has(> .btn-cta + .btn-cta) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  gap: 12px;
}

.contact-cta:has(> .btn-cta + .btn-cta) > .btn-cta {
  width: 100%;
  box-sizing: border-box;
  align-self: stretch;
  margin-top: 0;
}

.btn-cta:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 22px rgba(55, 0, 179, 0.32);
  transform: scale(1.06);
}

/*
 * トップページのフッター: body を相対配置の土台にして absolute で画面下へ。
 * サブページは末尾の .sub-page .footer { position: fixed } で上書きする。
 */
.footer {
  height: 100px;
  width: 100%;
  padding: 32px;
  text-align: center;
  font-size: 0.75rem;
  color: #424242;
  background-color: var(--concrete-footer-mid);
  background-image: var(--concrete-footer-bg-image);
  border-top: 1px solid rgba(0, 0, 0, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: absolute;
  bottom: 0;
}

/*
 * スクロール入場アニメ。
 * - html.js が付いたときだけ初期非表示（JS 無しでは普通に見える）
 * - .is-visible は script.js の IntersectionObserver が付与
 * - 各セクション末尾の --reveal-delay で出現タイミングをずらす
 */
html.js .reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 3.5rem, 0);
  transition:
    opacity var(--reveal-duration) var(--reveal-ease) var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: transform, opacity;
}

html.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

/* 入場方向。:not(.is-visible) に限定し、表示後の transform は .is-visible 側に任せる */
html.js .reveal-on-scroll.reveal-from--left:not(.is-visible) {
  transform: translate3d(-3.25rem, 0, 0);
}

html.js .reveal-on-scroll.reveal-from--right:not(.is-visible) {
  transform: translate3d(3.25rem, 0, 0);
}

/* PHILOSOPHY: 見出し → 写真・氏名 → 肩書き → リード → 続きの段落 → 資格 */
#philosophy .section-title.reveal-on-scroll {
  --reveal-delay: 0s;
}

#philosophy .philosophy-photo-placeholder.reveal-on-scroll {
  --reveal-delay: 0.35s;
}

#philosophy .philosophy-name.reveal-on-scroll {
  --reveal-delay: 0.4s;
}

#philosophy .philosophy-role.reveal-on-scroll {
  --reveal-delay: 0.52s;
}

#philosophy .philosophy-lead.reveal-on-scroll {
  --reveal-delay: 0.72s;
}

#philosophy .philosophy-body > p.reveal-on-scroll:not(.philosophy-lead):not(.philosophy-name):not(.philosophy-role) {
  --reveal-delay: 1.08s;
}

#philosophy .philosophy-direction.reveal-on-scroll {
  --reveal-delay: 1.42s;
}


/* VISION15: 見出し → 写真・氏名 → 肩書き → リード → 続きの段落 → 資格 */
#vision15 .section-title.reveal-on-scroll {
  --reveal-delay: 0s;
}

#vision15 .vision15-photo-placeholder.reveal-on-scroll {
  --reveal-delay: 0.35s;
}

#vision15 .vision15-name.reveal-on-scroll {
  --reveal-delay: 0.4s;
}

#vision15 .vision15-role.reveal-on-scroll {
  --reveal-delay: 0.52s;
}

#vision15 .vision15-lead.reveal-on-scroll {
  --reveal-delay: 0.72s;
}

#vision15 .vision15-body > p.reveal-on-scroll:not(.vision15-lead):not(.vision15-name):not(.vision15-role) {
  --reveal-delay: 1.08s;
}

#vision15 .vision15-direction.reveal-on-scroll {
  --reveal-delay: 1.42s;
}


/* INTRODUCTION: 見出し → 写真・氏名 → 肩書き → リード → 続きの段落 → 資格 */
#introduction .section-title.reveal-on-scroll {
  --reveal-delay: 0s;
}

#introduction .introduction-photo-placeholder.reveal-on-scroll {
  --reveal-delay: 0.35s;
}

#introduction .introduction-name.reveal-on-scroll {
  --reveal-delay: 0.4s;
}

#introduction .introduction-role.reveal-on-scroll {
  --reveal-delay: 0.52s;
}

#introduction .introduction-lead.reveal-on-scroll {
  --reveal-delay: 0.72s;
}

#introduction .introduction-body > p.reveal-on-scroll:not(.introduction-lead):not(.introduction-name):not(.introduction-role) {
  --reveal-delay: 1.08s;
}

#introduction .introduction-direction.reveal-on-scroll {
  --reveal-delay: 1.42s;
}

/* NEWS: 見出し → リード → タイムライン順 */
#news .section-title.reveal-on-scroll {
  --reveal-delay: 0s;
}

#news .section-lead.reveal-on-scroll {
  --reveal-delay: 0.35s;
}

#news .timeline-item.reveal-on-scroll:nth-child(1) {
  --reveal-delay: 0.4s;
}

#news .timeline-item.reveal-on-scroll:nth-child(2) {
  --reveal-delay: 0.6s;
}

#news .timeline-item.reveal-on-scroll:nth-child(3) {
  --reveal-delay: 0.8s;
}

#news .timeline-item.reveal-on-scroll:nth-child(4) {
  --reveal-delay: 1s;
}

/* CONTACT: 見出し → リード → CTA */
#contact .section-title.reveal-on-scroll {
  --reveal-delay: 0s;
}

#contact .contact-intro.reveal-on-scroll {
  --reveal-delay: 0.2s;
}

#contact .contact-cta.reveal-on-scroll {
  --reveal-delay: 0.4s;
}


/* OS「動きを減らす」: 入場アニメ無効。ナビは開閉だけ最低限残す */
@media (prefers-reduced-motion: reduce) {
  html.js .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
    --reveal-delay: 0s;
    will-change: auto;
  }

  .nav-mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 130;
    background: rgba(10, 10, 10, 0.8); 
    
    /* 状態制御の最小構成 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease; /* 速度を上げ、キレを出す */
  
    /* 中央揃えの基本構成 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* 開いた瞬間の「パッ」とした表示 */
  .nav-mobile-overlay.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-mobile-overlay .nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: none;
    border: none;
  }

  .nav-mobile-overlay .nav-links a {
    display: inline-block; /* [重要] transform を有効にするために必要 */
    position: relative;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 8px 0;
    /* transform を transition に追加。0.2s でキレを出す[cite: 3, 4] */transition: 
      transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), 
      opacity 0.3s ease;
  }
}

/* -------------------------------------------------------------------------- *
 * 768px 以下: ハンバーガー表示・全画面メニュー・グリッドを 1 列化
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  html.js .reveal-on-scroll {
    transform: translate3d(0, 1.5rem, 0); /* 3.5rem から 1.5rem へ軽減 */
  }

  html.js .reveal-on-scroll.reveal-from--left:not(.is-visible),
  html.js .reveal-on-scroll.reveal-from--right:not(.is-visible) {
    transform: translate3d(0, 1.5rem, 0); /* 左右移動を垂直移動に統合し、安全性を優先 */
  }

  .nav {
    width: 100%;
    padding: 10px 24px;
    flex-wrap: nowrap;
    isolation: isolate;
  }

  .nav-toggle {
    display: flex;
    order: 2;
    margin-left: auto;
    position: relative;
    z-index: var(--z-nav-chrome);
    pointer-events: auto;
  }

  .logo {
    order: 1;
    position: relative;
    z-index: 1;
    pointer-events: auto;
  }


  /* 全画面メニュー: display 切替ではなく opacity/visibility で開閉（閉じるアニメを出せる） */
.nav-mobile-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 130;
    
    /* 磨りガラス（blur）を全廃。鋭い「95%の漆黒」のみ。 */
    background: rgba(10, 10, 10, 0.95); 
    
    /* 状態制御の最小構成 */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease; /* 速度を上げ、キレを出す */
  
    /* 中央揃えの基本構成 */
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  /* 開閉状態の制御 */
.nav-mobile-overlay.nav-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* メニュー項目を縦並びに固定 */
.nav-mobile-overlay .nav-links {
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: none;
    border: none;
  }
  
.nav-mobile-overlay .nav-links a {
    display: inline-block; /* [重要] transformを効かせるための必須条件 */
    position: relative; /* アンダーラインの基準点 */
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif; /* 継承 */
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: 8px 0;
    transition: 
      transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), 
      opacity 0.3s ease;
  }

  /* アンダーラインの初期状態：中央から外へ広がる設計 */
  .nav-mobile-overlay .nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;         /* 中央から開始 */
    width: 0;          /* 最初は幅ゼロ */
    height: 2px;       /* 鋭く細いライン */
    background: var(--accent-grad-line-h-light); /* 指定のグラデーション */
    transform: translateX(-50%); /* 中央配置の維持 */
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1); /* Apple的な滑らかな加速 */
  }

  /* Hover時のテキスト自体の微かな変化（オプション） */
  .nav-mobile-overlay .nav-links a:hover {
    transform: scale(1.1); /* 5% だけ拡大。これが「直感的な楽しさ」の正体です */
    opacity: 0.7; /* 透過させず、白を際立たせる[cite: 3, 4] */
  }

  /* Hover時：ラインがスッと伸びる */
  .nav-mobile-overlay .nav-links a:hover::after {
    width: 100%; /* テキスト幅いっぱいに広がる */
  }

  .u-sp-only {
    display: block;
  }

  .philosophy-layout {
    grid-template-columns: 1fr;
  }

  .vision15-layout {
    grid-template-columns: 1fr;
  }

  .introduction-layout {
    grid-template-columns: 1fr;
  }

/*
 * CONTACT INFORMATION：スマホで2行に折り返したとき、テキストは左揃えのまま
 * 縦線（::before）が両行の左側にまたがる。769px以上は sub-page.css の inline-block のまま。
 */

  #form.sub-title-common {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    column-gap: 10px;
    min-width: 0;
  }

  #form.sub-title-common::before {
    flex-shrink: 0;
    width: 4px;
    margin-right: 0;
    height: auto;
    align-self: stretch;
  }
}


/* -------------------------------------------------------------------------- *
 * サブページ向け（styles.css に残す最小セット）
 * - 背景 / HOME 戻るリンク / フッター固定
 * - テーブルや2カラム等の骨格は sub-page.css
 * -------------------------------------------------------------------------*/

body.sub-page {
  background: linear-gradient(180deg, #f5f8ff 0%, var(--bg) 38%, var(--bg) 100%);
}

.sub-page .detail-back {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  transition: color 0.2s ease;
}

.sub-page .detail-back:hover {
  color: #fff;
}

.sub-page .detail-back:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 4px;
  border-radius: 2px;
}

/* サブページフッター固定（削除すると配置が変わるため維持） */
.sub-page .footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
}
