@charset "UTF-8";
/* ==========================================================================
   Daichi Jin — Personal Site
   デザイン原本: ../../デザイン案/final.html （見た目の唯一の正）
   このファイルは final.html のインラインCSSを整理・変数化したもの。
   ==========================================================================
   TOC
   00. Tokens (CSS variables)
   01. Reset & base
   02. Layout (container)
   03. Header
   04. Hero
   05. Section folio
   06. About timeline
   07. Now cards
   08. Topics
   09. Projects
   10. Talk
   11. Contact
   12. Footer
   13. Responsive
   ========================================================================== */

/* ============ 00. Tokens ============ */
:root {
  /* 背景・面 */
  --bg:              #F8FAFC;
  --surface:         #FFFFFF;
  --surface-alt:     #E8EEF4; /* 写真プレースホルダー地 */

  /* 文字色 */
  --ink:             #0F172A; /* 見出し・本文最濃 */
  --ink-body:        #334155; /* 本文 */
  --ink-muted:       #475569; /* ナビ・補助 */
  --ink-soft:        #64748B; /* ラベル・キャプション */
  --ink-faint:       #94A3B8; /* 番号・フッター文字 */

  /* 罫線 */
  --line:            #E2E8F0;
  --line-strong:     #CBD5E1;
  --line-portrait:   #DCE4EC;

  /* アクセント（深緑） */
  --accent:          #0F766E;
  --accent-hover:    #115E59; /* ホバー専用に追加 */
  --accent-tint:     #F0FDFA;
  --accent-tint-2:   #CCECE8; /* ホバー時の面 */
  --accent-underline:#99CFC9;
  --accent-light:    #99F6E4; /* 深緑パネル上のラベル */
  --on-accent-body:  #D6F5EF; /* 深緑パネル上の本文 */

  /* 影 */
  --shadow-chip:       0 4px 14px rgba(15, 23, 42, 0.07);
  --shadow-btn:        0 1px 2px rgba(15, 118, 110, 0.25);
  --shadow-btn-hover:  0 4px 12px rgba(15, 118, 110, 0.28);

  /* 角丸 */
  --r-sm:  8px;
  --r-md:  10px;
  --r-xl:  16px;
  --r-2xl: 18px;
  --r-pill: 999px;

  /* レイアウト */
  --container: 1120px;
  --gutter: 24px;

  /* モーション */
  --t: 0.18s ease;
}

/* ============ 01. Reset & base ============ */
*,
*::before,
*::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

html,
body {
  background: var(--bg);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

img,
svg { max-width: 100%; }

/* アンカー着地時に見出しが上端に張り付かないように */
[id] { scroll-margin-top: 28px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: #FFFFFF;
  font-size: 13.5px; font-weight: 700;
  padding: 10px 16px; border-radius: var(--r-sm);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

/* ============ 02. Layout ============ */
.container {
  width: min(var(--container), 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ============ 03. Header ============ */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logotype {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 16.5px; letter-spacing: 0.01em; color: var(--ink);
  transition: opacity var(--t);
}
.logotype:hover { opacity: 0.7; }
.logotype .mark {
  width: 10px; height: 10px; border-radius: 3px; background: var(--accent);
  display: inline-block; flex: none;
}

nav.gnav { display: flex; align-items: center; gap: 32px; }
nav.gnav a.navlink {
  font-size: 14.5px; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.01em;
  transition: color var(--t);
}
nav.gnav a.navlink:hover { color: var(--accent); }

.nav-cta {
  font-size: 13.5px; font-weight: 700; color: var(--accent);
  border: 1.5px solid var(--accent); border-radius: var(--r-sm);
  padding: 9px 16px; background: var(--surface);
  transition: background-color var(--t), color var(--t);
}
.nav-cta:hover { background: var(--accent-tint); }

/* ============ 04. Hero ============ */
.hero { position: relative; padding: 88px 0 72px; overflow: hidden; }
.hero-rail {
  position: absolute; left: 70px; top: 96px;
  writing-mode: vertical-rl;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.4em;
  color: var(--ink-faint); text-transform: uppercase;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 400px; gap: 84px; align-items: start;
}
/* グリッドアイテムの自動最小幅を解除。これがないと 1fr 列が
   .portrait-wrap の 400px を下回れず、375px 幅で本文がはみ出す。 */
.hero-grid > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--accent);
  display: inline-block; flex: none;
}
.name-en {
  margin-top: 34px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.32em;
  color: var(--ink-muted); text-transform: uppercase;
}
h1.name {
  margin-top: 6px;
  font-size: 96px; line-height: 1.08; font-weight: 900;
  letter-spacing: 0.015em; color: var(--ink);
}
.catch {
  margin-top: 30px;
  font-size: 31px; line-height: 1.5; font-weight: 700;
  letter-spacing: 0.015em; color: var(--ink);
}
.catch .kw {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-underline);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
}
.lede {
  margin-top: 26px;
  font-size: 17px; line-height: 1.9; color: var(--ink-body);
  max-width: 580px; text-align: left;
}

.hero-chips { margin-top: 26px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-body);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 15px;
}
.chip svg { color: var(--accent); flex: none; }

.hero-actions { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15.5px; font-weight: 600; border-radius: var(--r-md);
  padding: 15px 26px; letter-spacing: 0.01em;
  transition: background-color var(--t), color var(--t), box-shadow var(--t), border-color var(--t);
}
.btn .arrow { transition: transform var(--t); flex: none; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--accent); color: #FFFFFF;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: var(--shadow-btn-hover); }
.btn-secondary {
  background: var(--surface); color: var(--accent);
  border: 1.5px solid var(--accent); font-weight: 700;
}
.btn-secondary:hover { background: var(--accent-tint); }

/* Portrait（写真プレースホルダー） */
.portrait-wrap { position: relative; margin-top: 52px; }
.portrait-frame {
  position: absolute; top: 22px; left: 22px; right: -22px; bottom: -22px;
  border: 1.5px solid var(--accent); border-radius: var(--r-2xl); opacity: 0.5;
  pointer-events: none;
}
.portrait {
  position: relative; width: 400px; height: 470px; max-width: 100%;
  background: var(--surface-alt); border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--line-portrait);
}
/* SVGプレースホルダー / 実写どちらでも枠いっぱいに収まる */
.portrait > svg,
.portrait > img {
  display: block; width: 100%; height: 100%;
}
.portrait > img { object-fit: cover; }

.portrait-chip {
  position: absolute; left: -30px; bottom: 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 20px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-chip);
  font-size: 13.5px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.portrait-chip .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  outline: 3px solid var(--accent-tint-2); flex: none;
}

/* ============ 05. Section folio ============ */
section.block { padding: 116px 0 0; }

.folio {
  display: flex; align-items: flex-end; gap: 22px; margin-bottom: 20px;
}
.folio .no {
  font-size: 62px; font-weight: 800; line-height: 0.86;
  color: var(--line-strong); letter-spacing: -0.02em;
}
.folio .titles { padding-bottom: 2px; }
.folio .en {
  display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent); text-transform: uppercase; margin-bottom: 8px;
}
.folio h2 {
  font-size: 37px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.2;
  color: var(--ink);
}
.folio .rule { flex: 1; min-width: 0; height: 1px; background: var(--line); margin-bottom: 10px; }

.section-lede {
  font-size: 16px; color: var(--ink-body); line-height: 1.8;
  max-width: 640px;
}

/* ============ 06. About timeline ============ */
.about-list { margin-top: 52px; border-top: 1px solid var(--line); }
.tl-row {
  display: grid; grid-template-columns: 170px 330px 1fr; gap: 32px;
  padding: 34px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.tl-period {
  font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent);
}
.tl-org h3 { font-size: 19.5px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.5; }
.tl-org .role {
  display: block; margin-top: 7px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em;
}
.tl-row p { font-size: 15.5px; line-height: 1.8; color: var(--ink-body); max-width: 560px; }

.about-closing {
  margin-top: 42px; border-left: 3px solid var(--accent); padding: 8px 0 8px 24px;
  font-size: 19.5px; font-weight: 700; line-height: 1.7; color: var(--ink);
}
.about-closing .kw { color: var(--accent); }

/* ============ 07. Story（読み物本体） ============
   カードやグリッドを使わず、縦一列の本文で読ませる。
   1行の長さは日本語で 38〜42字前後になるよう max-width を制限。 */
.story { margin-top: 44px; max-width: 720px; }
.story p {
  font-size: 17px; line-height: 2.0; color: var(--ink-body);
  letter-spacing: 0.01em;
}
.story p + p { margin-top: 28px; }

.pullquote {
  margin: 44px 0;
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 26px;
  font-size: 21px; line-height: 1.85; font-weight: 700;
  letter-spacing: 0.01em; color: var(--ink);
}
.story p + .pullquote { margin-top: 44px; }
.pullquote + p { margin-top: 0; }

/* ============ 08. Values panel ============ */
.values-panel {
  margin-top: 48px; max-width: 720px;
  background: var(--accent); border-radius: var(--r-xl); padding: 12px 38px 16px;
  color: #FFFFFF;
}
.value-item { padding: 26px 0 28px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.value-item:first-of-type { border-top: none; }
.value-item .vno {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent-light);
  display: block; margin-bottom: 10px;
}
.value-item h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 9px; letter-spacing: 0.01em; }
.value-item p { font-size: 15px; line-height: 1.8; color: var(--on-accent-body); }

/* ============ 10. Talk ============ */
.talk-band {
  margin-top: 116px;
  background: var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 104px 0 110px;
}
.talk-list { margin-top: 54px; border-top: 1px solid var(--line); }
.talk-row {
  display: grid; grid-template-columns: 64px 1fr 160px; gap: 28px;
  padding: 30px 0; border-bottom: 1px solid var(--line); align-items: center;
}
.talk-row .tno {
  font-size: 15px; font-weight: 700; color: var(--accent); letter-spacing: 0.1em;
}
.talk-row h3 { font-size: 20px; font-weight: 700; letter-spacing: 0.01em; line-height: 1.5; }
.talk-row p { font-size: 15.5px; line-height: 1.8; color: var(--ink-body); margin-top: 8px; max-width: 640px; }

.talk-link {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 700; color: var(--accent);
  transition: color var(--t);
}
.talk-link .arrow { transition: transform var(--t); flex: none; }
.talk-link:hover { color: var(--accent-hover); }
.talk-link:hover .arrow { transform: translateX(3px); }

/* ============ 11. Contact ============ */
.contact { padding: 128px 0 136px; text-align: center; }
.contact .en-label {
  font-size: 12px; font-weight: 700; letter-spacing: 0.24em; color: var(--accent);
  text-transform: uppercase;
}
.contact .en-label .cno { color: var(--ink-faint); margin-right: 10px; }
.contact h2 {
  margin-top: 20px; font-size: 46px; font-weight: 700; letter-spacing: 0.01em;
}
.contact .sub {
  margin-top: 20px; font-size: 16.5px; line-height: 1.9; color: var(--ink-body);
}
.personal-note {
  margin-top: 14px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.8;
}
.contact-actions {
  margin-top: 42px; display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap;
}
.contact .btn-primary { padding: 16px 30px; }

/* ============ 12. Footer ============ */
footer { background: var(--ink); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner .copy { font-size: 14px; color: var(--ink-faint); font-weight: 500; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a {
  font-size: 13px; color: var(--ink-faint); font-weight: 500; letter-spacing: 0.02em;
  transition: color var(--t);
}
.footer-nav a:hover { color: #FFFFFF; }

/* ==========================================================================
   13. Responsive
   主役は PC 1440px。以下は「幅を縮めても破綻しない」ための最低限の調整。
   ========================================================================== */

/* --- 装飾の縦組みラベルは、余白が足りなくなったら退避 --- */
@media (max-width: 1300px) {
  .hero-rail { display: none; }
}

/* --- ~1100px: ヒーロー / Topics を1カラムへ --- */
@media (max-width: 1100px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  /* width ではなく max-width。definite な width を持つグリッドアイテムは
     最小寄与がその値で固定され、1fr 列がビューポート幅を下回れなくなる。 */
  .portrait-wrap { margin-top: 8px; width: auto; max-width: 400px; }
  .portrait { width: 100%; height: auto; aspect-ratio: 400 / 470; }
  /* 1カラムになると写真が左端に来る。-30px のままだと画面外に切れるので浅くする */
  .portrait-chip { left: -16px; }
  .lede { max-width: none; }

  .topics-grid { grid-template-columns: 1fr; gap: 48px; }

  section.block { padding: 88px 0 0; }
  .talk-band { margin-top: 88px; padding: 80px 0 84px; }
  .contact { padding: 96px 0 104px; }
}

/* --- ~900px: ヘッダーを2段に、カード3列→2列、年表を2列に --- */
@media (max-width: 900px) {
  .header-inner {
    height: auto; min-height: 68px;
    flex-wrap: wrap; row-gap: 10px; padding: 12px 0;
  }
  nav.gnav {
    width: 100%; gap: 20px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  nav.gnav::-webkit-scrollbar { display: none; }
  nav.gnav a.navlink,
  .nav-cta { white-space: nowrap; flex: 0 0 auto; }

  h1.name { font-size: 76px; }
  .catch { font-size: 27px; }

  .folio .no { font-size: 52px; }
  .folio h2 { font-size: 31px; }

  .pullquote { font-size: 19.5px; }

  .tl-row { grid-template-columns: 140px 1fr; column-gap: 24px; row-gap: 12px; }
  .tl-row p { grid-column: 2; }

  .contact h2 { font-size: 38px; }
}

/* --- ~700px: すべて1カラム、行レイアウトを縦積みへ --- */
@media (max-width: 700px) {
  h1.name { font-size: 56px; }
  .catch { font-size: 23px; }
  .lede { font-size: 16px; }
  .name-en { margin-top: 26px; }

  .portrait-chip { bottom: 16px; padding: 11px 16px; font-size: 12.5px; }

  /* 見出しが長いセクションは番号が上段へ回り込む。
     無理に1行へ収めると番号と見出しが詰まり、右の罫線も潰れるため折返しを許可する。 */
  .folio { flex-wrap: wrap; gap: 14px; }
  .section-lede { font-size: 15.5px; }

  .story { margin-top: 32px; }
  .story p { font-size: 16px; line-height: 1.95; }
  .story p + p { margin-top: 24px; }
  .pullquote { font-size: 18px; margin: 34px 0; padding-left: 18px; }
  .story p + .pullquote { margin-top: 34px; }

  .values-panel { padding: 4px 24px 12px; }

  .tl-row { grid-template-columns: 1fr; row-gap: 10px; padding: 28px 0; }
  .tl-row p { grid-column: auto; }
  .about-closing { font-size: 17.5px; padding-left: 18px; margin-top: 32px; }

  .talk-row { grid-template-columns: 1fr; row-gap: 12px; align-items: start; }
  .talk-link { justify-self: start; }

  .contact h2 { font-size: 30px; }
  .contact .sub { font-size: 15.5px; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px 20px; }
}

/* --- ~420px (スマホ最小想定 375px) --- */
@media (max-width: 420px) {
  :root { --gutter: 16px; }

  h1.name { font-size: 46px; }
  .catch { font-size: 21px; }
  .eyebrow { font-size: 12px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }

  .portrait-frame { display: none; }
  .portrait-chip { left: -8px; } /* --gutter が 16px になるぶん浅く */

  .folio .no { font-size: 42px; }
  .folio h2 { font-size: 25px; }

  .talk-row h3 { font-size: 18.5px; }
  .pullquote { font-size: 17px; }

  .contact h2 { font-size: 27px; }
  .contact-actions { gap: 10px; }
}
