@charset "utf-8";
/* ==========================================================================
   こまルンラボ — komarunlab.ybcjr.com
   Claude Design のプロトタイプを静的サイトとして実装したスタイルシート。
   色・余白・角丸はデザインの値をそのまま採用しています。
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. デザイントークン
   -------------------------------------------------------------------------- */
:root {
  /* 面 */
  --bg:            #FCFDFB;
  --surface:       #fff;
  --tint:          #F4F8F3;
  --tint-2:        #F9FBF8;
  --tint-3:        #F3F8F2;
  --mint:          #EAF3E9;
  --cream:         #FFFDF3;
  --track:         #EFF4EE;

  /* 文字 */
  --ink:           #1F3B2D;
  --brand:         #2E6B4E;
  --brand-dark:    #22553C;
  --brand-light:   #4F9370;
  --text:          #4A6B5A;
  --text-2:        #5C7A6A;
  --text-3:        #6B8577;
  --label:         #7C9A88;
  --meta:          #8AA396;
  --faint:         #9DB3A6;

  /* アクセント */
  --accent:        #F7C948;
  --accent-dark:   #EFBB2E;
  --accent-ink:    #3B2F00;
  --accent-label:  #8A7326;
  --star:          #F0B92B;

  /* 濃色セクション用 */
  --on-dark-label: #8FB49E;
  --on-dark-text:  #B7CDBF;

  /* 罫線（ブランド緑のアルファ違い） */
  --line-08:  #2E6B4E14;
  --line-06:  #2E6B4E12;
  --line-10:  #2E6B4E1A;
  --line-12:  #2E6B4E1F;
  --line-14:  #2E6B4E24;
  --line-16:  #2E6B4E29;
  --line-20:  #2E6B4E33;
  --line-22:  #2E6B4E38;

  /* 影 */
  --shadow-xs: 0 2px 10px #1F3B2D08;
  --shadow-sm: 0 4px 18px #1F3B2D08;
  --shadow-md: 0 10px 34px #1F3B2D0D;
  --shadow-lg: 0 14px 44px #1F3B2D0F;
  --shadow-cta: 0 6px 20px #2E6B4E2E;

  /* レイアウト */
  --wrap:      1160px;
  --gutter:    clamp(20px, 5vw, 48px);
  --section-y: clamp(64px, 9vw, 116px);

  /* 書体 */
  --font-round: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic UI', sans-serif;
  --font-body:  'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', sans-serif;
}

/* --------------------------------------------------------------------------
   2. ベース
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

button, input, select, textarea { font-family: inherit; }

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

h1, h2, h3, p, dl, dd, figure, blockquote { margin: 0; }

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--brand);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform .2s;
}
.skip-link:focus { transform: none; color: #fff; }

/* ドット地のページ面。overflow-x は clip（hidden だと sticky が効かない） */
.page {
  max-width: 100%;
  overflow-x: clip;
  background-image: radial-gradient(#2E6B4E12 1px, transparent 1px);
  background-size: 24px 24px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   3. アニメーション
   -------------------------------------------------------------------------- */
@keyframes komaBob   { 0%,100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-12px) rotate(1.2deg); } }
@keyframes komaFloat { 0%,100% { transform: translateY(0); }                 50% { transform: translateY(-8px); } }
@keyframes komaPulse { 0%,100% { opacity: .5; transform: scale(1); }         50% { opacity: .95; transform: scale(1.08); } }
@keyframes komaSway  { 0%,100% { transform: rotate(-2.5deg); }               50% { transform: rotate(2.5deg); } }
@keyframes komaSayIn { from { opacity: 0; transform: translateY(10px); }      to { opacity: 1; transform: none; } }

/* スクロール連動フェードイン（JS 有効時のみ隠す） */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   4. 共通パーツ
   -------------------------------------------------------------------------- */

/* ---- ボタン ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-cta); }
.btn--primary:hover { color: #fff; }
.btn--ghost   { background: var(--surface); color: var(--brand); border: 1px solid var(--line-20); }
.btn--soft    { background: var(--tint);    color: var(--brand); border: 1px solid var(--line-16); }
.btn--accent  { background: var(--accent);  color: var(--accent-ink); }
.btn--accent:hover { color: var(--accent-ink); }

.btn--sm    { min-height: 44px; padding: 11px 20px; }
.btn--lg    { min-height: 56px; padding: 16px 30px; font-size: 16px; }
.btn--xl    { min-height: 56px; padding: 17px 24px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

@media (hover: hover) {
  .btn--primary:hover { background: var(--brand-dark); }
  .btn--ghost:hover   { background: var(--tint-3); }
  .btn--soft:hover    { background: var(--mint); }
  .btn--accent:hover  { background: var(--accent-dark); transform: translateY(-2px); }
  .btn--primary.btn--lg:hover,
  .btn--primary.btn--block:hover { transform: translateY(-2px); }
}

/* ---- チップ ---- */
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: nowrap;
}
.chip--mint   { background: var(--mint); color: var(--brand); letter-spacing: .14em; }
.chip--accent { background: var(--accent); color: var(--accent-ink); font-family: var(--font-round); font-weight: 700; }
.chip--xs     { padding: 3px 10px; font-size: 11.5px; letter-spacing: 0; }

/* ---- メーター ---- */
.meter {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}
.meter--sm { height: 7px; }
.meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
}

/* ---- 見出しブロック ---- */
.eyebrow {
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--label);
}
.eyebrow--onDark { color: var(--on-dark-label); }

.section-title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(26px, 4.4vw, 42px);
  line-height: 1.55;
  margin-top: 16px;
  color: var(--ink);
}
.section-title--onDark { color: #fff; }

.section-desc {
  margin-top: 18px;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
}
.section-desc--round { font-family: var(--font-round); color: var(--text); }

.section-note {
  margin: 0;
  max-width: 24em;
  font-size: 14.5px;
  color: var(--text-2);
}
.section-note--sm { font-size: 13px; color: var(--meta); }

.section-head--center { text-align: center; }
.section-head--narrow { max-width: 32em; margin-inline: auto; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

/* ---- 帯セクション（薄緑） ---- */
.band {
  background: var(--tint);
  border-top: 1px solid var(--line-06);
  border-bottom: 1px solid var(--line-06);
}
.band__inner { padding-block: var(--section-y); }

/* --------------------------------------------------------------------------
   5. ヘッダー
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FCFDFBD9;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-08);
}
.site-header__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__name {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .02em;
  color: var(--ink);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
/* :not(.btn) は必須。単に .site-nav a とすると詳細度が .btn--primary を上回り、
   CTAボタンの文字色（白）が上書きされて読めなくなる。 */
.site-nav a:not(.btn) { color: var(--text); white-space: nowrap; }
.site-nav a:not(.btn):hover { color: var(--brand-dark); }
.site-nav__cta { white-space: nowrap; box-shadow: 0 2px 10px #2E6B4E29; }

/* --------------------------------------------------------------------------
   6. ヒーロー
   -------------------------------------------------------------------------- */
.hero {
  padding-top: clamp(44px, 7vw, 96px);
  padding-bottom: clamp(28px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}
.hero__copy { flex: 1 1 430px; min-width: 300px; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--mint);
  color: var(--brand);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
}
.eyebrow-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: komaPulse 2.4s ease-in-out infinite;
}

.hero__title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(33px, 6vw, 60px);
  line-height: 1.45;
  letter-spacing: .01em;
  margin-top: 22px;
  color: var(--ink);
  text-wrap: pretty;
}
.marker {
  display: inline-block;
  color: var(--brand);
  background: linear-gradient(transparent 66%, #F7C94880 66%, #F7C94880 94%, transparent 94%);
}

.hero__lead {
  font-family: var(--font-round);
  font-weight: 500;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--brand);
  margin-top: 20px;
}
.hero__sub {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text);
  margin-top: 12px;
  max-width: 30em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}
.hero__actions .btn--ghost { padding: 16px 28px; }

.hero__visual {
  flex: 1 1 380px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.hero__stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}
.hero__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #E4F0E2 0%, #EFF6EE 60%, #FCFDFB00 72%);
}
.hero__figure {
  position: relative;
  width: clamp(210px, 64vw, 400px);
  aspect-ratio: 1 / 1.08;
  animation: komaBob 7s ease-in-out infinite;
}
.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s;
}
@media (hover: hover) {
  .hero__figure:hover img { transform: rotate(-3deg); }
}

/* 吹き出し */
.bubble {
  position: absolute;
  margin: 0;
  border-radius: 18px 18px 4px 18px;
  padding: 13px 17px;
  font-size: 13.5px;
  line-height: 1.7;
  text-align: left;
}
.bubble--ask {
  top: 0;
  right: 0;
  max-width: 15em;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-12);
  box-shadow: 0 8px 22px #1F3B2D14;
  animation: komaFloat 5.6s ease-in-out infinite;
  cursor: pointer;
  transition: transform .2s;
  white-space: pre-line; /* data.js の \n をそのまま改行として扱う */
}
@media (hover: hover) {
  .bubble--ask:hover { transform: translateY(-3px); }
}
.bubble--answer {
  bottom: 14%;
  left: 0;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 18px 18px 18px 4px;
  padding: 10px 16px;
  box-shadow: 0 8px 20px #2E6B4E33;
  animation: komaFloat 6.6s ease-in-out .9s infinite;
}

/* 今日のこまルン（メモ） */
.memo {
  width: min(100%, 400px);
  background: var(--cream);
  border: 1px solid #F7C94859;
  border-radius: 22px;
  padding: 22px 24px;
  box-shadow: 0 8px 24px #1F3B2D0D;
  transform: rotate(-1.2deg);
}
.memo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.memo__label {
  font-size: 12.5px;
  letter-spacing: .12em;
  color: var(--accent-label);
}
.memo__refresh {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
@media (hover: hover) { .memo__refresh:hover { background: var(--accent-dark); } }
.memo__text {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   7. 今日のうっかり
   -------------------------------------------------------------------------- */
.oops-section {
  padding-top: clamp(12px, 2vw, 24px);
  padding-bottom: clamp(64px, 9vw, 110px);
}
.oops {
  background: var(--surface);
  border: 1px solid var(--line-10);
  border-radius: 32px;
  padding: clamp(24px, 3.6vw, 44px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 3.4vw, 40px);
}
.oops__figure {
  flex: 0 0 auto;
  width: clamp(96px, 24vw, 148px);
  aspect-ratio: 1;
  border-radius: 26px;
  background: var(--tint);
  border: 1px solid var(--line-08);
  overflow: hidden;
}
.oops__figure img { width: 100%; height: 100%; object-fit: contain; }

.oops__body { flex: 1 1 300px; min-width: 250px; }
.oops__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.oops__metalabel { font-size: 12.5px; color: var(--meta); }
.oops__stars { color: var(--star); font-size: 16px; letter-spacing: .12em; }
.oops__line {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 31px);
  line-height: 1.6;
  color: var(--ink);
  text-wrap: pretty;
}
.oops__credit { font-size: 13px; color: var(--meta); margin-top: 14px; }
.oops__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 10px; }

/* --------------------------------------------------------------------------
   8. ABOUT
   -------------------------------------------------------------------------- */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  margin-top: clamp(36px, 5vw, 64px);
}
.about__figure { flex: 1 1 340px; min-width: 280px; display: flex; justify-content: center; }
.about__frame {
  position: relative;
  width: min(100%, 400px);
  aspect-ratio: 1 / 1.1;
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 32px;
  box-shadow: 0 10px 30px #1F3B2D0A;
  padding: 18px;
}
.about__frame img { width: 100%; height: 100%; object-fit: contain; }
.about__fig {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--faint);
}

.about__list { flex: 1 1 340px; min-width: 280px; display: grid; gap: 12px; }

.trait {
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 20px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-xs);
}
.trait__no {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 13px;
}
.trait__title { font-family: var(--font-round); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.trait__body  { font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* こまルンのステータスカード */
.status {
  background: var(--surface);
  border: 1px solid var(--line-12);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.status__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tint-2);
  border-bottom: 1px solid var(--line-10);
  padding: 12px 20px;
}
.status__title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: var(--brand);
}
.status__date { font-size: 12px; color: var(--meta); }
.status__body { padding: 20px 22px 22px; }
.status__row  { display: flex; align-items: center; gap: 14px; }
.status__avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line-08);
}
.status__avatar img { width: 100%; height: 100%; object-fit: contain; }
.status__level { flex: 1 1 auto; min-width: 0; }
.status__levelrow { display: flex; align-items: center; gap: 8px; }
.status__rank { font-family: var(--font-round); font-weight: 700; font-size: 16.5px; color: var(--ink); }
.status__levelrow + .meter { margin-top: 9px; }
.status__next { font-size: 11.5px; color: var(--meta); margin-top: 5px; }
.status__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.stat { background: var(--tint-2); border-radius: 16px; padding: 12px 8px; text-align: center; }
.stat__label { font-size: 11px; color: var(--meta); line-height: 1.5; }
.stat__value {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 2px;
}
.stat__unit { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-left: 1px; }

/* --------------------------------------------------------------------------
   9. FLOW
   -------------------------------------------------------------------------- */
.flow { padding-block: var(--section-y); }
.flow__icon {
  width: clamp(80px, 18vw, 110px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  animation: komaFloat 6.2s ease-in-out infinite;
}
.flow__icon img { width: 100%; height: 100%; object-fit: contain; }

.flow__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(36px, 5vw, 60px);
}
.step {
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 24px;
  padding: 30px 26px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
@media (hover: hover) {
  .step:hover { transform: translateY(-4px); box-shadow: 0 12px 28px #1F3B2D12; }
  .step:hover .step__pose { transform: rotate(-6deg); }
}
.step__head { display: flex; align-items: center; gap: 14px; }
.step__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  line-height: 1;
}
.step__pose {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint-2);
  border: 1px solid var(--line-08);
  transition: transform .3s;
}
.step__pose img { width: 100%; height: 100%; object-fit: contain; }
.step__no    { font-size: 12px; letter-spacing: .16em; color: var(--faint); margin-top: 22px; }
.step__title { font-family: var(--font-round); font-weight: 700; font-size: 20px; margin-top: 8px; color: var(--ink); }
.step__body  { font-size: 14.5px; color: var(--text-2); margin-top: 10px; }

/* --------------------------------------------------------------------------
   10. FIELD NOTE
   -------------------------------------------------------------------------- */
.fieldnote-section { padding-bottom: clamp(56px, 8vw, 100px); }
.fieldnote {
  background: var(--tint);
  border: 1px solid var(--line-08);
  border-radius: 32px;
  padding: clamp(24px, 4vw, 44px);
}
.fieldnote__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 3vw, 30px);
}
.fieldnote__title {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(19px, 2.6vw, 26px);
  margin-top: 10px;
  color: var(--ink);
}
.fieldnote__meta { font-size: 12.5px; color: var(--meta); }
.fieldnote__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.posecard {
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 22px;
  padding: 14px;
}
.posecard__img {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: var(--tint);
}
.posecard__img img { width: 100%; height: 100%; object-fit: contain; }
.posecard figcaption {
  margin: 12px 4px 2px;
  font-size: 13.5px;
  color: var(--text);
  text-align: center;
}

/* --------------------------------------------------------------------------
   11. 進行中の研究
   -------------------------------------------------------------------------- */
.research {
  border-top: 1px solid var(--line-06);
  border-bottom: 1px solid var(--line-06);
}
.research__inner { padding-block: clamp(64px, 9vw, 120px); }
.research__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(36px, 5vw, 56px);
}

.topic {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-12);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
@media (hover: hover) {
  .topic:hover { transform: translateY(-4px); box-shadow: 0 14px 32px #1F3B2D14; }
}
.topic__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--tint);
  border-bottom: 1px solid var(--line-10);
  border-radius: 21px 21px 0 0;
  padding: 14px 22px;
}
.topic__no {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .08em;
  color: var(--brand);
}
.topic__status {
  font-size: 12px;
  background: var(--surface);
  color: var(--brand);
  border: 1px solid var(--line-16);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.topic__stamp {
  position: absolute;
  top: 56px;
  right: 14px;
  transform: rotate(-11deg);
  border: 2px solid var(--line-22);
  color: #2E6B4E52;
  border-radius: 8px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .14em;
  padding: 4px 9px;
  pointer-events: none;
}
.topic__fold {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  background: linear-gradient(45deg, #FCFDFB 0%, #FCFDFB 48%, #E3EBE4 52%, #CBD8CE 100%);
  border-radius: 12px 0 21px 0;
  box-shadow: -2px -2px 4px #1F3B2D0F;
  pointer-events: none;
}
.topic__body {
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.topic__tags  { display: flex; align-items: center; gap: 8px; }
.topic__title { font-family: var(--font-round); font-weight: 700; font-size: 21px; line-height: 1.6; color: var(--ink); }
.topic__lead  { font-size: 14.5px; color: var(--text-2); flex: 1; }

.topic__dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-14);
  font-size: 13.5px;
}
.topic__dl dt { color: var(--meta); }
.topic__dl dd { color: var(--text); }
.topic__dl dd b { font-family: var(--font-round); font-weight: 700; font-size: 17px; color: var(--ink); }

.topic__progresshead {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--meta);
  margin-bottom: 6px;
}

/* 共同研究（アンケート） */
.poll {
  background: var(--tint-2);
  border: 1px dashed var(--line-20);
  border-radius: 18px;
  padding: 16px 18px;
}
.poll__label { font-size: 12px; letter-spacing: .12em; color: var(--label); margin-bottom: 8px; }
.poll__q     { font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.poll__opts  { display: flex; flex-wrap: wrap; gap: 8px; }
.poll__opt {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-16);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
@media (hover: hover) {
  .poll__opt:hover { background: var(--mint); transform: translateY(-1px); }
}
.poll__done { font-size: 14px; color: var(--brand); font-weight: 500; }
.poll__done small { display: block; color: var(--text-2); font-weight: 400; font-size: 14px; }

/* --------------------------------------------------------------------------
   12. RANKING
   -------------------------------------------------------------------------- */
.ranking { padding-block: var(--section-y); }
.ranking__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-start;
}
.ranking__intro { flex: 1 1 280px; min-width: 260px; }
.ranking__desc  { color: var(--text-2); font-size: 14.5px; margin-top: 18px; max-width: 22em; }
.ranking__period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
  background: var(--tint);
  border-radius: 999px;
  padding: 8px 16px;
}
.ranking__figure {
  margin-top: 26px;
  width: clamp(120px, 32vw, 180px);
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line-08);
}
.ranking__figure img { width: 100%; height: 100%; object-fit: contain; }

.ranking__list { flex: 1 1 420px; min-width: 290px; display: grid; gap: 10px; align-content: start; }
.rank {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 20px;
  box-shadow: 0 3px 14px #1F3B2D08;
  transition: transform .2s, box-shadow .2s;
}
@media (hover: hover) {
  .rank:hover { transform: translateY(-3px); box-shadow: 0 10px 24px #1F3B2D12; }
}
.rank__medal {
  flex: 0 0 auto;
  width: 34px;
  text-align: center;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 20px;
  color: var(--faint);
}
.rank__main { flex: 1 1 auto; min-width: 0; display: block; }
.rank__name { display: block; font-family: var(--font-round); font-weight: 700; font-size: 17px; color: var(--ink); }
.rank__main .meter { margin-top: 8px; }
.rank__count { flex: 0 0 auto; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.ranking__rest { margin: 6px 4px 0; font-size: 13px; color: var(--meta); }

/* --------------------------------------------------------------------------
   13. 4コマ
   -------------------------------------------------------------------------- */
.comic {
  position: relative;
  margin-top: clamp(28px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line-10);
  border-radius: 28px;
  padding: clamp(18px, 3vw, 30px);
  box-shadow: var(--shadow-md);
}
.comic__clip {
  position: absolute;
  top: -12px;
  left: 34px;
  width: 16px;
  height: 44px;
  border: 3px solid #B9C7BE;
  border-bottom-color: transparent;
  border-radius: 9px 9px 3px 3px;
  pointer-events: none;
}
.comic__code {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--faint);
  pointer-events: none;
}
.comic__tape {
  position: absolute;
  top: -9px;
  right: 56px;
  width: 78px;
  height: 22px;
  background: #F7C94859;
  border-left: 1px dashed #F7C94899;
  border-right: 1px dashed #F7C94899;
  transform: rotate(-3deg);
  pointer-events: none;
}
.comic__strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: clamp(12px, 1.8vw, 18px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.panel { scroll-snap-align: start; }
.panel__img {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line-08);
}
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
.panel__no {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-16);
  color: var(--brand);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.panel figcaption { font-size: 13.5px; color: var(--text); margin-top: 12px; text-align: center; }

.comic__foot { text-align: center; margin-top: clamp(20px, 3vw, 30px); }
.comic__end  { font-family: var(--font-round); font-weight: 700; font-size: 15px; color: var(--brand); margin-bottom: 6px; }
.comic__next { font-size: 13.5px; color: var(--meta); margin-bottom: 20px; }
.comic__foot .btn { min-height: 52px; padding: 14px 34px; }

/* --------------------------------------------------------------------------
   14. Instagram
   -------------------------------------------------------------------------- */
.ig { padding-block: clamp(64px, 9vw, 120px); }
.ig__avatar {
  width: clamp(84px, 18vw, 112px);
  aspect-ratio: 1;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line-08);
}
.ig__avatar img { width: 100%; height: 100%; object-fit: contain; }
.ig .section-desc { color: var(--text-2); font-size: 15px; }

.ig__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 2.2vw, 24px);
  margin-top: clamp(34px, 5vw, 56px);
}
.post {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line-08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s;
}
@media (hover: hover) {
  .post:hover { transform: translateY(-5px); box-shadow: 0 16px 34px #1F3B2D14; }
}
.post__img { position: relative; aspect-ratio: 1; background: var(--tint); }
.post__img img { width: 100%; height: 100%; object-fit: cover; }
.post__date {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #FFFFFFE6;
  color: var(--brand);
  font-size: 11.5px;
  letter-spacing: .08em;
  border-radius: 999px;
  padding: 4px 12px;
  pointer-events: none;
}
.post__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.post__title   { font-family: var(--font-round); font-weight: 700; font-size: 17px; line-height: 1.6; color: var(--ink); }
.post__excerpt { font-size: 13.5px; color: var(--text-2); flex: 1; }
.post__more    { font-size: 13.5px; font-weight: 500; color: var(--brand); margin-top: 6px; }

.ig__follow { text-align: center; margin-top: clamp(28px, 4vw, 40px); }
.ig__follow .btn { min-height: 52px; padding: 14px 32px; }

/* --------------------------------------------------------------------------
   15. 名言
   -------------------------------------------------------------------------- */
.quote {
  max-width: 900px;
  margin-inline: auto;
  padding: clamp(64px, 9vw, 120px) var(--gutter);
  text-align: center;
}
.quote__figure {
  width: clamp(88px, 20vw, 120px);
  aspect-ratio: 1;
  margin: clamp(18px, 3vw, 28px) auto 0;
  animation: komaSway 6s ease-in-out infinite;
}
.quote__figure img { width: 100%; height: 100%; object-fit: contain; }
.quote__text {
  margin-top: clamp(18px, 3vw, 28px);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(23px, 4vw, 38px);
  line-height: 1.65;
  color: var(--ink);
  text-wrap: pretty;
}
.quote__by { font-size: 13.5px; color: var(--meta); margin-top: 18px; }
.quote__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: clamp(24px, 4vw, 36px);
}
.quote__actions .btn { padding: 14px 26px; }
.quote__actions .btn--ghost { border-color: var(--line-16); }

/* --------------------------------------------------------------------------
   16. 研究成果（濃色）
   -------------------------------------------------------------------------- */
.output { background: var(--ink); color: #fff; }
.output__inner { padding-block: var(--section-y); }
.output__head  { max-width: 32em; }
.output__lead  { color: var(--on-dark-text); margin-top: 20px; font-size: 15.5px; }
.output__figure {
  width: clamp(110px, 22vw, 152px);
  aspect-ratio: 1;
  margin-top: clamp(20px, 3vw, 28px);
  background: #fff;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 8px 24px #0000001F;
  animation: komaFloat 6.8s ease-in-out infinite;
}
.output__figure img { width: 100%; height: 100%; object-fit: contain; }
.output__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2.4vw, 24px);
  margin-top: clamp(36px, 5vw, 56px);
}
.result {
  background: #FFFFFF0F;
  border: 1px solid #FFFFFF1F;
  border-radius: 24px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.result__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.result__code { font-size: 11.5px; letter-spacing: .14em; color: var(--on-dark-label); }
.result__soon {
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid #F7C94847;
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}
.result__phase {
  align-self: flex-start;
  font-size: 12px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 500;
}
.result__icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #FFFFFF17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  filter: grayscale(1) opacity(.7);
}
.result__title { font-family: var(--font-round); font-weight: 700; font-size: 19px; color: #fff; }
.result__body  { font-size: 14px; color: var(--on-dark-text); }

/* --------------------------------------------------------------------------
   17. 研究員募集フォーム
   -------------------------------------------------------------------------- */
.join { padding-block: var(--section-y); }
.join__layout {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  align-items: flex-start;
}
.join__intro { flex: 1 1 320px; min-width: 280px; }
.join__lead  { color: var(--text-2); margin-top: 20px; font-size: 15.5px; }
.join__note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  background: var(--tint);
  border-radius: 20px;
  padding: 18px 22px;
}
.join__note p { font-size: 14.5px; color: var(--text); }
.join__avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-08);
}
.join__avatar img { width: 100%; height: 100%; object-fit: contain; }

.join__card {
  flex: 1 1 380px;
  min-width: 290px;
  background: var(--surface);
  border: 1px solid var(--line-10);
  border-radius: 28px;
  padding: clamp(24px, 3.6vw, 38px);
  box-shadow: var(--shadow-md);
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
  padding: 0;
}
.form__control {
  display: block;
  width: 100%;
  border: 1px solid var(--line-16);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.form__control { resize: vertical; }
.form__control:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px #2E6B4E1F;
}
.form__control:focus-visible { outline: none; }

select.form__control {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #4A6B5A 50%), linear-gradient(135deg, #4A6B5A 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 14px) calc(50% + 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

/* 2つ目以降のラベル（「場所」「分類」）の上に余白を置く */
.form .form__label ~ .form__label { margin-top: 22px; }
.form__fieldset { border: none; padding: 0; margin: 22px 0 0; }
.form__fieldset .form__label { margin-bottom: 10px; }
.form__chips { display: flex; flex-wrap: wrap; gap: 10px; }

.catchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-16);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--bg);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.catchip input { accent-color: var(--brand); margin: 0; }
.catchip:has(input:checked) { background: var(--mint); border-color: var(--line-20); color: var(--brand); }
@media (hover: hover) { .catchip:hover { background: var(--tint); } }

/* ボット対策のおとり欄。display:none だと素通りするボットがいるので画面外に逃がす */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn[type="submit"] { margin-top: 30px; }
.form__privacy { text-align: center; font-size: 12.5px; color: var(--meta); margin-top: 14px; }
.form__error   { font-size: 13px; color: #B4523F; margin-top: 8px; }

.form-done { text-align: center; padding: 20px 0 10px; }
.form-done__icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}
.form-done__title { font-family: var(--font-round); font-weight: 700; font-size: 22px; margin-top: 22px; color: var(--ink); }
.form-done__text  { color: var(--text-2); font-size: 14.5px; margin-top: 12px; }
.form-done .btn   { margin-top: 26px; padding: 13px 28px; min-height: 48px; }

/* --------------------------------------------------------------------------
   18. フッター
   -------------------------------------------------------------------------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line-08); }
.site-footer__top {
  padding-top: clamp(64px, 9vw, 110px);
  padding-bottom: clamp(48px, 6vw, 72px);
  text-align: center;
}
.site-footer__figure {
  position: relative;
  width: clamp(210px, 48vw, 330px);
  margin: 0 auto clamp(18px, 3vw, 30px);
}
.site-footer__sleep {
  aspect-ratio: 860 / 614;
  animation: komaFloat 7.4s ease-in-out infinite;
}
.site-footer__sleep img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__bubble {
  position: absolute;
  top: 2px;
  right: -10px;
  background: var(--surface);
  border: 1px solid var(--line-12);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 15px;
  font-size: 13px;
  color: var(--text);
  box-shadow: 0 8px 20px #1F3B2D12;
  animation: komaFloat 5.4s ease-in-out infinite;
  white-space: nowrap;
}
.site-footer__note { font-size: 14px; color: var(--text-3); margin-bottom: 18px; }
.site-footer__lead {
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.75;
  color: var(--ink);
  text-wrap: pretty;
}
.site-footer__top .btn { margin-top: 34px; padding: 16px 34px; }

.site-footer__bottom { padding-bottom: 40px; }
.site-footer__cols {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--line-10);
  padding-top: 40px;
}
.site-footer__brand { flex: 1 1 260px; min-width: 240px; }
.site-footer__brandrow { display: flex; align-items: center; gap: 12px; }
.site-footer__mark {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-10);
}
.site-footer__mark img { width: 100%; height: 100%; object-fit: contain; }
.site-footer__name { font-family: var(--font-round); font-weight: 700; font-size: 18px; color: var(--ink); }
.site-footer__desc { color: var(--text-2); font-size: 14px; margin-top: 16px; max-width: 26em; }

.site-footer__nav { display: flex; gap: clamp(28px, 5vw, 64px); flex-wrap: wrap; }
.site-footer__group { display: grid; gap: 10px; font-size: 14px; align-content: start; }
.site-footer__group a { color: var(--text); }
.site-footer__group a:hover { color: var(--brand-dark); }
.site-footer__grouplabel { font-size: 12px; letter-spacing: .14em; color: var(--faint); }

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-10);
  margin-top: 36px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--meta);
}

/* --------------------------------------------------------------------------
   19. こまルンのつぶやき（固定）
   -------------------------------------------------------------------------- */
.say {
  position: fixed;
  right: 16px;
  bottom: 96px;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(76vw, 320px);
  animation: komaSayIn .35s ease-out;
  pointer-events: none;
}
.say[hidden] { display: none; }
.say__text {
  background: var(--surface);
  border: 1px solid var(--line-12);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  box-shadow: 0 10px 26px #1F3B2D14;
  text-align: right;
  white-space: pre-line; /* data.js の \n をそのまま改行として扱う */
}
.say__avatar {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line-12);
  box-shadow: 0 6px 18px #1F3B2D14;
}
.say__avatar img { width: 100%; height: 100%; object-fit: contain; }

/* --------------------------------------------------------------------------
   20. モバイル固定バー / レスポンシブ調整
   -------------------------------------------------------------------------- */
.mobilebar,
.mobilebar__spacer { display: none; }

/* ナビが折り返して追従ヘッダーが分厚くなる幅では、1行のまま横スクロールさせる。
   justify-content:flex-end のままだと溢れた分が左に出てスクロールできないので flex-start に。 */
@media (max-width: 899px) {
  .site-nav {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
  }
  .site-nav > * { flex: 0 0 auto; }
  .site-nav::-webkit-scrollbar { display: none; }
}

@media (max-width: 759px) {
  /* CTA は画面下の固定バーが担当するのでヘッダーからは外す */
  .site-nav__cta { display: none; }

  .mobilebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    gap: 10px;
    background: #FCFDFBF2;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line-10);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  }
  .mobilebar .btn {
    flex: 1 1 auto;
    min-height: 52px;
    font-size: 15px;
    box-shadow: none;
  }
  .mobilebar__sub { flex: 0 0 auto; padding: 0 18px; }
  .mobilebar__spacer { display: block; height: 74px; }

  .say { bottom: 96px; }
}

@media (max-width: 520px) {
  /* 吹き出しがヒーロー画像に重なりすぎないよう微調整 */
  .bubble--ask { max-width: 11em; font-size: 12.5px; padding: 10px 13px; }
  .bubble--answer { font-size: 12.5px; padding: 8px 13px; }
  .site-footer__bubble { right: -4px; font-size: 12px; }
  .oops__actions .btn { flex: 1 1 auto; }
}

@media print {
  .site-header, .mobilebar, .mobilebar__spacer, .say, .skip-link { display: none !important; }
  .page { background: none; }
}
