/* 061 まるかど金型製作所 ― 可愛い系・ページ全体が横に動く。色はここだけ触れば差し替わる */
:root {
  --c-bg: #fff8e6;
  --c-yellow: #ffd23f;
  --c-orange: #ff8a00;
  --c-accent: #ff8a00;
  --c-accent-text: #9a4a00;
  --c-ink: #2b1d0e;
  --c-text: #374151;
  --c-sub: #4b5563;
  --font: "M PLUS 2", sans-serif;
  --font-giant: "Rampart One", sans-serif;
  --font-en: "Baloo 2", sans-serif;
  --line: 3px solid var(--c-ink);
  --shadow: 6px 6px 0 var(--c-ink);
}

*, *::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; font-weight: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: var(--line); border-radius: 999px; font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; box-shadow: 4px 4px 0 var(--c-ink); transition: transform .2s, box-shadow .2s; }
.btn:hover, .btn:focus-visible { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--c-ink); }
.btn--ink { background: var(--c-ink); color: #fff; box-shadow: 4px 4px 0 var(--c-orange); }
.btn--ink:hover { box-shadow: 1px 1px 0 var(--c-orange); }
.btn--lg { min-height: 60px; padding: 0 32px; font-size: 18px; }
.note { margin-top: 16px; font-size: 15px; color: var(--c-sub); }

/* ===== ヘッダー ===== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--c-bg); border-bottom: var(--line); }
.header__inner { display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 10px 0 16px; }
.logo { display: flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 800; font-size: 19px; color: var(--c-ink); text-decoration: none; white-space: nowrap; flex: none; }
.logo__mark { width: 28px; height: 28px; border: var(--line); border-radius: 9px; background: var(--c-orange); box-shadow: 3px 3px 0 var(--c-yellow); }
.gnav { display: none; }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 16px; font-size: 15px; box-shadow: none; }
@media (min-width: 1080px) {
  .header__inner { height: 76px; padding: 0 32px; gap: 20px; }
  .gnav { display: flex; gap: 4px; margin-left: auto; }
  .gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; font-weight: 700; text-decoration: none; color: var(--c-ink); }
  .gnav a:hover { background: var(--c-yellow); }
  .header__btn { margin-left: 0; padding: 0 22px; box-shadow: 3px 3px 0 var(--c-orange); }
}
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; border: var(--line); border-radius: 12px; background: var(--c-yellow); 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: 18px; height: 3px; border-radius: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -6px; } .spmenu__bar::after { top: 6px; }
.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); padding: 8px 20px 20px; display: flex; flex-direction: column; border-bottom: var(--line); }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-ink); font-weight: 700; text-decoration: none; border-bottom: 2px dashed var(--c-yellow); }
@media (min-width: 1080px) { .spmenu { display: none; } }

/* 進み具合（横に動くときだけ） */
.meter { display: none; }
.is-h .meter { display: flex; align-items: center; gap: 16px; position: fixed; z-index: 40; left: 32px; right: 32px; bottom: 20px; }
.is-past .meter { display: none; }
.meter__no { font-family: var(--font-en); font-weight: 800; font-size: 22px; line-height: 1; color: var(--c-ink); white-space: nowrap; }
.meter__no small { font-size: 16px; }
.meter__rail { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--c-ink); }
.meter__ball { position: absolute; left: 0; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border: var(--line); border-radius: 50%; background: var(--c-yellow) radial-gradient(circle at 30% 30%, #fff 0 3px, transparent 4px); }
.meter__ball::after { content: ""; position: absolute; left: 50%; top: 2px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--c-ink); border-radius: 2px; }

/* ===== 面（パネル）：スマホと JSなし は縦に並ぶ ===== */
.panel { position: relative; padding: 88px 20px; }

/* 01 メインビジュアル（文字が主役） */
.panel--top { padding-top: 104px; overflow: hidden; background: var(--c-bg); }
.giant { position: relative; z-index: 2; font-family: var(--font-giant); font-weight: 400; font-size: clamp(76px, 22vw, 260px); line-height: 1.08; color: #d96a00; letter-spacing: -.02em; }
.giant__line { display: block; white-space: nowrap; }
.giant__line--2 { color: var(--c-ink); padding-left: .4em; }
.giant .ch { display: inline-block; }
.top__parts { position: relative; z-index: 3; width: 86%; max-width: 560px; margin: -6vw 0 0 auto; filter: drop-shadow(8px 8px 0 rgba(43, 29, 14, .25)); }
.top__lead { position: relative; z-index: 3; margin-top: 16px; display: inline-block; font-weight: 800; font-size: 19px; line-height: 1.6; color: var(--c-ink); background: #fff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 14px 18px; }
.sticker { position: absolute; z-index: 4; display: grid; place-items: center; text-align: center; border: var(--line); border-radius: 50%; font-weight: 800; line-height: 1.3; color: var(--c-ink); }
.sticker--1 { width: 96px; height: 96px; right: 12px; top: 46%; background: var(--c-yellow); font-size: 15px; transform: rotate(10deg); }
.sticker--2 { display: none; width: 76px; height: 76px; background: #fff; font-family: var(--font-en); font-size: 16px; transform: rotate(-8deg); }
.blob { position: absolute; z-index: 1; border-radius: 50%; }
.blob--1 { width: 70vw; max-width: 520px; aspect-ratio: 1; right: -20vw; top: 34%; background: var(--c-yellow); }
.blob--2 { width: 30vw; max-width: 200px; aspect-ratio: 1; left: -8vw; top: 18%; background: #ffe8b8; }

/* 見出し */
.vttl, .httl { font-weight: 800; font-size: clamp(30px, 6vw, 46px); line-height: 1.4; color: var(--c-ink); }
.vttl .ch, .httl .ch { display: inline-block; }

/* 02〜04 見開き（C05）：左ページに縦書きの見出し、右ページに写真と文 */
.spread { display: grid; gap: 24px; }
.spread--yellow { background: var(--c-yellow); }
.spread--orange { background: var(--c-orange); }
.spread--cream { background: #fff1cc; }
.spread__page { position: relative; background: #fff; border: var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px 22px 48px; }
.spread__page > p + p { margin-top: 14px; }
.spread__en { font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--c-accent-text); margin-bottom: 10px; }
.spread__lead { margin: 14px 0; font-weight: 800; font-size: 21px; line-height: 1.5; color: var(--c-ink); }
.spread__photo { margin-bottom: 18px; border: var(--line); border-radius: 14px; overflow: hidden; }
.spread__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.spread__photo--sm img { aspect-ratio: 16 / 9; }
.spread__photo--tall img { aspect-ratio: 4 / 3; }
.spread__folio { position: absolute; left: 22px; bottom: 14px; font-family: var(--font-en); font-weight: 600; font-size: 15px; color: var(--c-sub); }
.spread__folio--r { left: auto; right: 22px; }
.taiyaki { width: 100%; max-width: 280px; margin: 8px 0; }
.flow { display: grid; gap: 12px; margin-bottom: 18px; }
.flow li { position: relative; padding: 4px 0 4px 54px; min-height: 44px; }
.flow__no { position: absolute; left: 0; top: 4px; display: grid; place-items: center; width: 40px; height: 40px; border: var(--line); border-radius: 50%; background: var(--c-yellow); font-family: var(--font-en); font-weight: 800; font-size: 20px; color: var(--c-ink); }
.flow h3 { font-weight: 800; font-size: 19px; color: var(--c-ink); }
.flow p { font-size: 15px; }
.bubble { position: relative; margin: 6px 0 18px; padding: 16px 18px; background: var(--c-bg); border: var(--line); border-radius: 20px; font-weight: 700; color: var(--c-ink); }
.bubble span { display: block; margin-top: 6px; font-weight: 400; font-size: 15px; color: var(--c-sub); }
.bubble::after { content: ""; position: absolute; left: 30px; top: -12px; width: 18px; height: 18px; background: var(--c-bg); border-left: var(--line); border-top: var(--line); transform: rotate(45deg); }

/* 05 数字 */
.panel--num { background: var(--c-bg); }
.nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.num { display: grid; place-content: center; text-align: center; aspect-ratio: 1; border: var(--line); border-radius: 50%; box-shadow: var(--shadow); padding: 8px; color: var(--c-ink); font-weight: 700; font-size: 15px; line-height: 1.4; }
.num--1 { background: var(--c-yellow); } .num--2 { background: #fff; } .num--3 { background: var(--c-orange); } .num--4 { background: #fff1cc; }
.num__val { font-family: var(--font-en); font-weight: 800; font-size: clamp(30px, 8vw, 60px); line-height: 1; white-space: nowrap; }
.num__val small { font-family: var(--font); font-size: 16px; margin-left: 2px; }

/* 06 お問い合わせ */
.panel--contact { background: var(--c-yellow); display: grid; gap: 24px; }
.contact__photo { border: var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.contact__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.contact__body { background: #fff; border: var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 28px 22px; display: grid; gap: 16px; justify-items: start; }
.contact__tel { font-size: 15px; color: var(--c-ink); }
.info { margin: 0; width: 100%; }
.info div { display: grid; grid-template-columns: 4em 1fr; gap: 8px; padding: 10px 0; border-top: 2px dashed var(--c-yellow); }
.info dt { font-weight: 800; color: var(--c-ink); }
.info dd { margin: 0; }

/* ===== 形：ページ全体が横に動く（PC で JS が動くときだけ .is-h） ===== */
.is-h .hpage { height: 100vh; overflow: hidden; }
.is-h .hpage__track { display: flex; height: 100vh; width: max-content; }
.is-h .panel { flex: none; height: 100vh; padding: 108px 56px 76px; }
.is-h .panel--top { width: 100vw; display: grid; grid-template-columns: 1fr 34vw; align-items: center; padding-right: 80px; }
.is-h .giant { font-size: min(15vw, 26vh); grid-row: 1 / 3; }
.is-h .top__parts { grid-column: 2; grid-row: 1; width: 100%; margin: 0; align-self: end; }
.is-h .top__lead { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; }
.is-h .sticker--1 { right: 48px; top: 104px; width: 130px; height: 130px; font-size: 17px; }
.is-h .sticker--2 { display: grid; left: 56px; bottom: 90px; }
/* 見開き：左右2ページ。真ん中に綴じ目の影 */
.is-h .spread { width: 118vw; grid-template-columns: 1fr 1.25fr; gap: 0; padding: 108px 6vw 80px; }
.is-h .spread__page { height: 100%; border-radius: 18px 0 0 18px; padding: 40px 44px 52px; overflow: hidden; }
.is-h .spread__page--r { border-radius: 0 18px 18px 0; border-left: 0; background: linear-gradient(90deg, rgba(43, 29, 14, .12), transparent 40px), #fff; }
.is-h .spread__page--l { display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 0 28px; }
.is-h .spread__page--l .vttl { writing-mode: vertical-rl; font-size: min(4.6vw, 8vh); letter-spacing: .08em; }
.is-h .spread__page--l .spread__en { writing-mode: vertical-rl; }
.is-h .spread__page--l .spread__lead { writing-mode: vertical-rl; font-size: 24px; margin: 0; }
.is-h .spread__page--l .taiyaki, .is-h .spread__page--l .spread__photo { writing-mode: horizontal-tb; width: 15vw; }
.is-h .spread__page--r { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-content: start; }
.is-h .spread__page--r > .spread__photo { grid-row: 1 / span 4; align-self: start; }
.is-h .spread__page--r > p + p { margin-top: 0; }
.is-h .spread__page--r > p { margin-bottom: 14px; }
.is-h #p-can .spread__page--r { grid-template-columns: 1fr 1fr; }
.is-h #p-can .flow { grid-row: 1 / span 2; }
.is-h .spread__photo img { aspect-ratio: auto; height: min(52vh, 420px); }
.is-h .spread__photo--sm img { height: min(50vh, 420px); }
.is-h .spread__photo--tall img { height: min(30vh, 240px); }
.is-h .panel--num { width: 84vw; display: flex; flex-direction: column; justify-content: center; }
.is-h .nums { grid-template-columns: repeat(4, 1fr); gap: 32px; max-width: 1200px; }
.is-h .panel--contact { width: 100vw; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
.is-h .contact__body { padding: 40px; }

/* PC で JSなし：縦に並べたまま整える */
@media (min-width: 1080px) {
  .panel { padding-left: 8vw; padding-right: 8vw; }
  .spread { grid-template-columns: 1fr 1.3fr; }
  .nums { grid-template-columns: repeat(4, 1fr); }
  .panel--contact { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ===== フッター ===== */
.footer { background: var(--c-ink); color: #ffeccc; padding: 56px 20px 40px; text-align: center; font-size: 15px; }
.footer__logo { font-weight: 800; font-size: 22px; color: #fff; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 20px; margin: 18px 0; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; }

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