/* ============================================================
   きづき公式サイト 共通スタイル
   デザインシステム「インクとマーカー」
   カラーの正: /otayori-ai/expo/constants/colors.ts
   ============================================================ */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* 基本 */
  --bg: #FAF7F0;            /* 生成り（紙） */
  --card: #FFFFFF;          /* 白カード（プリント用紙） */
  --text: #26334F;          /* 藍墨インク（標準テキスト） */
  --text-light: #5F6B89;    /* 薄れたインク（補足文） */
  --text-muted: #A8AFC2;    /* 非活性 */
  --border: #EAE4D6;        /* 罫線（紙の薄茶） */
  /* 役割の3色 */
  --primary: #C9401F;       /* 朱: CTA・行動 */
  --secondary: #3D5A99;     /* 藍: リンク・情報・アイコン線 */
  --highlight: #FFD43B;     /* マーカー黄: 「AIの気づき」専用 */
  --highlight-bg: #FFF9E3;  /* ふせん風の面 */
  --highlight-text: #5C4A00;/* ふせん上の文字 */
  /* 濃色面 */
  --ink-bg: #26334F;        /* フッター等の藍墨 */
  /* マスキングテープ6色（家族メンバー色） */
  --mt-sakura: #F6C6BB;  --mt-seiji: #BFE3DB;  --mt-sora: #C3D8F0;
  --mt-fuji: #EBD3EE;    --mt-wakaba: #CDE3B4; --mt-yamabuki: #FFE08A;
  /* マステ対応の文字用濃色 */
  --mt-sakura-text: #A14431; --mt-seiji-text: #1D5C50; --mt-sora-text: #2F5380;
  --mt-fuji-text: #7A4380;   --mt-wakaba-text: #48662A; --mt-yamabuki-text: #7A5800;
  /* フォント */
  --font-heading: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont,
    'Hiragino Maru Gothic ProN', 'Hiragino Sans', sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Segoe UI', Roboto, sans-serif;
  /* 紙の影 */
  --shadow-paper: 0 1px 2px rgba(38, 51, 79, .06), 0 8px 24px rgba(38, 51, 79, .08);
}

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

html {
  scroll-behavior: smooth;
  /* stickyナビの下にアンカーが隠れないように。
     880px 未満はナビが2段に折り返す（実高 約114px）ため大きめに取る。 */
  scroll-padding-top: 114px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 紙テクスチャ（SVG feTurbulence、全面オーバーレイ） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--secondary); }

img { max-width: 100%; height: auto; }

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

::selection { background: var(--highlight-bg); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- 3. ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn--primary {
  background: var(--primary);
  color: #FFFFFF;
  padding: 13px 30px;
  box-shadow: 0 1px 2px rgba(38, 51, 79, .08), 0 2px 6px rgba(38, 51, 79, .12);
}

.btn--primary:hover {
  background: #B2371A;
  box-shadow: 0 1px 2px rgba(38, 51, 79, .1), 0 4px 10px rgba(38, 51, 79, .16);
  transform: translateY(-1px);
}

.btn--small {
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 8px;
}

/* ---------- 4. ナビゲーション（全ページ共通） ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 12px;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  padding: 6px 0;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
}

.site-nav__brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: block;
}

.site-nav__links {
  display: flex;
  align-items: center;
  order: 3;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav__links::-webkit-scrollbar { display: none; }

.site-nav__links a {
  display: inline-block;
  padding: 12px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.site-nav__links a:hover {
  color: var(--secondary);
  background: rgba(61, 90, 153, .08);
}

.site-nav__cta { order: 2; }

@media (min-width: 880px) {
  html { scroll-padding-top: 76px; } /* ナビが1段になるので実高 約70px */
  .site-nav { padding: 10px 20px; }
  .site-nav__links { order: 2; width: auto; margin-right: 4px; }
  .site-nav__cta { order: 3; }
}

/* ---------- 5. フッター（全ページ共通） ---------- */
.site-footer {
  background: var(--ink-bg);
  color: #FFFFFF;
  margin-top: 96px;
  padding: 52px 20px 44px;
}

.site-footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
}

.site-footer__brand img {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 8px;
}

.site-footer__links a {
  display: inline-block;
  padding: 10px 12px;
  color: #D5DAE6;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s ease;
}

.site-footer__links a:hover { color: #FFFFFF; text-decoration: underline; }

.site-footer__copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---------- 6. マーカーハイライト（「AIの気づき」専用） ---------- */
/* 手描き風: 微回転・不規則な角丸・左右へのはみ出し */
.marker {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -.18em;
  right: -.3em;
  top: 14%;
  bottom: 2%;
  background: var(--highlight);
  border-radius: .3em .5em .4em .6em / .5em .3em .6em .4em;
  transform: rotate(-1deg);
}

/* 折り返す行内テキスト用（おたより紙面のハイライト） */
.marker-line {
  background: #FFD43BB3; /* アプリ HighlightText と同値 */
  color: var(--text);
  padding: .08em .3em;
  border-radius: .3em .5em .4em .6em / .5em .3em .6em .4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- 7. マスキングテープ ---------- */
.washi {
  position: absolute;
  width: 92px;
  height: 24px;
  opacity: .85;
  box-shadow: 0 1px 2px rgba(38, 51, 79, .1);
  /* 両端をまっすぐ切らない（僅かなギザ） */
  clip-path: polygon(1.5% 0, 98% 3%, 100% 28%, 98.5% 52%, 100% 78%, 97.5% 100%, 2.5% 97%, 0 74%, 1.5% 46%, 0 18%);
  pointer-events: none;
}

.washi--sakura   { background: var(--mt-sakura); }
.washi--seiji    { background: var(--mt-seiji); }
.washi--sora     { background: var(--mt-sora); }
.washi--fuji     { background: var(--mt-fuji); }
.washi--wakaba   { background: var(--mt-wakaba); }
.washi--yamabuki { background: var(--mt-yamabuki); }

/* カード上端どめ（中央） */
.washi--top {
  top: -12px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
}

/* ---------- 8. 文書カード（サブページ共通・おしらせ文書） ---------- */
.doc-main {
  max-width: 780px;
  margin: 48px auto 0;
  padding: 0 20px;
}

.doc-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px 44px;
  box-shadow: var(--shadow-paper);
}

.doc-card h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

.doc-card h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--secondary);
}

.doc-card h3 {
  font-size: 17px;
  margin: 28px 0 10px;
}

.doc-card p { margin-bottom: 14px; }

.doc-card ul, .doc-card ol {
  padding-left: 1.5em;
  margin-bottom: 14px;
}

.doc-card li { margin-bottom: 8px; }

/* 本文リンクのみ。ボタン(.btn)は自身の配色を保つ（詳細度で負けないよう除外） */
.doc-card a:not(.btn) { color: var(--secondary); }

.doc-note {
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 640px) {
  .doc-card { padding: 36px 22px; }
  .doc-card h1 { font-size: 24px; }
}

/* ---------- 9. セクション共通（index） ---------- */
.section {
  padding: 84px 0 0;
}

.section__title {
  font-size: clamp(26px, 3.4vw, 32px);
  text-align: center;
  margin-bottom: 12px;
}

.section__lead {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 44px;
}

/* スクロール演出（JSが有効なときだけ効く。reduced-motionで無効化） */
.reveal--ready {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .32s ease-out, transform .32s ease-out;
}
.reveal--ready.reveal--in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal--ready { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* 印刷・スクロールなしのレンダリング時は演出前の非表示状態を解除する
   （Googleカレンダー連携などの必須セクションが空白にならないように） */
@media print {
  .reveal--ready { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   ここから index.html 専用
   ============================================================ */

/* ---------- 10. ヒーロー ---------- */
.hero {
  position: relative;
  padding: 72px 0 40px;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px;
  align-items: center;
}

.hero__copy { position: relative; max-width: 34em; }

.hero__copy > .washi {
  top: -44px;
  left: -14px;
  transform: rotate(-6deg);
}

.hero__title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.55;
  margin-bottom: 22px;
}

.hero__sub {
  color: var(--text-light);
  font-size: 16.5px;
  line-height: 1.9;
  margin-bottom: 14px;
}

/* アプリの事実説明（OAuth審査・初見の来訪者向け）。hero__sub はフック、こちらは説明 */
.hero__desc {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.9;
  margin-bottom: 30px;
}

.hero__cta { margin-bottom: 12px; }

.hero__note {
  color: var(--text-light);
  font-size: 13px;
  margin-bottom: 30px;
}

.hero__app {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(38, 51, 79, .05);
}

.hero__app img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.hero__app-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
}

.hero__app-desc {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.4;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.hero__visual > .washi--a {
  top: 4px;
  right: 10%;
  transform: rotate(8deg);
}

.hero__visual > .washi--b {
  bottom: 10px;
  left: 8%;
  transform: rotate(-5deg);
}

@media (max-width: 900px) {
  .hero { padding-top: 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__copy { max-width: none; }
  .hero__copy > .washi { left: auto; right: 4px; top: -30px; }
}

/* ---------- 11. iPhoneモックアップ（実アプリのホーム画面を再現） ---------- */
.phone {
  width: 302px;
  flex: none;
  background: #1C2536; /* 藍墨系ベゼル */
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 2px 4px rgba(38, 51, 79, .12), 0 24px 48px rgba(38, 51, 79, .2);
}

.phone__screen {
  position: relative;
  background: var(--bg);
  border-radius: 35px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
}

.phone__island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 78px;
  height: 21px;
  background: #1C2536;
  border-radius: 11px;
}

.phone__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
}

.phone__status svg { display: block; }

/* アプリのホームヘッダー: 日付+時間帯 / 右に設定・ベルの白丸 */
.phone__mast {
  display: flex;
  align-items: center;
  padding: 14px 16px 0;
}

.phone__mast-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-right: 6px;
}

.phone__mast-part {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
  margin-right: auto;
}

.phone__iconbtn {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(38, 51, 79, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  color: var(--text-light);
}

.phone__badge {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  font-size: 8px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.phone__body { padding: 14px 16px 12px; }

/* 「きづき」ラベル行: 黄色い小さな四角 + きづき */
.phone__kizuki {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.phone__kizuki-square {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--highlight);
}

.phone__kizuki-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-light);
}

/* 2行見出し: 2行目だけマーカー */
.phone__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 12px;
}

.phone__headline .hl {
  background: #FFD43BB3;
  padding: 0 .15em;
  border-radius: .25em .4em .3em .5em;
}

/* やることカード（押印スタイル） */
.phone__todo {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 12px;
  margin-bottom: 12px;
}

.phone__stamp {
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px dashed #B07A00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  color: #B07A00;
}

.phone__todo-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.phone__todo-sub {
  font-size: 10px;
  color: var(--text-light);
}

/* スキャンCTA（朱・角丸14） */
.phone__scan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--primary);
  color: #FFF;
  border-radius: 12px;
  padding: 11px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 3px 6px rgba(201, 64, 31, .3);
  margin-bottom: 9px;
}

/* 予定を追加（破線） */
.phone__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed #C9401F40;
  background: #C9401F08;
  color: var(--primary);
  border-radius: 12px;
  padding: 9px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* きづきにきく…（下部の丸ピル） */
.phone__ask {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 19px;
  padding: 8px 8px 8px 13px;
  margin: 0 0 10px;
}

.phone__ask-text {
  flex: 1;
  font-size: 11px;
  color: var(--text-light);
}

.phone__ask-send {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--text); /* 実装どおり: 無地の藍墨の円 */
}

/* タブバー: いま / よてい / [カメラ] / おたより / かぞく */
.phone__tabbar {
  position: relative;
  display: flex;
  align-items: flex-start;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 7px 4px 14px;
}

.phone__tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 600;
  color: var(--text-muted); /* 非アクティブ */
}

.phone__tab--active { color: var(--primary); }

.phone__tab-fab {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone__fab {
  width: 46px;
  height: 46px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--primary);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(201, 64, 31, .35);
}

/* ---------- 12. デモセクション（おたより → 予定） ---------- */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 26px;
}

/* 学校プリント */
.print {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 34px 24px 24px 38px;
  box-shadow: var(--shadow-paper);
  transform: rotate(-1.2deg);
}

.print > .washi--top { transform: translateX(-50%) rotate(-3deg); }

/* パンチ穴（左辺に2つ） */
.print::before,
.print::after {
  content: "";
  position: absolute;
  left: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(38, 51, 79, .22);
}

.print::before { top: 26%; }
.print::after { top: 66%; }

.print__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  margin-bottom: 2px;
}

.print__from {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}

.print__line {
  font-size: 13px;
  line-height: 1.7;
  padding: 7px 0;
  border-bottom: 1px dashed var(--border);
}

.print__line:last-child { border-bottom: none; }

/* 変換フロー（中央） */
.demo-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 104px;
}

.demo-flow__check {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink-bg);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-flow__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
}

.demo-flow__arrow { color: var(--secondary); }

/* アプリの予定カード（EventCardフル版に忠実） */
.event-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.event-card {
  background: var(--card);
  border-radius: 14px;
  padding: 14px;
  border-left: 4px solid var(--mt-sakura);
  box-shadow: 0 2px 8px rgba(38, 51, 79, .06);
}

.event-card--sora { border-left-color: var(--mt-sora); }
.event-card--wakaba { border-left-color: var(--mt-wakaba); }

.event-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.event-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* メンバータグ（マステ色地 + 白丸アバター + 濃色文字） */
.member-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.member-tag::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
}

/* 桜のみ: マステ地(#F6C6BB)の上では --mt-sakura-text(#A14431) が 4.05:1 で AA 未達。
   トークン(colors.ts が正)は変更せず、Web 側だけ #8F3C2B(4.81:1) に上書きする。 */
.member-tag--sakura { background: var(--mt-sakura); color: #8F3C2B; }
.member-tag--sora   { background: var(--mt-sora);   color: var(--mt-sora-text); }
.member-tag--wakaba { background: var(--mt-wakaba); color: var(--mt-wakaba-text); }

.event-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  color: var(--text-light);
}

.event-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-card__meta svg { flex: none; }

.demo-caption {
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 22px;
  }
  .print { max-width: 440px; width: 100%; }
  .event-stack { max-width: 440px; width: 100%; }
  .demo-flow { flex-direction: row; }
  .demo-flow__arrow { transform: rotate(90deg); }
}

/* ---------- 13. 特徴セクション ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  align-items: stretch;
}

.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 34px 26px 28px;
  box-shadow: var(--shadow-paper);
  transition: box-shadow .2s ease;
}

.feature-card:nth-child(1) { transform: rotate(-1deg); }
.feature-card:nth-child(3) { transform: rotate(.8deg); }

.feature-card__icon {
  color: var(--secondary);
  margin-bottom: 14px;
}

.feature-card__icon svg { display: block; }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-family: var(--font-heading);
}

.feature-card p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.9;
}

@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ---------- 14. 使い方セクション ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: start;
}

.step {
  text-align: center;
  padding: 0 6px;
}

/* 朱の丸スタンプ風の番号 */
.step__stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: #FFFFFF;
  transform: rotate(-6deg);
  margin-bottom: 14px;
}

.step__figure {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--secondary);
}

.step h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.step p {
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.9;
  text-align: left;
  max-width: 17em;
  margin: 0 auto;
}

/* 手描き風の点線矢印（藍） */
.step-arrow {
  color: var(--secondary);
  align-self: center;
  padding-top: 8px;
}

.step-arrow svg { display: block; }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step-arrow {
    justify-self: center;
    transform: rotate(90deg);
    padding: 4px 0;
  }
}

/* ---------- 15. Googleカレンダー連携（おしらせ文書風） ---------- */
.gcal-card {
  max-width: 820px;
  margin: 0 auto;
}

.gcal-card .washi--top { transform: translateX(-50%) rotate(2deg); }

.gcal-content {
  font-size: 15px;
  line-height: 1.9;
  color: var(--text);
}

.gcal-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  margin: 32px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--secondary);
  color: var(--text);
}

.gcal-list {
  padding-left: 1.4em;
  margin-bottom: 8px;
}

.gcal-list li { margin-bottom: 10px; }

.gcal-note {
  margin-top: 24px;
  color: var(--text-light);
  font-size: 14px;
}

.gcal-content a { color: var(--secondary); }

/* ---------- 16. ダウンロードセクション ---------- */
.download-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 56px 32px 48px;
  box-shadow: var(--shadow-paper);
  text-align: center;
}

.download-card > .washi--corner {
  top: -10px;
  right: 26px;
  transform: rotate(6deg);
}

.download-card__icon {
  width: 76px;
  height: 76px;
  border-radius: 17px;
  box-shadow: 0 2px 8px rgba(38, 51, 79, .14);
  margin-bottom: 18px;
}

.download-card h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 8px;
}

.download-card__lead {
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 28px;
}

.download-card__note {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 13px;
}
