/* こめつぶ食品工房（デモ）全ページ共通
   白・米の生成り・稲の緑。文字は焦げ茶。札は紙袋の口（上の辺だけギザギザ） */
:root {
  --white: #FFFFFF;
  --kinari: #F4EEDC;
  --kinari-d: #E7DEC4;
  --ine: #5B8C3A;
  --ine-d: #46702B;
  --koge: #3A2E22;
  --koge-2: #6B5C4A;
  --line: #D9CFB4;
  --z: 5px; /* 袋の口のギザギザの高さ */
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --num: "Inter", "Noto Sans JP", sans-serif;
  --w: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--koge);
  font-family: var(--jp); font-weight: 400;
  font-size: clamp(15px, 0.9rem + 0.25vw, 17px); line-height: 1.8; letter-spacing: .02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { font-feature-settings: "palt"; text-wrap: balance; word-break: auto-phrase; }
.num { white-space: nowrap; font-family: var(--num); font-weight: 600; letter-spacing: 0; font-feature-settings: "tnum"; }
.wrap { width: min(var(--w), calc(100% - 40px)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--koge); color: #fff; padding: 6px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ine); outline-offset: 3px; }
.small { font-size: .86em; color: var(--koge-2); line-height: 1.75; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.3em; border-radius: 4px;
  font-weight: 700; font-size: .95em; text-decoration: none; letter-spacing: .04em;
  border: 2px solid transparent; transition: background-color .2s, color .2s, transform .2s var(--ease);
}
.btn--lg { min-height: 54px; padding: .7em 1.7em; font-size: 1em; }
.btn--g { background: var(--ine); color: #fff; }
.btn--g:hover { background: var(--ine-d); }
.btn--o { background: #fff; color: var(--ine-d); border-color: var(--ine); }
.btn--o:hover { background: var(--ine); color: #fff; }
.btn--w { background: #fff; color: var(--ine-d); }
.btn--w:hover { background: var(--kinari); }
.btn--k { background: #fff; color: var(--koge); border-color: var(--koge); }
.btn--k:hover { background: var(--koge); color: #fff; }
.btn:active { transform: translateY(1px); }
.arw { font-family: var(--num); display: inline-block; transition: transform .25s var(--ease); }
.more { margin-top: 32px; }

/* ---------- 札：紙袋の口の形 ---------- */
.tag {
  --bg: var(--kinari);
  position: relative; display: block; background: var(--koge); padding: 1px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x,
                linear-gradient(#000 0 0) 0 calc(var(--z) - .5px) / 100% 100% no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x,
                linear-gradient(#000 0 0) 0 calc(var(--z) - .5px) / 100% 100% no-repeat;
  border-radius: 0 0 3px 3px; text-decoration: none; color: inherit;
}
.tag__in {
  display: block; position: relative; background: var(--bg); border-radius: 0 0 2px 2px;
  padding: calc(var(--z) + 14px) 20px 18px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x,
                linear-gradient(#000 0 0) 0 calc(var(--z) - .5px) / 100% 100% no-repeat;
          mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--z) * 2) var(--z) repeat-x,
                linear-gradient(#000 0 0) 0 calc(var(--z) - .5px) / 100% 100% no-repeat;
}
/* 袋の口の下の折り目 */
.tag__in::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--z) + 6px);
  border-top: 1px dashed color-mix(in srgb, var(--koge) 35%, transparent);
}

/* ---------- 見出し：米粒3つ ---------- */
.h2 {
  font-size: clamp(22px, 1.1rem + 1.1vw, 32px); font-weight: 700; line-height: 1.45;
  letter-spacing: .03em; margin: 0 0 20px; position: relative; padding-bottom: 14px;
}
.h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--ine); border-radius: 2px; }
.h2__g { display: flex; gap: 5px; margin-bottom: 10px; height: 13px; align-items: center; }
.h2__g i { width: 8px; height: 12px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--ine); display: block; }
.h2__g i:nth-child(2) { transform: rotate(14deg); }
.h2__g i:nth-child(3) { transform: rotate(-10deg); opacity: .75; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.hd__in { display: flex; align-items: center; gap: 20px; width: min(1320px, calc(100% - 32px)); margin-inline: auto; min-height: 76px; }
.hd__logo { display: block; flex: none; line-height: 0; }
.hd__svg { width: 232px; height: auto; }
.hd__demo { font-family: var(--num); font-size: 10px; letter-spacing: .12em; color: var(--koge-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; margin-left: -10px; align-self: center; }
.hd__nav { margin-left: auto; }
.hd__nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.hd__nav a { display: block; padding: 10px 12px; text-decoration: none; font-weight: 700; font-size: 14.5px; position: relative; white-space: nowrap; }
.hd__nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--ine); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd__nav a[aria-current="page"] { color: var(--ine-d); }
.hd__act { display: flex; align-items: center; gap: 14px; }
.hd__tel { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; text-align: right; }
.hd__tel-n b { font-size: 18px; }
.hd__tel-t { font-size: 11px; color: var(--koge-2); }
.hd__menu { display: none; }

/* ロゴの線 */
.lg-grain { fill: var(--kinari); stroke: var(--koge); stroke-width: 2.4; }
.lg-germ { fill: none; stroke: var(--koge); stroke-width: 2; stroke-linecap: round; }
.lg-sprout { fill: none; stroke: var(--ine); stroke-width: 2.4; stroke-linecap: round; }
.lg-leaf { fill: var(--ine); }
.lg-word { font-family: var(--jp); font-weight: 700; font-size: 24px; letter-spacing: .06em; fill: var(--koge); }

/* ---------- 最初の画面 ---------- */
.hero { display: grid; grid-template-columns: 4fr 6fr; min-height: min(80vh, 720px); background: #fff; }
.hero__txt { padding: clamp(40px, 6vw, 88px) clamp(20px, 4vw, 64px) 40px max(20px, calc((100vw - var(--w)) / 2)); display: flex; flex-direction: column; justify-content: center; position: relative; }
.hero__kick { color: var(--ine); font-weight: 700; letter-spacing: .12em; margin: 0 0 14px; font-size: 15px; }
.hero__h { font-size: clamp(40px, 1.4rem + 3.6vw, 76px); line-height: 1.3; letter-spacing: .01em; margin: 0 0 34px; font-weight: 700; }
.hero__l { display: block; }
.hero__l:first-child .num, .hero__h { font-feature-settings: "palt"; }
.hero__p { max-width: 27em; margin-bottom: 30px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero__tag { align-self: flex-start; --z: 4px; }
.hero__tag .tag__in { padding: calc(var(--z) + 12px) 18px 10px; font-size: 14px; font-weight: 700; }
.hero__tag:hover .arw { transform: translateX(4px); }
.hero__ph { position: relative; overflow: hidden; background: var(--kinari); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }

/* ---------- お知らせ ---------- */
.news { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.news__in { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 40px; align-items: start; padding: 22px 0; }
.news__h { font-size: 15px; margin: 0; padding: 4px 14px 4px 0; border-right: 2px solid var(--ine); line-height: 1.6; }
.news__list { list-style: none; margin: 0; padding: 0; }
.news__list li { display: grid; grid-template-columns: 7em 1fr; gap: 12px; padding: 4px 0; font-size: 14.5px; }
.news__list time { color: var(--ine-d); font-size: 13.5px; padding-top: 2px; }
.news__list p { margin: 0; }
.news__more { font-size: 14px; font-weight: 700; color: var(--ine-d); text-decoration: none; white-space: nowrap; padding-top: 4px; }
.news__more:hover { text-decoration: underline; }
.news--page .news__in { display: block; padding: 0; }
.news--page .news__list li { border-bottom: 1px dashed var(--line); padding: 14px 0; font-size: 15.5px; }

/* ---------- 区画 ---------- */
.sec { padding: clamp(64px, 8vw, 112px) 0; }
.sec--kinari { background: var(--kinari); }
.sec--kinari .tag { --bg: #fff; }

/* つくれるもの（トップ）：立った紙袋を3つ、高さをずらして */
.prod__head { display: grid; grid-template-columns: auto 1fr; gap: 0 56px; align-items: end; margin-bottom: 44px; }
.prod__head .h2 { margin-bottom: 0; }
.prod__head p { max-width: 30em; padding-bottom: 6px; }
.bags { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: start; }
.bag:nth-child(2) { margin-top: 48px; }
.bag:nth-child(3) { margin-top: 18px; }
.bag .tag { --z: 6px; transition: transform .35s var(--ease); }
.bag .tag__in { padding: calc(var(--z) + 26px) 22px 24px; }
.bag .tag:hover { transform: translateY(-6px); }
.bag .tag:hover .arw { transform: translateX(5px); }
.bag__win { display: block; border-radius: 4px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--koge) 30%, transparent); aspect-ratio: 4 / 3.3; margin-bottom: 18px; }
.bag__win img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bag .tag:hover .bag__win img { transform: scale(1.04); }
.bag__name { display: block; font-size: 20px; margin-bottom: 8px; }
.bag__p { display: block; font-size: 14.5px; line-height: 1.75; }
.bag__arw { position: absolute; right: 20px; bottom: 16px; color: var(--ine); font-size: 20px; }
.bag .tag__in { padding-bottom: 44px; }

/* 4つの段 */
.steps { margin: 36px 0 0; }
.steps__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr; align-items: stretch; }
.steps__t { --z: 5px; }
.steps__t .tag__in { height: 100%; padding: calc(var(--z) + 20px) 18px 18px; display: flex; flex-direction: column; gap: 4px; }
.steps__n { font-size: 28px; color: var(--ine); line-height: 1; }
.steps__name { font-size: 19px; line-height: 1.4; }
.steps__d { font-size: 14px; color: var(--koge-2); }
.steps__two { display: flex; gap: 6px; margin-top: 6px; }
.steps__two i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ine); display: block; }
.steps__two i:first-child { background: var(--ine); }
.steps__c { position: relative; }
.steps__c .tag { height: 100%; }
.steps__bub {
  position: absolute; right: -6px; top: -34px; z-index: 2;
  background: var(--koge); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.4;
  padding: 5px 10px; border-radius: 12px; white-space: nowrap;
}
.steps__bub::after { content: ""; position: absolute; left: 22px; bottom: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--koge); }
.steps__dots { display: flex; align-items: center; justify-content: center; gap: 4px; }
.steps__dots i { width: 5px; height: 8px; border-radius: 50%; background: var(--ine); display: block; }
.steps__span { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; font-size: 14.5px; font-weight: 700; }
.steps__line { flex: 1; height: 0; border-top: 1px solid var(--koge); position: relative; }
.steps__line::before, .steps__line::after { content: ""; position: absolute; top: -5px; width: 1px; height: 9px; background: var(--koge); }
.steps__line::before { left: 0; } .steps__line::after { right: 0; }
.steps__lbl { flex: none; order: -1; }
.steps--big .steps__name { font-size: 22px; }
.steps--big .steps__t .tag__in { padding: calc(var(--z) + 26px) 22px 24px; }
.flowtop__p { margin-top: 36px; max-width: 46em; }

/* ロットと納期 */
.lottop__in { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.lottop__after { margin-top: 14px; font-size: 14.5px; }
.lot { margin: 0; }
.lot__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.lot table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--koge); }
.lot th, .lot td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lot thead th { background: var(--koge); color: #fff; font-size: 13.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.lot tbody th { font-weight: 700; white-space: nowrap; }
.lot td .num { font-size: 1.15em; color: var(--ine-d); }
.lot tbody tr:last-child > * { border-bottom: 0; }
.rg { display: inline-block; width: 9px; height: 13px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--ine); margin-right: 10px; vertical-align: -1px; }
.lot__note { font-size: 13.5px; color: var(--koge-2); margin-top: 12px; }
.lot--full td { font-size: 1.02em; }
.lot--full th, .lot--full td { padding: 18px 20px; }

/* 工場長から */
.mgr__in { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.mgr__words { border-left: 3px solid var(--kinari-d); padding-left: 24px; font-size: 1.04em; line-height: 1.95; }
.mgr__name { margin-top: 18px; font-weight: 700; font-size: 15px; padding-left: 27px; }
.mgr__ph img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; }
.mgr--2 .mgr__ph img { aspect-ratio: 4 / 3; }
.mgr .more { padding-left: 27px; }

/* 緑の全幅（トップの最後） */
.cta-g { background: var(--ine); color: #fff; padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.cta-g__in { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; z-index: 1; }
.cta-g__h { font-size: clamp(22px, 1rem + 1.4vw, 34px); margin: 0 0 12px; line-height: 1.5; }
.cta-g__act { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-g__tel { color: #fff; text-decoration: none; font-size: 15px; }
.cta-g__tel b { font-size: 22px; }

/* 共通の帯（生成り） */
.band { background: var(--kinari); padding: clamp(48px, 6vw, 80px) 0; position: relative; overflow: hidden; border-top: 1px solid var(--kinari-d); }
.band__in { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; position: relative; z-index: 1; }
.band__h { font-size: clamp(20px, 1rem + 1.1vw, 30px); margin: 0 0 10px; line-height: 1.5; }
.band__act { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.band__tel { text-decoration: none; font-size: 15px; }
.band__tel b { font-size: 21px; }
.band__grains { position: absolute; right: 4%; top: 12px; width: 220px; height: 70px; pointer-events: none; }
.band__grains i { position: absolute; width: 14px; height: 21px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--kinari-d); }
.band__grains--w i { background: rgba(255,255,255,.16); }
.band__grains i:nth-child(1) { left: 0; top: 30px; transform: rotate(-20deg); }
.band__grains i:nth-child(2) { left: 26px; top: 8px; transform: rotate(16deg); }
.band__grains i:nth-child(3) { left: 50px; top: 40px; transform: rotate(-6deg); }
.band__grains i:nth-child(4) { left: 78px; top: 14px; transform: rotate(30deg); }
.band__grains i:nth-child(5) { left: 104px; top: 44px; transform: rotate(-28deg); }
.band__grains i:nth-child(6) { left: 132px; top: 6px; transform: rotate(8deg); }
.band__grains i:nth-child(7) { left: 158px; top: 34px; transform: rotate(22deg); }
.band__grains i:nth-child(8) { left: 184px; top: 10px; transform: rotate(-14deg); }
.band__grains i:nth-child(9) { left: 206px; top: 42px; transform: rotate(4deg); }

/* ---------- 下層の頭 ---------- */
.crumb { font-size: 12.5px; color: var(--koge-2); padding: 14px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.crumb a { color: var(--koge-2); }
.ph { padding: 28px 0 0; }
.ph__txt { display: grid; grid-template-columns: auto 1fr; gap: 0 56px; align-items: end; padding-bottom: 32px; }
.ph__h { font-size: clamp(30px, 1.2rem + 2.4vw, 52px); margin: 0; line-height: 1.3; position: relative; padding-left: 22px; }
.ph__h::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 6px; border-radius: 3px; background: var(--ine); }
.ph__p { max-width: 32em; margin: 0; padding-bottom: 6px; }
.ph__img { height: clamp(220px, 34vw, 440px); overflow: hidden; }
.ph__img img { width: 100%; height: 100%; object-fit: cover; }
.ph--plain .ph__txt { padding-bottom: 8px; }
.jump { grid-column: 1 / -1; list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px 6px 14px; border: 1px solid var(--koge); border-radius: 22px; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.jump a::before { content: ""; width: 7px; height: 10px; border-radius: 50%; background: var(--ine); margin-right: 8px; }
.jump a:hover { background: var(--kinari); }

/* つくれるもの：品目ごと */
.item { padding: 56px 0 clamp(64px, 8vw, 104px); }
.item__ph { width: min(1320px, 100%); margin-inline: auto; height: clamp(220px, 30vw, 400px); overflow: hidden; }
.item__ph img { width: 100%; height: 100%; object-fit: cover; }
.item__body { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 72px); margin-top: 44px; align-items: start; }
.item--rev .item__body { grid-template-columns: 5fr 6fr; }
.item--rev .item__txt { order: 2; }
.item + .item { border-top: 1px solid var(--line); }
.spec { width: 100%; border-collapse: collapse; border-top: 2px solid var(--koge); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.spec th { width: 10em; font-weight: 700; font-size: .93em; padding-right: 14px; }
.spec td .num { color: var(--ine-d); }
.sec--kinari .spec { background: transparent; }

.bring__steps { list-style: none; margin: 32px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.bring__steps .tag__in { height: 100%; padding: calc(var(--z) + 22px) 20px 20px; }
.bring__steps .tag { height: 100%; }
.bring__n { display: inline-flex; width: 34px; height: 46px; align-items: center; justify-content: center; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--ine); color: #fff; font-size: 18px; margin-bottom: 10px; }
.bring__steps p { font-size: 15px; }

.cant__in { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; }
.cant__list p { position: relative; padding: 16px 0 16px 36px; border-bottom: 1px solid var(--line); margin: 0; }
.cant__list p:first-child { border-top: 1px solid var(--line); }
.cant__list p::before, .cant__list p::after { content: ""; position: absolute; left: 6px; top: 1.6em; width: 16px; height: 2px; background: var(--koge); transform: rotate(45deg); }
.cant__list p::after { transform: rotate(-45deg); }

/* 試作から量産まで */
.stepx { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.stepx li { padding: 22px 0; border-top: 1px solid var(--kinari-d); }
.stepx__h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px !important; flex-wrap: wrap; }
.stepx__n { color: var(--ine); font-size: 24px; line-height: 1; }
.stepx__h b { font-size: 19px; }
.stepx__d { font-size: 14px; color: var(--koge-2); }
.notice__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.notice__line { border: 1px solid var(--koge); border-radius: 4px; padding: 26px 26px 22px; position: relative; }
.notice__days { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; font-size: 12.5px; font-weight: 700; text-align: center; }
.notice__days li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ph-ic { display: block; width: 100%; aspect-ratio: 4/3; border-radius: 3px; background: var(--kinari); position: relative; overflow: hidden; border: 1px solid var(--kinari-d); }
.ph-ic::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34%; height: 46%; margin: -23% 0 0 -17%; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: #fff; border: 1.5px solid var(--koge-2); }
.notice__days li:nth-child(2) .ph-ic::before { background: #E4C79A; }
.notice__days li:nth-child(3) .ph-ic::before { background: #C99A5E; }
.cost__in, .faq__in, .ship__in { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.label__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }

/* 表示の確認（袋の裏） */
.lb { margin: 0; }
.lb__legend { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13.5px; font-weight: 700; }
.lb__legend li { display: flex; align-items: center; gap: 6px; }
.mk { display: inline-block; width: 14px; height: 14px; flex: none; }
.mk--k { border-radius: 50%; background: var(--ine); }
.mk--c { background: var(--koge); border-radius: 1px; }
.lb__bag { --z: 7px; }
.lb__bag .tag__in { padding: calc(var(--z) + 26px) 22px 24px; }
.lb__rows { list-style: none; margin: 0; padding: 0; border: 1.5px solid var(--koge); background: #fff; }
.lb__rows li { display: grid; grid-template-columns: minmax(8em, auto) 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.lb__rows li:last-child { border-bottom: 0; }
.lb__k { font-weight: 700; border-right: 1px solid var(--line); padding-right: 10px; }
.lb__v { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--kinari-d) 0 18px, transparent 18px 24px); opacity: .9; }
.lb__m { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.lb__s { font-size: 12.5px; color: var(--koge-2); font-weight: 700; white-space: nowrap; }
.lb__note { font-size: 13px; color: var(--koge-2); margin-top: 12px; line-height: 1.7; }

.faq__list { margin: 0; }
.faq__list > div { border-top: 1px solid var(--kinari-d); padding: 20px 0; }
.faq__list dt { font-weight: 700; position: relative; padding-left: 2em; margin-bottom: 8px; }
.faq__list dd { margin: 0; position: relative; padding-left: 2em; }
.faq__list dt::before, .faq__list dd::before { position: absolute; left: 0; top: 0; font-family: var(--num); font-weight: 600; }
.faq__list dt::before { content: "Q."; color: var(--ine); }
.faq__list dd::before { content: "A."; color: var(--koge-2); }

/* ロットと納期 */
.small-lot__in { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.small-lot__ph img { border-radius: 4px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.twin__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.lot--full { margin-bottom: 16px; }

/* 工房と衛生 */
.plan { margin: 28px 0 0; }
.plan__in { position: relative; display: grid; grid-template-columns: 112px 1fr; border: 2px solid var(--koge); background: #fff; }
.plan__gate { display: grid; grid-template-rows: 1fr auto; border-right: 1px solid var(--koge); font-size: 12px; font-weight: 700; text-align: center; }
.plan__door { display: flex; align-items: center; justify-content: center; position: relative; padding: 8px 4px; }
.plan__door::before { content: ""; position: absolute; left: -2px; top: 50%; width: 4px; height: 44px; margin-top: -22px; background: var(--kinari); }
.plan__wash { border-top: 1px solid var(--koge); padding: 10px 4px; background: var(--kinari); line-height: 1.5; }
.plan__rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr 1.6fr 1fr 1.2fr; }
.rm { min-height: 190px; border-right: 1px solid var(--koge); position: relative; padding: 14px 12px; display: flex; align-items: flex-end; }
.rm:last-child { border-right: 0; }
.rm__n { font-weight: 700; font-size: 14.5px; line-height: 1.45; position: relative; z-index: 1; background: #fff; padding: 2px 4px; }
.rm--dry { background: var(--kinari); }
.rm--dry .rm__n { background: var(--kinari); }
.rm__net { position: absolute; inset: 16px 16px 56px; background:
  repeating-linear-gradient(0deg, color-mix(in srgb, var(--koge) 35%, transparent) 0 1px, transparent 1px 12px),
  repeating-linear-gradient(90deg, color-mix(in srgb, var(--koge) 35%, transparent) 0 1px, transparent 1px 12px);
  border: 1px solid var(--koge-2); }
.plan__flow { position: absolute; left: 112px; right: 0; top: 40%; height: 14px; pointer-events: none; }
.plan__flow::before { content: ""; position: absolute; left: 12px; right: 26px; top: 6px; border-top: 2px dotted var(--ine); }
.plan__flow::after { content: ""; position: absolute; right: 12px; top: 0; border: 7px solid transparent; border-left: 12px solid var(--ine); border-right: 0; }
.plan__flow i { position: absolute; left: 12px; top: 0; width: 10px; height: 14px; border-radius: 50% 50% 46% 46% / 58% 58% 42% 42%; background: var(--ine); }
.roomlist { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: r; }
.roomlist li { font-size: 14px; border-top: 3px solid var(--ine); padding-top: 12px; }
.roomlist b { display: block; font-size: 15px; margin-bottom: 4px; }
.hyg__in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.algy__in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 72px; align-items: start; }
.algy__txt { grid-column: 1; }
.algy__after { grid-column: 1; }
.al { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
.al__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 420px; }
.al__i span { text-align: center; line-height: 1.35; }
.al__i { aspect-ratio: 1; border-radius: 50%; border: 1.5px solid #A89F92; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; color: var(--koge-2); }
.al__i.is-use { color: #fff; border-color: var(--ine); background: var(--ine); }
.al__key { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; font-size: 13.5px; font-weight: 700; }
.al__sw { width: 14px; height: 14px; border-radius: 50%; background: var(--ine); }
.al__note { font-size: 13px; color: var(--koge-2); }

/* ご相談 */
.form-sec__in { display: grid; grid-template-columns: 4fr 7fr; gap: 56px; align-items: start; }
.form-sec__side { position: sticky; top: 100px; }
.telbox { margin-top: 24px; border-top: 1px solid var(--kinari-d); padding-top: 18px; }
.telbox__h { font-size: 15px; margin: 0 0 6px; }
.telbox__n a { text-decoration: none; }
.telbox__n b { font-size: 24px; }
.telbox__n > span { display: block; font-size: 13.5px; color: var(--koge-2); }
.telbox__f { margin-top: 6px; }
.form { --z: 7px; }
.form .tag__in { padding: calc(var(--z) + 30px) clamp(18px, 3vw, 36px) 32px; }
.f { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.f label, .f legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; padding: 0; }
.req { display: inline-block; font-size: 11px; background: var(--ine); color: #fff; padding: 1px 6px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; font-weight: 700; }
.f input[type="text"], .f input[type="tel"], .f input[type="email"], .f textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 11px 12px; border: 1px solid #A89F92; border-radius: 4px; background: #fff; color: var(--koge);
}
.f input:focus, .f textarea:focus { outline: 2px solid var(--ine); outline-offset: 1px; border-color: var(--ine); }
.f input::placeholder { color: #9A8F80; }
.rads { display: flex; flex-wrap: wrap; gap: 8px; }
.rad { position: relative; }
.rad input { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); }
.rad span { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 16px; border: 1px solid #A89F92; border-radius: 22px; background: #fff; font-size: 14.5px; font-weight: 400 !important; }
.rad input:checked + span { background: var(--ine); color: #fff; border-color: var(--ine); }
.rad input:focus-visible + span { outline: 3px solid var(--ine); outline-offset: 2px; }
.f .rad { margin: 0; font-weight: 400; }
.chk { display: flex !important; align-items: center; gap: 10px; font-weight: 700; min-height: 44px; }
.chk input { width: 20px; height: 20px; accent-color: var(--ine); }
.form__err { color: #A23A1E; font-weight: 700; font-size: 14.5px; }
.form__btn { width: 100%; margin-top: 6px; }
.form__after { margin-top: 12px; font-size: 14px; text-align: center; }
.access__in { display: grid; grid-template-columns: 7fr 5fr; gap: 28px 48px; align-items: start; }
.access__in > :nth-child(1) { grid-column: 1 / -1; margin-bottom: -8px; }
.map { margin: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; max-width: 860px; }
.map svg { display: block; width: 100%; height: auto; }
.map__t { font-family: var(--jp); font-weight: 700; font-size: 19px; fill: var(--koge); }
.map__t--s { font-size: 16px; font-weight: 400; }
.map__t--w { fill: #fff; }
.access .spec { max-width: 860px; }

/* ---------- フッター ---------- */
.ft { background: var(--koge); color: #F4EEDC; padding: 56px 0 24px; }
.ft__in { display: grid; grid-template-columns: 1fr auto; gap: 32px 56px; align-items: start; }
.ft__svg { width: 250px; height: auto; }
.ft .lg-word { fill: #F4EEDC; }
.ft .lg-grain { stroke: #F4EEDC; fill: var(--koge); }
.ft .lg-germ { stroke: #F4EEDC; }
.ft .lg-sprout { stroke: #9CC47A; }
.ft .lg-leaf { fill: #9CC47A; }
.ft__addr, .ft__lic { font-size: 13.5px; margin: 14px 0 0; line-height: 1.8; }
.ft__lic { margin-top: 4px; opacity: .85; }
.ft__nav { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 4px 32px; }
.ft__nav a { display: inline-block; padding: 6px 0; font-size: 14px; text-decoration: none; }
.ft__nav a:hover { text-decoration: underline; }
.ft__c { text-align: center; font-size: 12px; margin: 40px 0 0; opacity: .7; }
.ft a:focus-visible { outline-color: #9CC47A; }

/* ---------- 動き（transform と opacity だけ） ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js .hero__l.rv { transform: translateY(.5em); transition-duration: .9s; }
  .js .hero__l.rv:nth-child(2) { transition-delay: .12s; }
  .js .hero__img { transform: scale(1.06); transition: transform 1.8s var(--ease); }
  .js .hero.is-in .hero__img { transform: none; }

  /* 見出しの米粒が順に落ちてくる */
  .js .h2__g i { opacity: 0; transform: translateY(-10px); transition: opacity .4s, transform .5s cubic-bezier(.3,1.6,.5,1); }
  .js .is-in .h2__g i { opacity: 1; transform: none; }
  .js .is-in .h2__g i:nth-child(2) { transform: rotate(14deg); transition-delay: .1s; }
  .js .is-in .h2__g i:nth-child(3) { transform: rotate(-10deg); opacity: .75; transition-delay: .2s; }

  /* 4つの段：札が順に立ち、米粒の点線が1粒ずつ */
  .js .dg .steps__c { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 260ms); }
  .js .dg.is-in .steps__c { opacity: 1; transform: none; }
  .js .dg .steps__dots i { opacity: 0; transform: scale(.3); transition: opacity .25s, transform .3s; }
  .js .dg.is-in .steps__dots i { opacity: 1; transform: none; }
  .js .dg.is-in .steps__dots:nth-child(2) i { transition-delay: calc(.15s + var(--d, 0s)); }
  .js .dg.is-in .steps__dots:nth-child(4) i { transition-delay: calc(.41s + var(--d, 0s)); }
  .js .dg.is-in .steps__dots:nth-child(6) i { transition-delay: calc(.67s + var(--d, 0s)); }
  .steps__dots i:nth-child(2) { --d: .05s; } .steps__dots i:nth-child(3) { --d: .1s; } .steps__dots i:nth-child(4) { --d: .15s; } .steps__dots i:nth-child(5) { --d: .2s; }
  .js .dg .steps__bub { opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .4s 1.1s, transform .5s 1.1s cubic-bezier(.3,1.5,.5,1); }
  .js .dg.is-in .steps__bub { opacity: 1; transform: none; }
  .js .dg .steps__line { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 1s; }
  .js .dg.is-in .steps__line { transform: none; }

  /* 表：行が上から順に */
  .js .lot tbody tr { opacity: 0; transform: translateX(-10px); transition: opacity .5s, transform .5s var(--ease); }
  .js .lot.is-in tbody tr { opacity: 1; transform: none; }
  .js .lot.is-in tbody tr:nth-child(2) { transition-delay: .12s; }
  .js .lot.is-in tbody tr:nth-child(3) { transition-delay: .24s; }

  /* 表示の枠：印が1つずつ押される */
  .js .lb .lb__m .mk { transform: scale(1.8); }
  .js .lb .lb__m .lb__s { transform: translateY(4px); }
  .js .lb .lb__m .mk, .js .lb .lb__m .lb__s { opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.3,1.4,.5,1); transition-delay: calc(.2s + var(--i) * 110ms); }
  .js .lb.is-in .lb__m .mk, .js .lb.is-in .lb__m .lb__s { opacity: 1; transform: none; }

  /* 工房の中：米粒が部屋を左から右へ進む */
  .js .plan .rm { opacity: 0; transition: opacity .5s; transition-delay: calc(var(--i) * 140ms); }
  .js .plan.is-in .rm { opacity: 1; }
  .plan.is-in .plan__flow i { animation: walk 7s linear infinite; }
  .plan.is-in .plan__flow i:nth-child(2) { animation-delay: -2.33s; }
  .plan.is-in .plan__flow i:nth-child(3) { animation-delay: -4.66s; }

  /* 特定原材料：扱う4つが順に塗られる */
  .js .al .al__i.is-use { background: #fff; color: var(--koge-2); }
  .js .al.is-in .al__i.is-use { background: var(--ine); color: #fff; transition: background-color .4s, color .4s; transition-delay: calc(.2s + var(--i) * 120ms); }
  .js .al .al__i { transform: scale(.85); opacity: 0; transition: transform .5s cubic-bezier(.3,1.5,.5,1), opacity .4s, background-color .4s, color .4s; transition-delay: calc(var(--i) * 70ms); }
  .js .al.is-in .al__i { transform: none; opacity: 1; }

  /* 地図：道が引かれる */
  .js .map .map__route { stroke-dasharray: 520; stroke-dashoffset: 520; }
  .js .map.is-in .map__route { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) .2s; }
  .js .map .map__pin { opacity: 0; }
  .js .map.is-in .map__pin { opacity: 1; transition: opacity .5s 1.5s; }

  /* 帯の米粒がゆっくり揺れる */
  .band__grains i { animation: sway 6s ease-in-out infinite; }
  .band__grains i:nth-child(odd) { animation-delay: -3s; }
}
@keyframes walk {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(var(--run, 900px)); opacity: 0; }
}
@keyframes sway { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 画面幅ごと ---------- */
@media (max-width: 1180px) {
  .hd__tel { display: none; }
  .hd__nav a { padding: 10px 9px; font-size: 14px; }
}
@media (max-width: 980px) {
  .hd__in { min-height: 64px; gap: 12px; }
  .hd__svg { width: 200px; }
  .hd__nav { position: fixed; inset: 64px 0 auto 0; background: #fff; border-bottom: 1px solid var(--line); display: none; margin: 0; }
  .nav-open .hd__nav { display: block; }
  .hd__nav ul { flex-direction: column; padding: 8px 20px 20px; }
  .hd__nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .hd__nav a::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .hd__act { margin-left: auto; }
  .hd__menu { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: 0 12px; font: 700 13px/1 var(--num); letter-spacing: .1em; background: #fff; color: var(--koge); border: 1.5px solid var(--koge); border-radius: 4px; cursor: pointer; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__ph { order: -1; height: clamp(240px, 52vw, 420px); }
  .hero__txt { padding: 32px 20px 44px; }
  .prod__head, .ph__txt { grid-template-columns: 1fr; gap: 12px; }
  .access__in, .lottop__in, .mgr__in, .cta-g__in, .band__in, .cant__in, .cost__in, .faq__in, .ship__in, .notice__in, .label__in, .small-lot__in, .hyg__in, .form-sec__in, .item__body, .item--rev .item__body { grid-template-columns: 1fr; gap: 28px; }
  .item--rev .item__txt { order: 0; }
  .form-sec__side { position: static; }
  .mgr__ph { max-width: 460px; }
  .algy__in { grid-template-columns: 1fr; }
  .al, .algy__txt, .algy__after { grid-column: 1; grid-row: auto; }
  .al { max-width: 460px; }
  .roomlist { grid-template-columns: repeat(2, 1fr); }
  .steps__row { grid-template-columns: 1fr; gap: 0; }
  .steps__dots { flex-direction: column; height: 40px; gap: 3px; }
  .steps__dots i { width: 6px; height: 6px; }
  .steps__c--trial { margin-top: 34px; }
  .steps__bub { right: 10px; }
  .news__in { grid-template-columns: 1fr; gap: 10px; }
  .news__h { border-right: 0; border-left: 3px solid var(--ine); padding: 0 0 0 10px; }
  .bags { grid-template-columns: 1fr 1fr; }
  .bag:nth-child(2) { margin-top: 32px; }
  .bag:nth-child(3) { margin-top: 0; }
}
@media (max-width: 760px) {
  .hd__cta { display: none; }
  .bags { grid-template-columns: 1fr; gap: 22px; }
  .bag:nth-child(n) { margin-top: 0; }
  .bring__steps { grid-template-columns: 1fr; }
  .twin__in { grid-template-columns: 1fr; }
  .stepx { grid-template-columns: 1fr; }
  .plan__in { grid-template-columns: 1fr; }
  .plan__gate { grid-template-rows: none; grid-template-columns: 1fr 1fr; border-right: 0; border-bottom: 1px solid var(--koge); }
  .plan__door::before { left: 50%; top: -2px; width: 44px; height: 4px; margin: 0 0 0 -22px; }
  .plan__wash { border-top: 0; border-left: 1px solid var(--koge); }
  .plan__rooms { grid-template-columns: 1fr; }
  .rm { min-height: 64px; border-right: 0; border-bottom: 1px solid var(--koge); align-items: center; padding-left: 44px; }
  .rm--dry { min-height: 120px; }
  .rm__net { inset: 12px 12px 12px auto; width: 46%; }
  .rm:last-child { border-bottom: 0; }
  .plan__flow { left: 18px; right: auto; top: 76px; bottom: 16px; height: auto; width: 14px; }
  .plan__flow::before { left: 6px; right: auto; top: 0; bottom: 18px; border-top: 0; border-left: 2px dotted var(--ine); }
  .plan__flow::after { right: auto; left: 0; top: auto; bottom: 0; border: 7px solid transparent; border-top: 12px solid var(--ine); border-bottom: 0; }
  .plan__flow i { left: 2px; }
  .plan.is-in .plan__flow i { animation-name: walkv; }
  .roomlist { grid-template-columns: 1fr; }
  .lb__rows li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
  .lb__m { margin-left: auto; }
  .lb__s { white-space: normal; }
  .lot thead { display: none; }
  .lot table, .lot tbody, .lot tr, .lot th, .lot td { display: block; }
  .lot tr { border-bottom: 1px solid var(--koge); }
  .lot tbody tr:last-child { border-bottom: 0; }
  .lot tbody th { background: var(--koge); color: #fff; padding: 10px 14px; }
  .lot tbody th .rg { background: #9CC47A; }
  .lot td { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; padding: 10px 14px; }
  .lot td::before { content: attr(data-l); font-weight: 700; font-size: 13px; color: var(--koge-2); }
  .steps__span { flex-wrap: wrap; gap: 8px; }
  .steps__lbl { flex: 1 1 100%; }
  .steps__line { flex: 1 1 100%; }
  .lb__v { display: none; }
  .lb__k { border-right: 0; }
  .lb__m { flex-wrap: wrap; }
  .lb__s { white-space: normal; text-align: right; }
  .al__grid { gap: 10px; }
  .al__i { font-size: 13.5px; }
  .ft__in { grid-template-columns: 1fr; }
  .spec th { width: 6.5em; }
  .lot th, .lot td { padding: 12px 12px; font-size: 14px; }
  .band__grains { display: none; }
  .map__t { font-size: 24px; }
  .map__t--l { font-size: 30px; }
  .map__t--s { font-size: 25px; }
  .map__p { transform: translate(-130px, 14px); }
  .map__t--road { font-size: 25px; }
  .map__t--shop { transform: translateX(-34px); }
}
@keyframes walkv {
  0% { transform: translateY(0); opacity: 0; }
  6% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(var(--runv, 400px)); opacity: 0; }
}
@media (max-width: 420px) {
  .hd__svg { width: 176px; }
  .hd__demo { margin-left: -6px; }
  .hero__h { font-size: 40px; }
  .btn--lg { width: 100%; }
  .hero__btns { flex-direction: column; }
}
