/* pictfoot.com のトップ（2026-10-24 作り直し）：アプリと同じアイボリーの紙、朱、Cinzel と明朝。
   基本の機能 → FootNotes → FootPrint → FootJourney（紺の帯）→ PictFoot+ → Business → プライバシー → 質問。
   privacy・terms は style.css だけを使う */
body.home { --paper: #fbf8f0; --card: #fffdf7; --ink: #1c2130; --muted: #8a8473; --hair: #e9e2cf; --vermilion: #c4512a; --tint: #f6e6dc;
  --navy: #22315c; --navy-ink: #f4f1e8; --navy-muted: #b9c0d6; --navy-card: #2b3b6b; --shadow: rgba(120, 100, 60, .22);
  background: var(--paper); position: relative; overflow-x: hidden; }
.home .latin { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .06em; }
.home h1, .home h2 { border: 0; padding: 0; text-wrap: balance; }
.home svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.home section h2 { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 32px; line-height: 1.45; margin: 4px 0 20px; }
.home .eyebrow { color: var(--vermilion); font-size: 15px; letter-spacing: .22em; margin: 0; }
.home p { margin: 0 0 14px; }

/* phones：画面の比率（1206×2622）のまま、角を丸めて紙の上に置く */
.phone { width: 280px; max-width: 100%; aspect-ratio: 600 / 1304; border-radius: 38px; overflow: hidden; background: var(--card); display: block;
  box-shadow: 0 28px 56px var(--shadow), 0 0 0 1px var(--hair); }
img.phone { height: auto; object-fit: cover; }
.phone video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* hero */
.hero { max-width: 1080px; margin: 0 auto; padding: 80px 24px 56px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero > * { min-width: 0; }
.hero-text { padding-left: 40px; }
.hero .icon { border-radius: 24px; box-shadow: 0 10px 30px var(--shadow); display: block; }
.hero .brand { font-family: 'Cinzel', serif; font-weight: 700; color: var(--vermilion); font-size: 44px; letter-spacing: .08em; margin: 18px 0 0; line-height: 1.1; }
.hero h1 { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 36px; margin: 10px 0 18px; line-height: 1.4; }
.hero .lead { font-size: 16px; line-height: 2; margin: 0 0 24px; }
.hero .soon { margin: 0 0 28px; }
.hero .soon span { display: inline-block; border: 1.5px solid var(--vermilion); color: var(--vermilion); border-radius: 999px; padding: 8px 20px; font-weight: 700; font-size: 14px; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: 300px; }
.jump { display: flex; gap: 10px; flex-wrap: wrap; }
.jump a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--card); color: var(--ink);
  text-decoration: none; font-size: 14px; box-shadow: 0 0 0 1px var(--hair); transition: background .15s, color .15s; }
.jump a svg { color: var(--vermilion); font-size: 18px; }
.jump a:hover { background: var(--vermilion); color: #fff; }
.jump a:hover svg { color: #fff; }

/* the basics */
.basics { max-width: 1080px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--hair); text-align: center; }
.basics-grid { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; margin-top: 28px; text-align: left; }
.basics-grid > * { min-width: 0; }
.pair { position: relative; height: 560px; }
.pair .phone { position: absolute; width: 240px; }
.pair .back { left: 0; top: 40px; transform: rotate(-4deg); }
.pair .front { right: 0; top: 0; transform: rotate(3deg); }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 36px; }
.feat svg { font-size: 26px; color: var(--vermilion); background: var(--tint); padding: 11px; box-sizing: content-box; border-radius: 16px; }
.feat h3 { font-family: 'Shippori Mincho', serif; font-size: 19px; line-height: 1.5; margin: 14px 0 8px; }
.feat p { font-size: 14.5px; line-height: 1.9; margin: 0; }

/* FootNotes・FootPrint：文と画面を左右に */
.feature { max-width: 1000px; margin: 0 auto; padding: 72px 24px; border-top: 1px solid var(--hair);
  display: grid; grid-template-columns: 1fr 300px; gap: 64px; align-items: center; }
.feature > * { min-width: 0; }
.feature.flip { grid-template-columns: 300px 1fr; }
.feature.flip .feature-media { order: -1; }
.feature-media { display: flex; justify-content: center; }
.feature .eyebrow { font-size: 26px; letter-spacing: .08em; }
/* 2026-11-17 全1,741市区町村の記事ができたので「市区町村の数」と「記事のある町」を1枚にまとめ、2枚に */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 18px; }
.facts div { background: var(--card); border-radius: 20px; padding: 18px 12px; text-align: center; box-shadow: 0 0 0 1px var(--hair); }
.facts .n { display: block; font-family: 'Cinzel', serif; font-weight: 700; color: var(--vermilion); font-size: 32px; line-height: 1.2; }
.facts div:last-child .n { font-family: 'Shippori Mincho', serif; }
.en .facts div:last-child .n { font-family: 'Cinzel', serif; }
.facts .k { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; line-height: 1.5; }
.home .note { color: var(--muted); font-size: 12.5px; line-height: 1.8; }

/* FootJourney：紺の帯。流れは地の上にアイコンと矢印で */
.band.navy { background: var(--navy); color: var(--navy-ink); }
.band-in { max-width: 1000px; margin: 0 auto; padding: 88px 24px; text-align: center; }
.band.navy .eyebrow { color: var(--navy-muted); font-size: 26px; letter-spacing: .08em; }
.band.navy h2 { color: var(--navy-ink); }
.band-lead { max-width: 640px; margin: 0 auto 40px !important; line-height: 2; }
.flow { list-style: none; padding: 0; margin: 0 auto 56px; display: flex; justify-content: center; align-items: flex-start; gap: 0; max-width: 860px; }
.flow li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0; position: relative; font-size: 14px; line-height: 1.6; min-width: 0; }
.flow li svg { font-size: 30px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--navy-card); color: var(--navy-ink); }
.flow li + li::before { content: ""; position: absolute; top: 29px; left: calc(-50% + 44px); width: calc(100% - 88px); height: 1.5px; background: var(--navy-muted); opacity: .6; }
.flow li + li::after { content: ""; position: absolute; top: 25px; left: calc(50% - 50px); border: 5px solid transparent; border-left: 8px solid var(--navy-muted); opacity: .8; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; justify-items: center; }
.trio figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; min-width: 0; }
.trio .phone { width: 240px; box-shadow: 0 28px 56px rgba(0, 0, 0, .35); }
.trio figcaption { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: 16px; }
.band-note { color: var(--navy-muted); font-size: 13px; margin: 40px 0 0 !important; }

/* PictFoot+ */
.plus { max-width: 1080px; margin: 0 auto; padding: 88px 24px 64px; text-align: center; }
.plus .eyebrow { font-size: 26px; letter-spacing: .08em; }
.plus-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 12px; text-align: left; }
.plus-grid article { background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair); min-width: 0; }
.plus-grid video { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--hair); }
.plus-grid h3 { font-family: 'Shippori Mincho', serif; font-size: 16px; line-height: 1.5; margin: 14px 16px 4px; }
.plus-grid p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0 16px 16px; }
.price { margin: 32px 0 0 !important; font-size: 15px; }
.price b { font-family: 'Shippori Mincho', serif; font-size: 24px; color: var(--vermilion); margin-right: 4px; }
.price span { display: block; color: var(--muted); font-size: 12px; margin-top: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; background: var(--vermilion); color: #fff !important;
  text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.btn:hover { filter: brightness(1.08); }

/* support */
.home main.support { padding-top: 32px; }
.home main.support h2 { font-family: 'Zen Kaku Gothic New', sans-serif; font-size: 17px; border-top: 1px solid var(--hair); padding-top: 20px; margin-top: 40px; }
.home details { border-bottom: 1px solid var(--hair); padding: 12px 0; }
.home summary { cursor: pointer; font-weight: 700; }
.home details p { margin: 8px 0 0; }

/* language switch, top right (日本語 / English), on the same page (本人の指示 2026-10-09) */
.lang { position: absolute; top: 18px; right: 22px; display: flex; gap: 12px; font-size: 13px; z-index: 2; }
.lang a { color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--vermilion); }
html[data-lang="ja"] .lang .to-ja, html[data-lang="en"] .lang .to-en { color: var(--ink); font-weight: 700; }
html[data-lang="en"] .only-ja, html[data-lang="ja"] .only-en, html:not([data-lang]) .only-en { display: none; }

@media (max-width: 900px) {
  .basics-grid { grid-template-columns: 1fr; gap: 40px; }
  .pair { width: 400px; max-width: 100%; margin: 0 auto; height: 520px; }
  .plus-grid { grid-template-columns: repeat(2, 1fr); }
  .plus-grid article:last-child { grid-column: 1 / -1; }
  .plus-grid article:last-child video { aspect-ratio: 2 / 1; }
}
@media (max-width: 760px) {
  .home section h2 { font-size: 26px; }
  .hero { grid-template-columns: 1fr; padding: 56px 16px 40px; text-align: center; gap: 36px; }
  .hero-text { padding-left: 0; }
  .hero .icon { margin: 0 auto; }
  .hero h1 { font-size: 28px; }
  .hero .lead br { display: none; }
  .hero-phone .phone { width: 260px; }
  .jump { justify-content: center; }
  .basics, .feature, .plus { padding-left: 16px; padding-right: 16px; }
  .band-in { padding: 64px 16px; }
  .basics, .feature { padding-top: 56px; padding-bottom: 56px; }
  .pair { height: 440px; width: 340px; }
  .pair .phone { width: 200px; }
  .feats { grid-template-columns: 1fr; gap: 28px; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .feature-media { order: 0; }
  .feature .phone { width: 260px; }
  .facts { grid-template-columns: 1fr 1fr; gap: 8px; }
  .facts .n { font-size: 24px; }
  .flow { flex-wrap: wrap; row-gap: 28px; }
  .flow li { flex: 0 0 50%; }
  .flow li + li::before, .flow li + li::after { display: none; }
  .trio { grid-template-columns: 1fr; gap: 40px; }
  .trio .phone { width: 260px; }
  .plus-grid { gap: 12px; }
  .plus-grid h3 { font-size: 15px; margin: 12px 12px 4px; }
  .plus-grid p { margin: 0 12px 14px; }
}

/* Business FootNotes（2026-10-24 本人「もっと大きめに立項して、詳細を見るで /business に」）：淡い朱の面に、文と画面2枚 */
.biz { background: var(--tint); }
.biz-in { max-width: 1080px; margin: 0 auto; padding: 88px 24px; display: grid; grid-template-columns: 1fr 440px; gap: 56px; align-items: center; }
.biz-in > * { min-width: 0; }
.biz .eyebrow { font-size: 26px; letter-spacing: .08em; }
.biz-lead { line-height: 2; max-width: 34em; }
.biz-points { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; }
.biz-points li { margin: 0; display: flex; gap: 14px; align-items: flex-start; }
.biz-points li > div { min-width: 0; }
.biz-points svg { font-size: 22px; color: var(--vermilion); background: var(--card); padding: 10px; box-sizing: content-box; border-radius: 14px; }
.biz-points h3 { font-family: 'Shippori Mincho', serif; font-size: 16px; line-height: 1.5; margin: 2px 0 4px; }
.biz-points p { font-size: 13.5px; line-height: 1.8; color: var(--muted); margin: 0; }
.biz-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.biz-price { margin: 0 !important; display: flex; align-items: baseline; gap: 10px; color: var(--muted); font-size: 13px; }
.biz-price b { font-family: 'Shippori Mincho', serif; font-size: 26px; color: var(--vermilion); }
.biz-cta .btn { padding: 14px 28px; font-size: 15px; transition: transform .15s, filter .15s; }
.biz-cta .btn:hover { transform: translateX(3px); }
.biz-cta .btn svg { transition: transform .15s; }
.biz-cta .btn:hover svg { transform: translateX(3px); }
.biz-media { position: relative; height: 560px; }
.biz-media .phone { position: absolute; width: 240px; }
.biz-media .back { left: 0; top: 40px; transform: rotate(-4deg); }
.biz-media .front { right: 0; top: 0; transform: rotate(3deg); }

/* 動き（2026-10-24 本人「もっとアニメーションを」）。script が html に .motion を付けたときだけ効く */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.motion .hero-text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.motion .hero-text > :nth-child(2) { animation-delay: .08s; }
.motion .hero-text > :nth-child(3) { animation-delay: .16s; }
.motion .hero-text > :nth-child(4) { animation-delay: .24s; }
.motion .hero-text > :nth-child(5) { animation-delay: .32s; }
.motion .hero-text > :nth-child(6) { animation-delay: .40s; }
.motion .hero-phone { animation: rise 1s .2s cubic-bezier(.2, .7, .2, 1) both; }
.motion .hero-phone .phone { animation: float 6s 1.2s ease-in-out infinite; }
.motion .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion .rv.in { opacity: 1; transform: none; }
/* 傾けて置く画面は、まっすぐの状態から傾く */
.motion .pair .back.rv.in, .motion .biz-media .back.rv.in { transform: rotate(-4deg); }
.motion .pair .front.rv.in, .motion .biz-media .front.rv.in { transform: rotate(3deg); }
.motion .pair .back.rv, .motion .biz-media .back.rv { transform: translate(40px, 40px) rotate(0); }
.motion .pair .front.rv, .motion .biz-media .front.rv { transform: translate(-20px, 30px) rotate(0); }
/* 流れの矢印は、前の段が出てから伸びる */
.motion .flow li + li::before { transform-origin: left; transform: scaleX(0); transition: transform .6s ease var(--d, 0ms); }
.motion .flow li.in + li::before, .motion .flow li + li.in::before { transform: scaleX(1); }
.motion .flow li svg { transition: background .3s, transform .3s; }
.flow li:hover svg { transform: scale(1.08); }
/* カードは指を置くと少し浮く */
.plus-grid article, .facts div, .jump a { transition: transform .2s, box-shadow .2s, background .15s, color .15s; }
.plus-grid article:hover, .facts div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--shadow), 0 0 0 1px var(--hair); }
.motion .plus-grid article.rv.in:hover { transform: translateY(-4px); }
.jump a:hover { transform: translateY(-2px); }
.trio .phone, .feature-media .phone { transition: transform .3s; }
.trio figure:hover .phone, .feature-media:hover .phone { transform: translateY(-6px); }

@media (max-width: 900px) {
  .biz-in { grid-template-columns: 1fr; gap: 40px; }
  .biz-media { width: 400px; max-width: 100%; margin: 0 auto; height: 520px; }
}
@media (max-width: 760px) {
  .biz-in { padding: 64px 16px; }
  .biz-points { grid-template-columns: 1fr; }
  .biz-cta { justify-content: space-between; }
  .biz-media { height: 440px; width: 340px; }
  .biz-media .phone { width: 200px; }
}

/* 最初の一面とヘッダー（2026-10-24 本人「読み終えると、アイコンが完成する」01 案）。動きは opening.js */
.opening { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 72px 16px 80px; box-sizing: border-box; }
.op-mark { width: 180px; max-width: 46vw; }
.home .pf-svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-bg { fill: var(--paper); }
.op-sign { font-family: 'Cinzel', serif; font-weight: 700; color: var(--vermilion); font-size: clamp(54px, 12vw, 120px); letter-spacing: .04em; line-height: 1; margin: 34px 0 0 !important; }
.opening h1 { font-family: 'Shippori Mincho', serif; font-weight: 700; font-size: clamp(18px, 2.6vw, 22px); margin: 24px 0 26px; }
/* 2026-11-18 合言葉「いつもの場所を、思い出の場所に」の下に、何をするアプリかの一言（本人「おばあちゃんでもわかることは重要」） */
.opening h1:has(+ .op-lead) { margin-bottom: 8px; }
.op-lead { font-size: 14px; color: var(--muted); margin: 0 0 26px !important; line-height: 1.7; }
.dl { gap: 10px; }
.dl .ring { width: 15px; height: 15px; border-radius: 50%; border: 4px solid #fff; box-sizing: border-box; flex: none; }
.dl[aria-disabled] { cursor: default; }
.dl[aria-disabled]:hover { filter: none; }
.op-soon { font-size: 12px; color: var(--muted); margin: 12px 0 0 !important; letter-spacing: .06em; }
/* ダウンロード（2026-11-17）：スマホはその端末の店の公式バッジ1つ、パソコンは2つの公式バッジと QR（pictfoot.com/app）。
   本人「appleのロゴ公式じゃなくない？」：店のロゴを自作のボタンに描かず、Apple・Google の公式バッジ（img/badge-*）をそのまま使う。
   バッジは色・形を変えない（hover の明るさも付けない）。高さをそろえ、周りにバッジの高さの1/4以上の余白。
   .dl-main（/app/ へのボタン）は JS が動かないときだけ出る */
.dl-main { padding: 16px 30px; font-size: 16px; gap: 12px; box-shadow: 0 8px 20px -6px rgba(196, 81, 42, .55), 0 2px 4px rgba(28, 33, 48, .12);
  transition: transform .1s, box-shadow .1s; -webkit-tap-highlight-color: transparent; }
.dl-main:active { transform: translateY(2px) scale(.98); box-shadow: 0 3px 8px -4px rgba(196, 81, 42, .6); }
.stores { display: none; }
.is-pc .opening > .dl, .is-ios .opening > .dl, .is-android .opening > .dl, .is-pc .opening > .op-soon { display: none; }
.is-pc .stores, .is-ios .stores, .is-android .stores { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.is-ios .store.gp, .is-android .store.as, .is-ios .qr, .is-android .qr { display: none; }
.store { display: block; line-height: 0; border-radius: 10px; transition: transform .12s; -webkit-tap-highlight-color: transparent; }
.store:active { transform: scale(.97); }
.store img { display: block; width: auto; height: 48px; }
.is-ios .store img, .is-android .store img { height: 60px; }
.qr { margin: 0 0 0 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr img { display: block; width: 76px; height: 76px; padding: 7px; background: #fff; border-radius: 10px; border: 1px solid var(--hair); }
.qr figcaption { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px)); background: var(--paper); border-bottom: 1px solid var(--hair);
  opacity: 0; pointer-events: none; transition: opacity .3s; }
.topbar.on { opacity: 1; pointer-events: auto; }
.tb-home { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.tb-mark { width: 38px; aspect-ratio: 139.7 / 146.7; display: block; }  /* 高さが無いと運ばれてくるマークが下にずれる */
.tb-sign { color: var(--vermilion); font-size: 19px; letter-spacing: .1em !important; }
.tb-dl { padding: 8px 16px; font-size: 13px; }
.tb-dl .ring { width: 13px; height: 13px; border-width: 3.5px; }
/* 運ばれてくるマーク（ヘッダーより手前） */
.pf-fly { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transform-origin: 0 0; will-change: transform; }
.pf-flying .op-mark .pf-svg { visibility: hidden; }
@keyframes pf-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes pf-pop { 0%, 75% { transform: scale(0); } 100% { transform: scale(1); } }
.pf-svg.draw .wk { stroke-dasharray: 1000; animation: pf-draw 2.2s cubic-bezier(.5, 0, .3, 1) .2s both; }
.pf-svg.draw .rg { transform-box: fill-box; transform-origin: center; animation: pf-pop 2.6s ease both; }
.motion .opening > :not(.op-mark) { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; animation-delay: 1.4s; }
.motion .opening > h1, .motion .opening > .op-lead { animation-delay: 1.55s; }
.motion .opening > .dl, .motion .opening > .op-soon, .motion .opening > .stores { animation-delay: 1.7s; }
@media (max-width: 760px) {
  .topbar { height: 54px; }
  .tb-mark { width: 32px; }
  .tb-sign { font-size: 16px; }
  .tb-dl { padding: 7px 13px; font-size: 12px; }
}
