/* 131 青砂鋳物工房 ― K09 大きな番号の手順でつなぐ／スマホのまま横に延長。色と書体は共通の13変数だけ（+筆記体用の --font-script） */
:root {
  --c-bg: #0a1424;
  --c-bg-alt: #10213a;
  --c-text: #dbe6ff;
  --c-sub: #b9c9e6;
  --c-line: #1d3157;
  --c-accent: #8fc4ff;
  --c-accent-text: #8fc4ff;
  --c-on-accent: #0a1424;
  --c-2: #1c4fd6;
  --c-3: #ffffff;
  --font-ja: "Murecho", sans-serif;
  --font-head: "Murecho", sans-serif;
  --font-en: "Unbounded", "Murecho", sans-serif;
  --font-script: "Mr Dafoe", "Murecho", cursive;
  --header-h: 60px;
  --col: 704px;
  --gut: 64px;
}
/* 面ごとの色：同じ名前の変数を全部上書きする */
.t-alt { --c-bg: #10213a; --c-bg-alt: #0a1424; }
.t-paper { --c-bg: #f2f4f8; --c-bg-alt: #e3e8f1; --c-text: #374151; --c-sub: #4b5563; --c-line: #b8c4da; --c-accent: #1c4fd6; --c-accent-text: #1c4fd6; --c-on-accent: #ffffff; --c-2: #8fc4ff; --c-3: #0a1424; }
.t-cobalt { --c-bg: #1c4fd6; --c-bg-alt: #123a9c; --c-text: #ffffff; --c-sub: #ffffff; --c-line: #8fc4ff; --c-accent: #ffffff; --c-accent-text: #ffffff; --c-on-accent: #123a9c; --c-2: #8fc4ff; --c-3: #ffffff; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--c-bg); color: var(--c-text); font-family: var(--font-ja); font-size: 16px; line-height: 1.9; overflow-x: hidden; }
figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, dd, li { word-break: auto-phrase; overflow-wrap: anywhere; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.fz { font-family: var(--font-ja); }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }

.col { width: min(100%, var(--col)); margin-inline: auto; padding-inline: 20px 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; background: var(--c-accent); color: var(--c-on-accent); border: 2px solid var(--c-accent); font-family: var(--font-head); font-weight: 900; font-size: 16px; text-decoration: none; white-space: nowrap; flex: none; cursor: pointer; clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%); transition: background-color .2s, color .2s; }
.btn:hover { background: transparent; color: var(--c-accent-text); }
.btn--lg { min-height: 58px; padding: 0 34px; }
.btn--line { background: transparent; color: var(--c-accent-text); clip-path: none; }
.btn--line:hover { background: var(--c-accent); color: var(--c-on-accent); }
.label { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-en); font-weight: 900; font-size: 15px; letter-spacing: .12em; color: var(--c-accent-text); }
.label::before { content: ""; width: 14px; height: 14px; background: currentColor; clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); }
.h2 { font-family: var(--font-head); font-weight: 900; font-size: clamp(30px, 8vw, 46px); line-height: 1.35; color: var(--c-3); margin-top: 8px; }

/* ヘッダー */
.header { position: sticky; top: 0; z-index: 40; background: var(--c-bg); border-bottom: 2px solid var(--c-line); }
.header__inner { height: var(--header-h); padding: 0 12px 0 20px; display: flex; align-items: center; gap: 10px; position: relative; max-width: 1440px; margin: 0 auto; }
.logo { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--c-3); white-space: nowrap; flex: none; min-height: 44px; align-items: center; }
.logo__en { font-family: var(--font-en); font-weight: 900; font-size: 18px; letter-spacing: .06em; }
.logo__ja { font-weight: 900; font-size: 15px; color: var(--c-sub); }
@media (max-width: 420px) { .logo__ja { font-size: 15px; letter-spacing: -.04em; } .logo { gap: 6px; } .logo__en { font-size: 15px; } .header__inner { padding: 0 8px 0 14px; gap: 6px; } }
.header__btn { margin-left: auto; min-height: 44px; padding: 0 20px; }
.spmenu { flex: none; }
.spmenu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; color: var(--c-3); }
.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: 24px; height: 3px; background: currentColor; position: relative; }
.spmenu__bar::before, .spmenu__bar::after { content: ""; position: absolute; left: 0; }
.spmenu__bar::before { top: -8px; } .spmenu__bar::after { top: 8px; }
.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; right: 0; top: 100%; width: min(100%, 360px); background: var(--c-bg); border: 2px solid var(--c-accent); padding: 6px 22px 12px; display: flex; flex-direction: column; }
.spmenu__nav a { display: flex; align-items: center; min-height: 52px; color: var(--c-3); font-weight: 900; text-decoration: none; border-bottom: 1px solid var(--c-line); }

/* メインビジュアル（イラスト） */
.hero { padding: 40px 0 8px; background: var(--c-bg); }
.hero__kicker { font-family: var(--font-en); font-weight: 900; font-size: 15px; letter-spacing: .1em; color: var(--c-accent-text); }
.hero__head { position: relative; }
.hero__title { margin-top: 6px; }
.script { display: block; width: min(76vw, 340px); height: auto; margin-bottom: -22px; overflow: visible; }
.script__text { font-family: var(--font-script); font-size: 140px; fill: var(--c-accent); stroke: var(--c-accent); stroke-width: 1.5; }
.hero__ja { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(56px, 17vw, 96px); line-height: 1.1; color: var(--c-3); letter-spacing: -.01em; }
.sticker { position: absolute; right: 20px; top: 92px; display: grid; place-items: center; width: 112px; height: 112px; padding: 8px; text-align: center; background: var(--c-accent); color: var(--c-on-accent); font-weight: 900; font-size: 17px; line-height: 1.25; clip-path: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%); transform: rotate(-8deg); margin: 0; }
.sticker span { display: block; font-size: 15px; }
.art { margin-top: 20px; }
.art__svg { display: block; width: 100%; height: auto; max-height: 64vh; }
.floor, .frame2 { stroke: var(--c-line); }
.frame { stroke: var(--c-accent); fill: none; }
.hole { fill: var(--c-bg); stroke: var(--c-text); }
.sa { fill: var(--c-2); } .sb { fill: color-mix(in srgb, var(--c-2) 70%, var(--c-text)); } .sc { fill: color-mix(in srgb, var(--c-2) 60%, var(--c-bg)); }
.g1 { stop-color: var(--c-text); } .g2 { stop-color: var(--c-accent); }
.ladle__body { fill: color-mix(in srgb, var(--c-2) 65%, var(--c-bg)); stroke: var(--c-accent); }
.ladle__lip { fill: var(--c-accent); }
.chain { stroke: color-mix(in srgb, var(--c-2) 80%, var(--c-text)); }
.spark { stroke: var(--c-text); }
.hexo { stroke: var(--c-2); }
.hero__foot { display: grid; gap: 18px; justify-items: start; padding-top: 12px; padding-bottom: 56px; }

/* K09：大きな番号の手順。太い線が、番号の脇を通って上から下へつなぐ */
.step { position: relative; background: var(--c-bg); color: var(--c-text); padding: 72px 0; }
.step::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(max(0px, (100% - var(--col)) / 2) + 26px); width: 8px; background: var(--c-accent); z-index: 0; }
.step__in { position: relative; z-index: 1; width: min(100%, var(--col)); margin-inline: auto; padding: 0 20px 0 var(--gut); }
.step__in > * + * { margin-top: 18px; }
.step__in > .h2 { margin-top: 6px; }
.step__no { position: relative; font-family: var(--font-en); font-weight: 900; font-size: clamp(104px, 30vw, 168px); line-height: .9; letter-spacing: -.04em; color: var(--c-accent-text); margin-left: -4px; }
.step__no::before { content: ""; position: absolute; left: calc(-1 * var(--gut) + 26px - 12px + 4px); top: 50%; width: 32px; height: 32px; margin-top: -16px; background: var(--c-bg); border: 6px solid var(--c-accent); clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%); box-sizing: border-box; background: var(--c-accent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: flex; flex-direction: column; padding: 10px 16px; border: 2px solid var(--c-accent); font-size: 15px; line-height: 1.5; color: var(--c-sub); }
.chips li span { font-weight: 900; font-size: 20px; color: var(--c-3); }

/* F04：写真を六角形・アーチで切り抜く（画面の端まで） */
.cut { position: relative; z-index: 1; margin-top: 44px; height: clamp(260px, 44vw, 540px); }
.cut img { width: 100%; height: 100%; object-fit: cover; }
.cut--hex { clip-path: polygon(6% 0%, 94% 0%, 100% 50%, 94% 100%, 6% 100%, 0% 50%); }
.cut--arch { overflow: visible; }
.cut--arch img { border-radius: 50% 50% 0 0 / 70% 70% 0 0; }
.ring { position: absolute; right: 16px; bottom: -64px; width: 212px; height: 212px; }
.ring__svg, .ring__hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring__svg { background: var(--c-bg); border-radius: 50%; }
.ring__text { font-family: var(--font-en); font-weight: 900; font-size: 22px; fill: var(--c-accent-text); }
.ring__hexpath { fill: var(--c-accent); stroke: var(--c-bg); }
.ring__mark { font-family: var(--font-head); font-weight: 900; font-size: 34px; fill: var(--c-on-accent); }
#s3 { padding-bottom: 120px; }

/* スライド（Swiper） */
.slider { margin-top: 36px; position: relative; z-index: 1; }
.slider__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; padding: 4px 20px 12px; }
.slider__track { display: flex; gap: 16px; width: max-content; }
.slider__item { width: min(78vw, 400px); flex: none; scroll-snap-align: start; }
.slider.is-swiper .slider__viewport { overflow: hidden; scroll-snap-type: none; padding: 4px 0 0; }
.slider.is-swiper .slider__track { gap: 0; width: auto; }
.slider.is-swiper .slider__item { height: auto; }
.item { background: var(--c-bg-alt); border: 2px solid var(--c-accent); display: flex; flex-direction: column; }
.item > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-3); }
.item__art { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--c-bg); }
.item__art svg { width: 60%; }
.item__art .d { stroke: var(--c-accent); }
.item__body { padding: 16px 20px 22px; }
.item__no { font-family: var(--font-en); font-weight: 900; font-size: 15px; letter-spacing: .06em; color: var(--c-accent-text); }
.item h3 { font-weight: 900; font-size: 22px; line-height: 1.4; color: var(--c-3); margin: 4px 0 4px; }
.slider__ctrl { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; }
.slider__ctrl[hidden] { display: none; }
.slider__arrow { width: 52px; height: 52px; border: 2px solid var(--c-accent); background: transparent; color: var(--c-accent-text); cursor: pointer; position: relative; border-radius: 50%; }
.slider__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 11px; border-top: 3px solid currentColor; border-right: 3px solid currentColor; transform: translate(-65%, -50%) rotate(45deg); }
.slider__prev::before { transform: translate(-35%, -50%) rotate(-135deg); }
.slider__arrow:hover { background: var(--c-accent); color: var(--c-on-accent); }
.slider__dots, .slider__dots.swiper-pagination-horizontal { position: static; width: auto; transform: none; display: flex; }
.slider__dots .swiper-pagination-bullet { width: 36px; height: 44px; margin: 0 !important; background: transparent; opacity: 1; border-radius: 0; position: relative; }
.slider__dots .swiper-pagination-bullet::before { content: ""; position: absolute; left: 6px; right: 6px; top: 19px; height: 6px; background: var(--c-line); }
.slider__dots .swiper-pagination-bullet-active::before { background: var(--c-accent); }

/* 数字の帯・問い合わせ */
.numbers { background: var(--c-bg); color: var(--c-text); padding: 56px 0; }
.nums { display: grid; gap: 22px; }
.nums li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; font-weight: 900; font-size: 17px; }
.nums__v { font-family: var(--font-en); font-weight: 900; font-size: 56px; line-height: 1; color: var(--c-3); }
.nums__u { font-size: 24px; color: var(--c-3); margin-right: 8px; }
.contact { padding: 80px 0 72px; background: var(--c-bg); }
.contact .col > * + * { margin-top: 18px; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.info { display: grid; gap: 12px; border-top: 2px solid var(--c-line); padding-top: 18px; }
.info dt { font-size: 15px; color: var(--c-sub); }

.footer { padding: 36px 20px 48px; text-align: center; background: var(--c-bg-alt); font-size: 15px; line-height: 1.9; }
.footer__logo { font-family: var(--font-en); font-weight: 900; font-size: 18px; color: var(--c-3); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 8px 0; }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--c-text); }
.footer__fiction { color: var(--c-sub); }

/* PCでも1列のまま。色の帯・図・写真は端まで、文字の列だけ読みやすい幅 */
@media (min-width: 768px) {
  .header__inner { padding: 0 24px; }
  .sticker { right: 28px; width: 132px; height: 132px; font-size: 20px; top: 70px; }
  .step { padding: 104px 0; }
  .step__in { padding-right: 0; }
  .ring { width: 260px; height: 260px; right: 8%; bottom: -88px; }
  .ring__text { font-size: 18px; }
  #s3 { padding-bottom: 160px; }
  .nums { grid-template-columns: repeat(3, auto); }
  .nums li { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
