/* kotsuly.com：アプリと同じ、あたたかい生成り色とオレンジ（ライトのみ。端末がダーク表示でも明るいまま） */
:root {
  color-scheme: light;
  --bg: #f6f2ec;
  --surface: #fffdf9;
  --text: #2a2622;
  --muted: #7d746b;
  --line: #e7dfd4;
  --accent: #e07a4f;
  --accent-soft: #fbe6da;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip; /* ヒーローの傾けたスマホなどが、画面の横にはみ出してスクロールしないように（画面の端でだけ切る） */
  background: var(--bg);
  color: var(--text);
  font-family: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.85;
}
a { color: var(--accent); }
/* ヘッダー：スクロールしても上に残す。スマホではロゴと「アプリを入手」だけ */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246, 242, 236, 0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-nav { display: flex; align-items: center; gap: 20px; }
.top-link { color: var(--text); text-decoration: none; font-size: 14.5px; }
.top-link:hover { color: var(--accent); }
.top-cta { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 16px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 599px) { .top-link { display: none; } .logo { font-size: 22px; } }
/* とても狭い画面（iPhone SE など）：ロゴとボタンが横に入りきるように、少し小さくする */
@media (max-width: 374px) { .top-in { gap: 8px; } .logo { font-size: 19px; } .top-cta { font-size: 13px; padding: 6px 12px; } }
/* ヘッダーに隠れないように、移動先の上に余白をとる */
[id] { scroll-margin-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; letter-spacing: 0.18em; color: var(--text); text-decoration: none; }
/* ロゴの左の芽のマーク（文字と上下の真ん中でそろえ、文字より少し大きく） */
.logo { display: inline-flex; align-items: center; gap: 8px; line-height: 1; }
.logo img { width: auto; height: 1.4em; display: block; }
.logo span { position: relative; top: 0.1em; } /* 文字を少し下げて、芽のマークと目で見てそろうように */
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
main.doc h1 { font-size: 26px; line-height: 1.4; margin: 24px 0 8px; }
main.doc h2 { font-size: 19px; margin: 40px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
main.doc h3 { font-size: 16px; margin: 24px 0 4px; }
main.doc hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
main.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; display: block; overflow-x: auto; }
main.doc th, main.doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
main.doc th { background: var(--accent-soft); white-space: nowrap; }
main.doc ol, main.doc ul { padding-left: 1.4em; }
main.doc code { font-size: 0.92em; background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }
.mail { font-size: 18px; font-weight: 700; }
.hero h1 { font-size: clamp(28px, 7vw, 44px); line-height: 1.4; margin: 12px 0 16px; }
.lead { font-size: 17px; max-width: 34em; }
.catch { margin: 0 0 4px; font-size: clamp(18px, 3.6vw, 21px); font-weight: 700; color: var(--accent); }
.status { color: var(--muted); font-size: 14px; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 28px; border-radius: 999px; }
.foot { max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 8px; }
.foot a { color: var(--muted); }

/* トップ：スクリーンショットで機能を紹介する */
main.wide { max-width: 1040px; }
.foot { max-width: 1040px; }
.hero { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; padding: 32px 0 24px; }
@media (min-width: 820px) { .hero { grid-template-columns: 1.15fr 0.85fr; } }
.phone { margin: 0 auto; max-width: min(240px, 70vw); border-radius: 36px; overflow: hidden; background: #fff; border: 8px solid #2a2622; box-shadow: 0 24px 48px -20px rgba(80, 50, 30, 0.35); }
.phone img { display: block; width: 100%; height: auto; }
.feature { display: grid; gap: 28px; align-items: center; grid-template-columns: 1fr; padding: 48px 0; border-top: 1px solid var(--line); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
  .feature.reverse { grid-template-columns: 1.2fr 0.8fr; }
  .feature.reverse > figure { order: 2; }
}
.feature h2 { font-size: clamp(22px, 4.5vw, 30px); line-height: 1.45; margin: 4px 0 12px; }
.feature p { margin: 0 0 12px; }
.feature ul { margin: 0; padding-left: 1.2em; color: var(--muted); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 2px 12px; border-radius: 999px; }
/* KOTSULY のちがい：色のついた大きな囲みで目立たせ、「こんな人に向いています」で終える */
.values { margin: 48px 0 0; padding: 48px 24px; border-radius: 28px; background: var(--accent-soft); text-align: center; }
@media (min-width: 820px) { .values { padding: 56px 48px; } }
.values > h2 { font-size: clamp(24px, 5vw, 34px); line-height: 1.45; margin: 0 0 12px; }
.values-lead { max-width: 32em; margin: 0 auto 32px; }
.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; }
.value-grid div { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: 0 12px 28px -20px rgba(80, 50, 30, 0.4); }
.value-grid .value-no { font-family: 'Cormorant Garamond', serif; font-size: 30px; line-height: 1; color: var(--accent); margin: 0 0 10px; }
.value-grid h3 { font-size: 17px; margin: 0 0 8px; }
.value-grid p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fit { max-width: 640px; margin: 32px auto 0; padding: 24px; background: var(--surface); border-radius: 20px; text-align: left; }
.fit h3 { font-size: 18px; margin: 0 0 12px; text-align: center; }
.fit ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.fit li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.7; }
.fit li::before { content: '✓'; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }

@media (min-width: 820px) { .phone { max-width: 280px; } }

/* ヒーロー：3台のスマホを扇形に重ねる（記録のカードを真ん中に） */
/* 3台が枠の中に収まる大きさにする（左右は画面の端・下は区切り線に重ならないように）。高さは幅から決め、下にずらして傾けた左右のスマホの下の端まで入れる */
.hero-fan { position: relative; aspect-ratio: 1 / 1.05; max-width: 460px; width: 100%; margin: 8px auto 0; }
.hero-fan .phone { position: absolute; top: 0; left: 50%; width: 39%; max-width: none; margin: 0; border-width: 5px; border-radius: 22px; }
.hero-fan .fan-center { transform: translateX(-50%); z-index: 2; width: 46%; }
.hero-fan .fan-left { transform: translateX(-112%) translateY(14%) rotate(-8deg); opacity: 0.95; }
.hero-fan .fan-right { transform: translateX(12%) translateY(14%) rotate(8deg); opacity: 0.95; }
@media (min-width: 820px) { .hero-fan .phone { border-width: 7px; border-radius: 30px; } }

/* スマホの幅では、機能の紹介は「説明 → 画像」の順にする（画像が続かないように） */
@media (max-width: 819px) {
  .feature > div { order: -1; }
  .feature { gap: 20px; }
}

/* 見出しは意味のまとまりの途中で折り返さない（「に」だけが次の行に残らないように） */
h1, h2, h3 { word-break: auto-phrase; text-wrap: balance; }
.nb { display: inline-block; }

/* 料金プラン */
.pricing-head { padding: 32px 0 8px; max-width: 640px; }
.pricing-head h1 { font-size: clamp(26px, 6vw, 38px); line-height: 1.4; margin: 8px 0 12px; }
.plans { display: grid; gap: 20px; grid-template-columns: 1fr; padding: 24px 0 8px; }
@media (min-width: 820px) { .plans { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.plan-plus { border: 2px solid var(--accent); background: linear-gradient(160deg, #fff7ee, #fdeee4 60%, #f9e6e9); }
.plan-name { margin: 0; font-weight: 700; color: var(--muted); }
.plan-plus .plan-name { color: var(--accent); }
.plan-price { font-size: 36px; font-weight: 700; margin: 4px 0 0; line-height: 1.3; }
.plan-price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.plan-alt { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.plan-note { margin: 12px 0 4px; font-size: 14px; }
.plan ul { padding-left: 1.2em; margin: 12px 0 0; }
.plan li { margin: 6px 0; }
.plan li span { color: var(--muted); font-size: 14px; }
.plans-note { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.pricing-notes { padding: 32px 0 8px; border-top: 1px solid var(--line); margin-top: 32px; max-width: 760px; }
.pricing-notes h2 { font-size: 19px; margin: 0 0 8px; }
.pricing-notes li { margin: 4px 0; }
.more { margin: 24px 0 0; text-align: center; }

/* 表の左の列（項目の名前）は細切れに折り返さない */
main.doc td:first-child { min-width: 7.5em; font-weight: 700; }
/* 機能の箇条書き：チェック印＋太字の見出し＋ひとこと（ひと目で分かるように） */
.feature ul.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; color: var(--muted); }
.points li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.65; }
.points li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.points strong { display: block; color: var(--text); font-size: 15.5px; }
/* 作業スペース・Study with me：見出しの下に、同じ大きさの2つのカード */
.cowork { padding: 48px 0; border-top: 1px solid var(--line); }
.cowork-head { display: grid; gap: 24px; align-items: center; grid-template-columns: 1fr; }
.cowork-head h2 { font-size: clamp(22px, 4.5vw, 30px); line-height: 1.45; margin: 4px 0 12px; }
.cowork-head p { margin: 0; }
.cowork-head .phone { max-width: min(220px, 60vw); }
@media (min-width: 820px) { .cowork-head { grid-template-columns: 1.2fr 0.8fr; gap: 56px; } }
.modes { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 820px) { .modes { grid-template-columns: 1fr 1fr; } }
.mode { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.mode-label { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.mode h3 { font-size: clamp(19px, 3.6vw, 23px); line-height: 1.5; margin: 4px 0 10px; }
.mode > p { margin: 0 0 4px; }
.mode ul.points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; color: var(--muted); }
.mode .note { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.points sup { font-size: 0.7em; }

/* アプリへの誘導ボタン（ストアのリンクが空のあいだは「近日公開」で押せない） */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 168px; padding: 8px 22px; border-radius: 14px; background: var(--text); color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.3; }
.store small { font-size: 11.5px; font-weight: 400; opacity: 0.8; }
a.store:hover { background: #000; }
.store.is-soon { background: #b9aea3; cursor: default; }

/* 最後のしめ：アプリへ誘導する */
.cta { margin: 48px 0 8px; padding: 48px 24px; border-radius: 28px; text-align: center; background: linear-gradient(160deg, #fff7ee, #fdeee4 60%, #f9e6e9); border: 1px solid var(--line); }
.cta h2 { font-size: clamp(24px, 5vw, 34px); line-height: 1.45; margin: 0 0 12px; }
.cta p { margin: 0; }
.cta .stores { justify-content: center; margin: 24px 0 12px; }
.cta-status { color: var(--muted); font-size: 14px; }
.cta-sub { margin-top: 16px !important; font-size: 14.5px; }
