/* はたけの学校 つちんこ（デモ） — 画用紙の白に、土の色の手描きの線 */
:root {
  --soil: #8B5E3C;
  --soil-d: #4A3222;
  --leaf: #7FB04A;
  --leaf-d: #4E7D24;
  --sky: #BFE3F0;
  --paper: #FFFDF7;
  --sky-35: color-mix(in srgb, var(--sky) 35%, var(--paper));
  --sky-60: color-mix(in srgb, var(--sky) 60%, transparent);
  --leaf-25: color-mix(in srgb, var(--leaf) 25%, var(--paper));
  --leaf-12: color-mix(in srgb, var(--leaf) 12%, var(--paper));
  --soil-15: color-mix(in srgb, var(--soil) 15%, var(--paper));
  --hand: "Yusei Magic", "Zen Maru Gothic", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, sans-serif;
  --fs: clamp(15px, .9rem + .2vw, 17px);
  --w: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--soil-d); font-family: var(--body); font-size: var(--fs); line-height: 1.85; letter-spacing: .02em; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--soil-d); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--leaf-d); }
:focus-visible { outline: 3px solid var(--leaf-d); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
h1, h2, h3 { font-weight: 400; margin: 0; line-height: 1.45; font-feature-settings: "palt"; word-break: auto-phrase; text-wrap: balance; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(var(--w), 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.narrow-l { max-width: 720px; }
.num { font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.small { font-size: .86em; color: color-mix(in srgb, var(--soil-d) 82%, var(--paper)); line-height: 1.7; }
.small-b { font-size: .92em; }

/* ---------- ロゴ ---------- */
.logo { display: block; text-decoration: none; }
.logo__svg { width: 168px; height: auto; overflow: visible; }
.lg-boot { fill: var(--lg-boot, #8B5E3C); }
.lg-band { stroke: var(--lg-band, #FFFDF7); stroke-width: 1.6; }
.lg-leaf { fill: var(--leaf); }
.lg-sprout { fill: none; stroke: var(--leaf-d); stroke-width: 2; stroke-linecap: round; }
.lg-word { font-family: var(--hand); font-size: 31px; fill: var(--soil-d); letter-spacing: .04em; }
.lg-sub { font-family: var(--body); font-weight: 700; font-size: 11.5px; fill: var(--soil); letter-spacing: .2em; }
.logo--light { --lg-boot: #FFFDF7; --lg-band: #8B5E3C; }
.logo--light .lg-word { fill: var(--paper); }
.logo--light .lg-sub { fill: var(--sky); }
.demo-tag { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--soil); border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; line-height: 15px; align-self: center; opacity: .8; }

/* ---------- ヘッダー ---------- */
.head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 2px solid var(--soil-15); }
.head__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.head__brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.gnav { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 26px); }
.gnav a { position: relative; text-decoration: none; font-weight: 700; font-size: 15px; padding: 6px 0; white-space: nowrap; }
.gnav a[aria-current="page"]::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -2px; height: 7px; background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 20 2.6, 38 6.4, 56 4 S 86 2.8, 98 4.6' fill='none' stroke='%237FB04A' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.gnav__tel { display: none; }
.head__menu { display: none; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; padding: 10px 26px; border: 0; border-radius: 999px; background: var(--leaf-d); color: #fff; font: 700 16px/1.4 var(--body); letter-spacing: .04em; text-decoration: none; box-shadow: 0 2px 0 var(--soil); cursor: pointer; transition: transform .15s ease; }
.btn:hover { color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 0 0 var(--soil); }
.btn--head { min-height: 42px; padding: 8px 20px; font-size: 15px; }
.btn svg { width: 16px; height: 20px; color: #fff; }
.more { font-weight: 700; color: var(--soil-d); text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: .35em; }

/* ---------- 見出し ---------- */
.h1 { font-family: var(--hand); font-size: clamp(34px, 4.2vw, 56px); color: var(--soil); letter-spacing: .04em; }
.h2 { display: flex; align-items: flex-end; gap: 10px; font-family: var(--hand); font-size: clamp(25px, 2.5vw, 34px); color: var(--soil); letter-spacing: .04em; margin-bottom: 26px; }
.h2__mark { width: 24px; height: 22px; flex: none; margin-bottom: .36em; }
.h2--s { font-size: 20px; margin: 40px 0 14px; }
.h3 { font-family: var(--body); font-weight: 700; font-size: 1.12em; color: var(--soil-d); margin: 0 0 .5em; }
.lead { font-size: 1.06em; max-width: 40em; margin: 14px 0 0; }
.lead-s { font-size: 1.04em; }
.crumb { font-size: 13px; padding: 14px 0 0; display: flex; gap: 8px; color: var(--soil); }
.crumb a { color: var(--soil); }

/* ---------- 区画 ---------- */
.sec { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.sec--tight { padding: clamp(36px, 4.5vw, 56px) 0; }
.sec--sky { background: var(--sky-35); }
.sec--leaf { background: var(--leaf-12); }
.une { width: 60%; margin: 0 auto; height: 22px; }
.une svg { width: 100%; height: 100%; }
.une path { fill: none; stroke: var(--soil); stroke-width: 2; stroke-linecap: round; }
.sec + .une, .une + .sec { margin-block: 0; }
.nextnav { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; padding: 8px 0 72px; }

/* ---------- 写真の貼り方 ---------- */
.pin { position: relative; margin: 0; background: #fff; padding: 8px; transform: rotate(var(--r, 0deg)); box-shadow: 0 1px 2px rgba(74, 50, 34, .16), 0 10px 22px -14px rgba(74, 50, 34, .45); }
.pin img { width: 100%; }
.pin::before, .pin::after { content: ""; position: absolute; width: 88px; height: 24px; background: var(--sky-60); clip-path: polygon(0 8%, 6% 0, 10% 12%, 16% 2%, 22% 10%, 100% 4%, 94% 14%, 100% 26%, 95% 40%, 100% 54%, 94% 68%, 100% 82%, 96% 100%, 4% 94%, 0 82%, 5% 68%, 0 52%, 6% 38%, 0 24%); z-index: 2; }
.pin::before { left: -22px; top: 8px; transform: rotate(-38deg); }
.pin::after { display: none; right: -22px; top: 8px; transform: rotate(36deg); }
.pin--tr::before { display: none; }
.pin--tr::after, .pin--tl::after { display: block; }
.pin--flat { --r: 0deg; }
.memo { font-family: var(--hand); color: var(--soil); font-size: 17px; line-height: 1.4; }
.pin > .memo { position: absolute; right: 8px; bottom: -34px; }

/* ---------- 最初の画面 ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero__plan { position: absolute; inset: 0; z-index: 0; }
.plan { width: 100%; height: auto; overflow: visible; }
.plan--hero { width: 100%; height: 100%; overflow: hidden; }
.plan--hero .pl-t, .plan--hero .pl-s, .plan--hero .pl-c, .plan--hero .pl-h { opacity: .75; }
.hero__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 4.4fr) minmax(0, 7.6fr); gap: 40px; align-items: center; }
.hero__h { font-family: var(--hand); font-size: clamp(36px, 3.9vw, 56px); line-height: 1.36; color: var(--soil); letter-spacing: .03em; margin-bottom: 22px; }
.hero__p { font-size: 1.04em; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 26px; }
.hero__board { position: relative; aspect-ratio: 1200 / 760; margin: 70px calc((100vw - min(var(--w), 100vw - 40px)) / -2 + 24px) 30px 0; }
.hero__pin { position: absolute; z-index: 1; }
.hero__pin img { aspect-ratio: 3 / 2; object-fit: cover; }
.hero__pin--a { left: -4%; top: -9%; width: 45%; --r: -2deg; z-index: 2; }
.hero__pin--b { right: 2%; top: -6%; width: 32%; --r: 3deg; }
.hero__pin--b::before { display: none; }
.hero__pin--b::after { display: block; }
.hero__pin--c { left: 57%; top: 69%; width: 25%; --r: -1deg; z-index: 3; }
.memo--a { position: absolute; right: 14px; top: -36px; font-size: 20px; transform: rotate(-3deg); }
.memo--a::after { content: " ↓"; }
.js .hero__pin { animation: pin-drop .7s cubic-bezier(.2, .8, .3, 1.1) both; }
.js .hero__pin--b { animation-delay: .15s; }
.js .hero__pin--c { animation-delay: .3s; }
@keyframes pin-drop { from { opacity: 0; transform: translateY(-16px) rotate(var(--r)); } to { opacity: 1; transform: translateY(0) rotate(var(--r)); } }
.sway { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 6s ease-in-out infinite; }
.sway--2 { animation-delay: -3s; }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* 区画図の線 */
.pl-frame { fill: none; stroke: var(--soil); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pl-line { fill: none; stroke: var(--soil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pl-une { fill: none; stroke: var(--soil); stroke-width: 2; stroke-linecap: round; }
.pl-une.fl { fill: var(--leaf-25); }
.pl-hatch { fill: url(#hatch); stroke: var(--soil); stroke-width: 1.6; stroke-dasharray: 6 5; }
.pl-water { fill: var(--sky-60); }
.pl-fence { fill: none; stroke: var(--soil); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.pl-t { font: 700 17px var(--body); fill: var(--soil-d); }
.pl-v { writing-mode: vertical-rl; letter-spacing: .1em; }
.pl-h { font: 400 21px var(--hand); fill: var(--soil); }
.pl-s { font: 700 14px var(--body); fill: var(--soil-d); }
.pl-c { font: 400 19px var(--hand); fill: var(--soil-d); }
.pl-name rect { fill: var(--paper); stroke: var(--soil); stroke-width: 1.6; }
.plan .fs, .ic .fs { fill: var(--soil-15); }
.plan .fl, .ic .fl { fill: var(--leaf-25); }
.plan .fk, .ic .fk { fill: var(--sky-60); }
.plan .fw, .ic .fw { fill: #fff; }
.plan path.fs { stroke: var(--soil); stroke-width: 1.6; }
.ic { fill: none; stroke: var(--soil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 図の共通 ---------- */
.fig { margin: 0 0 28px; }
.fig__h--sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fig__h { font-family: var(--hand); font-size: 22px; color: var(--soil); margin-bottom: 10px; }
.fig__note { font-size: .86em; margin: 12px 0 0; }
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv-l { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * .08s); }
.js .is-in .rv-l, .js .rv-l.is-in { opacity: 1; transform: none; }

/* ---------- T-1 1年の暦 ---------- */
.cal__key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; font-weight: 700; margin: 0 0 10px; }
.cal__key span { display: inline-flex; align-items: center; gap: 6px; }
.cal__key span::before { content: ""; width: 18px; height: 12px; border: 1.5px solid var(--soil); border-radius: 3px; }
.k-up::before { background: var(--leaf-25); }
.k-dn::before { background: var(--soil-15); }
.k-ln::before { border: 0 !important; border-top: 2px dashed var(--soil) !important; height: 0 !important; width: 26px !important; border-radius: 0 !important; }
.cal { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: auto minmax(118px, auto) repeat(4, 22px) minmax(118px, auto) auto; border: 2px solid var(--soil); border-radius: 14px 18px 12px 16px; overflow: hidden; background: var(--paper); position: relative; }
.cal > * { grid-column: var(--dc); grid-row: var(--dr); }
.cal__m { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 8px 12px; border-bottom: 1.5px solid var(--soil); }
.cal__m, .cal__up, .cal__dn, .cal__cap { border-left: 1.5px dashed color-mix(in srgb, var(--soil) 60%, transparent); }
.cal > [style*="--i:0;"] { border-left: 0; }
.cal__mn { white-space: nowrap; font-weight: 700; font-size: 20px; color: var(--soil); font-variant-numeric: tabular-nums; }
.cal__t { font-size: 12px; font-weight: 700; background: var(--sky-60); border-radius: 999px; padding: 0 8px; }
.cal__up { background: var(--leaf-25); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cal__dn { background: var(--soil-15); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cal__up, .cal__dn, .cal__m, .cal__cap { position: relative; z-index: 1; }
.cal__cap { margin: 0; padding: 10px; font-size: 13px; line-height: 1.6; border-top: 1.5px solid var(--soil); }
.cal__rest { z-index: 1; background: var(--sky-60); display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; padding: 8px 10px 12px; border-left: 1.5px dashed color-mix(in srgb, var(--soil) 60%, transparent); }
.cal__rest .cal__mn { align-self: flex-start; padding-left: 2px; }
.cal__rest b { font-family: var(--hand); font-weight: 400; font-size: 24px; color: var(--soil); margin-top: auto; margin-bottom: auto; }
.cal__rest small { font-size: 13px; line-height: 1.6; }
.cal__ln { z-index: 2; position: relative; display: flex; align-items: center; padding-left: 14px; padding-right: 14px; }
.cal__ln::before { content: ""; position: absolute; left: 10px; right: 12px; top: 50%; border-top: 2px dashed var(--soil); }
.cal__ln::after { content: ""; position: absolute; right: 8px; top: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); border: 1.5px solid var(--soil); }
.cal__ln span { position: relative; background: var(--paper); font-family: var(--hand); font-size: 14px; line-height: 1; padding: 3px 8px; border-radius: 999px; border: 1.5px solid var(--soil); color: var(--soil-d); }
.crop { display: inline-flex; align-items: center; gap: 4px; }
.crop svg { width: 34px; height: 34px; flex: none; }
.crop b { font-family: var(--hand); font-weight: 400; font-size: 17px; color: var(--soil-d); line-height: 1.2; }
.crop--s { font-size: 12.5px; font-weight: 700; line-height: 1.4; padding-left: 4px; }
.imodot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.imodot::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--leaf); flex: none; }
.course__txt { max-width: 720px; margin-left: auto; margin-right: 6%; }

/* ---------- いも掘りの日（トップ） ---------- */
.imo2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 64px); margin-bottom: 36px; }
.imo2 .pin { margin-bottom: 16px; }
.imo2__i:nth-child(2) { margin-top: 40px; }
.imo2 .h3 { font-family: var(--hand); font-weight: 400; font-size: 26px; color: var(--soil); margin: 6px 0 0; }
.imo2__d { font-weight: 700; font-variant-numeric: tabular-nums; }
.imo__txt { max-width: 720px; }

/* ---------- 持ってくるもの ---------- */
.mochi { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; align-items: center; }
.mochi__h { grid-column: 1 / -1; }
.t2 { position: relative; }
.t2__wide { width: 100%; }
.t2__narrow, .t2__list { display: none; }
.t2-line { fill: none; stroke: var(--soil); stroke-width: 1.4; stroke-dasharray: 3 4; }
.t2-dot { fill: var(--soil); }
.t2-ground { fill: none; stroke: var(--soil); stroke-width: 2.4; stroke-linecap: round; }
.t2-t { font: 400 21px var(--hand); fill: var(--soil-d); }
.t2-s { font: 700 13px var(--body); fill: var(--soil-d); }
.t2-memo { font: 400 18px var(--hand); fill: var(--soil); }
.t2__extra { display: inline-block; margin-top: 8px; background: var(--sky-60); border: 1.5px solid var(--soil); border-radius: 12px 16px 10px 14px; padding: 10px 16px; font-size: 14px; }
.t2__eh { font-family: var(--hand); font-size: 17px; color: var(--soil); margin: 0 0 4px; }
.t2__extra ul { list-style: none; margin: 0; padding: 0; }
.t2__extra li { display: flex; align-items: center; gap: 6px; font-weight: 700; line-height: 1.5; }
.t2__extra li svg { width: 26px; height: 26px; }
.t2__extra small { font-weight: 400; }
.p-toujitsu .fig-t2 { max-width: 900px; margin-inline: auto; margin-bottom: 40px; }
.t2__extra ul { display: flex; flex-wrap: wrap; gap: 4px 18px; }

/* ---------- 料金（トップ） ---------- */
.price-wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: 0 48px; align-items: start; }
.price-wrap .h2 { grid-row: 1 / 3; margin-top: 18px; }
.paper { position: relative; background: #fff; padding: 26px clamp(20px, 3vw, 36px); box-shadow: 0 1px 2px rgba(74, 50, 34, .14), 0 12px 24px -18px rgba(74, 50, 34, .5); border: 8px solid #fff; outline: 1px solid var(--soil-15); }
.paper::before { content: ""; position: absolute; left: 50%; top: -16px; width: 96px; height: 24px; margin-left: -48px; background: var(--sky-60); transform: rotate(-2deg); clip-path: polygon(0 8%, 6% 0, 10% 12%, 16% 2%, 22% 10%, 100% 4%, 94% 14%, 100% 26%, 95% 40%, 100% 54%, 94% 68%, 100% 82%, 96% 100%, 4% 94%, 0 82%, 5% 68%, 0 52%, 6% 38%, 0 24%); }
.price__g { padding: 6px 0 14px; border-bottom: 2px dashed var(--soil-15); margin-bottom: 14px; }
.price__n { font-family: var(--hand); font-size: 23px; color: var(--soil); }
.price__n small { font-family: var(--body); font-size: 14px; color: var(--soil-d); }
.price__r { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 0; }
.price__r span { flex: 1; }
.price__r b { font-size: clamp(26px, 2.6vw, 34px); color: var(--soil); white-space: nowrap; }
.price__cta { margin-top: 26px; }

/* ---------- うちの畑（トップ・/hatake/） ---------- */
.hatake { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hatake__img .pin { --r: -1.5deg; max-width: 400px; }

/* ---------- よくある質問 ---------- */
.notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.note { position: relative; background: #fff; padding: 22px 24px 8px; border: 8px solid #fff; outline: 1px solid var(--soil-15); box-shadow: 0 10px 22px -16px rgba(74, 50, 34, .5); }
.js .note.rv { transform: translateY(14px) rotate(var(--r)); }
.note, .js .note.rv.is-in { transform: rotate(var(--r)); }
.note::before { content: ""; position: absolute; left: -14px; top: -12px; width: 72px; height: 22px; background: var(--sky-60); transform: rotate(-30deg); clip-path: polygon(0 8%, 6% 0, 10% 12%, 16% 2%, 22% 10%, 100% 4%, 94% 14%, 100% 26%, 95% 40%, 100% 54%, 94% 68%, 100% 82%, 96% 100%, 4% 94%, 0 82%, 5% 68%, 0 52%, 6% 38%, 0 24%); }
.note:nth-child(even)::before { left: auto; right: -14px; transform: rotate(28deg); }
.note__q { font-weight: 700; font-size: 1.04em; margin-bottom: 8px; color: var(--soil); }
.notes--4 .note:nth-child(even) { margin-top: 28px; }
.faq__more { text-align: right; margin-top: 30px; }

/* ---------- 表 ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1.5px dashed color-mix(in srgb, var(--soil) 45%, transparent); }
.tbl th { font-weight: 700; white-space: nowrap; color: var(--soil); }
.tbl--info { max-width: 860px; margin-bottom: 14px; }
.tbl--info th { width: 9em; }
.basho .btn { margin-top: 10px; }
.tblwrap { overflow-x: auto; }
.tbl--sched thead th { font-size: 13px; color: var(--soil-d); border-bottom: 2px solid var(--soil); }
.tbl--year tbody th { font-size: 20px; width: 4.5em; }
.tbl--year tr.is-rest td, .tbl--year tr.is-rest th { background: var(--sky-60); }
.tbl--year tr.is-rest td { font-family: var(--hand); font-size: 20px; color: var(--soil); }
.tbl--price th { font-family: var(--hand); font-weight: 400; font-size: 21px; }
.tbl--price .yen { font-size: 26px; color: var(--soil); text-align: right; white-space: nowrap; }
.tbl--cancel th { width: 44%; white-space: normal; }
.tbl--cancel thead th { font-size: 13px; color: var(--soil-d); border-bottom: 2px solid var(--soil); }
.tbl--small { font-size: 14px; }
.tbl--small th { width: 11em; white-space: normal; }

/* ---------- ページの頭 ---------- */
.phead { position: relative; }
.phead__img { position: relative; height: 45vh; min-height: 260px; max-height: 520px; overflow: hidden; }
.phead--40 .phead__img { height: 40vh; }
.phead__img img { width: 100%; height: 100%; object-fit: cover; }
.phead__edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 38px; }
.phead__edge path { fill: var(--paper); }
.phead__txt { padding: 26px 0 10px; }
.phead--plain .phead__txt { padding: 48px 0 20px; }
.phead--plain .une { margin: 18px 0 0; width: 220px; }

/* ---------- 2段組み ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.split__img { padding-top: 12px; }
.split--r { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split__img .pin { max-width: 560px; }
.split__img--tall .pin { max-width: 340px; margin-inline: auto; }
.split .memo { position: static; display: block; margin-top: 10px; }

/* ---------- 1年のコースの月ごとの話 ---------- */
.months { list-style: none; margin: 36px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.months__i { display: grid; grid-template-columns: 4.2em 1fr; gap: 14px; padding: 18px 12px; border-bottom: 1.5px dashed color-mix(in srgb, var(--soil) 45%, transparent); }
.months__i.is-rest { background: var(--sky-60); border-radius: 10px; }
.months__m { font-size: 30px; color: var(--soil); line-height: 1.1; }
.months__a { font-weight: 700; margin-bottom: .3em; }
.months__i p:last-child { margin-bottom: 0; }

/* ---------- T-4 1回の流れ ---------- */
.flow { list-style: none; margin: 10px 0 0; padding: 0; display: flex; align-items: flex-start; justify-content: space-between; }
.flow__s { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.flow__c { width: 108px; height: 108px; border-radius: 50%; background: #fff; border: 2px solid var(--soil); display: grid; place-items: center; box-shadow: 4px 4px 0 var(--leaf-25); }
.flow__c svg { width: 62px; height: 62px; }
.flow__s b { font-family: var(--hand); font-weight: 400; font-size: 18px; line-height: 1.4; color: var(--soil-d); max-width: 9em; }
.flow__s time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--soil); }
.flow__a { flex: 0 0 52px; margin-top: 42px; }
.flow__a svg { width: 52px; height: 22px; }
.flow__txt { max-width: 720px; margin-top: 28px; }

/* ---------- 体験の日程 ---------- */
.news { list-style: none; margin: 0 0 10px; }
.news li { display: grid; grid-template-columns: 10.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1.5px dashed var(--soil-15); }
.news li:last-child { border-bottom: 0; }
.news time { color: var(--soil); }
.imotbls { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 28px; }
.imotbl .h3 { display: flex; align-items: center; gap: 6px; font-family: var(--hand); font-weight: 400; font-size: 24px; color: var(--soil); }
.imotbl .h3 svg { width: 40px; height: 40px; }
.ame__big { font-family: var(--hand); font-size: clamp(21px, 2vw, 26px); color: var(--soil); line-height: 1.5; margin: 22px 0 12px; }
.ame__cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.btn--line { gap: 10px; }
.ame2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 50px 0 20px; }
.ame2 .paper p:last-child { margin: 0; }

/* ---------- 当日のこと ---------- */
.tools { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tools li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 6px 12px; background: #fff; border-radius: 14px 18px 12px 16px; border: 1.5px solid var(--soil); text-align: center; }
.tools svg { width: 64px; height: 64px; }
.tools span { font-family: var(--hand); font-size: 19px; color: var(--soil-d); }
.tools small { font-size: 12px; font-weight: 700; color: var(--paper); background: var(--soil); border-radius: 999px; padding: 0 8px; }
.facil { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 30px; margin: 0 0 12px; }
.facil div { border-top: 2px solid var(--soil); padding-top: 10px; }
.facil dt { font-family: var(--hand); font-size: 20px; color: var(--soil); }
.facil dd { margin: 0; }
.hoken { margin-top: 28px; padding: 22px 24px 12px; background: var(--sky-35); border-radius: 14px 18px 12px 16px; }
.hoken .h3 { font-family: var(--hand); font-weight: 400; font-size: 22px; color: var(--soil); }
.notes--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.notes--6 .note:nth-child(3n+2) { margin-top: 24px; }

/* ---------- 申し込みのフォーム ---------- */
.form { margin-top: 24px; display: grid; gap: 18px; }
.f { border: 0; margin: 0; padding: 0; min-width: 0; }
.f__l { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.f__l em { font-style: normal; font-size: 12px; color: #fff; background: var(--soil); border-radius: 4px; padding: 0 6px; line-height: 20px; }
.f__h { font-size: 13px; margin: -2px 0 6px; }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f select, .f textarea { width: 100%; font: 16px/1.6 var(--body); color: var(--soil-d); background: var(--paper); border: 1.5px solid var(--soil); border-radius: 10px; padding: 10px 12px; }
.f__radios { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f__radios label, .f__agree { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.f input[type="radio"], .f__agree input { width: 20px; height: 20px; accent-color: var(--leaf-d); }
.f__purpose { font-size: 14px; margin: 4px 0 0; padding: 10px 12px; background: var(--leaf-12); border-radius: 8px; }
.f__send { margin: 0; }
.demo-msg { display: block; margin-top: 8px; font-weight: 700; color: var(--soil); }

/* ---------- 畑と先生 ---------- */
.fig-plan { margin: 0 0 32px; }
.fig-plan__v { display: none; }
.namae { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; align-items: center; max-width: 900px; }
.namae__mark svg { width: 120px; height: 120px; }
.mmapwrap { max-width: 640px; margin: 18px 0 6px; }
.mm-road { fill: none; stroke: var(--soil); stroke-width: 2; stroke-linecap: round; }
.mm-walk { fill: none; stroke: var(--leaf-d); stroke-width: 2.6; stroke-dasharray: 2 8; stroke-linecap: round; }

/* ---------- フッター ---------- */
.foot__edge { display: block; width: 100%; height: 38px; margin-top: 40px; }
.foot__edge path { fill: var(--soil); }
.foot { background: var(--soil); color: var(--paper); padding: 26px 0 30px; margin-top: -1px; }
.foot a { color: var(--paper); }
.foot__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.foot__info { font-size: 14px; margin: 10px 0 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: flex-end; font-size: 14px; font-weight: 700; }
.foot__copy { font-size: 12px; margin-top: 26px; opacity: .85; }

/* ---------- タブレット ---------- */
@media (max-width: 1080px) {
  .gnav { position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 2px solid var(--soil-15); padding: 8px 20px 20px; display: none; }
  .nav-open .gnav { display: flex; }
  .gnav a { padding: 14px 4px; border-bottom: 1.5px dashed var(--soil-15); font-size: 16px; }
  .gnav a[aria-current="page"]::after { left: 4px; right: auto; width: 7em; bottom: 6px; }
  .gnav__tel { display: block; }
  .head__menu { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; font: 700 10px var(--body); letter-spacing: .1em; color: var(--soil-d); cursor: pointer; padding: 6px; min-width: 44px; min-height: 44px; justify-content: center; }
  .head__menu i { width: 24px; height: 2px; background: var(--soil-d); box-shadow: 0 -6px 0 var(--soil-d), 0 6px 0 var(--soil-d); margin: 6px 0 4px; }
  .head__in { gap: 12px; }
  .hero__in { grid-template-columns: 1fr; gap: 0; }
  .hero__txt { display: contents; }
  .hero__h { order: 1; margin-bottom: 0; }
  .hero__board { order: 2; width: min(100% - 40px, 640px); margin: 84px auto 40px; }
  .hero__p { order: 3; }
  .hero__cta { order: 4; margin-top: 4px; }
  .mochi { grid-template-columns: 1fr; }
  .price-wrap { grid-template-columns: 1fr; }
  .price-wrap .h2 { grid-row: auto; margin-top: 0; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .notes--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .notes--6 .note:nth-child(3n+2) { margin-top: 0; }
  .notes--6 .note:nth-child(even) { margin-top: 24px; }
  .flow { flex-wrap: wrap; justify-content: center; row-gap: 20px; }
  .flow__s { flex: 0 0 28%; }
  .flow__a { flex: 0 0 36px; }
  .flow__a svg { width: 36px; }
  .cal__ln span { font-size: 12px; padding: 2px 6px; }
  .crop b { font-size: 15px; }
  .crop svg { width: 28px; height: 28px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 700px) {
  :root { --fs: 15px; }
  .wrap { width: calc(100% - 36px); }
  .head__in { min-height: 64px; }
  .gnav { inset: 64px 0 auto 0; }
  .logo__svg { width: 132px; }
  .btn--head { padding: 6px 14px; min-height: 40px; font-size: 14px; }
  .hero { padding: 18px 0 40px; }
  .hero__h { font-size: clamp(30px, 8.4vw, 38px); }
  .hero__board { aspect-ratio: 1 / 1.02; width: 100%; margin: 22px 0 30px; }
  .hero__plan { inset: 0 -18px; opacity: .5; }
  .hero__pin--a { left: 0; top: 2%; width: 80%; }
  .hero__pin--b { right: 0; left: auto; top: 50%; width: 52%; }
  .hero__pin--c { left: 3%; top: 70%; width: 42%; }
  .memo--a { right: 4px; top: -30px; font-size: 16px; }
  .sec { padding: 52px 0; }
  .h2 { font-size: 24px; }
  /* 暦は縦に */
  .cal { grid-template-columns: 3em minmax(0, 1fr) minmax(0, 1fr) repeat(4, 22px); grid-template-rows: none; grid-auto-rows: auto; border-radius: 14px; }
  .cal > * { grid-column: var(--vc); grid-row: var(--vr); }
  .cal__m, .cal__up, .cal__dn, .cal__cap, .cal__rest { border-left: 0; border-top: 1.5px dashed color-mix(in srgb, var(--soil) 60%, transparent); }
  .cal > [style*="--i:0;"] { border-top: 0; }
  .cal__m { flex-direction: column; align-items: center; gap: 2px; border-bottom: 0; border-right: 1.5px solid var(--soil); padding: 10px 2px; }
  .cal__mn { font-size: 17px; }
  .cal__t { font-size: 10px; padding: 0 4px; }
  .cal__up, .cal__dn { min-height: 64px; padding: 8px 6px; }
  .cal__cap { border-top: 0; font-size: 12.5px; padding: 0 8px 10px; background: var(--paper); }
  .fig-cal--cap .cal__up, .fig-cal--cap .cal__dn { border-bottom: 0; }
  .cal__rest { flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; flex-wrap: wrap; }
  .cal__rest .cal__mn { width: 2.2em; text-align: center; align-self: center; padding: 0; }
  .cal__rest b { margin: 0; font-size: 20px; }
  .cal__rest small { flex-basis: 100%; }
  .cal__ln { padding: 8px 0 12px; flex-direction: column; justify-content: flex-start; align-items: center; }
  .cal__ln::before { left: 50%; right: auto; top: 8px; bottom: 14px; border-top: 0; border-left: 2px dashed var(--soil); }
  .cal__ln::after { right: auto; left: calc(50% - 5px); top: auto; bottom: 6px; }
  .cal__ln span { writing-mode: vertical-rl; font-size: 12px; padding: 6px 2px; letter-spacing: .08em; }
  .crop svg { width: 22px; height: 22px; }
  .crop b { font-size: 14px; white-space: nowrap; }
  .crop--s { font-size: 11.5px; padding-left: 0; }
  .imodot { font-size: 11px; }
  .course__txt { margin: 0; }
  .imo2 { grid-template-columns: 1fr; gap: 26px; }
  .months { grid-template-columns: 1fr; }
  .months__i { grid-template-columns: 3.2em 1fr; gap: 10px; padding: 14px 6px; }
  .months__m { font-size: 24px; }
  .imo2__i:nth-child(2) { margin-top: 0; }
  /* 持ち物は縦 */
  .t2__wide { display: none; }
  .t2 { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px 16px; align-items: center; }
  .t2__narrow { display: block; width: 112px; grid-row: 1; }
  .t2__list { display: grid; grid-template-columns: 1fr; gap: 8px; list-style: none; margin: 0; padding: 0; }
  .t2__list li { display: flex; align-items: center; gap: 8px; font-family: var(--hand); font-size: 16px; line-height: 1.35; }
  .t2__list svg { width: 34px; height: 34px; flex: none; }
  .t2__list small { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; }
  .t2__extra { position: static; grid-column: 1 / -1; }
  .price__r { flex-direction: column; gap: 0; }
  .hatake, .split, .split--r { grid-template-columns: 1fr; }
  .split--r .split__img { order: -1; }
  .hatake__img .pin { max-width: 300px; }
  .notes, .notes--6 { grid-template-columns: 1fr; gap: 26px; }
  .notes .note:nth-child(n) { margin-top: 0; }
  .tbl th, .tbl td { padding: 10px 8px; }
  .tbl--info tr, .tbl--small tr { display: grid; grid-template-columns: 1fr; }
  .tbl--info th, .tbl--small th { border-bottom: 0; padding-bottom: 0; width: auto; }
  .tbl--year { font-size: 14px; }
  .tbl--year tbody th { font-size: 16px; width: 3em; }
  .tbl--year td { padding: 10px 6px; }
  .tbl--price tr { display: grid; grid-template-columns: 1fr auto; }
  .tbl--price th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; }
  .tbl--price td { border-bottom: 1.5px dashed color-mix(in srgb, var(--soil) 45%, transparent); }
  .tbl--price .yen { font-size: 22px; }
  .tbl--cancel th { width: 40%; }
  .flow { flex-direction: column; align-items: stretch; }
  .flow__s { flex: none; flex-direction: row; text-align: left; gap: 14px; }
  .flow__c { width: 72px; height: 72px; flex: none; }
  .flow__c svg { width: 44px; height: 44px; }
  .flow__s b { max-width: none; flex: 1; }
  .flow__a { flex: none; margin: 0 0 0 26px; width: 22px; }
  .flow__a svg { width: 40px; height: 22px; transform: rotate(90deg); transform-origin: 11px 11px; }
  .news li { grid-template-columns: 1fr; gap: 0; }
  .imotbls, .ame2 { grid-template-columns: 1fr; gap: 26px; }
  .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tools svg { width: 48px; height: 48px; }
  .tools span { font-size: 16px; }
  .facil { grid-template-columns: 1fr; gap: 12px; }
  .fig-plan__h { display: none; }
  .fig-plan__v { display: block; max-width: 420px; margin-inline: auto; }
  .namae { grid-template-columns: 1fr; gap: 10px; }
  .namae__mark svg { width: 72px; height: 72px; }
  .foot__grid { grid-template-columns: 1fr; }
  .foot__nav { justify-content: flex-start; }
  .une { width: 72%; }
  .pin::before, .pin::after { width: 64px; height: 20px; left: -12px; }
  .pin::after { left: auto; right: -12px; }
}

/* ---------- 動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .rv-l { opacity: 1 !important; transform: none !important; }
  .js .note.rv { transform: rotate(var(--r)) !important; }
  .js .hero__pin { opacity: 1; }
}

/* 図が見えたら、左から順に出す */
.js .cal > * { opacity: 0; transform: translateX(-10px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * .08s); }
.js .is-in .cal > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .cal > * { opacity: 1 !important; transform: none !important; } }
