/* ほったら菜園の LP の見た目。手本はリドルインク・ころころ倉庫の web/lp/site.css（作りと段の並びを写し、色と形をこのゲームに替えた）。
   ゲームの色（scripts/main.gd）：空の青・草の緑・札のクリーム・焦げ茶の字・差し色の橙・畑の土。形は畑の畝（区切り）と芽（段の印）。
   書体は Noto Sans JP の1つ（ゲームと同じ太さ 500/700。fonts/ に切り出して同梱）。韓・繁中は端末の字。
   ダークモードは作らない（11/26 利用者）。やらないこと：太い黒縁・ネオン・お金を思わせる見た目。 */

@font-face { font-family: "HG Sans"; src: url("fonts/NotoSansJP-sub.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fffaf1; --cream2: #f6ecdc; --sheet: #fffdf8;
  --sky: #9fd8f5; --sky2: #e6f6ff;
  --leaf: #5f9e3a; --leaf-d: #3f7a22; --leaf-s: #e4f2d4; --grass: #eef6e2;
  --soil: #a36f45; --soil-d: #7a4f2c;
  --ink: #3b2a1c; --muted: #6d5640; --rule: #eadcc4;
  --or: #f08a3c; --or-t: #b5561a; --or-d: #d86f1f; --or-s: #ffe8d2;
  --sans: "HG Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 18px;
  --sh: 0 1px 2px rgba(59,42,28,.06), 0 12px 30px rgba(59,42,28,.10);
}
body.l-ko { --sans: "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif; word-break: keep-all; overflow-wrap: anywhere; }
body.l-zh-tw { --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 500; font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background: var(--cream); overflow-x: clip;
}
body:not(.l-ja) { letter-spacing: 0; line-height: 1.7; }
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--or-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--or-d); }
:focus-visible { outline: 2px solid var(--or); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: .03em; margin: 0; }
body:not(.l-ja) h1, body:not(.l-ja) h2, body:not(.l-ja) h3 { letter-spacing: 0; }
.l-ja h1, .l-ja h2, .l-ja h3, .l-zh-tw h2, .l-zh-tw h3 { word-break: keep-all; overflow-wrap: anywhere; }
.l-ko h1, .l-ko h2, .l-ko h3 { word-break: keep-all; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯（sticky。fixed にしない：jan-quest が上に帯を足す） */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,250,241,.95); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(255,250,241,.84); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; min-height: 48px; margin-right: auto; }
.brand img { width: 36px; height: auto; }
.brand b { font-weight: 900; font-size: 19px; letter-spacing: .06em; line-height: 1.1; white-space: nowrap; color: var(--leaf-d); }
body:not(.l-ja) .brand b { letter-spacing: .01em; }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.site-nav a:hover { color: var(--or-t); }
@media (max-width: 900px) { .site-nav a { padding: 0 6px; font-size: 13px; } .brand small { display: none; } }
@media (max-width: 767px) { .site-nav { display: none; } }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 99px; background: var(--sheet); font-size: 13px; font-weight: 700; white-space: nowrap; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.langs > div { position: absolute; right: 0; top: calc(100% + 6px); background: var(--sheet); border: 1px solid var(--rule); border-radius: 14px; box-shadow: var(--sh); padding: 6px; display: grid; min-width: 160px; z-index: 30; }
.langs > div a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.langs > div a:hover { background: var(--grass); }

/* 段の印（芽）と見出し */
.folio { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: var(--leaf-d); font-size: 14px; font-weight: 800; letter-spacing: .14em; }
body:not(.l-ja) .folio { letter-spacing: .06em; }
.folio::after { content: ""; flex: 1; height: 2px; max-width: 220px; background: repeating-linear-gradient(90deg, var(--soil) 0 10px, transparent 10px 16px); opacity: .35; border-radius: 2px; }
.sprout { width: 26px; height: 26px; flex: none; fill: var(--leaf-s); stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sec { padding: 64px 0; }
@media (min-width: 960px) { .sec { padding: 80px 0; } }
.sec .shot-cap:last-child { margin-bottom: -16px; }
.sec.tint { background: linear-gradient(180deg, var(--grass), #f4f9ec); border-top: 1px solid #dfeccd; border-bottom: 1px solid #dfeccd; }
.sec h2 { font-size: clamp(26px, 5.4vw, 40px); margin-bottom: 18px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }
/* 畑の畝の区切り */
.rows { height: 22px; max-width: 1120px; margin: 0 auto; background:
  radial-gradient(ellipse 18px 7px at 50% 70%, #8cbf5e 60%, transparent 62%) 0 0 / 44px 22px repeat-x,
  linear-gradient(180deg, transparent 55%, rgba(163,111,69,.28) 55%, rgba(163,111,69,.28) 75%, transparent 75%); opacity: .9; }

/* ボタンと札 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 14px; font: 800 15px/1.2 var(--sans); text-decoration: none; background: var(--leaf); color: #fff; box-shadow: 0 6px 16px rgba(63,122,34,.28); }
.btn:hover { background: var(--leaf-d); color: #fff; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; border: 1.5px solid var(--or); color: var(--or-t); border-radius: 99px; font-weight: 800; font-size: 14px; background: var(--or-s); letter-spacing: .06em; }
.seal::before { content: ""; width: 8px; height: 8px; background: var(--or); border-radius: 50%; flex: none; }
.seal.light { border-color: rgba(255,255,255,.9); color: #fff; background: rgba(255,255,255,.18); }
.seal.light::before { background: #fff; }

/* 最初の画面（空から畑へ） */
.hero { padding: 36px 0 48px; background: linear-gradient(180deg, var(--sky2) 0%, #f3fbff 40%, var(--cream) 100%); }
.hero .wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 56px 0 72px; } .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.kick { margin: 0 0 12px; }
.kick .pill { display: inline-block; background: var(--leaf-s); color: var(--leaf-d); border-radius: 99px; padding: 3px 14px; font-size: 14px; font-weight: 800; letter-spacing: .06em; line-height: 1.6; }
.logo { font-weight: 900; color: var(--leaf-d); letter-spacing: .04em; line-height: 1.08; font-size: clamp(54px, 14vw, 96px); margin: 0 0 14px;
  text-shadow: 0 3px 0 #fff, 0 0 22px rgba(255,255,255,.95), 0 10px 26px rgba(63,122,34,.20); }
body:not(.l-ja) .logo { letter-spacing: -.01em; font-size: clamp(48px, 11vw, 86px); line-height: 1.0; }
br.sp { display: none; }
@media (max-width: 520px) { br.sp { display: inline; } }
.catch { font-size: clamp(22px, 4.6vw, 30px); font-weight: 800; line-height: 1.45; margin: 0 0 16px; color: var(--or-t); }
.hero .lead { font-size: 16.5px; max-width: 32em; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 22px; }
.hero-art { margin: 0; width: 100%; }
.hero-art .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--sh), 0 0 0 6px #fff, 0 0 0 7px var(--rule); background: var(--grass); aspect-ratio: 16 / 9; }
.hero-art .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: right; }

/* 畑の顔ぶれ */
.cast-h { font-size: 20px; margin: 40px 0 16px; }
.cast { display: grid; gap: 18px; }
@media (min-width: 900px) { .cast { grid-template-columns: 1.5fr 1fr 1fr; } }
.cast-card { margin: 0; background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh), 0 0 0 1px rgba(234,220,196,.8); padding: 16px 18px 20px; display: grid; gap: 12px; align-content: start; }
.cast-pics { display: flex; justify-content: center; align-items: flex-end; gap: 6px; min-height: 150px; padding: 12px 8px 6px; border-radius: 14px;
  background: radial-gradient(ellipse at 50% 92%, #d8ebc0 0, #eef6e2 55%, transparent 75%); }
.cast-pics img { width: 23%; max-width: 128px; }
.cast-pics.veg img { width: 21%; max-width: 70px; }
.cast-pics.one img { width: 46%; max-width: 140px; }
.cast-card figcaption { font-size: 15px; line-height: 1.75; }
.cast-card figcaption b { display: block; font-size: 19px; font-weight: 800; }
.cast-card figcaption small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 4px; letter-spacing: .04em; }

/* 画面（端末の枠） */
.phone { margin: 0; border-radius: 26px; padding: 7px; background: #4a3524; box-shadow: var(--sh); }
.phone img { border-radius: 20px; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--grass); }
.steps, .moments { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 32px 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .steps, .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; } }
@media (min-width: 1040px) { .steps, .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; } }
.step, .moment { display: grid; gap: 16px; align-content: start; }
.step .phone, .moment .phone { width: 100%; max-width: 240px; margin: 0 auto; }
@media (max-width: 719px) { .step, .moment { gap: 10px; } .step h3, .moment h3 { font-size: 17px; } .step p, .moment p { font-size: 14px; line-height: 1.7; } .step .phone, .moment .phone { padding: 5px; border-radius: 18px; } .step .phone img, .moment .phone img { border-radius: 14px; } }
@media (min-width: 720px) { .step .phone, .moment .phone { max-width: 260px; } }
@media (min-width: 1040px) { .step .phone, .moment .phone { margin: 0; } }
.step .no { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50% 50% 50% 8px; background: var(--leaf); color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 8px; }
.step h3, .moment h3 { font-size: 19px; margin-bottom: 6px; }
.moment h3 { padding-left: 12px; border-left: 5px solid var(--or); margin-bottom: -8px; }
.step p, .moment p { font-size: 15px; margin: 0; }
.shot-cap { font-size: 13px; color: var(--muted); margin: 26px 0 0; line-height: 1.6; }

/* 特長 */
.features { display: grid; gap: 20px; margin-top: 36px; align-items: start; }
.feature.wide { grid-template-columns: 1fr; }
.feature.wide .ico { width: 100%; height: auto; border-radius: 16px; padding: 10px 8px 4px; background: radial-gradient(ellipse at 50% 90%, #d8ebc0 0, var(--grass) 60%, transparent 80%); }
.feature.wide .ico img { max-width: 100%; max-height: none; width: 100%; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.feature { background: var(--sheet); border-radius: var(--r); padding: 22px 22px 24px; box-shadow: var(--sh), 0 0 0 1px rgba(234,220,196,.8); display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: start; }
.feature .ico { width: 84px; height: 84px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #fff 0, var(--grass) 70%); display: grid; place-items: center; }
.feature .ico img { max-width: 60px; max-height: 64px; width: auto; }
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { font-size: 15px; margin: 0; }
.feature.shot { grid-template-columns: 150px 1fr; align-items: center; }
.feature.shot .phone { padding: 5px; border-radius: 18px; }
.feature.shot .phone img { border-radius: 14px; }
@media (max-width: 420px) { .feature { grid-template-columns: 1fr; } .feature.shot { grid-template-columns: 1fr; gap: 14px; } .feature.shot .phone { max-width: 200px; margin: 0 auto; } }

/* よくある質問 */
.qa { margin: 28px 0 0; display: grid; gap: 12px; max-width: 860px; }
.qa > div { background: var(--sheet); border-radius: 14px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--rule); }
.qa dt { font-weight: 800; font-size: 16.5px; display: flex; gap: 10px; }
.qa dt::before { content: "Q"; color: #fff; background: var(--leaf); border-radius: 50% 50% 50% 6px; width: 26px; height: 26px; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 2px; }
.qa dd { margin: 6px 0 0 36px; font-size: 15px; }

/* 締め（草の緑の大きな段） */
.release { padding: 8px 0 88px; }
.release-in { position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 44px 24px 0; text-align: center;
  background: radial-gradient(ellipse at 25% 0%, #9fd06b, transparent 60%), linear-gradient(165deg, #6fae45, #4f8f2f 65%, #3f7a22);
  box-shadow: 0 16px 40px rgba(63,122,34,.30); display: grid; gap: 8px; justify-items: center; }
.release-in::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, transparent 0, rgba(122,79,44,.55) 0) 0 0 / 100% 100%; clip-path: polygon(0 40%, 6% 0, 12% 40%, 18% 0, 24% 40%, 30% 0, 36% 40%, 42% 0, 48% 40%, 54% 0, 60% 40%, 66% 0, 72% 40%, 78% 0, 84% 40%, 90% 0, 96% 40%, 100% 10%, 100% 100%, 0 100%); }
@media (min-width: 860px) { .release-in { grid-template-columns: 260px 1fr; text-align: left; justify-items: start; align-items: end; padding: 48px 56px 0; gap: 40px; } }
.release-in .mole { width: 200px; order: 2; margin-bottom: 8px; position: relative; z-index: 1; filter: drop-shadow(0 10px 18px rgba(30,60,10,.35)); }
@media (min-width: 860px) { .release-in .mole { order: 0; width: 240px; } .release-in > div { padding-bottom: 60px; } }
.release-in .logo.small { font-size: clamp(36px, 8vw, 56px); color: #fff; text-shadow: 0 4px 18px rgba(30,60,10,.35); margin: 0 0 6px; }
.release-in h2 { font-size: clamp(22px, 4.4vw, 30px); margin: 0 0 10px; }
.release-in p { margin: 0 0 18px; color: #f2fae8; }
.release-in .deco { position: absolute; opacity: .95; filter: drop-shadow(0 8px 12px rgba(30,60,10,.3)); }
.release-in .deco.a { right: 28px; top: 22px; width: 72px; transform: rotate(10deg); }
.release-in .deco.b { right: 110px; bottom: 40px; width: 62px; transform: rotate(-10deg); }
@media (max-width: 859px) { .release-in .deco { display: none; } }

/* 足 */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.site-foot .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.site-foot p { margin: 0; }

/* 名前は語の途中で割らない。2列の最初の画面（960〜）では、列の幅に合わせて字を小さくする（見直し 11/29） */
.logo, .logo .nb { overflow-wrap: normal; word-break: keep-all; }
@media (min-width: 960px) { .hero .logo { font-size: clamp(64px, 7.2vw, 96px); } }

/* 360 以下：頭の帯の名前と言語のボタンが重ならないよう詰める（英語の長い名前） */
@media (max-width: 360px) { .brand b { font-size: 16px; } .langs summary { padding: 0 10px; } .site-head .wrap { gap: 8px; } }

/* 狭い画面：最初の絵は縦の絵を大きく、遊び方・見どころの写真は 1 枚ずつ大きく（jan-quest 12/1・リドルインクに合わせる） */
.hero-art picture { display: block; height: 100%; }
@media (max-width: 959px) { .hero-art .frame { aspect-ratio: 3 / 4; max-width: 560px; margin: 0 auto; } .hero-art figcaption { max-width: 560px; margin-left: auto; margin-right: auto; } }
@media (max-width: 719px) {
  .steps, .moments { grid-template-columns: 1fr; gap: 44px; }
  .step .phone, .moment .phone { max-width: 260px; padding: 7px; border-radius: 26px; }
  .step .phone img, .moment .phone img { border-radius: 20px; }
  .step, .moment { gap: 14px; max-width: 420px; margin: 0 auto; width: 100%; }
  .step h3, .moment h3 { font-size: 19px; } .step p, .moment p { font-size: 15px; line-height: 1.8; }
}
