/* 姉妹サイト共通の型（帯・深い緑の最初の1画面・番号つきの札・深い緑のフッタ）。
   /code/ と /shikaku/ の入口で使う。入口（/index.html）は同じ決まりを自分の <style> に持っている。
   もち（サイトのキャラ）と丸みは残す。 */
:root { --pagebg: #e9efe7; --band-a: #ffffff; --band-b: #edf3ec; --card-line: #c5d1c1; --deep: #1f3a2a;
        --mono2: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
html, body { overflow-x: clip; }
body { background: var(--pagebg); }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }

/* ヘッダ＝上に貼りつく白いガラス */
.topbar { background: rgb(255 255 255 / .86); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

/* 最初の1画面＝深い緑の帯（暗い帯はこの1本だけ） */
.first { background: radial-gradient(60rem 26rem at 92% -10%, rgb(124 190 140 / .22), transparent 60%), linear-gradient(160deg, #24402f, #1f3a2a 55%, #18301f); color: #fff; }
.first .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: 52px 56px; }
.first .eyebrow { margin: 0 0 14px; font-family: var(--mono2); font-size: .8rem; letter-spacing: .08em; color: #dfe8d8; }
.first .eyebrow a { color: inherit; }
.first h1 { margin: 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); line-height: 1.28; font-weight: 800; letter-spacing: -.02em; }
.first h1 span { display: inline-block; }
.first .lead { margin: 16px 0 24px; max-width: 32em; color: #e4ece0; line-height: 1.75; }
.first .btn.light { background: #fff; color: var(--deep); box-shadow: 0 3px 0 #9fbfa8; font-size: 1.05rem; padding: 13px 26px; }
.first .btn.light:hover { background: #eef5ef; }
.promise { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 0; font-size: .85rem; color: #dfe8d8; }
.promise { gap: 6px 18px; }
.promise li { display: inline-flex; align-items: center; gap: 7px; }
.promise li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #8fb39a; }
/* 右＝もちのアーチ＋もちの一言（吹き出し） */
.first .side { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.first .arch { flex: none; width: 170px; height: 192px; border-radius: 90px 90px 14px 14px; background: #f3f6f2; border: 6px solid #fff; display: grid; place-items: end center; overflow: hidden; box-shadow: 0 12px 28px rgb(0 0 0 / .3); }
.first .arch .mochi { width: 148px; height: auto; margin-bottom: 4px; animation: bob 3s ease-in-out infinite; }
.first .hello { position: relative; max-width: 15rem; margin: 0 0 120px; padding: 14px 16px; background: #fff; color: var(--ink); border-radius: 14px; font-size: .95rem; line-height: 1.65; box-shadow: 0 10px 24px rgb(0 0 0 / .22); }
.first .hello::after { content: ""; position: absolute; left: -9px; bottom: 18px; border: 9px solid transparent; border-left: 0; border-right-color: #fff; }
.first .hello b { color: var(--accent-strong); }

/* 帯＝画面の端から端まで。番号つきの札＋大見出し */
main { counter-reset: band; }
.band { padding-block: 60px; }
.band.a { background: var(--band-a); }
.band.b { background: var(--band-b); }
.tag-n { counter-increment: band; display: flex; align-items: center; gap: .6em; margin: 0 0 10px; font-family: var(--mono2); font-size: .8rem; color: var(--accent); letter-spacing: .04em; }
.tag-n::before { content: counter(band, decimal-leading-zero) "  |"; font-weight: 700; }
.tag-n::after { content: ""; width: 3rem; height: 1px; background: currentColor; opacity: .5; }
.band h2 { margin: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.35; }
.band .sub { margin: 10px 0 0; max-width: 42em; color: var(--ink-soft); line-height: 1.75; }

/* フッタ＝深い緑 */
footer.site { margin-top: 0; border-top: 0; background: var(--deep); color: #c9d6c5; }
footer.site .in { max-width: 1160px; }
footer.site .who, footer.site .sites-h { color: #fff; }
footer.site .sites-h { font-family: var(--mono2); letter-spacing: .06em; }
footer.site a { color: #e8f0e4; }
footer.site ul.sites span { color: #a9bca8; }
footer.site .face { border: 3px solid #fff; }
.member-ad { max-width: 1128px; }

/* 帯の見出しだけ、出てくる時に小さく動く（動きを減らす設定なら動かさない） */
html.js-reveal [data-reveal]:not(.shown) { opacity: 0; transform: translateY(14px); }
[data-reveal] { transition: opacity .5s ease, transform .5s ease; }
@media (prefers-reduced-motion: reduce) { html.js-reveal [data-reveal]:not(.shown) { opacity: 1; transform: none; } [data-reveal] { transition: none; } .first .arch .mochi { animation: none; } }

@media (max-width: 860px) {
  .first .wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-block: 34px 38px; }
  .first .side { justify-content: flex-start; align-items: center; }
  .first .arch { width: 104px; height: 118px; border-width: 4px; }
  .first .arch .mochi { width: 90px; }
  .first .hello { margin: 0; font-size: .88rem; }
  .band { padding-block: 44px; }
}
@media (max-width: 560px) {
  .first .btn.light { display: block; text-align: center; }
  .first .side { gap: 14px; }
}
