@charset "UTF-8";

/* ==========================================================================
   トークン
   Web フォントは読み込まない。file:// で開いても、CloudFront から配信しても
   追加のリクエストなしに同じ見た目になるようにするため。
   ========================================================================== */

:root {
  --bg:          #faf8f5;
  --surface:     #ffffff;
  --ink:         #1c1a18;
  --muted:       #6d655d;
  --line:        #e5ded4;
  --accent:      #b0512a;
  --accent-soft: #f3e6dd;

  /* 40rem ≒ 日本語で 40 字/行。本文・カード・リンクをすべてこの1列に揃える */
  --page:    40rem;
  --measure: 32rem;   /* ヒーローの導入文だけ少し狭くする */
  --gap:     clamp(3.5rem, 9vw, 6rem);

  --font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans",
          "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium",
          Meiryo, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:          #15120f;
    --surface:     #1d1916;
    --ink:         #ece6de;
    --muted:       #a2988c;
    --line:        #2e2822;
    --accent:      #e39264;
    --accent-soft: #2a1f18;
  }
}

/* ==========================================================================
   ベース
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  line-height: 1.4;
  letter-spacing: 0.01em;
  font-weight: 600;
  margin: 0;
}

p { margin: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a { color: inherit; }

strong {
  font-weight: 600;
  color: var(--accent);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.6rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 0 6px 0;
  text-decoration: none;
  z-index: 10;
}

.skip-link:focus { left: 0; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(4rem, 12vw, 7rem) 1.5rem clamp(3rem, 8vw, 4.5rem);
  text-align: center;
}

/* アイコンは正方形に切り出した画像を円形で見せる。
   元画像 assets/icon.png は余白が広いので、切り出し済みのものを使う。 */
.avatar {
  width: clamp(7.5rem, 22vw, 9.5rem);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 1px var(--line),
    0 0 0 8px var(--surface),
    0 14px 40px -18px rgb(28 26 24 / 45%);
}

@media (prefers-color-scheme: dark) {
  .avatar { box-shadow: 0 0 0 1px var(--line), 0 0 0 8px var(--surface); }
}

.hero__name {
  margin-top: 2rem;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  letter-spacing: 0.04em;
}

.hero__role {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* 肩書きは語の途中で折り返させない。狭い画面では「/」の位置で改行する */
.hero__role span { display: inline-block; }

.hero__sep {
  margin: 0 0.6em;
  color: var(--accent);
}

.hero__lede {
  max-width: var(--measure);
  margin: 1.75rem auto 0;
  text-align: left;
  text-wrap: pretty;
}

.hero__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__nav a {
  padding-bottom: 0.2rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.hero__nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ==========================================================================
   セクション
   ========================================================================== */

.section {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem var(--gap);
}

.section__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.subhead {
  margin: 2.5rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.prose {
  display: grid;
  gap: 1.5rem;
  text-wrap: pretty;
}

/* ==========================================================================
   カード / タグ
   ========================================================================== */

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  padding: 1.5rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.card__title {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.card__body {
  color: var(--muted);
  font-size: 0.925rem;
  text-wrap: pretty;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.3rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   開閉ブロック（職歴・学歴）
   ========================================================================== */

.disclosures {
  display: grid;
  gap: 0.75rem;
}

.disclosure {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.disclosure__summary {
  display: flex;
  align-items: center;
  padding: 1rem 1.4rem;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.18s ease;

  /* 既定の三角マーカーを消して、自前の山形に差し替える */
  list-style: none;
}

.disclosure__summary::-webkit-details-marker { display: none; }

.disclosure__summary:hover { color: var(--accent); }

.disclosure__summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-left: auto;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.disclosure[open] .disclosure__summary::after { transform: rotate(-135deg); }

.disclosure__summary:hover::after {
  border-color: var(--accent);
}

.disclosure__body {
  margin: 0 1.4rem;
  padding: 1.35rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

/* 経歴の縦線。線は親に持たせ、項目間で途切れないようにする */
.timeline {
  display: grid;
  gap: 1.6rem;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(-1.4rem - 4px);
  top: 0.6rem;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline__period {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.timeline__title {
  margin-top: 0.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline__note {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.875rem;
  text-wrap: pretty;
}

/* ==========================================================================
   リンク
   ========================================================================== */

.links {
  display: grid;
  gap: 0.75rem;
}

.link {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.15rem 1rem;
  padding: 1.15rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.link__label {
  font-weight: 600;
  letter-spacing: 0.04em;
}

.link__host {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}

.link:hover .link__host { color: var(--accent); }

.link__desc {
  grid-column: 1;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 30rem) {
  .link { grid-template-columns: 1fr; }

  .link__host {
    grid-row: auto;
    grid-column: 1;
    margin-top: 0.35rem;
  }
}

/* ==========================================================================
   フッター
   ========================================================================== */

.footer {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   モーションの抑制
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
