/* =========================================================
   石塚商店 / Ishizuka Corporation
   共通スタイル
   ========================================================= */

:root {
  --bg: #ffffff;
  --ink: #14120f;
  --ink-soft: #3d3833;
  --muted: #7a736b;
  --rule: #e2ded7;
  --rule-strong: #c9c3ba;
  --paper: #f7f5f1;
  --accent: #1f3d2b;

  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --measure: 700px;
  --wide: 1060px;
  --gutter: 28px;
  --head-h: 74px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 2.05;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.3em; text-decoration-thickness: 1px; }
a:hover { text-decoration: none; }

:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}

/* ---------- レイアウト ---------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap-wide {
  width: 100%;
  max-width: var(--wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band { padding-block: clamp(60px, 9vw, 108px); }
.band-tight { padding-block: clamp(44px, 6.5vw, 76px); }
.band-flush { padding-top: 0; }

/* セクションの境目は、画面端まで伸ばさず、そのセクションの本文幅に合わせる */
.band-line { position: relative; }
.band-line::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - (var(--gutter) * 2), var(--measure) - (var(--gutter) * 2));
  height: 1px;
  background: var(--rule);
}

/* 幅広のコンテナを持つセクションでは、罫線もそれに合わせる */
.band-line:has(> .wrap-wide)::before {
  width: min(100% - (var(--gutter) * 2), var(--wide) - (var(--gutter) * 2));
}

.band--paper { background: var(--paper); }

/* ---------- ヘッダー ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.masthead__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 36px;
  min-height: var(--head-h);
  padding-block: 14px;
}

.wordmark {
  display: block;
  line-height: 0;
  text-decoration: none;
}

.wordmark img {
  height: 22px;
  width: auto;
  display: block;
}

.wordmark--sm img { height: 19px; }

/* 英語ロゴは字面が小さく横長のため、やや低めに揃える */
.wordmark--en img { height: 17px; }
.wordmark--en.wordmark--sm img { height: 15px; }

@media (max-width: 640px) {
  .wordmark img { height: 19px; }
  .wordmark--en img { height: 14px; }
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  font-size: 12.5px;
  letter-spacing: 0.09em;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--ink); }

@media (max-width: 640px) {
  :root { --gutter: 20px; --head-h: 64px; }
  .masthead__inner { gap: 8px 20px; }
  .nav { width: 100%; margin-left: 0; gap: 4px 18px; font-size: 12px; }
}

/* ---------- 見出し・本文 ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin: 0 0 26px;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--rule-strong);
  flex: none;
}

.h-hero {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(29px, 5.6vw, 48px);
  line-height: 1.55;
  letter-spacing: 0.04em;
  margin: 0;
}

.h-page {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(25px, 4.2vw, 36px);
  line-height: 1.62;
  letter-spacing: 0.035em;
  margin: 0;
}

.h-sec {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2.9vw, 25px);
  line-height: 1.72;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
}

.h-sub {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  display: block;
}

.lead {
  font-size: clamp(15px, 1.9vw, 16.5px);
  line-height: 2.2;
  color: var(--ink-soft);
  margin: 26px 0 0;
  max-width: 33em;
}

p { margin: 0 0 1.7em; }
p:last-child { margin-bottom: 0; }

.note { font-size: 12.5px; color: var(--muted); line-height: 1.95; }

/* 本文の中で節が変わるときの間 */
.text-block .h-sec { margin-top: 3.2em; }
.text-block > .h-sec:first-child { margin-top: 0; }

/* ---------- リンク ---------- */

.more {
  display: inline-block;
  margin-top: 20px;
  font-size: 13.5px;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.25s ease;
}
.more:hover { border-bottom-color: var(--ink); }

/* 外部サイトへ開くリンク */
.more--ext {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.more--ext svg {
  width: 11px;
  height: 11px;
  flex: none;
  opacity: 0.65;
}


/* ---------- ページ見出し ---------- */

.page-head { padding-block: clamp(52px, 8vw, 96px) 0; }
.page-head .lead { margin-top: 30px; }

/* 見出しの直後に罫線が来る場合は、他のセクションと同じだけ間を取る */
.page-head:has(+ .band-line) { padding-bottom: clamp(60px, 9vw, 108px); }

.hero { padding-block: clamp(64px, 10vw, 116px) clamp(44px, 6vw, 64px); }

/* ---------- 写真プレースホルダ ---------- */

.frame { margin: 0; }

.frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: var(--paper);
}

.frame--portrait img { aspect-ratio: 4 / 5; }
.frame--panorama img { aspect-ratio: 16 / 9; }

.frame__box {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.frame--portrait .frame__box { aspect-ratio: 4 / 5; }
.frame--panorama .frame__box { aspect-ratio: 16 / 9; }

.frame__label {
  font-size: 11.5px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: center;
}

.frame__label b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.frame figcaption {
  margin-top: 12px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.frame-row {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* 本文中に写真を置くときの前後の余白 */
.text-block .frame { margin: 0 0 40px; }

/* ---------- 連番リスト ---------- */

.seq { margin: 0; padding: 0; list-style: none; }

.seq > li {
  display: grid;
  grid-template-columns: 3.6em 1fr;
  gap: 0 8px;
  padding-block: 30px;
  border-top: 1px solid var(--rule);
}
.seq > li:last-child { border-bottom: 1px solid var(--rule); }

.seq__no {
  font-family: var(--serif);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
  padding-top: 0.5em;
}

.seq__body p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- 一貫のライン ---------- */

.chain { margin: 0; }

.chain__track {
  display: grid;
  gap: 36px 34px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.chain__step { margin: 0; }

.chain__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.chain__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.chain__line { flex: 1; height: 1px; background: var(--rule); }

.chain__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: 0.06em;
  margin: 16px 0 7px;
}

.chain__desc {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
  margin: 0;
}

/* ---------- 箇条書き ---------- */

.list-plain { margin: 0; padding: 0; list-style: none; }

.list-plain > li {
  padding-block: 22px;
  border-top: 1px solid var(--rule);
}
.list-plain > li:last-child { border-bottom: 1px solid var(--rule); }
.list-plain p { margin: 0; font-size: 14px; color: var(--ink-soft); }


/* 規約などの番号付き箇条書き */
.list-num {
  margin: 0 0 1.7em;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.list-num li {
  padding-left: 2.6em;
  text-indent: -2.6em;
  margin-bottom: 0.4em;
  line-height: 1.95;
}

/* ---------- 定義表 ---------- */

.facts { width: 100%; border-collapse: collapse; font-size: 14px; }

.facts th,
.facts td {
  text-align: left;
  vertical-align: top;
  padding: 19px 0;
  border-top: 1px solid var(--rule);
  line-height: 1.95;
}

.facts tr:last-child th,
.facts tr:last-child td { border-bottom: 1px solid var(--rule); }

.facts th {
  font-weight: 400;
  color: var(--muted);
  width: 10em;
  padding-right: 20px;
  letter-spacing: 0.06em;
}

.facts td { color: var(--ink-soft); }

@media (max-width: 560px) {
  .facts, .facts tbody, .facts tr, .facts th, .facts td { display: block; width: auto; }
  .facts th { border-top: 1px solid var(--rule); padding: 18px 0 0; font-size: 12px; }
  .facts td { border-top: 0; padding: 4px 0 20px; }
  .facts tr:last-child th { border-bottom: 0; }
}

/* ---------- フォーム ---------- */

.form { margin-top: 4px; }

.field { margin-bottom: 28px; }

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 9px;
}

.field .req { font-size: 10.5px; color: var(--muted); margin-left: 10px; letter-spacing: 0.1em; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 0;
  padding: 14px 15px;
  line-height: 1.7;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--ink); outline: none; }

.field textarea { min-height: 200px; resize: vertical; }

.hp { position: absolute; left: -9999px; }

.submit {
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 0;
  padding: 16px 52px;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.submit:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- フッター ---------- */

.foot {
  position: relative;
  padding-block: 56px 48px;
  font-size: 12.5px;
  line-height: 2.1;
  color: var(--muted);
}

.foot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - (var(--gutter) * 2), var(--wide) - (var(--gutter) * 2));
  height: 1px;
  background: var(--rule);
}

.foot__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 36px 64px;
  justify-content: space-between;
}

.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

.foot__nav { display: flex; flex-wrap: wrap; gap: 2px 24px; align-content: flex-start; }

.foot__copy {
  margin-top: 44px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--rule-strong);
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
