/* Foressa 紹介ページ（index.html・en.html 共通） */
:root {
  color-scheme: light dark;
  --accent: #3A9A5B; --accent-2: #2f7f4a; --soft: #e8f3eb;
  --fg: #1d2420; --sub: #5b665f; --line: #dfe5e0; --bg: #fbfcfb; --card: #ffffff;
  --save: #3A9A5B; --read: #8a958e;
}
@media (prefers-color-scheme: dark) {
  :root { --accent: #6cc48a; --accent-2: #8fd6a6; --soft: #1d2a22; --fg: #e6ece8; --sub: #a3aea7; --line: #2f3833; --bg: #121714; --card: #1b221e; --save: #4fae70; --read: #59625c; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.7; -webkit-font-smoothing: antialiased; word-break: auto-phrase; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* ヘッダー */
header.top { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--fg); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.lang { font-size: .9rem; text-decoration: none; font-weight: 600; }

/* ヒーロー */
.hero { overflow: hidden; background: radial-gradient(1000px 500px at 85% 10%, var(--soft), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.hero .icon { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 10px 30px rgba(58,154,91,.3); }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.25; margin: 20px 0 16px; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { font-size: 1.1rem; color: var(--sub); margin: 0 0 28px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; flex-direction: column; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); min-width: 150px; }
.store small { color: var(--sub); font-size: .75rem; }
.store b { font-size: 1rem; }
a.store { color: var(--fg); text-decoration: none; border-color: var(--accent); }
a.store:hover { background: var(--soft); }
.store.soon { opacity: .55; }
.note { color: var(--sub); font-size: .85rem; margin-top: 14px; }

/* 端末の枠 */
.phone { width: 100%; max-width: 240px; margin: 0 auto; border-radius: 44px; padding: 10px; background: #0d0f0e; box-shadow: 0 30px 60px rgba(0,0,0,.25), inset 0 0 0 2px #2a2e2c; }
.phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.hero .phone { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-14px) rotate(1deg); } }

/* セクション */
section { padding: 72px 0; }
section.alt { background: var(--soft); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); line-height: 1.35; margin: 0 0 12px; text-align: center; }
.sub { text-align: center; color: var(--sub); margin: 0 auto 40px; max-width: 640px; }

/* スワイプの実演 */
.swipe-demo { max-width: 460px; margin: 0 auto; display: grid; gap: 14px; }
.row { position: relative; border-radius: 16px; overflow: hidden; }
.row .under { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; font-weight: 700; color: #fff; }
.row .under span { opacity: 0; }
.row .card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; }
.row .thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; background: linear-gradient(135deg, #cfe6d6, #9fcdb0); }
.row .t { font-weight: 700; line-height: 1.45; }
.row .m { color: var(--sub); font-size: .85rem; }
.row.right .under { background: var(--save); }
.row.left .under { background: var(--read); justify-content: flex-end; }
.row.right .card { animation: swipeR 5s ease-in-out infinite; }
.row.right .under span:first-child { animation: show 5s ease-in-out infinite; }
.row.left .card { animation: swipeL 5s ease-in-out 2.5s infinite; }
.row.left .under span:last-child { animation: show 5s ease-in-out 2.5s infinite; }
@keyframes swipeR { 0%, 15% { transform: translateX(0); } 35%, 55% { transform: translateX(42%); } 75%, 100% { transform: translateX(0); } }
@keyframes swipeL { 0%, 15% { transform: translateX(0); } 35%, 55% { transform: translateX(-42%); } 75%, 100% { transform: translateX(0); } }
@keyframes show { 0%, 20% { opacity: 0; } 35%, 55% { opacity: 1; } 70%, 100% { opacity: 0; } }

/* 特長 */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; align-content: start; }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--accent); }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.feature p { grid-column: 1 / -1; margin: 12px 0 0; color: var(--sub); font-size: .95rem; }

/* スクリーンショット */
.shots { display: flex; gap: 28px; justify-content: center; margin-top: 36px; }
.shots figure { margin: 0; flex: 0 1 260px; text-align: center; }
.shots figcaption { margin-top: 14px; font-weight: 700; }
.shots .phone { max-width: 260px; border-radius: 38px; padding: 8px; }
.shots .phone img { border-radius: 30px; }

/* プライバシー */
.privacy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 900px; margin: 36px auto 0; }
.privacy div { text-align: center; padding: 8px; }
.privacy b { display: block; font-size: 1.6rem; color: var(--accent); margin-bottom: 4px; }
.privacy p { margin: 0; color: var(--sub); font-size: .95rem; }
.fine { text-align: center; color: var(--sub); font-size: .85rem; line-height: 1.9; margin: 36px auto 0; max-width: 820px; }

/* フッター */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--sub); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; }

/* 表示されたらふわっと出す */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero .icon { margin: 0 auto; }
  .stores { justify-content: center; }
  .hero .phone { max-width: 240px; }
  .features, .privacy { grid-template-columns: 1fr; }
  .shots { overflow-x: auto; justify-content: flex-start; scroll-snap-type: x mandatory; padding: 0 20px 12px; margin: 0 -20px; }
  .shots figure { flex: 0 0 72%; scroll-snap-align: center; }
  section { padding: 56px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero .phone, .row .card, .row .under span { animation: none !important; }
  .row .under span { opacity: 0 !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
