/* そらおは プロフィール紹介LP — styles.css
   設計仕様は DESIGN.md を参照。色はすべてCSS変数経由。生のhexを書かない。 */


:root {
  /* Backgrounds */
  --bg:          #FAFBFD;
  --surface:     #FFFFFF;
  --surface-alt: #EEF4FA;

  /* Borders */
  --border:      #E3E7EC;

  /* Text */
  --text:        #36414D;
  --text-muted:  #5F6B78;

  /* Accent */
  --accent:      #62A3D2;
  --accent-deep: #2F6F9E;
  --accent-soft: #E4EFF8;

  /* 差し色（暖色） */
  --sun:         #F0C069;
  --sun-deep:    #8A6212;

  /* ボタンの状態色（accent-deep の明度違い） */
  --on-accent:          #FFFFFF;
  --accent-deep-hover:  #285F89;
  --accent-deep-active: #245377;

  /* RGB variants */
  --bg-rgb:          250, 251, 253;
  --surface-rgb:      255, 255, 255;
  --surface-alt-rgb:  238, 244, 250;
  --border-rgb:       227, 231, 236;
  --text-rgb:         54, 65, 77;
  --text-muted-rgb:   95, 107, 120;
  --accent-rgb:       98, 163, 210;
  --accent-deep-rgb:  47, 111, 158;
  --accent-soft-rgb:  228, 239, 248;
  --sun-rgb:          240, 192, 105;
  --sun-deep-rgb:     138, 98, 18;

  --font-heading: "DM Sans", "Zen Kaku Gothic New", system-ui, sans-serif;
  --font-body: "DM Sans", "Noto Sans JP", system-ui, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.04em;
  line-break: strict;
  word-break: normal;
  overflow-wrap: anywhere;
}
img { max-width: 100%; display: block; }
h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-deep);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--accent-deep);
  color: var(--on-accent);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 12px; }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.prose {
  max-width: 36em;
}
/* 直後に全幅のカード列が続くセクションの見出しブロック。
   見出しだけを 36em の中央カラムに置くと、下のカードの左端と揃わず
   見出しが宙に浮いて見える。ここはカードと同じ幅に合わせる。
   読み物としての行長は、中のリード文だけで担保する。 */
.heading-block .lead {
  max-width: 36em;
}
.prose a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.js .prose a:hover { text-decoration-thickness: 2px; }

section {
  padding-block: clamp(56px, 10vw, 96px);
}
section + section {
  border-top: 1px solid var(--border);
}
.section-alt {
  background: var(--surface-alt);
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-deep);
  margin-bottom: 12px;
}

.section-heading {
  display: inline-block;
  position: relative;
  font-size: clamp(22px, 3.4vw, 30px);
  font-weight: 700;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
/* 見出しの文字幅にぴったり揃う下線。
   独立した短い線を上に浮かせると「何のための線か」が伝わらないため、
   見出しに結びつけて引く。暖色はここと引用の縦罫だけに残す。 */
.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--sun);
  border-radius: 999px;
}
@media (prefers-reduced-motion: no-preference) {
}

.lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ---------- Noise texture（極薄・装飾のみ） ---------- */
.grain {
  position: relative;
}
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 16px;
  padding-inline: clamp(16px, 4vw, 48px);
  background: rgba(var(--bg-rgb), 0.92);
  border-bottom: 1px solid var(--border);
}
.site-header .brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.site-header .btn { padding: 10px 22px; font-size: 15px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; flex-shrink: 0; }

.btn-primary {
  background: var(--accent-deep);
  color: var(--on-accent);
}
.js .btn-primary:hover { background: var(--accent-deep-hover); }
@media (prefers-reduced-motion: no-preference) {
  .js .btn:hover { transform: translateY(-1px); }
}
.btn-primary:active { background: var(--accent-deep-active); }

.btn-secondary {
  background: transparent;
  color: var(--accent-deep);
  border-color: var(--accent-deep);
}
.js .btn-secondary:hover { background: var(--accent-soft); }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(48px, 8vw, 80px);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 64px);
}
.hero-copy .eyebrow { margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 34em;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-image {
  display: flex;
  justify-content: center;
}
.portrait-frame {
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--surface);
  border: 4px solid var(--accent-soft);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(var(--text-rgb), 0.04), 0 8px 24px rgba(var(--text-rgb), 0.06);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

/* ---------- 困りごとリスト ---------- */
.pain-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.pain-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.pain-item svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-deep);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}
.pain-item p { color: var(--text); font-size: 16px; margin: 0; }

/* ---------- 自己紹介・ストーリー（読み物） ---------- */
.story-block {
  margin-top: 24px;
}
.story-block p {
  margin-bottom: 1.4em;
}
.story-block blockquote {
  margin: 24px 0;
  padding-left: 20px;
  border-left: 3px solid var(--sun);
}
.story-block blockquote p {
  font-size: 18px;
  color: var(--text);
  margin: 0;
}

/* ---------- 数字で見る活動 ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(var(--text-rgb), 0.04);
}
@media (prefers-reduced-motion: no-preference) {
  .js .stat-card:hover,
  .js .card:hover {
    border-color: var(--accent-deep);
    box-shadow: 0 1px 2px rgba(var(--text-rgb), 0.04), 0 8px 24px rgba(var(--text-rgb), 0.06);
  }
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 44px);
  font-weight: 700;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  /* 単位が2行目に回るカードと回らないカードが混ざるため、
     全カードで2行ぶんの高さを確保してラベルの位置を揃える */
  min-height: calc(1.2em * 2);
}
/* 「80回 / 以上」「4万人 / 規模」のように、数と但し書きを行で分ける */
.stat-suffix {
  display: block;
  font-size: 0.52em;
  font-weight: 700;
  line-height: 1.3;
}
.stat-label {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.stat-caption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- できること（3グループ） ---------- */
.service-group {
  padding-block: 32px;
  border-top: 1px solid var(--border);
}
.service-group:first-of-type { border-top: none; padding-top: 8px; }
.service-group h3 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 12px;
}
.service-group .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--surface-alt);
  color: var(--text);
  border-radius: 999px;
  font-size: 14px;
}
.service-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 受講した方の声 ---------- */
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px 40px;
  margin-top: 32px;
}
.voice {
  padding-left: 20px;
  border-left: 3px solid var(--sun);
}
.voice p.voice-quote {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 8px;
}
.voice p.voice-detail {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.voice cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- 受講後に起きた変化 ---------- */
.change-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.change-item h3 {
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.change-item p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- 対応エリア ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.area-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.area-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 10px;
}
.area-card svg { width: 20px; height: 20px; stroke: var(--accent-deep); fill: none; }
.area-card p { color: var(--text-muted); margin: 0; }

/* ---------- CTA ---------- */
.cta-section {
  text-align: center;
}
.cta-section .container { max-width: 640px; }
.cta-section h2 { margin-bottom: 16px; }
.cta-section p.lead { margin-bottom: 32px; }
.cta-section .btn-primary { padding-inline: 40px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 56px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
}
/* ---------- 保有資格（フッター上段） ---------- */
.credentials {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.credentials-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}
.credentials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.credentials-list li {
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.credentials-note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* ---------- ポートフォリオ（保有資格とSNSの間） ---------- */
.footer-portfolio {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
/* 1件だけなので、SNSカード1枚ぶんの幅に抑える（auto-fit のままだと全幅に伸びる）。
   下限を 0 にすると親が狭いときに潰れるため、1fr（内容の最小幅は保たれる）と max-width で書く */
.footer-portfolio .social-list {
  grid-template-columns: 1fr;
  max-width: 340px;
}

.footer-social-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 18px;
}
.social-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* アイコンだけでは何のSNSか伝わらないため、名称とアカウント名を必ず添える */
.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
}
.social-icon {
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.social-icon svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}
.social-icon svg.icon-solid { fill: currentColor; stroke: none; }
.social-icon svg .dot { fill: currentColor; stroke: none; }
.social-text { display: flex; flex-direction: column; min-width: 0; }
.social-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}
.social-handle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.js .social-link:hover {
  border-color: var(--accent-deep);
  background: var(--accent-soft);
}
.social-link:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Reveal（JS + no-preference のときだけ有効） ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* 下線は見出しが現れたあと、左から一度だけ引かれる */
  .js .section-heading.reveal::after {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease-out 0.15s;
  }
  .js .section-heading.reveal.is-in::after { transform: scaleX(1); }

  .js .reveal {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-image { order: -1; }
  .portrait-frame { width: 60%; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions .btn,
  .cta-section .btn { width: 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* 印刷・PDF保存では入場アニメの初期状態を無効にする。
   これが無いと、まだ画面に入っていない要素が opacity:0 のまま白紙で印刷される。 */
@media print {
  .js .reveal,
  .js .reveal.is-in {
    opacity: 1 !important;
    transform: none !important;
  }
  .site-header { position: static; }
}
