/* アルカリ太郎 商品サイト — 定数は design-brief.md */
:root {
  --c-base: #FFFFFF;
  --c-pale: #EEF5FC;
  --c-ink: #1B2A3A;
  --c-brand: #1E5AA8;
  --c-brand-dark: #16457F;
  --c-gray: #5B6776;
  --c-line: #D5DEE8;
  --c-mist: #F5F7FA;
  --c-soldout: #B3261E;
  --c-ng-pale: #FBEDEC;
  --c-accent: #FDE21C; /* キャラクターのほっぺの黄色。見出しの蛍光ペン・小さなラベルだけに使う（白い文字は載せない） */
  --c-marker: rgba(253, 226, 28, .55); /* 蛍光ペンの黄色（薄め） */

  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-logo: "Zen Maru Gothic", "Noto Sans JP", sans-serif;

  --r-card: 12px;
  --r-pill: 999px;
  --header-h: 64px;
  --container: 1120px;
  --sec-y: 64px;
  --gutter: 20px;
}
@media (min-width: 900px) {
  :root { --sec-y: 104px; --gutter: 32px; --header-h: 76px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--c-ink);
  background: var(--c-base);
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: var(--c-brand); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h2, h3 { text-wrap: balance; }
.nb { display: inline-block; }
p { text-wrap: pretty; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 差し込み口 ---------- */
.slot {
  border: 2px dashed var(--c-line);
  border-radius: var(--r-card);
  color: var(--c-gray);
  font-size: 14px;
  line-height: 1.6;
}
.slot--photo {
  display: flex; align-items: center; justify-content: center;
  background: var(--c-mist);
  text-align: center; padding: 16px;
}
.slot--text { display: inline-block; padding: 2px 12px; background: var(--c-mist); }
.slot--illust {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255, 255, 255, .7); font-size: 12px;
}
.tag-kari { font-size: 13px; color: var(--c-gray); }

/* ---------- 文字ロゴ（仮）：輪郭に沿ったふち取り ---------- */
.logo-text {
  font-family: var(--font-logo);
  font-weight: 900;
  color: var(--c-brand);
  letter-spacing: .04em;
  line-height: 1.1;
  white-space: nowrap;
  text-decoration: none;
  paint-order: stroke fill;
  -webkit-text-stroke: 0;
}
.logo-text--sm { font-size: 24px; }
.logo-text--lg {
  display: block;
  font-size: clamp(40px, 14vw, 128px);
  -webkit-text-stroke: .14em #fff;
  filter: drop-shadow(0 3px 0 rgba(30, 90, 168, .18));
}
.logo-text--footer { font-size: 30px; color: #fff; }

/* ---------- ボタン・リンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 32px;
  border: 0; border-radius: var(--r-pill);
  background: var(--c-brand); color: #fff;
  font: 700 16px/1.4 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--c-brand-dark); transform: translateY(-1px); }
.btn:focus-visible, .tabs__btn:focus-visible, a:focus-visible { outline: 3px solid #8DB8E8; outline-offset: 3px; }
.btn--wide { width: 100%; max-width: 400px; }
.text-link { font-weight: 700; white-space: nowrap; text-underline-offset: 4px; }
.text-link::after { content: " →"; }

/* ---------- 1. ヘッダー ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  height: 100%; max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.header__face { width: 36px; height: 36px; flex: none; }
.header__logo-img { display: block; height: 34px; width: auto; }
.fv__logo { display: block; width: min(92vw, 760px); height: auto; margin: 0 auto; }
.footer__logo { display: inline-block; }
.footer__logo img { display: block; height: 44px; width: auto; }
.gnav { display: none; }
.gnav__list { display: flex; align-items: center; gap: 28px; }
.gnav__list a {
  color: var(--c-ink); text-decoration: none; font-size: 15px; font-weight: 700; white-space: nowrap;
}
.gnav__list a:hover { color: var(--c-brand); }
.gnav__list .gnav__contact {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px;
  border-radius: var(--r-pill); background: var(--c-brand); color: #fff;
}
.gnav__list .gnav__contact:hover { background: var(--c-brand-dark); color: #fff; }

.menu-btn {
  width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: none; cursor: pointer;
  display: grid; place-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--c-ink); transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.drawer {
  position: fixed; inset: var(--header-h) 0 0; z-index: 49;
  background: #fff; overflow-y: auto;
  padding: 8px var(--gutter) 40px;
}
.drawer__list li { border-bottom: 1px solid var(--c-line); }
.drawer__list a {
  display: block; padding: 18px 4px;
  color: var(--c-ink); text-decoration: none; font-size: 17px; font-weight: 700;
}
body.is-menu-open { overflow: hidden; }

/* 実測：ロゴ＋6項目が1行に収まるのは 1040px 以上 */
@media (min-width: 1040px) {
  .gnav { display: block; }
  .menu-btn, .drawer { display: none !important; }
}

/* ---------- 2. ファーストビュー ----------
   水しぶきの写真は画面に固定し、キャラクター・ロゴ・文字だけがスクロールで流れる。
   background-attachment: fixed は iPhone で効かず重いので使わない。
   写真は position: fixed の層に置き、.fv の clip-path で .fv の範囲だけに切り抜く。 */
.fv {
  position: relative; z-index: 0;
  height: 100vh; height: 100svh; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: var(--header-h) var(--gutter) 64px;
  clip-path: inset(0);
}
.fv__bg {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh;
  background-color: var(--c-pale);
  background-image: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)), url("/img/fv-splash-sp.webp");
  background-size: cover; background-position: 16% center; background-repeat: no-repeat;
  pointer-events: none;
}
@media (min-width: 760px) {
  .fv__bg { background-image: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, .28)), url("/img/fv-splash.webp"); background-position: center; }
}
.fv__inner { position: relative; text-align: center; }
.fv__title { display: block; font-weight: 400; }
.fv__lines { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 16px; }
.fv__line { color: var(--c-brand); font-size: clamp(18px, 4.8vw, 26px); font-weight: 900; line-height: 1.5; letter-spacing: .06em; white-space: nowrap; }
/* キャラクター：水に浮かぶように、ゆっくり上下する */
.fv__charas { position: relative; width: fit-content; margin: 0 auto 16px; }
.fv__hero { display: block; width: clamp(120px, 34vw, 210px); height: auto; animation: bob 4.8s ease-in-out infinite; animation-delay: -2.4s; }
@media (max-height: 640px) { .fv__hero { width: 96px; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.fv__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-weight: 700; color: var(--c-brand); text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.fv__scroll::after {
  content: ""; width: 1px; height: 32px; background: var(--c-brand);
  animation: scrollLine 2.2s ease-in-out infinite; transform-origin: top;
}
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- 本文（ファーストビューの上に流れる） ---------- */
.main { position: relative; z-index: 1; }
.sec { position: relative; padding: var(--sec-y) 0; color: var(--c-ink); }
.sec--genre, .sec--usage, .sec--column { background: var(--c-base); --wave: var(--c-base); }
.sec--about, .sec--product { background: var(--c-pale); --wave: var(--c-pale); }
.sec--contact { background: var(--c-mist); --wave: var(--c-mist); }

/* 波の区切り（手で引いたような曲線） */
.wave { position: absolute; left: 0; width: 100%; height: 36px; pointer-events: none; }
.wave path { fill: var(--wave); }
.wave--top { top: -35px; }
@media (min-width: 900px) { .wave { height: 56px; } .wave--top { top: -55px; } }

.sec-head { margin-bottom: 40px; text-align: center; }
.sec-head--left { text-align: left; }
.sec-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; text-align: left; }
.sec-head__en {
  font-family: var(--font-logo); font-weight: 900;
  font-size: 15px; letter-spacing: .12em; color: var(--c-brand);
}
.sec-head__title { margin-top: 4px; font-size: clamp(22px, 5.6vw, 32px); font-weight: 900; line-height: 1.5; }
/* 見出しの中の大事な言葉に、蛍光ペンでなぞったような薄い黄色（下線のバーは使わない） */
mark.hl {
  color: inherit; background: linear-gradient(transparent 58%, var(--c-marker) 58%, var(--c-marker) 92%, transparent 92%);
  padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- 3. ジャンル別（タブ） ---------- */
.tabs__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  max-width: 720px; margin: 0 auto 32px;
  padding: 6px; border-radius: var(--r-pill); background: var(--c-pale);
}
.tabs__btn {
  min-height: 50px; padding: 0 8px;
  border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--c-brand);
  font: 700 15px/1.3 var(--font-body); white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tabs__btn[aria-selected="true"] { background: var(--c-brand); color: #fff; }
.tabs__btn:not([aria-selected="true"]):hover { background: #fff; }

.genre {
  display: grid; gap: 24px;
  border: 1px solid var(--c-line); border-radius: var(--r-card);
  padding: 16px; background: #fff;
}
.genre__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.genre__body { padding: 0 4px 8px; }
.genre__title { font-size: 24px; font-weight: 900; color: var(--c-brand); }
.genre__lead { margin-top: 8px; font-size: 18px; font-weight: 700; }
.genre__text { margin-top: 12px; color: var(--c-ink); }
.genre .tag-kari { margin-top: 8px; }
.genre .btn { margin-top: 24px; width: 100%; max-width: 360px; padding: 0 20px; }
@media (min-width: 900px) {
  .genre { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; padding: 24px; }
  .genre__body { padding: 0 24px 0 0; }
}

/* ---------- 4. アルカリ太郎について ---------- */
.about { display: grid; gap: 32px; align-items: center; }
.about__text { margin-top: 8px; }
.about .sec-head { margin-bottom: 16px; }
.video-btn {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: var(--r-card);
  background: var(--c-brand-dark); color: #fff; text-decoration: none;
}
.video-btn__media { position: absolute; inset: 0; }
.video-btn__media iframe {
  position: absolute; top: 50%; left: 50%;
  width: 177.78%; height: 177.78%; min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%); border: 0; pointer-events: none;
}
.video-btn__slot {
  position: absolute; inset: 12px;
  display: flex; align-items: flex-start; justify-content: flex-start; padding: 8px 12px;
  border: 2px dashed rgba(255,255,255,.45); border-radius: 8px;
  font-size: 13px; color: rgba(255,255,255,.85);
}
.video-btn__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; background: rgba(22, 69, 127, .88);
  font-size: 18px; font-weight: 700; white-space: nowrap;
}
.video-btn__arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--c-brand); transition: transform .2s;
}
.video-btn:hover .video-btn__arrow { transform: translateX(4px); }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1.3fr; gap: 64px; } }

/* ---------- 5. 使い方と素材 ---------- */
.usage { display: grid; gap: 40px; }
.usage__title {
  padding-bottom: 12px; margin-bottom: 20px;
  border-bottom: 2px solid var(--c-brand);
  font-size: 20px; font-weight: 900;
}
.steps { display: grid; gap: 12px; counter-reset: none; }
.steps__item { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; }
.steps__body { min-width: 0; }
.steps__title { font-size: 17px; font-weight: 900; line-height: 1.5; margin-top: 6px; }
.steps__text { margin-top: 4px; font-size: 14px; color: var(--c-ink); }
.steps__num {
  flex: none; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-brand); color: #fff; font-weight: 900;
}
.usage__more { margin-top: 20px; }
.mat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mat__panel { border-radius: var(--r-card); padding: 16px 12px 14px; border: 2px solid; }
.mat__panel--ok { border-color: var(--c-brand); background: var(--c-pale); }
.mat__panel--ng { border-color: var(--c-soldout); background: var(--c-ng-pale); }
.mat__head {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 14px; font-size: 18px; font-weight: 900; line-height: 1.3; white-space: nowrap;
}
.mat__panel--ok .mat__head { color: var(--c-brand); }
.mat__panel--ng .mat__head { color: var(--c-soldout); }
.mat__sign { position: relative; width: 52px; height: 52px; }
.mat__sign--ok { border: 7px solid var(--c-brand); border-radius: 50%; }
.mat__sign--ng::before, .mat__sign--ng::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 62px; height: 8px; margin: -4px 0 0 -31px; border-radius: 4px; background: var(--c-soldout);
}
.mat__sign--ng::before { transform: rotate(45deg); }
.mat__sign--ng::after { transform: rotate(-45deg); }
.mat__list { display: grid; gap: 8px; }
.mat__more { margin-top: 16px; font-size: 15px; line-height: 1.6; text-align: center; color: var(--c-ink); }
.mat__note { display: block; font-size: 12px; font-weight: 700; color: var(--c-brand); line-height: 1.4; }
.mat__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 6px 8px;
  border-radius: 8px; background: #fff; text-align: center;
  font-size: 18px; font-weight: 700; line-height: 1.4;
}
.mat__panel--ng .mat__item { color: var(--c-soldout); font-size: 20px; }
.mat__item--slot { border: 2px dashed var(--c-line); color: var(--c-gray); font-size: 13px; font-weight: 400; }
@media (min-width: 600px) {
  .mat { gap: 20px; max-width: 880px; }
  .mat__panel { padding: 24px 20px 20px; }
  .mat__head { flex-direction: row; justify-content: center; gap: 12px; font-size: 22px; }
  .mat__sign { width: 40px; height: 40px; }
  .mat__sign--ok { border-width: 6px; }
  .mat__sign--ng::before, .mat__sign--ng::after { width: 48px; height: 7px; margin: -3.5px 0 0 -24px; }
}
.usage__caution { margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--c-soldout); }
@media (min-width: 900px) {
  .usage { gap: 56px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

/* ---------- 6. 商品 ---------- */
.product {
  display: grid; gap: 24px;
  max-width: 960px; margin: 0 auto;
  padding: 16px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff;
}
.product > *, .genre > * { min-width: 0; }
.product__img { aspect-ratio: 1 / 1; }
.product__photo { aspect-ratio: 3 / 2; width: 100%; height: auto; object-fit: cover; border-radius: var(--r-card); }
.product__body { padding: 0 4px 8px; }
.product__kind { font-size: 14px; font-weight: 700; color: var(--c-brand); }
.product__name { font-size: 26px; font-weight: 900; line-height: 1.4; }
.sizes { margin: 20px 0 20px; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.sizes__legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--c-gray); }
.sizes__item {
  display: grid; grid-template-columns: 22px 48px 1fr; align-items: center; gap: 10px;
  min-height: 60px; padding: 8px 16px;
  border: 2px solid var(--c-line); border-radius: var(--r-card); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.sizes__item input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-brand); }
.sizes__item:has(input:checked) { border-color: var(--c-brand); background: var(--c-pale); }
.sizes__item:has(input:focus-visible) { outline: 3px solid #8DB8E8; outline-offset: 2px; }
.sizes__vol { font-size: 20px; font-weight: 900; }
.sizes__price { font-size: 22px; font-weight: 700; white-space: nowrap; }
.sizes__price small { font-size: 13px; font-weight: 400; margin-left: 2px; }
.stock {
  margin-top: 16px; padding: 16px; border-radius: var(--r-card);
  background: var(--c-ng-pale);
}
.stock__msg { font-weight: 700; color: var(--c-soldout); margin-bottom: 12px; }
.btn--line { background: #fff; color: var(--c-brand); box-shadow: inset 0 0 0 2px var(--c-brand); }
.btn--line:hover { background: var(--c-brand); color: #fff; }
.product__note { margin-top: 10px; font-size: 13px; color: var(--c-gray); }
.restock { display: grid; gap: 8px; }
.restock[hidden] { display: none; }
.restock__lead { font-weight: 700; text-wrap: balance; }
.restock__label { font-size: 14px; font-weight: 700; }
.restock input[type=email] { width: 100%; max-width: 400px; min-height: 52px; padding: 12px 14px; border: 2px solid var(--c-line); border-radius: 10px; font: 16px/1.6 var(--font-body); color: var(--c-ink); background: #fff; }
.restock input[type=email]:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px #CFE0F5; }
.restock .btn { margin-top: 4px; }
.restock__done { margin-top: 8px; font-weight: 700; color: var(--c-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (min-width: 900px) {
  .product { grid-template-columns: 1fr 1fr; gap: 48px; padding: 24px; align-items: center; }
  .product__body { padding: 0 24px 0 0; }
}

/* ---------- 7. コラム（横に流れるスライダー） ---------- */
.sec--column .sec-head { margin-bottom: 32px; }
.marquee { overflow: hidden; }
.marquee__track { display: flex; gap: 20px; width: max-content; padding: 4px 0; }
.marquee.is-running .marquee__track { animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee.is-running:hover .marquee__track,
.marquee.is-running:focus-within .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 10px)); } }
.col-card { flex: none; width: 260px; }
.col-card a { display: block; color: var(--c-ink); text-decoration: none; }
.col-card__img { display: block; aspect-ratio: 3 / 2; border-radius: var(--r-card); overflow: hidden; background: var(--c-pale); }
.col-card__img img { width: 100%; height: 100%; object-fit: cover; }
.col-card__slot { display: grid; place-items: center; height: 100%; border: 2px dashed var(--c-line); border-radius: inherit; color: var(--c-gray); font-size: 13px; }
.col-card__meta { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--c-gray); }
.col-card__cat { padding: 0 8px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.col-card__title { display: block; font-weight: 700; line-height: 1.6; }
.col-card a:hover .col-card__title { color: var(--c-brand); text-decoration: underline; }
@media (min-width: 900px) { .col-card { width: 300px; } }

/* ---------- 8. お問い合わせ ---------- */
.contact { position: relative; text-align: center; }
.contact__title { font-size: clamp(24px, 6vw, 32px); font-weight: 900; }
.contact__text { margin: 12px auto 28px; max-width: 32em; }
.contact__illust { display: block; width: 112px; height: auto; margin: 0 auto 16px; }

/* ---------- 9. フッター ---------- */
.footer { position: relative; z-index: 1; color: #fff; }
.wave--footer { position: relative; display: block; height: 40px; background: var(--c-mist); }
.wave--footer path { fill: var(--c-brand-dark); }
@media (min-width: 900px) { .wave--footer { height: 64px; } }
.footer__body { background: var(--c-brand-dark); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); margin-top: -1px; }
.footer__inner { display: grid; gap: 32px; }
.footer__kind { margin-top: 4px; font-size: 13px; opacity: .85; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
.footer__head { font-size: 13px; font-weight: 700; opacity: .7; margin-bottom: 8px; }
.footer__col li + li { margin-top: 6px; }
.footer__col a { color: #fff; text-decoration: none; font-size: 14px; line-height: 1.7; }
.footer__col--wide { grid-column: 1 / -1; }
.footer__col--wide ul { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer__col--wide li + li { margin-top: 0; }
.footer__col a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.25);
  font-size: 13px; opacity: .85;
}
@media (min-width: 900px) {
  .footer__inner { grid-template-columns: 1fr 2.4fr; gap: 48px; }
  .footer__nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__col--wide { grid-column: auto; }
  .footer__col--wide ul { display: block; }
  .footer__col--wide li + li { margin-top: 6px; }
}

/* ---------- ページトップ ---------- */
.pagetop {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-decoration: none; color: var(--c-brand); font-size: 12px; font-weight: 700;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.pagetop.is-show { opacity: 1; visibility: visible; }
.pagetop__illust { width: 60px; height: auto; filter: drop-shadow(0 2px 4px rgba(27, 42, 58, .15)); transition: transform .2s; }
.pagetop:hover .pagetop__illust { transform: translateY(-4px); }
.pagetop__label { padding: 0 8px; border-radius: var(--r-pill); background: #fff; }

/* ---------- 動きを止める ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee { overflow-x: auto; }
}

/* ==========================================================
   下層ページ
   ========================================================== */
.page { padding-top: var(--header-h); }

/* ページの見出し帯（トップの FV と同じ水色＋水玉） */
/* ページの見出し帯：ページの内容に合った写真に、白っぽい色を重ねて薄く敷く */
.page-hero {
  position: relative; overflow: hidden;
  padding: 32px 0 72px;
  background-color: var(--c-pale);
  background-image: linear-gradient(rgba(246, 250, 254, .38), rgba(246, 250, 254, .38)), var(--hero-img, none);
  background-size: cover; background-position: center;
}
.page-hero__inner { position: relative; display: grid; gap: 16px; align-items: center; }
/* 写真が見えるよう重ねは弱く、文字の後ろだけ白をぼかして残す */
.page-hero__text { position: relative; isolation: isolate; justify-self: start; max-width: 100%; }
.page-hero__text::before {
  content: ""; position: absolute; inset: -20px -28px; z-index: -1;
  border-radius: 48px; background: rgba(255, 255, 255, .8); filter: blur(16px);
}
.page-hero__en { font-family: var(--font-logo); font-weight: 900; font-size: 15px; letter-spacing: .12em; color: var(--c-brand); }
.page-hero__title { margin-top: 2px; font-size: clamp(26px, 7vw, 40px); font-weight: 900; line-height: 1.4; text-wrap: balance; }
.page-hero__lead { margin-top: 12px; max-width: 34em; }
.page-hero__chara { width: clamp(96px, 26vw, 180px); height: auto; justify-self: end; animation: bob 4.8s ease-in-out infinite; }
@media (min-width: 900px) {
  .page-hero { padding: 48px 0 96px; }
  .page-hero__inner { grid-template-columns: 1fr auto; }
}
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 20px; font-size: 13px; color: var(--c-gray); }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--c-gray); }
.crumbs a { color: var(--c-gray); }

/* 見出し帯の写真（業種別） */
.page-photo { position: relative; z-index: 1; margin-top: -40px; }
.page-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card); }
@media (min-width: 900px) { .page-photo img { aspect-ratio: 21 / 9; } .page-photo { margin-top: -64px; } }
.page-photo__cap { margin-top: 6px; font-size: 12px; color: var(--c-gray); }

/* 本文の帯 */
.sec--white { background: var(--c-base); --wave: var(--c-base); }
.sec--pale { background: var(--c-pale); --wave: var(--c-pale); }
.sec--mist { background: var(--c-mist); --wave: var(--c-mist); }
.sec--tight { padding-top: 48px; }
.narrow { max-width: 800px; margin: 0 auto; }
.h2 { font-size: clamp(22px, 5.6vw, 30px); font-weight: 900; line-height: 1.5; }
.h2 + * { margin-top: 20px; }
.h3 { font-size: 19px; font-weight: 900; line-height: 1.5; padding-left: 12px; border-left: 4px solid var(--c-brand); }
.prose > * + * { margin-top: 16px; }
.prose > .h3 { margin-top: 40px; }
ul.dots { display: grid; gap: 6px; }
ul.dots > li { position: relative; padding-left: 1.2em; }
ul.dots > li::before { content: ""; position: absolute; left: 2px; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); }

/* 番号付きの縦並び（使いどころ） */
.uses { display: grid; gap: 12px; counter-reset: use; }
.uses > li { counter-increment: use; display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 16px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; }
.uses > li::before {
  content: counter(use); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--c-pale); color: var(--c-brand); font-family: var(--font-logo); font-weight: 900; font-size: 20px;
}
.uses__title { font-size: 18px; font-weight: 900; line-height: 1.5; }
.uses__text { margin-top: 4px; font-size: 15px; }

/* 使い方のステップ（イラスト付き） */
.stepcards { display: grid; gap: 16px; margin-top: 24px; }
.stepcard { padding: 20px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; text-align: center; }
.stepcard__img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto 8px; }
.stepcard__num { display: inline-block; padding: 0 12px; border-radius: var(--r-pill); background: var(--c-accent); font-family: var(--font-logo); font-weight: 900; color: var(--c-ink); letter-spacing: .1em; }
.stepcard__title { font-size: 19px; font-weight: 900; line-height: 1.5; }
.stepcard__text { margin-top: 8px; font-size: 15px; text-align: left; }
@media (min-width: 900px) { .stepcards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

/* 罫線の表 */
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 14px 12px; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.table th { width: 34%; font-weight: 700; color: var(--c-brand-dark); background: var(--c-mist); }
.table tr:first-child th, .table tr:first-child td { border-top: 2px solid var(--c-brand); }
@media (max-width: 599px) {
  .table--stack th, .table--stack td { display: block; width: 100%; }
  .table--stack th { border-bottom: 0; padding-bottom: 4px; }
  .table--stack td { padding-top: 4px; }
  .table--stack tr:first-child td { border-top: 0; }
}
.slot-inline { color: var(--c-gray); background: var(--c-mist); border: 1px dashed var(--c-line); border-radius: 6px; padding: 0 8px; }

/* 注意の箱 */
.caution { padding: 20px; border: 2px solid var(--c-soldout); border-radius: var(--r-card); background: var(--c-ng-pale); }
.caution__title { display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--c-soldout); font-size: 18px; }
.caution__title::before { content: "!"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c-soldout); color: #fff; font-size: 15px; }
.caution ul { margin-top: 10px; display: grid; gap: 6px; }
.caution li { position: relative; padding-left: 1.2em; font-weight: 700; }
.caution li::before { content: "×"; position: absolute; left: 0; color: var(--c-soldout); }

/* 図解：説明の横にキャラのイラスト */
.with-chara { display: grid; gap: 24px; align-items: center; }
.with-chara__img { width: min(220px, 60%); height: auto; margin: 0 auto; }
@media (min-width: 900px) { .with-chara { grid-template-columns: 1fr 240px; } .with-chara--left { grid-template-columns: 240px 1fr; } .with-chara--left .with-chara__img { order: -1; } }

/* pH のものさし */
.ph { margin-top: 8px; }
.ph__bar { position: relative; height: 18px; border-radius: 9px; background: linear-gradient(90deg, #E2574C 0%, #F2C94C 30%, #7CC576 50%, #4FA3E0 75%, #1E3F96 100%); }
.ph__scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12px; color: var(--c-gray); font-variant-numeric: tabular-nums; }
.ph__mark { position: absolute; top: -34px; transform: translateX(-50%); white-space: nowrap; font-size: 13px; font-weight: 900; color: var(--c-brand-dark); }
.ph__mark::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 2px; height: 10px; background: var(--c-brand-dark); }
.ph__mark--end { transform: translateX(calc(-100% + 6px)); }
.ph__mark--end::after { left: auto; right: 5px; }
.ph__labels { display: flex; justify-content: space-between; margin-top: 2px; font-size: 13px; font-weight: 700; }

/* 商品への案内の帯 */
.to-product { display: grid; gap: 16px; align-items: center; padding: 24px; border-radius: var(--r-card); background: #fff; border: 2px solid var(--c-brand); }
.to-product__img { width: 160px; height: auto; border-radius: 8px; }
.to-product__title { font-size: 20px; font-weight: 900; line-height: 1.5; }
.to-product__text { font-size: 14px; color: var(--c-gray); margin-top: 4px; }
@media (min-width: 760px) { .to-product { grid-template-columns: 160px 1fr auto; } }

/* 他の業種へのリンク */
.links3 { display: grid; gap: 12px; }
.links3 a { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--c-line); border-radius: var(--r-card); background: #fff; color: var(--c-ink); text-decoration: none; font-weight: 700; }
.links3 a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.links3 img { width: 88px; height: 66px; object-fit: cover; border-radius: 8px; flex: none; }
.links3 img.links3__illust { width: 80px; height: 80px; object-fit: contain; background: var(--c-pale); padding: 4px; }
.links3 a::after { content: "→"; margin-left: auto; color: var(--c-brand); }
@media (min-width: 760px) { .links3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .links3--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 動画（サイトに置いた mp4） */
.movie { margin: 28px 0 0; }
.movie__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r-card); background: var(--c-brand-dark); }
.movie__cap { margin-top: 8px; font-size: 13px; color: var(--c-gray); }
.video-btn__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video.slot { display: grid; place-items: center; }

/* プロフィール（キャラクター） */
.profile { display: grid; gap: 24px; align-items: center; padding: 24px; border-radius: var(--r-card); background: #fff; border: 1px solid var(--c-line); }
.profile__img { width: min(240px, 70%); height: auto; margin: 0 auto; }
@media (min-width: 760px) { .profile { grid-template-columns: 260px 1fr; } }

/* コラム */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.cat-nav a { padding: 8px 18px; border-radius: var(--r-pill); border: 2px solid var(--c-brand); color: var(--c-brand); font-weight: 700; text-decoration: none; white-space: nowrap; font-size: 14px; }
.cat-nav a[aria-current="page"], .cat-nav a:hover { background: var(--c-brand); color: #fff; }
.col-grid { display: grid; gap: 20px; }
@media (min-width: 600px) { .col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .col-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.col-grid .col-card { width: auto; }
@media (min-width: 900px) { .steps.steps--col { grid-template-columns: 1fr; } }
.col-empty { padding: 32px 20px; border: 2px dashed var(--c-line); border-radius: var(--r-card); text-align: center; color: var(--c-gray); }
.col-empty img { width: 120px; height: auto; margin: 0 auto 12px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--c-gray); }
.article__cat { padding: 0 10px; border-radius: var(--r-pill); background: var(--c-accent); color: var(--c-ink); font-weight: 700; }
.article__eyecatch { margin: 24px 0 8px; }
.article__eyecatch img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); }
.toc { padding: 16px 20px; border-radius: var(--r-card); background: var(--c-mist); }
.toc__title { font-weight: 900; }
.toc ol { margin-top: 6px; list-style: decimal; padding-left: 1.4em; }
.article-cta { margin-top: 48px; text-align: center; padding: 32px 20px; border-radius: var(--r-card); background: var(--c-pale); }
.article-cta img { width: min(280px, 80%); height: auto; margin: 0 auto 16px; border-radius: 8px; }
.article-cta p { font-weight: 700; margin-bottom: 16px; }

/* フォーム */
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.req { font-size: 12px; padding: 0 8px; border-radius: 4px; background: var(--c-soldout); color: #fff; font-weight: 700; }
.opt { font-size: 12px; padding: 0 8px; border-radius: 4px; background: var(--c-line); color: var(--c-ink); font-weight: 700; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--c-line); border-radius: 10px;
  font: 16px/1.6 var(--font-body); color: var(--c-ink); background: #fff;
}
.field textarea { min-height: 180px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px #CFE0F5; }
.field__help { font-size: 13px; color: var(--c-gray); }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border: 2px solid var(--c-line); border-radius: 10px; cursor: pointer; }
.radios label:has(input:checked) { border-color: var(--c-brand); background: var(--c-pale); }
.radios input { width: 20px; height: 20px; accent-color: var(--c-brand); margin: 0; }
.agree { display: flex; align-items: flex-start; gap: 10px; }
.agree input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--c-brand); }
.form__status { padding: 14px 16px; border-radius: 10px; background: var(--c-pale); font-weight: 700; }

/* 法務ページの番号付き見出し */
.legal h2 { font-size: 19px; font-weight: 900; margin-top: 36px; padding-bottom: 6px; border-bottom: 2px solid var(--c-brand); }
.legal p, .legal ul, .legal ol { margin-top: 12px; }
.legal ol { list-style: decimal; padding-left: 1.4em; }
.legal ul { list-style: disc; padding-left: 1.4em; }

/* ---------- 準備中ページ ---------- */
.stub { padding-top: var(--header-h); }
.stub__inner { min-height: 50vh; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.stub .sec { background: var(--c-mist); --wave: var(--c-mist); }

/* 日本語の見出し・リード文は、言葉の途中で改行しない（対応ブラウザのみ。Chrome など） */
h1, h2, h3, .page-hero__lead, .genre__lead, .sec-head__title, .stepcard__title, .uses__title, .col-card__title, .toc li, .mat__item, .caution li {
  word-break: auto-phrase;
}

/* 記事本文の番号つきリスト（content/column の「1. 」） */
ol.nums { display: grid; gap: 6px; padding-left: 1.6em; list-style: decimal; }
ol.nums > li::marker { color: var(--c-brand); font-weight: 700; }
.prose > .h4 { margin-top: 28px; font-size: 17px; font-weight: 700; line-height: 1.5; }
.prose > .sep { margin: 40px 0 0; border: 0; border-top: 1px solid var(--c-line); }
