/* 033 日和食品 ― 色はここだけ触れば差し替わる */
:root {
  --c-bg: #fffaf0;
  --c-ink: #2a1d10;
  --c-accent: #f28c18;
  --c-yellow: #ffc93c;
  --c-accent-text: #a14a06;
  --c-text: #374151;
  --c-sub: #4b5563;
  --c-cat1: #fff1d1;
  --c-cat2: #ffe3c2;
  --c-cat3: #fdecc0;
  --c-line: #ecdcc0;
  --font: "Noto Sans JP", sans-serif;
  --font-head: "Zen Maru Gothic", sans-serif;
  --font-en: "Outfit", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.9; color: var(--c-text); background: var(--c-bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.label { font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .16em; color: var(--c-accent-text); margin-bottom: 12px; }
.label--light { color: #ffd27a; }
.label--ink { color: var(--c-ink); }
.h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 4vw, 44px); line-height: 1.45; color: var(--c-ink); margin-bottom: 20px; }
.note { margin-top: 20px; font-size: 15px; color: var(--c-sub); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-family: var(--font-head); font-weight: 700; text-decoration: none; white-space: nowrap; flex: none; transition: background-color .3s, color .3s, transform .3s; }
.btn--orange { background: var(--c-accent); color: var(--c-ink); }
.btn--orange:hover { background: var(--c-yellow); }
.btn--line { border: 2px solid var(--c-ink); color: var(--c-ink); }
.btn--line:hover { background: var(--c-ink); color: #fff; }
.btn--ink { background: var(--c-ink); color: #fff; }
.btn--ink:hover { background: #fff; color: var(--c-ink); }
.btn--big { min-height: 64px; padding: 0 36px; font-size: 18px; }

/* ヘッダー */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.header__inner { display: flex; align-items: center; gap: 20px; height: 68px; padding: 0 12px 0 20px; background: rgba(255, 250, 240, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--c-line); }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; text-decoration: none; color: var(--c-ink); white-space: nowrap; flex: none; }
.logo__sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle, var(--c-accent) 0 2px, transparent 2.6px) 0 0 / 5px 5px; box-shadow: 0 0 0 2px var(--c-accent); }
.logo__ja { font-family: var(--font-head); font-weight: 900; font-size: 22px; letter-spacing: .06em; }
.logo__en { display: none; font-family: var(--font-en); font-weight: 700; font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
@media (min-width: 768px) { .logo__en { display: inline; } }
@media (min-width: 1080px) {
  .header__inner { height: 80px; padding: 0 5vw; }
  .gnav { display: flex; gap: 28px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { color: var(--c-accent-text); }
  .header__btn { margin-left: 0; padding: 0 26px; }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: var(--c-ink); }
.spmenu summary::-webkit-details-marker { display: none; }
.spmenu__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spmenu__bar, .spmenu__bar::before, .spmenu__bar::after { display: block; width: 22px; height: 3px; border-radius: 2px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -7px; } .spmenu__bar::after { top: 7px; }
.spmenu[open] .spmenu__bar { background: transparent; }
.spmenu[open] .spmenu__bar::before { top: 0; transform: rotate(45deg); }
.spmenu[open] .spmenu__bar::after { top: 0; transform: rotate(-45deg); }
.spmenu__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--c-bg); border-bottom: 4px solid var(--c-accent); padding: 8px 20px 20px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(42, 29, 16, .12); }
.spmenu__nav a { display: flex; align-items: center; min-height: 54px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--c-ink); text-decoration: none; border-bottom: 1px solid var(--c-line); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* ===== 演出①（A12）：点描の地球が昇る ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 112px 20px 0; overflow: hidden; background: var(--c-bg); }
.hero__sky { position: absolute; inset: 0; background: radial-gradient(ellipse 80% 55% at 50% 100%, #ffd98a 0%, #ffe8bd 38%, rgba(255, 250, 240, 0) 72%); }
.hero__globe { position: absolute; left: 50%; bottom: 0; width: min(150vw, 980px); aspect-ratio: 1; transform: translate(-50%, 44%); }
.globe-in { position: absolute; inset: 0; }
.globe-static { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, var(--c-accent) 0 2px, transparent 2.6px) 0 0 / 13px 13px;
  -webkit-mask-image: radial-gradient(circle at 42% 30%, #000 30%, rgba(0, 0, 0, .25) 70%);
  mask-image: radial-gradient(circle at 42% 30%, #000 30%, rgba(0, 0, 0, .25) 70%);
  box-shadow: 0 0 0 2px rgba(242, 140, 24, .35); }
.globe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.is-globe .globe-canvas { display: block; }
.is-globe .globe-static { display: none; }
.hero__horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(rgba(255, 250, 240, 0), var(--c-bg)); }
.hero__copy { position: relative; z-index: 2; max-width: 640px; }
.hero__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(34px, 6.4vw, 72px); line-height: 1.32; color: var(--c-ink); letter-spacing: .02em; }
.hero__lead { margin-top: 16px; font-size: clamp(15px, 1.6vw, 18px); color: var(--c-text); }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (min-width: 1080px) {
  .hero { padding: 132px 5vw 0; }
  .hero__copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero__btns { justify-content: center; }
  .hero__globe { transform: translate(-50%, 60%); }
}

/* ===== ごあいさつ ===== */
.intro { padding: 96px 0; }
.intro__inner { display: grid; gap: 48px; }
.intro p + p { margin-top: 14px; }
.stats { display: grid; gap: 16px; }
.stats li { background: #fff; border: 1px solid var(--c-line); border-radius: 20px; padding: 20px 24px; display: flex; align-items: baseline; gap: 16px; }
.stats__num { font-family: var(--font-en); font-weight: 800; font-size: clamp(34px, 4vw, 44px); line-height: 1; color: var(--c-ink); white-space: nowrap; }
.stats__num small { font-family: var(--font-head); font-size: 16px; margin-left: 4px; }
@media (min-width: 900px) { .intro { padding: 140px 0; } .intro__inner { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 72px; } }

/* ===== 演出②（B04）：全画面の写真の中の小窓 ===== */
.process { position: relative; background: var(--c-ink); color: #fff; }
.process__stage { position: relative; padding: 88px 20px; overflow: hidden; }
.process__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* 写真の上の暗い幕（写真より上・文字より下に置くため ::after と z-index 0） */
.process__stage::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(42, 29, 16, .78) 0%, rgba(42, 29, 16, .2) 42%, rgba(42, 29, 16, .1) 70%, rgba(42, 29, 16, .45) 100%), linear-gradient(90deg, rgba(42, 29, 16, .6), rgba(42, 29, 16, 0) 60%); }
.process__head, .process__steps, .process__window { position: relative; z-index: 1; }
.process__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(34px, 5vw, 60px); line-height: 1.2; }
.process__count { display: none; font-family: var(--font-en); font-weight: 800; font-size: 22px; color: #ffd27a; margin-top: 4px; }
.process__window { display: none; }
.process__steps { display: grid; gap: 20px; margin-top: 36px; }
.pstep { background: #fff; color: var(--c-text); border-radius: 22px; padding: 16px 16px 24px; }
.pstep__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 14px; }
.pstep__time { font-family: var(--font-en); font-weight: 800; font-size: 18px; color: var(--c-accent-text); }
.pstep h3 { font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--c-ink); margin: 2px 0 6px; }
@media (min-width: 768px) { .process__steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .process__stage { padding: 120px 5vw; } .process__steps { grid-template-columns: repeat(4, 1fr); } }

/* 動く版：写真を画面に止め、小窓の写真と工程の文だけを入れ替える */
.is-motion .process { height: 400vh; }
.is-motion .process__stage { position: sticky; top: 0; height: 100vh; padding: 0; }
.is-motion .process__head { position: absolute; left: 20px; top: 92px; }
.is-motion .process__count { display: block; }
.is-motion .process__window { display: block; position: absolute; left: 50%; top: 238px; width: min(76vw, 340px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 28px; overflow: hidden; border: 6px solid #fff; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: var(--c-ink); }
.is-motion .process__window img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(50% 0 50% 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.is-motion .process__window img.is-shown { clip-path: inset(0 0 0 0); }
.is-motion .process__steps { position: absolute; left: 20px; right: 20px; bottom: 24px; margin: 0; display: block; }
.is-motion .pstep { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 22px; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity .5s, transform .5s, visibility .5s; }
.is-motion .pstep.is-on { opacity: 1; visibility: visible; transform: none; }
.is-motion .pstep__img { display: none; }
@media (max-width: 767px) and (max-height: 760px) { .is-motion .process__window { width: min(60vw, 260px); top: 220px; } }
@media (min-width: 1080px) {
  .is-motion .process__head { left: 5vw; top: 130px; }
  .is-motion .process__count { font-size: 32px; }
  .is-motion .process__window { left: auto; right: 7vw; top: 50%; width: min(36vw, 540px); transform: translateY(-46%); }
  .is-motion .process__steps { left: 5vw; right: auto; bottom: 14vh; width: min(38vw, 520px); }
  .is-motion .pstep { padding: 28px 32px; }
  .is-motion .pstep h3 { font-size: 30px; }
}

/* ===== 演出③（D01）：つくれるもの ===== */
.products { padding: 112px 0 40px; }
.products__head { margin-bottom: 40px; }
.cat { background: var(--k); padding: 72px 0; }
.cat__inner { display: grid; gap: 28px; }
.cat__en { font-family: var(--font-en); font-weight: 800; font-size: clamp(56px, 11vw, 160px); line-height: .9; color: var(--c-accent-text); letter-spacing: -.01em; }
.cat__name { font-family: var(--font-head); font-weight: 900; font-size: clamp(24px, 3vw, 34px); color: var(--c-ink); margin: 14px 0 10px; }
.cat__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cat__tags li { background: #fff; border: 1px solid var(--c-line); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.cat__photo { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 24px 50px rgba(161, 74, 6, .16); }
.cat__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 1080px) {
  .cat { min-height: 88vh; display: flex; align-items: center; padding: 120px 0; }
  .cat__inner { width: 100%; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 64px; }
  .cat:nth-of-type(even) .cat__photo { order: -1; }
}
.is-motion .cat { background: transparent; }
body { transition: background-color .7s; }

/* ===== OEMの流れ ===== */
.flow { padding: 112px 0; background: var(--c-bg); }
.flow__list { display: grid; gap: 14px; counter-reset: f; }
.flow__list li { position: relative; background: #fff; border: 1px solid var(--c-line); border-left: 6px solid var(--c-accent); border-radius: 16px; padding: 20px 22px; }
.flow__no { font-family: var(--font-en); font-weight: 800; font-size: 28px; line-height: 1; color: var(--c-accent-text); }
.flow__list h3 { font-family: var(--font-head); font-weight: 900; font-size: 22px; color: var(--c-ink); margin: 6px 0 4px; }
@media (min-width: 1080px) {
  .flow__list { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .flow__list li { border-left: 1px solid var(--c-line); border-top: 6px solid var(--c-accent); border-radius: 0; padding: 28px 22px; }
  .flow__list li:first-child { border-radius: 16px 0 0 16px; }
  .flow__list li:last-child { border-radius: 0 16px 16px 0; }
}

/* ===== 衛生と品質 ===== */
.quality { padding: 40px 0 112px; background: var(--c-bg); }
.quality__inner { display: grid; gap: 36px; }
.badges { display: grid; gap: 12px; }
.badges li { display: flex; align-items: center; gap: 14px; background: var(--c-cat1); border-radius: 14px; padding: 16px 20px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--c-ink); }
.badges__mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c-accent); box-shadow: inset 0 0 0 6px var(--c-yellow); }
@media (min-width: 900px) { .quality__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; } }

/* ===== ご相談 ===== */
.contact { background: var(--c-accent); padding: 96px 20px; text-align: center; }
.contact__inner { max-width: 760px; margin: 0 auto; }
.contact__title { font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 5vw, 56px); line-height: 1.35; color: var(--c-ink); margin-bottom: 14px; }
.contact p { color: var(--c-ink); font-weight: 700; }
.contact__btns { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-top: 32px; }
.contact__tel { display: flex; flex-direction: column; align-items: center; min-height: 44px; font-family: var(--font-en); font-weight: 800; font-size: 32px; line-height: 1.2; color: var(--c-ink); text-decoration: none; }
.contact__tel small { font-family: var(--font); font-weight: 700; font-size: 15px; }
@media (min-width: 768px) { .contact { padding: 128px 20px; } .contact__btns { flex-direction: row; justify-content: center; gap: 40px; } }

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #f5ead9; padding: 64px 0 28px; font-size: 15px; }
.footer__inner { display: grid; gap: 24px; }
.footer__logo { font-family: var(--font-head); font-weight: 900; font-size: 30px; color: #fff; }
.footer__logo small { display: block; font-family: var(--font-en); font-size: 15px; letter-spacing: .14em; color: #ffd27a; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; }
.footer__fiction { margin-top: 32px; text-align: center; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr auto; align-items: end; gap: 48px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
