/* トップ画面（index.html）だけの見た目。2026-10-21 デザイン見直し（見本：20261021_まどりノート画面見直し）
   深い緑と白。文字はメニュー14〜15px・本文16〜17pxを下限にする（小さすぎるとオーナー指摘。小さくしない） */
body.top {
  --ink: #183e36; --green: #2f6f5e; --paper: #f7f8f4; --line: #dae1d9; --muted: #69796f;
  --accent: #2f6f5e;
  background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.8;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.top h1, .top h2, .top h3, .top p { margin-top: 0; }
.top a { color: inherit; text-decoration: none; }
.top button { cursor: pointer; }
.top a:focus-visible, .top button:focus-visible { outline: 3px solid #d8a747; outline-offset: 4px; }

/* ヘッダー */
.top .site-header { position: sticky; top: 0; z-index: 30; padding: 18px 5%; background: rgba(247, 248, 244, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .logo { font-size: 21px; font-weight: 750; color: var(--ink); }
.top .logo span { color: inherit; }
.top .logo-mark { width: 32px; height: 32px; margin-right: 10px; }
.top-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.top-nav > a { color: var(--ink); }
.top .header-actions { display: flex; align-items: center; gap: 10px; }
.top .header-actions .btn { border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--ink); padding: 8px 4px; }
.top .header-actions .btn.primary { background: var(--ink); color: #fff; padding: 10px 17px; border-radius: 5px; font-size: 14px; }
.top .header-actions .user-chip { font-size: 14px; }

/* ボタン */
.top .btn-main { background: var(--ink); color: #fff; border: 0; padding: 16px 24px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 26px; font-weight: 600; font-size: 16px; }
.top .btn-main:hover { filter: brightness(1.15); }
.top .btn-sub { font-size: 15px; border-bottom: 1px solid #9aaa9a; padding: 10px 0; color: var(--ink); background: none; border-top: 0; border-left: 0; border-right: 0; }
.top .btn-outline { border: 1px solid #b3c2b2; background: none; color: var(--ink); border-radius: 4px; padding: 11px 16px; font-size: 15px; }
.eyebrow { font-size: 15px; font-weight: 650; letter-spacing: .04em; margin: 0 0 20px; }
.eyebrow > span, .live-dot { display: inline-block; width: 7px; height: 7px; background: #598f66; border-radius: 50%; margin-right: 8px; vertical-align: middle; }

/* ヒーロー */
.top-hero { max-width: 1460px; margin: auto; display: grid; grid-template-columns: 1fr 1.06fr; gap: 4%; padding: 55px 5%; align-items: center; }
.top-hero h1 { font-size: clamp(30px, 2.6vw, 44px); font-weight: 650; line-height: 1.55; letter-spacing: -.045em; margin-bottom: 23px; }
.top-hero h1 em { font-style: normal; color: #4d806b; }
.top-hero .lead { font-size: 17px; line-height: 2.1; color: #52665b; margin-bottom: 30px; }
.ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-login { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 19px; font-size: 14px; color: #6c7e6e; }
.login-link { background: none; border: 0; padding: 6px 0; color: var(--green); font-weight: 600; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.top .quiet { font-size: 14px; color: var(--muted); margin: 18px 0 0; }
.top .terms-note { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 14px 0 0; }
.top .terms-note a { color: var(--green); text-decoration: underline; }
.samples { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.samples a { font-size: 14px; border: 1px solid #c3d0c1; border-radius: 4px; padding: 7px 12px; background: #fff; }

/* 早送り動画 */
.movie { border: 1px solid #cdd7cd; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 22px 55px -35px #32534766; transform: rotate(-1deg); }
.moviehead { height: 49px; display: flex; align-items: center; padding: 0 17px; border-bottom: 1px solid #e3e8e0; font-size: 13px; }
.movie .tag { margin-left: auto; font-size: 11px; color: #778378; background: #f1f3ec; border-radius: 3px; padding: 2px 7px; }
.stage { position: relative; aspect-ratio: 1.25; background: #fff; }
.stage canvas, .stage video { width: 100%; height: 100%; object-fit: contain; display: block; }
.stage video { display: none; position: absolute; inset: 0; background: #fff; }
.plan-label { position: absolute; bottom: 14px; left: 18px; font-size: 16px; font-weight: 600; }
.plan-label small { font-size: 12px; font-weight: 400; color: #819083; }
.north { position: absolute; top: 14px; right: 20px; text-align: center; line-height: 1.3; font-size: 13px; }
.moviefoot { padding: 11px 17px; display: flex; align-items: center; gap: 13px; border-top: 1px solid #e3e8e0; font-size: 13px; }
.moviefoot button { background: none; border: 0; color: var(--ink); font-size: 18px; min-width: 22px; padding: 0; }
.moviefoot #heroComplete { font-size: 12px; white-space: nowrap; }
.progress { height: 2px; background: #e4e9e1; flex: 1; margin-left: 15px; }
.progress i { display: block; background: var(--green); height: 100%; width: 0; }

/* 特徴4点 */
/* 4つの売り：カードにして目に留まるように（2026-10-26 オーナー指示） */
.benefitline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 36px max(5%, calc((100% - 1300px) / 2)); background: #e8eee3; border-top: 1px solid #ccd9c5; border-bottom: 1px solid #ccd9c5; }
.benefitline > div { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px 22px; gap: 8px; background: #fff; border: 1px solid #d3ddcf; border-radius: 10px; box-shadow: 0 4px 14px rgba(24, 62, 54, .07); }
.benefitline b { font-size: 18px; font-weight: 700; white-space: nowrap; }
.benefitline span { font-size: 14px; color: #58735b; }
.benefit-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #e3ede0; margin-bottom: 4px; }
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.benefit-title { grid-column: 1 / -1; text-align: center; font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.top-hero .hero-eyebrow { font-size: 20px; font-weight: 700; color: var(--green); }
.nw { display: inline-block; }   /* 見出しを言葉の切れ目でだけ折り返す */
/* 入口のボタンまわり */
.top .cta-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.samples > span { font-size: 13px; color: var(--muted); align-self: center; margin-right: 2px; }
.top .quiet a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

/* 保存した間取り（ログイン中） */
.myplans { max-width: 1300px; margin: auto; padding: 56px 5% 10px; }
.myplans .plans { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.top .plan-card { border-color: var(--line); border-radius: 7px; }
.top .plan-card .name { font-size: 17px; }
.top .plan-card .date { font-size: 13px; }
.top .plan-card .actions .btn { font-size: 13px; padding: 5px 10px; }
.top .signup-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.top .signup-card p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.top .signup-card .row { display: flex; gap: 10px; flex-wrap: wrap; }
.top .empty { font-size: 15px; }

/* セクション見出し */
.sectiontop { display: flex; justify-content: space-between; gap: 25px; align-items: center; max-width: 1200px; margin: 0 auto 30px; }
.sectiontop .eyebrow { margin-bottom: 12px; }
.sectiontop h2 { margin-bottom: 0; }
.top h2 { font-size: 34px; line-height: 1.6; font-weight: 600; letter-spacing: -.025em; }
.top h2 small { font-size: 15px; font-weight: 400; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.top h3 { font-size: 21px; font-weight: 600; margin-bottom: 8px; }

/* AI連携 */
.how { max-width: 1360px; margin: auto; padding: 82px 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 7%; align-items: center; }
.how .eyebrow { display: inline-block; color: var(--green); border-bottom: 2px solid #96b482; padding-bottom: 9px; }
.how p:not(.eyebrow) { color: #5f6f65; font-size: 16px; line-height: 2; }
.how p.fine { font-size: 14px; margin-top: 22px; }
.how p.fine a { color: var(--green); text-decoration: underline; }
.steps { list-style: none; margin: 0; padding: 28px 32px; background: #fff; border: 1px solid #d5e0ce; border-radius: 8px; box-shadow: 0 15px 40px #244b3e06; }
.steps li { padding: 24px 0; border-bottom: 1px solid var(--line); display: flex; gap: 20px; }
.steps li:first-child { padding-top: 0; }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps b { font-size: 20px; color: #78917a; padding-top: 2px; }
.steps p { margin: 0; color: #5f6f65; }

/* できること */
.top-features { padding: 65px 5%; background: #edf1e9; }
.featuregrid { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.featuregrid p { font-size: 16px; line-height: 1.9; color: #5f6f65; }
.feature-illustration { margin-bottom: 25px; background: #e4ebde; border-radius: 7px; overflow: hidden; }
.feature-illustration svg { display: block; width: 100%; height: auto; }

/* 広告枠 */
.top .ad-slot { max-width: 1200px; margin: 40px auto 0; }

/* 更新情報 */
.updates { max-width: 1300px; margin: auto; padding: 72px 5%; }
.update-note { font-size: 14px; color: #70816f; }
.updates details { border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; }
.updates details:last-of-type { border-bottom: 1px solid var(--line); }
.updates summary { list-style: none; display: flex; align-items: center; gap: 22px; padding: 24px 0; cursor: pointer; font-size: 16px; }
.updates summary::-webkit-details-marker { display: none; }
.updates time { font-size: 14px; color: #6d806b; white-space: nowrap; }
.news-tag { font-size: 12px; background: #e8eee2; color: #476849; border-radius: 3px; padding: 3px 9px; white-space: nowrap; }
.updates summary b { font-weight: 500; }
.news-plus { margin-left: auto; color: #5f8059; transition: transform .2s; }
.updates details[open] .news-plus { transform: rotate(45deg); }
.updates details > p { padding: 0 0 25px 120px; color: #61715e; font-size: 15px; max-width: 900px; }
/* よくある質問：日付が無いので、答えは質問の頭にそろえる（2026-10-26） */
.faq summary b { font-weight: 600; flex: 1; }
.faq summary b::before { content: "Q."; color: var(--green); margin-right: 10px; }
.faq details > p { padding-left: 32px; line-height: 1.9; }
.faq a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

/* 最後の登録案内 */
.bottomcta { text-align: center; padding: 75px 5%; }
.bottomcta h2 { margin-bottom: 26px; }

/* フッター */
.top .site-footer { margin-top: 0; padding: 30px 0; font-size: 13px; color: #7a897d; border-color: var(--line); }
.top .site-footer .wrap { max-width: 1200px; padding: 0 5%; }
.top .site-footer nav a { color: var(--ink); font-size: 14px; }

@media (max-width: 1100px) {
  .top-hero { grid-template-columns: 1fr 1fr; }
  .ctas { gap: 12px; }
  .top .btn-main { padding: 14px 18px; gap: 15px; }
  .benefitline b { font-size: 16px; }
  .how h2 { font-size: 29px; }
  .featuregrid { gap: 25px; }
  .featuregrid h3 { font-size: 18px; }
}
@media (max-width: 850px) {
  .top .site-header { padding: 14px 5%; }
  .top .logo { font-size: 18px; }
  .top-nav { gap: 12px; }
  .top-nav > a { display: none; }
  .top-hero { grid-template-columns: 1fr; padding-top: 38px; gap: 28px; }
  .herotext { text-align: center; }
  .ctas, .hero-login, .samples { justify-content: center; }
  .movie { transform: none; max-width: 600px; width: 100%; margin: auto; }
  .eyebrow { font-size: 14px; }
  .top-hero .lead { font-size: 16px; }
  .benefitline { grid-template-columns: 1fr 1fr; padding: 24px 5%; gap: 12px; }
  .benefitline > div { padding: 18px 10px; }
  .benefitline b { font-size: 16px; }
  .benefitline span { font-size: 13px; }
  .how { grid-template-columns: 1fr; padding: 55px 6%; gap: 25px; }
  .top h2, .how h2 { font-size: 28px; }
  .steps { padding: 25px; }
  .top-features { padding: 50px 6%; }
  .featuregrid { grid-template-columns: 1fr; gap: 30px; }
  .feature-illustration { max-width: 360px; margin: 0 0 18px; }
  .sectiontop { align-items: flex-start; flex-direction: column; }
  .updates { padding: 50px 6%; }
  .updates summary { flex-wrap: wrap; gap: 8px 14px; }
  .updates summary b { width: calc(100% - 32px); order: 3; }
  .news-plus { order: 4; }
  .updates details > p { padding-left: 0; }
  .faq summary { flex-wrap: nowrap; }
  .faq summary b { width: auto; order: 0; }
}
@media (max-width: 480px) {
  .top .logo { font-size: 16px; white-space: nowrap; }
  .top .logo-mark { width: 27px; height: 27px; margin-right: 7px; }
  .top .header-actions .btn { font-size: 13px; }
  .top .header-actions .btn.primary { font-size: 13px; padding: 9px 11px; }
  .top .header-actions .user-chip { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-hero h1 { font-size: 28px; }
  .top-hero .eyebrow { font-size: 13px; }
  .top-hero .hero-eyebrow { font-size: 17px; }
  .benefit-title { font-size: 20px; }
  .hero-login { gap: 2px; flex-direction: column; }
  .moviehead { font-size: 12px; padding: 0 10px; }
  .movie .tag { font-size: 10px; }
  .moviefoot { font-size: 12px; gap: 8px; }
  .benefitline b { font-size: 15px; white-space: normal; }
  .benefitline span { font-size: 12px; }
  .benefit-icon { width: 44px; height: 44px; }
  .benefit-icon svg { width: 22px; height: 22px; }
  .how p:not(.eyebrow) { font-size: 15px; }
  .bottomcta h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
