/* Forest theme over site.css: deep green surfaces, dark green ink, framed photos, and the motion layer.
   Photos from the old site are at most 720-1000px wide, so no photo is drawn wider than half its pixels. */

:root {
  --paper: #FFFFFF; --ground: #F3F4F5; --ink: #0F1B13; --sub: #435047; --line: #E3E5E8;
  --olive: #174A2D; --olive-deep: #0A2417; --olive-pale: #E8EFEA; --leaf: #9CD3AC;
  /* Soft field green (畑) for the hero, the selling band and the footer, instead of the dark bands. */
  --field: #E6EFDC; --field-deep: #D7E5CB; --field-line: rgba(23, 74, 45, .14);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ring: 0 0 0 1px rgba(15, 27, 19, .08);
  --lift: 0 22px 44px -26px rgba(10, 36, 23, .5);
}

body { margin: 0; }

/* ---------- type and density ---------- */
.sh { margin-bottom: 40px; }
.sh h2, .mhead h2, .contact h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.22; letter-spacing: .01em; }
.sh p, .mhead p, .contact p { font-size: 16px; color: var(--sub); }
.logo small, .tel small, .cc .num, .st .num, .st span.pref, .lk span { font-size: 13px; }
.more { color: var(--ink); }

/* ---------- buttons: pill with the arrow in its own circle ---------- */
.btn { border-radius: 999px; padding: 15px 28px; font-size: 15px; }
.btn:not(.light):not(.ghost):not(.ghostd):not(.line) { background: var(--olive); color: #fff; }
.btn:not(.light):not(.ghost):not(.ghostd):not(.line):hover { background: #0F3A22; }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #F3F4F5; }
.btn .ic { display: grid; place-items: center; width: 30px; height: 30px; margin: -6px -16px -6px 6px; border-radius: 50%; background: var(--olive); color: #fff; transition: transform .45s var(--ease); }
.btn .ic svg { width: 16px; height: 16px; }
.btn:not(.light) .ic { background: rgba(255, 255, 255, .16); }
.btn:hover .ic { transform: translateX(3px); }

/* ---------- floating header ---------- */
header.site { top: 10px; margin: 10px auto 0; width: min(1272px, calc(100% - 20px)); border: 0; border-radius: 18px;
  background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: var(--ring); transition: box-shadow .35s ease; }
header.site .in { max-width: none; height: 68px; padding-inline: 22px 14px; }
/* The header sits at the top of the page and scrolls away with it, on every page and screen size. */
header.site { position: relative; top: 0; }
header.site.scrolled { box-shadow: var(--ring), 0 16px 40px -20px rgba(10, 36, 23, .4); }
/* The three links sit in one soft pill, each with room around it; the hovered one lifts to white. */
header.site nav { gap: 4px; padding: 4px; margin-left: 8px; border-radius: 999px; background: var(--ground); }
header.site nav a { padding: 9px 22px; border: 0; border-radius: 999px; font-size: 15px; color: var(--ink);
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
header.site nav a:hover { background: #fff; color: var(--olive); box-shadow: var(--ring); }
@media (max-width: 900px) { header.site .in { gap: 14px; } header.site nav a { padding: 8px 14px; } header.site .tel small { display: none; } }

/* ---------- hero: type on deep green, a wide picture under it, the newest real listings hanging on it as tags ---------- */
main#top { margin-top: -88px; }
.hero2 { position: relative; color: var(--ink); padding: 112px 0 48px; background: var(--field); }
.hero2-pic { position: relative; min-height: min(78vh, 680px); border-radius: 24px; overflow: hidden; background: #DCE3D6; }
.hero2-pic > picture img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 82% center; }
@media (max-width: 760px) { .hero2-pic > picture img { object-position: center; } }
/* A light veil on the left keeps the text readable on the sky and the field. */
.hero2-pic::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .62) 30%, rgba(255, 255, 255, .18) 52%, rgba(255, 255, 255, 0) 66%); }
.hero2-copy { position: relative; z-index: 1; max-width: 520px; padding: clamp(32px, 4vw, 56px); }
.hero2-eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: .08em; color: var(--olive); }
.hero2 h1 { margin: 0 0 18px; font-size: clamp(42px, 5.4vw, 78px); line-height: 1.08; font-weight: 500; }
.hero2 h1 .ln { display: block; }
.hero2-lead { max-width: 25em; margin: 0 0 22px; font-size: 15px; line-height: 1.85; color: var(--sub); }
.hero2 .ctas { display: inline-grid; gap: 10px; }
.hero2 .ctas .btn { justify-content: space-between; padding: 18px 32px; font-size: 17px; }
.hero2 .ctas .btn .ic { width: 34px; height: 34px; margin: -6px -18px -6px 16px; }
.hero2 .btn.light { background: var(--olive); color: #fff; }
.hero2 .btn.light:hover { background: #0F3A22; }
.hero2 .btn.light .ic { background: rgba(255, 255, 255, .16); }
.hero2 .btn.light.alt { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hero2 .btn.light.alt:hover { background: #F3F4F5; }
.hero2 .btn.light.alt .ic { background: var(--olive); color: #fff; }

/* ---------- framed photo cards ---------- */
.cc, .st, .pk { background: #fff; box-shadow: var(--ring); border-radius: 18px; }
.cc { grid-template-columns: 78px minmax(0, 1fr) 34px; padding: 8px 12px 8px 8px; gap: 16px; }
.cc .ph { width: 78px; border-radius: 12px; }
.cc b { font-size: 17px; }
.cc .num { color: var(--olive); }
.cc > svg { width: 34px; height: 34px; padding: 9px; border-radius: 50%; background: var(--ground); color: var(--ink); transition: background-color .25s ease, color .25s ease, transform .45s var(--ease); }
.cc:hover { background: #fff; }
.cc:hover > svg { background: var(--olive); color: #fff; transform: translateX(2px); }
.others a { border-radius: 999px; }
.others a:hover { color: var(--olive); }

.pk { padding: 8px 8px 20px; }
.pk .ph { border-radius: 12px; }
.pk .body { padding: 0 10px; }
.pk:hover { background: #fff; }

.st { border: 0; padding: 8px; }
.st .ph { border-radius: 12px; }
.st .hq { background: var(--olive); }
.st .ph .noimg { background: var(--field-deep); color: var(--olive); font-size: 17px; letter-spacing: .06em; }
.st:hover { background: #fff; border-color: transparent; }
.side li a[aria-current="true"], .tabl[aria-current="true"] { background: var(--olive); border-color: var(--olive); }
.rtabs button { border-radius: 999px; }
.rtabs button[aria-pressed="true"] { background: var(--olive); border-color: var(--olive); }

.reasons { border-top: 2px solid var(--olive); }
.reasons .num { color: var(--olive); }
.reasons b { font-size: 19px; }

:is(.cc, .pk, .st) { transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .2s ease; }
:is(.cc, .pk, .st):hover { transform: translateY(-4px); box-shadow: var(--ring), var(--lift); }
.cc .ph img, .st .ph img, .kinds img, .pk .ph img { transition: transform .7s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .cc:hover .ph img, .st:hover .ph img, .kinds a:hover img, .pk:hover .ph img { transform: scale(1.07); }
}

/* ---------- price tags (値札): every machine card hangs from a punched hole, with its code printed on it ---------- */
.m { position: relative; gap: 10px; padding: 26px 10px 14px; background: #fff; border-radius: 14px; box-shadow: var(--ring);
  transform-origin: 50% 13px; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.m::before { content: ""; position: absolute; top: 9px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  background: var(--ground); box-shadow: inset 0 1px 2px rgba(15, 27, 19, .3); }
.m .ph { border-radius: 9px; }
.m .code { display: block; margin-bottom: 2px; font-size: 12px; letter-spacing: .08em; color: var(--sub); }
.m .row { border-top: 1px dashed #C9CFD3; padding-top: 10px; }
.m .tag.pick { background: var(--olive); color: #fff; }
.m .cm { display: block; margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--leaf); font-size: 13px; line-height: 1.7; color: var(--sub); }
.m .cm::before, .m .cm::after { content: none; }
.m:active { transform: scale(.985); }
@media (hover: hover) and (pointer: fine) {
  .m:hover { transform: rotate(-1.5deg); box-shadow: var(--ring), var(--lift); }
  .m:hover .ph img { transform: none; }
}

/* ---------- kinds on the homepage: picture first, no box ---------- */
.cgrid.big { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 20px; }
.cgrid.big .cc { grid-template-columns: minmax(0, 1fr) 34px; padding: 0; gap: 16px 12px; background: none; box-shadow: none; border-radius: 0; }
.cgrid.big .cc .ph { grid-column: 1 / -1; width: auto; aspect-ratio: 4 / 3; border-radius: 18px; }
.cgrid.big .cc b { font-size: 20px; font-weight: 500; }
.cgrid.big .cc:hover { transform: none; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .cgrid.big .cc:hover .ph img { transform: scale(1.04); } }

/* ---------- store map ---------- */
.storemap { position: relative; --map-has: #CFDFD3; }
.jmap { display: block; width: 100%; height: auto; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 97%, transparent), linear-gradient(transparent, #000 7%, #000 90%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  /* Its own layer: Chrome mis-paints gradient masks without one and flashes them when anything around changes
     (issues.chromium.org/issues/40778541). */
  transform: translateZ(0); }
.jmap .land path { fill: #E7ECE8; stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; }
/* Map pins, red as on Google Maps: the point sits on the store; the store on show is larger. */
.pin { cursor: pointer; outline: none; --ps: 1; }
.pin .hit { fill: transparent; }
.pin .pm { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(var(--ps)); transition: transform .3s var(--ease); }
.pin .body { fill: #EA4335; stroke: #B31412; stroke-width: 1.2; }
.pin .eye { fill: #B31412; }
.pin .shadow { fill: rgba(10, 36, 23, .2); }
.pin text { font: 400 12.5px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .92); stroke-width: 4px; stroke-linejoin: round; }
.pin.l text { text-anchor: end; }
.pin.sel { --ps: 1.4; }
.pin.sel text { font-weight: 500; }
.pin:focus-visible .body { stroke: var(--ink); stroke-width: 2.5; }
.motion .pin.drop .pm { animation: pin-drop .42s var(--ease); }
@keyframes pin-drop { from { transform: translateY(-10px) scale(var(--ps)); opacity: .2; } }
.mapstop { position: absolute; top: 0; right: 0; z-index: 1; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border: 0; border-radius: 99px; background: #fff; box-shadow: var(--ring); font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; transition: transform 90ms ease-out; }
.mapstop:active { transform: scale(.985); }
.mapstop:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; }
.mapstop svg { width: 14px; height: 14px; fill: currentColor; }
.scard { position: absolute; right: 0; bottom: 0; width: min(380px, 42%); display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 16px; align-items: center;
  padding: 10px 20px 10px 10px; background: #fff; border-radius: 18px; box-shadow: var(--ring), var(--lift); }
.scard[hidden] { display: none; }
.scard .ph { grid-row: 1 / span 2; position: relative; width: 96px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--field-deep); }
.scard .ph img { width: 100%; height: 100%; object-fit: cover; }
.scard .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--olive); font-size: 17px; letter-spacing: .06em; }
.scard .t { display: grid; line-height: 1.5; min-width: 0; align-self: end; }
.scard small { font-size: 13px; color: var(--olive); }
.scard b { font-size: 19px; font-weight: 500; }
.scard .t .num { font-size: 13px; color: var(--sub); }
.scard .go { display: inline-flex; align-items: center; gap: 6px; align-self: start; font-size: 14px; color: var(--olive); }
.scard .go svg { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.scard:hover .go svg { transform: translateX(3px); }
.scard:active { transform: scale(.985); }
section.colband { --bg: var(--ground); margin-top: 72px; padding-block: 64px; }
section.colband + section { padding-top: 72px; }

/* ---------- selling band: pinned headline, steps that light up in order ---------- */
.buy { position: relative; margin-top: 120px; padding-block: 160px; color: var(--ink); background: var(--field); }
.buy2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.buy2-head { position: sticky; top: 112px; }
.buy h2 { margin: 0 0 24px; }
.buy p.lead { color: var(--sub); }
.promise { list-style: none; padding: 0; margin: -6px 0 34px; display: grid; gap: 12px; }
.promise li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.promise svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--olive); }
.buy .ctas { gap: 18px; }
.buy .ctas .tel a.num { color: var(--olive); font-size: 26px; }
.buy .ctas .tel small, .sellnote { color: var(--sub); }
.buy .btn.light { background: var(--olive); color: #fff; }
.buy .btn.light:hover { background: #0F3A22; }
.buy .btn.light .ic { background: rgba(255, 255, 255, .16); }
.sellnote { display: block; margin-top: 18px; font-size: 13px; }
.kinds { gap: 0; }
.kinds a { grid-template-columns: 168px minmax(0, 1fr) auto; padding: 18px 6px 18px 0; background: none; border-radius: 0; border-top: 1px solid var(--field-line); }
.kinds a:last-child { border-bottom: 1px solid var(--field-line); }
.kinds a:hover { background: none; }
.kinds img { width: 168px; border-radius: 14px; }
.kinds span { color: var(--sub); }
.kinds svg { color: var(--olive); }

.flow2 { position: relative; list-style: none; margin: 64px 0 0; padding: 0 0 0 30px; display: grid; gap: 14px; }
.flow2::before, .flow2::after { content: ""; position: absolute; left: 7px; top: 34px; bottom: 34px; width: 2px; border-radius: 2px; }
.flow2::before { background: var(--field-line); }
.flow2::after { background: var(--olive); transform-origin: top; transform: scaleY(var(--p, 0)); transition: transform .8s var(--ease); }
.flow2 li { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 12px; align-items: start; padding: 28px 30px; border-radius: 20px;
  background: rgba(255, 255, 255, .45); box-shadow: inset 0 0 0 1px var(--field-line); transition: background-color .6s var(--ease), box-shadow .6s var(--ease); }
.flow2 li::before { content: ""; position: absolute; left: -29px; top: 34px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--field); box-shadow: inset 0 0 0 2px rgba(23, 74, 45, .3); transition: background-color .5s ease, box-shadow .5s ease; }
.flow2 .n { font-size: 46px; line-height: 1; font-weight: 500; color: rgba(23, 74, 45, .28); transition: color .6s var(--ease); }
.flow2 b { display: block; font-size: 21px; margin: 2px 0 8px; font-weight: 500; }
.flow2 p { margin: 0; color: var(--sub); font-size: 15px; }
.flow2 li.is-on { background: #fff; box-shadow: inset 0 0 0 1px rgba(23, 74, 45, .3), 0 18px 36px -24px rgba(23, 74, 45, .35); }
.flow2 li.is-on .n { color: var(--olive); }
.flow2 li.is-on::before { background: var(--olive); box-shadow: 0 0 0 5px rgba(23, 74, 45, .14); }

/* ---------- selling form: one input page, then a check page ---------- */
.prog { list-style: none; display: flex; gap: 0; margin: 0 0 28px; padding: 0; counter-reset: p; }
.prog li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--sub); }
.prog li + li::before { content: ""; width: clamp(28px, 6vw, 64px); height: 2px; margin: 0 14px; border-radius: 2px; background: var(--line); transition: background-color .4s var(--ease); }
.prog .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.prog li.on { color: var(--ink); }
.prog li.on .num { background: var(--olive); color: #fff; box-shadow: none; }
.prog li.on + li.on::before { background: var(--olive); }
.prog li[aria-current] { font-weight: 500; }
form.sell { background: #fff; box-shadow: var(--ring); border-radius: 24px; padding: 40px; }
form.sell .step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
form.sell .grp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid var(--line); }
form.sell .grp > legend { float: left; width: 100%; grid-column: 1 / -1; margin: 0 0 4px; font-size: 21px; font-weight: 500; }
form.sell .grp > legend i { font-style: normal; font-size: 12px; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-left: 10px; vertical-align: 3px; }
form.sell .grp > p, form.sell .grp > .picbtns, form.sell .grp > .ups, form.sell .grp > .err, form.sell .grp > fieldset, form.sell .grp > textarea { grid-column: 1 / -1; }
form.sell .grp > .fine2 { margin: 0; }
form.sell .grp:last-of-type { border-bottom: 0; margin-bottom: 8px; padding-bottom: 0; }
form.sell input, form.sell select, form.sell textarea { border-radius: 12px; background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
form.sell input:focus, form.sell select:focus, form.sell textarea:focus { outline: 0; background: #fff; border-color: var(--olive); box-shadow: 0 0 0 4px rgba(23, 74, 45, .14); }
form.sell input[type=radio], form.sell input[type=checkbox] { accent-color: var(--olive); }
form.sell label.rd.full { grid-column: 1 / -1; }
form.sell .hint { font-size: 13px; color: var(--sub); }
form.sell .hint a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
form.sell .stepnav { border: 0; padding: 0; }
form.sell .picbtns label.btn { display: inline-flex; padding-block: 12px; }
/* Computer camera (査定フォーム): live view, a round shutter, the count of photos so far. */
.camdlg { width: min(720px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; overflow: hidden; background: #0E1410; color: #fff; }
.camdlg::backdrop { background: rgba(10, 14, 11, .62); }
body:has(dialog.camdlg[open]) { overflow: hidden; }
.cam-view { position: relative; aspect-ratio: 4 / 3; background: #000; }
.cam-view video { display: block; width: 100%; height: 100%; object-fit: cover; }
.cam-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 32px; text-align: center; font-size: 15px; line-height: 1.8; color: #E6ECE7; }
.cam-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 18px; }
.cam-count { font-size: 14px; color: #C9D3CB; }
.cam-shutter { width: 66px; height: 66px; border-radius: 50%; border: 4px solid #fff; background: #fff; box-shadow: inset 0 0 0 3px #0E1410; cursor: pointer; transition: transform 90ms ease-out, opacity .2s ease; }
.cam-shutter:active { transform: scale(.94); }
.cam-shutter:disabled { opacity: .3; cursor: default; }
.cam-shutter:focus-visible { outline: 2px solid var(--leaf); outline-offset: 4px; }
#sCamClose { justify-self: end; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); background: transparent; }
@keyframes cam-flash { from { opacity: .85; } to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) { .cam-view.flash::after { content: ""; position: absolute; inset: 0; background: #fff; pointer-events: none; animation: cam-flash .35s ease-out forwards; } }
form.sell #sIn > .stepnav { margin-top: 24px; }
form.sell .ups li { background: var(--paper); border-radius: 12px; }
form.sell .storepick { display: grid; gap: 10px; padding: 18px 20px; border-radius: 18px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
form.sell .storepick { grid-column: 1 / -1; }
form.sell .grp > label { align-content: start; }
.sp-h { font-size: 14px; }
.sp-body { display: grid; gap: 10px; justify-items: start; }
.sp-note { margin: 0; font-size: 14px; color: var(--sub); }
.sp-store { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; }
.sp-pin { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--olive); color: #fff; }
.sp-store small { display: block; font-size: 12px; color: var(--olive); }
.sp-store b { display: block; font-size: 19px; font-weight: 500; line-height: 1.4; }
.sp-store span > span { display: block; font-size: 13px; color: var(--sub); }
.sp-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; width: 100%; }
.sp-choice { display: grid; gap: 2px; text-align: left; padding: 12px 16px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font: inherit; color: var(--ink); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease, transform 90ms ease-out; }
.sp-choice:active { transform: scale(.985); }
.sp-choice b { font-weight: 500; font-size: 16px; }
.sp-choice span { font-size: 12px; color: var(--sub); }
.sp-choice small { font-size: 12px; color: var(--olive); }
.sp-choice[aria-pressed="true"] { background: var(--olive-pale); box-shadow: inset 0 0 0 2px var(--olive); }
.lnk { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--olive); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sp-gps { display: inline-flex; align-items: center; gap: 6px; justify-self: start; text-decoration: none; }
.sp-gps svg { width: 16px; height: 16px; }
.sp-gps[disabled] { opacity: .5; cursor: wait; }
@keyframes sp-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: no-preference) { .sp-body.fresh { animation: sp-in .3s var(--ease); } }
.telcheck { display: grid; justify-items: start; gap: 4px; padding: 24px 28px; margin-bottom: 28px; border-radius: 18px; background: var(--olive-pale); }
.telcheck small { font-size: 14px; color: var(--olive); }
.telcheck b { font-size: clamp(30px, 5vw, 40px); line-height: 1.2; font-weight: 500; letter-spacing: .02em; }
.telcheck span { font-size: 14px; color: var(--sub); }
form.sell .spec { margin-bottom: 32px; border-top-color: var(--line); }
.tradebox { background: #fff; box-shadow: var(--ring); border-radius: 18px; padding: 10px 18px 10px 10px; }
.tradebox img { border-radius: 12px; }
.tradebox small { color: var(--olive); }

/* ---------- links, contact, footer ---------- */
.links { column-gap: 0; }
.lk { grid-template-columns: 46px minmax(0, 1fr) 18px; padding: 18px 28px 18px 4px; }
.lk b { font-size: 17px; }
.lk .lic { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: var(--olive-pale); color: var(--olive); transition: background-color .25s ease, color .25s ease; }
.lk .lic.yt { color: #E62117; }
.lk:hover b { color: var(--olive); }
@media (hover: hover) and (pointer: fine) { .lk:hover .lic, .lk:hover .lic.yt { background: var(--olive); color: #fff; } }

.contact { background: transparent; margin-top: 0; padding-block: 96px 120px; }
.contact .band { position: relative; padding-top: 48px; }
.contact .band::before { content: ""; position: absolute; top: 0; left: var(--gut-l); right: var(--gut-r); border-top: 1px solid var(--ink); }
/* Call button: the number in a card with a phone icon, so it reads as something to press. */
.callrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.telcard { display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 18px; background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(23, 74, 45, .3); color: var(--ink); transition: box-shadow .2s ease, background-color .2s ease, transform 90ms ease-out; }
.telcard .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--olive); color: #fff; }
.telcard .ico svg { width: 22px; height: 22px; }
.telcard > span:last-child { display: grid; line-height: 1.3; }
.telcard .num { font-size: clamp(26px, 2.8vw, 34px); font-weight: 500; color: var(--olive); letter-spacing: .01em; }
.telcard small { font-size: 12px; color: var(--sub); }
.telcard .on-touch { display: none; }
@media (hover: none) { .telcard .on-touch { display: inline; } .telcard .on-desk { display: none; } }
@media (hover: hover) and (pointer: fine) { .telcard:hover { background: var(--olive-pale); box-shadow: inset 0 0 0 1.5px var(--olive); } }
.telcard:active { transform: scale(.985); }
.callrow .btn.line { padding-inline: 24px; border-radius: 18px; }
.btn.line.soon { background: var(--ground); color: var(--sub); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }

footer { position: relative; padding-top: 160px; padding-bottom: 48px; color: var(--sub); background: var(--field-deep); }
footer .logo b, footer h4 { color: var(--ink); }
footer .logo small { color: var(--sub); }
footer a:hover { color: var(--olive); }
footer .fine { border-top-color: var(--field-line); }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto; gap: 32px 56px; align-items: start; }
.fbrand p { margin: 10px 0 0; line-height: 1.7; word-break: keep-all; }
.flinks { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px 24px; }
.flinks a, .fext a { color: var(--ink); }
.fext { display: grid; gap: 12px; justify-items: start; }
.fext a { display: inline-flex; align-items: center; gap: 6px; }
.fext svg { width: 14px; height: 14px; color: var(--sub); }
footer .fine a { color: var(--sub); }

/* ---------- contact → footer: no line, the footer's colour fills in from white as it arrives ----------
   (CSS scroll-driven animation; where unsupported, the footer is simply its colour). */
footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 144px; pointer-events: none; background: linear-gradient(var(--paper), rgba(255, 255, 255, 0)); }
footer > .in { position: relative; z-index: 1; }
@keyframes band-in { from { background-color: var(--paper); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    footer { animation: band-in linear both; animation-timeline: view(); animation-range: cover 0% cover 40vh; }
  }
}

/* ---------- scroll-linked sections (home.blade.php measures them and sets --sp, 0 to 1, on .sp-on pages) ---------- */
@property --sp { syntax: '<number>'; inherits: false; initial-value: 0; }
/* 1. Curtain: the hero stays; the next section slides over it while the hero darkens and steps back. */
.hero2 > .in { position: relative; z-index: 1; }
.hero2-shade { display: none; }
.sp-on .hero2 { position: sticky; min-height: 100vh; }
.sp-on .hero2 > .in { transform: scale(calc(1 - var(--sp) * .05)); transform-origin: 50% 100%; will-change: transform; }
.sp-on .hero2-shade { display: block; position: absolute; inset: 0; z-index: 2; background: #0B110D; opacity: calc(var(--sp) * .35); pointer-events: none; will-change: opacity; }
.sp-on .hero2 + section { position: relative; z-index: 40; background: var(--paper); border-radius: 32px 32px 0 0; box-shadow: 0 -34px 56px -40px rgba(10, 36, 23, .5); }
/* Everything after the hero covers it (the hero stays put until it is covered). Each section sits above the one after it
   (z-index set in home.blade.php), so a card's edge or shadow that hangs past a section is never covered by the next.
   No specificity, so bands keep their colour. */
:where(.sp-on .hero2 ~ *) { position: relative; z-index: 3; background-color: var(--paper); }

/* 2. 種類: the picture stays while the kinds pass; the kind in the middle of the screen is the one shown.
   Not shown on phones (too fiddly at that size): narrower than 760px, or a phone turned sideways (short and touch). */
@media (max-width: 759px), (max-height: 500px) and (pointer: coarse) { #cats { display: none; } }
.kpin { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.kpin-fig { position: sticky; top: max(112px, calc(50vh - 22vw)); margin: 0; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; background: var(--ground); }
.kpin-fig img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); filter: blur(12px);
  transition: opacity .7s var(--ease), transform 1s var(--ease), filter .7s var(--ease); }
.kpin-fig img.on { opacity: 1; transform: none; filter: none; }
.kpin-list { list-style: none; margin: 0; padding: 6vh 0 12vh; }
.kpin-list a { min-height: 17vh; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 16px; color: #A3ABA5; transition: color .35s ease; }
.kpin-list b { font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.25; }
.kpin-list svg { align-self: center; width: 26px; height: 26px; opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .45s var(--ease); }
.kpin-list li.on a, .kpin-list a:hover, .kpin-list a:focus-visible { color: var(--ink); }
.kpin-list li.on svg, .kpin-list a:hover svg { opacity: 1; transform: none; color: var(--olive); }
.kpin-list .kmore a { color: var(--olive); }
.kpin-list .kmore svg { opacity: 1; transform: none; }

/* 4. Selling band: a rounded card that grows to full width as it arrives, and goes back to a card as it leaves. */
.sp-on .buy { clip-path: inset(calc((1 - var(--sp)) * 72px) calc((1 - var(--sp)) * 6vw) round calc((1 - var(--sp)) * 44px)); }

/* 5. Stores: a still map; the store card changes on its own (partials/map). */
#stores .jmap { height: min(calc(100vh - 240px), 64vw); }
.jmapbox { position: relative; }
.jpins { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; }

}



/* ---------- motion: one entrance per kind of thing, in reading order (layout.blade.php marks what to animate) ---------- */
@keyframes w-in { from { opacity: 0; transform: translateY(.42em); filter: blur(10px); } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(18px); filter: blur(5px); } }
@keyframes focus-in { from { opacity: 0; transform: scale(1.12); filter: blur(20px); } 30% { opacity: 1; } }
@keyframes frame-open { from { clip-path: inset(8% 6% round 26px); } to { clip-path: inset(0 round 0); } }
@keyframes tag-in { from { opacity: 0; transform: translateY(-18px) rotate(-5deg); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(12px); } }

.w { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Hero, on load: words, then the lead and buttons, the picture opens into focus, the tags swing in last. */
  /* Hero, on load: the picture opens into focus, then the words rise on it, then the lead and buttons. */
  .hero2-pic { animation: frame-open 1.6s var(--ease) .05s backwards; }
  .hero2-pic > picture img { animation: focus-in 1.8s var(--ease) .05s backwards; }
  .hero2-eyebrow { animation: soft-rise .9s var(--ease) .5s backwards; }
  .hero2 h1 .w { animation: w-in 1s var(--ease) calc(.6s + var(--w) * 110ms) backwards; }
  .hero2-lead { animation: soft-rise .9s var(--ease) 1s backwards; }
  .hero2 .ctas { animation: soft-rise .9s var(--ease) 1.12s backwards; }

  /* Waiting to come into view. */
  .motion :is(.rv, .rv-tag, .rv-pic, .rv-row):not(.on), .motion .rv-w:not(.on) .w { opacity: 0; }

  .motion .rv-w.on .w { animation: w-in .95s var(--ease) calc(var(--w) * 70ms) backwards; }
  .motion .rv.on { animation: soft-rise .9s var(--ease) calc(.18s + var(--d, 0) * 80ms) backwards; }
  /* Photo cards: the card rises, then its picture opens into focus. */
  .motion .rv-pic.on { animation: soft-rise .9s var(--ease) calc(.1s + var(--d, 0) * 90ms) backwards; }
  .motion .rv-pic.on img { animation: focus-in 1.4s var(--ease) calc(.18s + var(--d, 0) * 90ms) backwards, frame-open 1.4s var(--ease) calc(.18s + var(--d, 0) * 90ms) backwards; }
  /* Price tags swing down from their hole, one after another. */
  .motion .rv-tag.on { transform-origin: 50% 13px; animation: tag-in 1s var(--ease) calc(.1s + var(--d, 0) * 80ms) backwards; }
  .motion .rv-tag.on img { animation: focus-in 1.2s var(--ease) calc(.25s + var(--d, 0) * 80ms) backwards; }
  /* List rows are written in from the left. */
  .motion .rv-row.on { animation: wipe 1s var(--ease) calc(.15s + var(--d, 0) * 70ms) backwards; }
  /* Rules over the numbers and the column list draw from the left: a strip in the background colour slides off them. */
  .motion :is(.reasons, .colist) { position: relative; }
  .motion :is(.reasons, .colist)::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 3px; background: var(--bg, var(--paper)); transform-origin: right; transition: transform 1.3s var(--ease) .1s; }
  .motion :is(.reasons, .colist).on::before { transform: scaleX(0); }
  .motion .mbanner:not(.on) img { opacity: 0; }
  .motion .mbanner.on img { animation: focus-in 1.5s var(--ease) backwards, frame-open 1.5s var(--ease) backwards; }
  .scard:not([hidden]) { animation: float-in .45s var(--ease); }
}

/* ---------- small screens ---------- */
@media (max-width: 1080px) {
  .buy2 { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .buy2-head { position: static; }
}
@media (max-width: 760px) {
  header.site { margin-top: 6px; width: calc(100% - 12px); border-radius: 14px; }
  header.site .in { height: 58px; padding-inline: 14px 10px; }
  main#top { margin-top: -70px; }
  .hero2 { padding: 84px 0 28px; }
  .hero2-pic { min-height: min(80vh, 640px); border-radius: 18px; }
  .hero2-pic::after { background: linear-gradient(180deg, rgba(255, 255, 255, .86) 0%, rgba(255, 255, 255, .7) 38%, rgba(255, 255, 255, 0) 64%); }
  .hero2-copy { padding: 24px 20px; }
  .kinds a { grid-template-columns: 112px minmax(0, 1fr) auto; }
  .cgrid.big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .cgrid.big .cc { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cgrid.big .cc > svg { display: none; }
  .cgrid.big .cc b { font-size: 16px; }
  .cgrid.big .cc .ph { border-radius: 14px; }
  .pin text { display: none; }
  #stores .jmap { height: auto; }
  .pin { --ps: 2.1; }
  .pin.sel { --ps: 2.9; }
  .pin .shadow { transform: scale(2); }
  .scard { position: static; width: auto; margin-top: 12px; }
  .kpin { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kpin-fig { top: 70px; z-index: 2; aspect-ratio: 16 / 10; border-radius: 16px; box-shadow: 0 18px 30px -24px rgba(10, 36, 23, .5); }
  .kpin-list { padding: 8px 0 18vh; }
  .kpin-list a { min-height: 24vh; }
  .kpin-list b { font-size: 26px; }

  .colist a { padding-block: 14px; }
  .kinds img { width: 112px; }
  .hero2 h1 { font-size: clamp(38px, 11vw, 52px); margin-bottom: 12px; }
  .hero2-lead { font-size: 14px; margin-bottom: 16px; }
  .hero2 .ctas .btn { padding: 10px 16px; font-size: 14px; }
  .hero2 .ctas .btn .ic { width: 26px; height: 26px; margin: -4px -8px -4px 8px; }
  #column { display: none; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .lk { grid-template-columns: minmax(0, 1fr) 16px; align-items: start; gap: 10px 8px; padding: 16px 2px; }
  .lk .lic { grid-column: 1; width: 40px; height: 40px; padding: 10px; border-radius: 12px; }
  .lk .ex { grid-column: 2; grid-row: 1; width: 16px; height: 16px; }
  .lk span { grid-column: 1 / -1; font-size: 12px; }
  .lk b { font-size: 15px; }
  .kinds a { padding-right: 14px; }
  .kinds b { font-size: 17px; }
  .kinds span { font-size: 13px; }
  .buy { padding-block: 80px; }
  .flow2 li { grid-template-columns: 52px minmax(0, 1fr); padding: 22px 20px; }
  .flow2 .n { font-size: 36px; }
  .contact .band { padding-top: 32px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .telcard { flex: 1 1 100%; }
  .callrow .btn.line { flex: 1 1 100%; justify-content: center; padding-block: 14px; }
  form.sell { padding: 24px 18px; border-radius: 20px; }
  form.sell .grp { grid-template-columns: minmax(0, 1fr); }
  .prog li { font-size: 14px; }
  .prog li + li::before { margin: 0 8px; }
  .telcheck { padding: 20px; }
}

/* Error pages (resources/views/errors). One entrance on load, nothing loops. */
.errbody { min-height: 100dvh; display: flex; flex-direction: column; }
.errpage { flex: 1; padding-block: 56px 88px; }
.errgrid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; }
.errtext { display: grid; gap: 14px; justify-items: start; }
.errtext h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.35; font-weight: 500; }
.errtext p { margin: 0; color: var(--sub); max-width: 34em; line-height: 1.9; }
.errtext .errcode { font-size: 13px; letter-spacing: .12em; color: var(--olive); }
.erracts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.errmore { margin-top: 64px; display: grid; gap: 18px; }
.errmore h2 { margin: 0; font-size: 20px; font-weight: 500; }
.errfoot { padding: 20px 0 28px; font-size: 12px; color: var(--sub); border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .errpage { padding-block: 20px 64px; }
  .errgrid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .errart { max-width: 260px; }
  .erracts { width: 100%; }
  .erracts .btn { flex: 1 1 100%; }
  .errmore { margin-top: 48px; }
}

.tractor { display: block; width: 100%; height: auto; overflow: hidden; }
.tractor .ground { stroke: var(--line); stroke-width: 2; }
.tractor .tuft { fill: none; stroke: #A9C7B0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tractor .body { fill: var(--olive); }
.tractor .dk, .tractor .lug { fill: var(--olive-deep); }
.tractor .glass { fill: #F3F4F5; }
.tractor .eye { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.tractor .tr-pupils { fill: var(--ink); }
.tractor .grille { fill: none; stroke: var(--olive-deep); stroke-width: 2; stroke-linecap: round; }
.tractor .lamp { fill: #FFE9A8; stroke: var(--olive-deep); stroke-width: 1.5; }
.tractor .tire { fill: #18201A; }
.tractor .tread { fill: none; stroke: #2E3A31; stroke-width: 6; stroke-dasharray: 5 6; }
.tractor .rim { fill: var(--olive-pale); }
.tractor .hub { fill: var(--olive); }
.tractor .fender { fill: none; stroke: var(--olive-deep); stroke-width: 8; stroke-linecap: round; }
.tractor .tr-puff { fill: #C9D3CB; opacity: 0; }
.tractor.m-broken .tr-puff { fill: #8E9A91; }
.tractor .bub { fill: #fff; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.tractor .sym { fill: var(--olive); font: 500 28px var(--font); text-anchor: middle; dominant-baseline: central; }
.tractor .symline { fill: none; stroke: var(--olive); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tractor .symfill { fill: var(--olive); }

/* Drives in from the left; the wheels turn by the distance travelled (140px / radius), so they roll instead of skid. */
.tractor .tr { animation: tr-drive 1.2s cubic-bezier(.32, .72, 0, 1) both; }
.tractor .tr-wheel { transform-box: fill-box; transform-origin: center; animation: tr-roll 1.2s cubic-bezier(.32, .72, 0, 1) both; }
.tractor .rear { --turn: -196deg; }
.tractor .front { --turn: -321deg; }
.tractor .tr-bubble { transform-box: fill-box; transform-origin: 25% 100%; animation: tr-pop .22s var(--ease) 1.1s both; }
.tractor .tr-puff { transform-box: fill-box; transform-origin: center; animation: tr-puff 1.5s var(--ease) 2 both; }
.tractor .tr-puff:nth-child(2) { animation-delay: .5s; }
.tractor .tr-puff:nth-child(3) { animation-delay: 1s; }
.tractor .tr-eyes { transform-box: fill-box; transform-origin: center; animation: tr-blink 3.2s linear 1.4s 2; }
.tractor.m-lost .tr-pupils { animation: tr-glance 2.2s cubic-bezier(.77, 0, .175, 1) 1.3s both; }
@keyframes tr-drive { from { transform: translateX(-140px); opacity: 0; } 30% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes tr-roll { from { transform: rotate(var(--turn)); } to { transform: none; } }
@keyframes tr-pop { from { opacity: 0; transform: translateY(4px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes tr-puff { 0% { opacity: 0; transform: none; } 15% { opacity: .8; } 100% { opacity: 0; transform: translate(-16px, -40px) scale(1.8); } }
@keyframes tr-blink { 0%, 88%, 100% { transform: none; } 92% { transform: scaleY(.1); } }
@keyframes tr-glance { 0%, 100% { transform: none; } 25%, 45% { transform: translateX(-3px); } 65%, 85% { transform: translateX(3px); } }
@keyframes tr-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .tractor .tr, .tractor .tr-wheel, .tractor .tr-puff, .tractor .tr-eyes, .tractor .tr-pupils { animation: none; }
  .tractor .tr-bubble { animation: tr-fade .2s ease-out .2s both; }
}

.pnote { margin: 10px 0 0; font-size: 13px; color: var(--sub); }
.side .flags { display: grid; gap: 4px; }
.side .flag { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 15px; cursor: pointer; transition: background-color .15s ease; }
.side .flag:hover { background: var(--ground); }
.side .flag input { width: 18px; height: 18px; margin: 0; accent-color: var(--olive); }
.side .flag .num { font-size: 13px; color: var(--sub); }
.side .flag:has(input:disabled) { opacity: .45; cursor: default; }
.pnote a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }

/* Article and fixed-page body (Article::html). */
.prose { max-width: 46em; font-size: 16px; line-height: 1.95; color: var(--ink); }
.prose p { margin: 0 0 1.3em; }
.prose h2 { margin: 2.4em 0 .8em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 22px; font-weight: 500; line-height: 1.5; }
.prose h3 { margin: 1.9em 0 .6em; font-size: 18px; font-weight: 500; line-height: 1.5; }
.prose > :first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose figure { margin: 0 0 1.6em; }
.prose figure img { display: block; max-width: 100%; height: auto; border-radius: 6px; }
.prose .kv { width: 100%; margin: 0 0 1.6em; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.prose .kv th, .prose .kv td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose .kv tr:first-child > * { border-top: 1px solid var(--line); }
.prose .kv th { width: 10em; padding-right: 24px; font-weight: 500; color: var(--sub); }
@media (max-width: 760px) {
  .prose h2 { font-size: 20px; }
  .prose .kv th, .prose .kv td { display: block; width: auto; padding: 0; border: 0; }
  .prose .kv tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .prose .kv tr:first-child { border-top: 1px solid var(--line); }
  .prose .kv tr:first-child > * { border-top: 0; }
  .prose .kv th { margin-bottom: 2px; font-size: 13px; }
}

/* お知らせ: date and title only (no category label), one full-width list. */
.news a { grid-template-columns: 96px minmax(0, 1fr); }
