/* FirstSeedノート（日本語）
   ヘッダー・フッター・書体は ../css/home.css（TOPと共通）を継承し、
   ここでは配色・スクショの額縁・このページのレイアウトだけを定義する。
   元は tmp3/shared.css + tmp3/notes-01.css（python3 tmp3/deploy.py で再生成） */
.notes-page { background: #f8fafc; --accent: #405fa8; --tint: #edf2fc; --card: #fff; --card-line: #e6ebf0; --dark: #203f66; --dark-muted: #c9d5e6; }
.notes-page main { min-width: 0; }

/* フッター（TOPと同じ見た目） */
.notes-page .site-footer { grid-template-columns: 1fr auto; gap: 24px; }
.notes-page .footer-message p { margin: 0 0 12px; }
.notes-page .footer-message small { display: block; color: var(--muted); font-size: .75rem; }
.notes-page .footer-languages { gap: 22px; align-items: center; }
.notes-page .footer-languages [aria-current="page"] { font-weight: 600; }

/* アプリ名ブロック（TOPと同じ） */
.notes-page .identity { flex-wrap: wrap; }
.notes-page .identity > span:not(.badge) { min-width: 0; }
.notes-page .identity strong { font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.5; letter-spacing: -.035em; }
.notes-page .app-icon { box-shadow: 0 1px 3px #0000001f, 0 0 0 1px #0000000f; }

/* ---------------------------------------------------------------------
   スクショの額縁 .shot
   途中で切れているスクショは、切れている辺を必ず額縁の縁に揃える。
   - fit  : 端まで写っている完全な画像（全端末・その他の機能）。比率 --ar の額縁に余白を取って中央に
   - rise : 下が切れている画像（iPhone上半分・Macの窓・iPad）。額縁の下辺からせり上がる
   - hang : 上が切れている画像（AIエージェント・同期）。額縁の上辺からぶら下がる
   rise / hang の額縁の高さは「画像の高さ＋わずかな余白」で決まる（比率では決めない）。
   画像の幅は --w（PCでの値を各画像に指定）。タブレット・スマホでは下の media query で広げる。
   - inset : 両端に100pxの余白を取る（Macの窓・iPadなど、幅いっぱいだと大きすぎる画像）
   - right : 右端が切れている画像を右に寄せ、切れ目を額縁の右辺に合わせる
   --------------------------------------------------------------------- */
.shot { display: block; position: relative; overflow: hidden; border-radius: 18px; background: var(--tint); min-width: 0; isolation: isolate; }
.shot picture { display: contents; }
.shot img { display: block; max-width: none; max-height: none; height: auto; }
.shot.fit { aspect-ratio: var(--ar, 16/10); }
.shot.fit img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; padding: 5%; box-sizing: border-box; object-fit: contain; object-position: center; }
.shot.rise, .shot.hang { display: flex; justify-content: center; --pad: clamp(22px, 3.6%, 44px); }
.shot.rise { align-items: flex-end; padding-top: var(--pad); }
.shot.hang { align-items: flex-start; padding-bottom: var(--pad); }
.shot.rise img, .shot.hang img { width: var(--w, 92%); height: auto; flex-shrink: 0; }
.shot.right { justify-content: flex-end; }
@media (max-width: 1000px) {
  .shot.rise, .shot.hang { --w: 84% !important; }
  .shot.inset { --w: calc(100% - 80px) !important; }
  .shot.right { --w: 92% !important; }
}
@media (max-width: 700px) {
  .shot.rise, .shot.hang, .shot.inset { --w: 92% !important; }
  .shot.right { --w: 100% !important; }
}

.ordinal { color: var(--accent); }
.overline { display: flex; align-items: center; gap: 12px; font-size: .75rem; letter-spacing: .08em; color: var(--muted); }
.store-badge { display: inline-block; line-height: 0; }
.store-badge img { height: 44px; width: auto; display: block; }
.store-badge:hover { text-decoration: none; opacity: .85; }
.text-link { color: var(--accent); }

/* その他の機能の箇条書き（現行ページの8項目） */
.others-list { list-style: none; margin: 0 0 18px; padding: 0; }
.others-list li { position: relative; padding-left: 18px; font-size: .9375rem; line-height: 1.9; color: var(--muted); margin-bottom: 6px; }
.others-list li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: .7; }
.closing { font-size: .9375rem; margin-bottom: 18px; }

/* FirstSeed手帳のお知らせ（宣伝なので黄色系。本文は途中で折り返さない） */
.promo { display: flex; gap: 20px; align-items: flex-start; padding: 28px 30px; border-radius: 20px; background: #fff5df; margin-top: 44px; }
.promo .app-icon { flex-shrink: 0; }
.promo > div { min-width: 0; flex: 1; }
.promo .badge { display: inline-block; color: #956115; margin: 0 0 8px; }
.promo h2 { font-size: 1.25rem; margin: 0 0 8px; }
.promo p { font-size: .9375rem; margin: 0 0 6px; max-width: none; }
.promo .text-link { color: #956115; }

/* ページ内ナビ */
.section-nav { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8125rem; }
.section-nav a { padding: 7px 13px; border-radius: 30px; color: #4b5966; }
.section-nav a:hover { text-decoration: none; background: #e6ecf3; }
.section-nav a[aria-current="true"] { background: var(--dark); color: #fff; }


@media (max-width: 700px) {
  .notes-page .site-footer { grid-template-columns: 1fr; }
  .notes-page .footer-languages { gap: 24px; }
  .promo { flex-direction: column; padding: 24px; }
  .section-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .section-nav::-webkit-scrollbar { display: none; }
  .section-nav a { flex-shrink: 0; }
}
@media print { .section-nav { display: none; } }

/* レイアウト — 追従する章タイトル＋本文の下に、スクショを横いっぱいの帯で置く */
.notes-page .section-nav { position: sticky; top: 0; z-index: 20; padding: 12px 0; margin-bottom: 8px; background: #f8fafcdd; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.notes-page .hero { padding: 34px 0 20px; }
.notes-page .hero-copy { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.notes-page .hero-copy .identity { justify-content: center; }
.notes-page .hero h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); margin: 14px 0 20px; }
.notes-page .hero h1 .kw { display: inline-block; }
.notes-page .hero-copy p { margin: 0 auto 28px; font-size: 1.0625rem; }
.notes-page .hero-copy .devices { margin-top: 16px; }
.notes-page .hero-shot { border-radius: 28px; }

.notes-page .chapters { margin-top: 70px; }
.notes-page .chapter { display: grid; grid-template-columns: .95fr 1.45fr; gap: 40px 56px; padding: 64px 0; border-top: 1px solid var(--line); }
.notes-page .chapter-head { position: sticky; top: 76px; align-self: start; min-width: 0; }
.notes-page .chapter-head .ordinal { display: block; font-size: 3.2rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; margin-bottom: 18px; }
.notes-page .chapter-head h2 { font-size: clamp(1.4rem, 2vw, 1.9rem); margin-bottom: 0; }
.notes-page .chapter-body { min-width: 0; }
.notes-page .chapter-body p { font-size: 1rem; }
.notes-page .chapter-body p:last-child { margin-bottom: 0; }
.notes-page .chapter-shot { grid-column: 1 / -1; border-radius: 24px; }

.notes-page .more { padding: 64px 0 20px; border-top: 1px solid var(--line); }
.notes-page .more-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 24px; align-items: baseline; margin-bottom: 30px; }
.notes-page .more-head .ordinal { font-size: 3.2rem; font-weight: 200; line-height: 1; letter-spacing: -.04em; }
.notes-page .more-head h2 { margin: 0; }
.notes-page .more-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.notes-page .more-grid .others-list { columns: 2; column-gap: 32px; }
.notes-page .more-grid .others-list li { break-inside: avoid; }
.notes-page .others-shot { max-width: 420px; width: 100%; justify-self: end; border-radius: 24px; }

.notes-page .download { margin-top: 60px; background: var(--dark); color: #fff; border-radius: 28px; padding: 50px; }
.notes-page .download-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.notes-page .download h2 { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 10px; }
.notes-page .download p { color: var(--dark-muted); margin: 0; }

@media (max-width: 1000px) {
  .notes-page .chapter { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; }
  .notes-page .chapter-head { position: static; }
  .notes-page .chapter-head .ordinal, .notes-page .more-head .ordinal { font-size: 2.4rem; }
  .notes-page .chapter-head h2 { margin-bottom: 4px; }
  .notes-page .more-grid { grid-template-columns: 1fr; gap: 28px; }
  .notes-page .more-grid .others-list { columns: 1; }
  .notes-page .others-shot { justify-self: start; }
  .notes-page .download { padding: 36px; }
}
@media (max-width: 700px) {
  .notes-page .section-nav { margin: 0 -20px 4px; padding: 10px 20px; }
  .notes-page .hero { padding-top: 22px; }
  .notes-page .hero h1 { font-size: 2.6rem; }
  .notes-page .hero-shot { border-radius: 18px; }
  .notes-page .chapters { margin-top: 44px; }
  .notes-page .chapter { padding: 38px 0; }
  .notes-page .chapter-shot { border-radius: 16px; }
  .notes-page .more-head { grid-template-columns: auto 1fr; }
  .notes-page .more-head .text-link { grid-column: 2; }
  .notes-page .download { padding: 28px 22px; border-radius: 20px; }
  .notes-page .download-inner { grid-template-columns: 1fr; gap: 22px; }
}
