/* ===========================================================
   STORES Design System — Personal Profile
   実サイト computed style 実測（DESIGN.md）準拠
   =========================================================== */

:root {
  /* Brand */
  --brand: #4dabf7;        /* Brand Light Blue — 主要 CTA・リンク */
  --mint: #40f2b4;         /* Mint Accent — プロモ限定（常時表示には使わない） */

  /* Neutral — Warm Gray Scale */
  --black: #000000;        /* 見出し・主要テキスト */
  --near-black: #0a0a0a;   /* ナビ・補助・小ピル背景 */
  --warm-gray: #737368;    /* 補助テキスト（R=G>B のウォーム） */
  --surface: #f2f2f0;      /* カード／パネル面（ウォーム） */
  --border: #ebebe9;       /* セカンダリボーダー */
  --border-soft: #f2f2f0;  /* 極薄ライン */
  --white: #ffffff;

  /* Header overlay */
  --header-bg: rgba(255, 255, 255, 0.3);

  /* Radius scale */
  --radius-md: 8px;        /* カード・注釈 */
  --radius-lg: 16px;       /* 大カード・ポップオーバー */
  --radius-pill: 9999px;   /* CTA・ピル・タグ */

  /* Spacing (8px grid) */
  --space-xs: 4px;
  --space-s: 8px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 48px;
  --space-xxl: 80px;

  /* Elevation */
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.08);

  --max-width: 1200px;

  /* Font — ShoraiSansStdN 最優先。不在環境では Noto Sans JP を実配信（DESIGN.md §3.3 注記）。
     フォールバックは和文を持つ書体のみで構成し、欧文専用書体は挟まない。 */
  --font: ShoraiSansStdN, "Noto Sans JP", "Hiragino Sans",
    "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  /* 本文の基本リズム: 16px / line-height 1.75 / letter-spacing +0.02em */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

/* ---- Header / Navigation ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  /* border-bottom なし（DESIGN.md §4 Header） */
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-m) var(--space-l);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.nav__brand {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
}

.nav__brand:hover {
  opacity: 1;
}

.nav__links {
  display: flex;
  gap: var(--space-l);
  list-style: none;
}

.nav__links a {
  /* Nav Link: 14px / weight 400 / lh 1.0 / ls 0.02em / #0a0a0a */
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--near-black);
}

.nav__links a:hover {
  opacity: 0.6;
}

.nav__links a[aria-current="page"] {
  font-weight: 600;
  position: relative;
}

.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: var(--radius-pill);
}

/* ---- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-l);
}

section {
  padding: var(--space-xl) 0;
}

/* ---- Buttons ----------------------------------------------- */
.btn {
  display: inline-block;
  border-radius: var(--radius-pill); /* 完全ピル */
  font-family: var(--font);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

/* Primary CTA: bg #0066ff / 白文字 / pill / padding 12px 24px / 16px / 600 */
.btn--primary {
  background: var(--brand);
  color: var(--white);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
}

.btn--primary:hover {
  color: var(--white);
}

/* Secondary CTA: 白 / 文字 #0066ff / border 1px #ebebe9 / pill / padding 8px 16px / 14px / 600 */
.btn--secondary {
  background: var(--white);
  color: var(--brand);
  border: 1px solid var(--border);
  padding: 8px 16px;
  font-size: 14px;
}

/* ---- Hero -------------------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding: var(--space-xxl) 0 var(--space-xl);
  flex-wrap: wrap;
}

.hero__avatar {
  flex: 0 0 auto;
}

.hero__avatar img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  /* 基本フラット（box-shadow なし）。階層はウォームサーフェスで表現 */
  background: var(--surface);
}

.hero__body {
  flex: 1 1 320px;
}

.hero__eyebrow {
  /* Caption Bold: 14px / 600 / #0a0a0a */
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--near-black);
  margin-bottom: var(--space-s);
}

.hero h1 {
  /* Hero H1: 48px / 600 / lh 1.15 / ls -0.03em / #000 */
  font-size: clamp(2rem, 6vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: var(--space-m);
}

.hero p {
  /* Body: 16px / 400 / lh 1.75 / ls 0.02em / 補助は #737368 */
  color: var(--warm-gray);
  max-width: 46ch;
}

.hero__actions {
  margin-top: var(--space-l);
  display: flex;
  align-items: center;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* ---- Section headings -------------------------------------- */
.section-title {
  /* Section H2: 40〜48px / 600 / lh 1.15〜1.2 / ls -0.02em / #000 */
  font-size: clamp(1.75rem, 4vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: var(--space-s);
}

.section-lead {
  /* Body / 補助: #737368 */
  color: var(--warm-gray);
  margin-bottom: var(--space-xl);
  max-width: 60ch;
}

/* ---- Cards / Grid ------------------------------------------ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-l); /* Gutter 24px */
}

.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); /* 大カードは 16px */
  overflow: hidden;
  /* 基本フラット */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1); /* ホバー時のみ控えめに浮かす */
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-l);
}

/* タグ = ダークピル（"詳細" 系小ピル: bg #0a0a0a / 白 / 12px / 600 / pill） */
.card__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--near-black);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  margin-bottom: var(--space-m);
}

.card h3 {
  /* H3 Card Title: 24px / 600 / lh 1.4 / ls -0.02em / #000 */
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: var(--space-xs);
}

.card p {
  /* Caption: 14px / lh 1.75 / #737368 */
  font-size: 14px;
  color: var(--warm-gray);
}

/* ---- Hobby list -------------------------------------------- */
.hobbies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

/* ウォームサーフェスで階層を表現（フラット・ボーダーなし） */
.hobby {
  text-align: center;
  padding: var(--space-xl) var(--space-l);
  background: var(--surface);
  border-radius: var(--radius-md);
}

.hobby__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: var(--space-s);
}

.hobby h3 {
  /* H3 Sub: 20px / 600 / lh 1.4 / ls -0.02em */
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: var(--space-xs);
}

.hobby p {
  font-size: 14px;
  color: var(--warm-gray);
}

/* ---- Contact ----------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-l);
  margin-top: var(--space-xl);
}

.contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-l);
}

.contact-card__label {
  /* Small / Caption: 12px / #737368 ウォーム */
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: var(--space-s);
}

.contact-card a {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  word-break: break-all;
}

.contact-card span {
  font-size: 16px;
  font-weight: 600;
  color: var(--black);
}

.contact-portrait {
  margin-top: var(--space-xl);
  border-radius: var(--radius-lg); /* 大カードは 16px */
  overflow: hidden;
}

.contact-portrait img {
  width: 100%;
  height: auto;
}

/* ---- Footer ------------------------------------------------ */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border-soft); /* §4 Footer */
}

.site-footer .container {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-s);
}

.site-footer span {
  /* Small: 12px / 1.5 / 0.03em / #737368 */
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: var(--warm-gray);
}

/* ---- Responsive -------------------------------------------- */
/* lg = 1024px がモバイル／デスクトップの主閾値 */
@media (max-width: 600px) {
  .container,
  .nav {
    padding-left: var(--space-m);
    padding-right: var(--space-m);
  }
  .nav {
    justify-content: center;
  }
  .nav__links {
    gap: var(--space-m);
  }
  .hero {
    text-align: center;
    flex-direction: column;
    padding-top: var(--space-xl);
    gap: var(--space-l);
  }
  .hero p {
    margin: 0 auto;
  }
  .hero__actions {
    justify-content: center;
  }
  /* 本文 16px / lh 1.75 はモバイルでも維持（DESIGN.md §8） */
}
