/* SHIGA Group 共通スタイル（2026-09-18 全面刷新）
 * 方針: 「壊して、つくる」を紙面にする。写真より文字。中央揃えをやめ、左揃えの編集グリッドで組む。
 * 色は既存ブランド（紺・橙）を継承し、地を紙色に。動きは控えめ（出現・数字のカウント・ヒーローの取り消し線）。
 *
 * 構成: 1) トークン  2) 基本  3) 共通部品（kicker/btn/link/reveal/tag）  4) マストヘッド・フッター
 *       5) トップ専用（hero/story/bento/biz/moves/recruit/access）  6) 下層ページ共通（page-head/sec/prose/kv/cards/tl/acc/band/form/modal）
 * ページ固有の追加は css/pages/<page>.css に置く（このファイルは触らない）。
 */
:root {
  --paper: #f6f5f2;
  --paper-2: #ecebe6;
  --ink: #14202b;
  --ink-2: #4a5560;
  --ink-3: #7c858e;
  --rule: #d3d6d9;
  --accent: #e8871e;
  --accent-2: #b8630f;
  --navy: #1a2632;
  --teal: #3ba8a0;
  --white: #ffffff;

  --font-display: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-num: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;

  --max: 1360px;
  --gutter: clamp(20px, 4vw, 56px);
  --sec: clamp(72px, 9vw, 128px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  line-break: strict;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.01em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 44px); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.h-serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: 0.02em; line-height: 1.45; }

/* --- 共通部品 --- */
.kicker {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-num); font-variation-settings: "wdth" 110;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-2);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--accent); align-self: center; }
.kicker-ja { font-family: var(--font-body); font-weight: 500; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); font-size: 13px; }
.kicker-light { color: var(--accent); }

.section-head { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 40px; }
.section-lead { margin-top: 12px; color: var(--ink-2); font-size: 16px; max-width: 34em; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; background: var(--ink); color: var(--white);
  font-weight: 700; font-size: 14px; letter-spacing: 0.08em; border-radius: 2px;
  transition: background .25s ease, transform .25s ease;
}
.btn::after { content: "→"; font-family: var(--font-num); transition: transform .25s ease; }
.btn:hover { background: var(--accent-2); }
.btn:hover::after { transform: translateX(4px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--accent); color: var(--white); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: 0.04em; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.link-arrow::after { content: "→"; font-family: var(--font-num); transition: transform .25s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* 表示アニメーション（reduced-motion では動かさない） */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --- マストヘッド --- */
.mast { position: sticky; top: 0; z-index: 50; background: rgba(246, 245, 242, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.mast-inner { max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.mast-logo img { height: 30px; width: auto; }
.mast-line { display: flex; gap: 18px; font-family: var(--font-num); font-variation-settings: "wdth" 100; font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3); }
.mast-line span + span::before { content: "／"; margin-right: 18px; color: var(--rule); }
.mast-nav { display: flex; gap: 26px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.06em; }
.mast-nav a { position: relative; padding: 4px 0; }
.mast-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .25s ease; }
.mast-nav a:hover::after { right: 0; }
.mast-nav-contact { padding: 6px 14px !important; border: 1px solid var(--ink); border-radius: 2px; }
.mast-nav-contact::after { display: none; }
.mast-menu { display: none; width: 40px; height: 40px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; }
.mast-menu span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--ink); transition: transform .25s ease, top .25s ease; }
.mast-menu span:nth-child(1) { top: 14px; } .mast-menu span:nth-child(2) { top: 24px; }
.mast-menu[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.mast-menu[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* --- 読み込み演出（トップだけ） --- */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; transition: opacity .6s ease, visibility .6s ease; }
.loader.loaded { opacity: 0; visibility: hidden; }
.loader-logo { height: 34px; width: auto; opacity: 0; animation: loader-in .5s ease .1s forwards; }
.loader-timeline { width: min(520px, 78vw); opacity: 0; animation: loader-in .5s ease .3s forwards; }
.loader-track { position: relative; height: 2px; background: var(--rule); }
.loader-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--accent); animation: loader-fill 2s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.loader-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); box-shadow: 0 0 0 5px rgba(232, 135, 30, .18); animation: loader-dot 2s cubic-bezier(.65, 0, .35, 1) .5s forwards; }
.loader-labels { display: flex; justify-content: space-between; margin-top: 16px; font-family: var(--font-num); font-variation-settings: "wdth" 110; font-weight: 700; font-size: 13px; letter-spacing: 0.08em; color: var(--ink-3); position: relative; }
.loader-year { position: absolute; left: 50%; top: -6px; transform: translateX(-50%); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.loader-tagline { font-family: var(--font-serif); font-weight: 700; font-size: 16px; letter-spacing: 0.06em; color: var(--ink); text-align: center; opacity: 0; animation: loader-in .5s ease .6s forwards; }
.loader-tagline span { display: block; margin-top: 8px; font-family: var(--font-body); font-weight: 400; font-size: 12px; letter-spacing: 0.04em; color: var(--ink-3); }
@keyframes loader-in { to { opacity: 1; } }
@keyframes loader-fill { to { width: 100%; } }
@keyframes loader-dot { to { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* --- ヒーロー（2026-09-18 写真なし。「壊して、」が崩れ→橙の線→「つくる。」が整って上がる） --- */
.hero { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 88px) var(--gutter) 0; }
.hero-title { font-size: clamp(68px, 17vw, 236px); line-height: 1; letter-spacing: -0.045em; margin: 10px 0 clamp(32px, 4vw, 64px) -0.06em; white-space: nowrap; }
/* 文字が崩れて動く分だけ overflow:hidden の枠を内側に広げる（レイアウトは変えない） */
.ht-line { display: block; overflow: hidden; padding: 0.1em 0.12em 0.08em 0.06em; margin: -0.1em 0 -0.08em -0.06em; }
.ht-word { display: inline-block; position: relative; color: var(--ink); transform: translateY(110%); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.ht-make { transition-delay: 1.55s; }
body.ready .ht-word { transform: none; }
.ht-ch { display: inline-block; transition: transform .5s cubic-bezier(.6, 0, .2, 1) .95s, color .5s ease .95s; }
body.ready .ht-ch:nth-child(1) { transform: translate(-0.02em, 0.05em) rotate(-2.5deg); }
body.ready .ht-ch:nth-child(2) { transform: translate(0.01em, -0.045em) rotate(1.8deg); }
body.ready .ht-ch:nth-child(3) { transform: translate(0.02em, 0.06em) rotate(-1.2deg); }
body.ready .ht-ch:nth-child(4) { transform: translate(0.035em, 0.015em) rotate(3deg); }
body.ready .ht-break .ht-ch { color: var(--ink-3); }
/* 「壊して、」に橙の取り消し線を引く＝壊す */
.strike { position: absolute; left: 1%; right: 17%; top: 53%; height: 0.07em; background: var(--accent); transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.3, .8, .3, 1) 1.3s; border-radius: 2px; }
body.ready .strike { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .ht-word, .strike, .ht-ch { transition: none; transform: none !important; }
  .ht-break .ht-ch { color: inherit !important; }
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-lead { font-family: var(--font-serif); font-weight: 700; font-size: clamp(22px, 2.6vw, 34px); letter-spacing: 0.04em; margin-bottom: 18px; }
.hero-sub { color: var(--ink-2); max-width: 34em; font-size: 15.5px; }
.hero-cta { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin-top: 32px; }
/* 数字の帯（金融機関・取引先向けの実体感。数字は「挑戦と撤退の記録」と同じ） */
.hero-facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; border-top: 1px solid var(--ink); padding-top: 14px; }
.hero-facts > div { margin: 0; }
.hero-facts dt { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-3); }
.hero-facts dd { margin: 6px 0 0; font-family: var(--font-num); font-variation-settings: "wdth" 120; font-weight: 800; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink); }
.hero-facts dd span { font-size: 0.6em; vertical-align: top; color: var(--ink-3); }
.hero-ticker { margin-top: clamp(40px, 5vw, 64px); padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: baseline; }
.hero-ticker-date { font-family: var(--font-num); font-variation-settings: "wdth" 110; font-weight: 700; letter-spacing: 0.08em; font-size: 13px; color: var(--accent-2); }
.hero-ticker-text { font-size: 14px; color: var(--ink-2); }

/* --- ストーリー --- */
.story { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.story-head { position: sticky; top: 96px; align-self: start; }
.story-head h2 { font-size: clamp(30px, 3.6vw, 48px); }
.story-note { margin-top: 22px; color: var(--ink-2); font-size: 15px; }
.chapters { border-top: 1px solid var(--ink); }
.chapter { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 24px; padding: 32px 0; border-bottom: 1px solid var(--rule); }
.chapter-year { font-family: var(--font-num); font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.02em; color: var(--ink); }
.chapter-year-now { color: var(--accent); }
.chapter-title { font-size: 20px; margin-bottom: 10px; }
.chapter-body { min-width: 0; }
.chapter p { color: var(--ink-2); font-size: 15px; max-width: 34em; }

/* --- 数字（弁当箱） --- */
.numbers { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--sec); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); gap: 12px; }
.tile { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 24px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 150px; }
.tile-big { grid-column: 1 / 3; grid-row: 1 / 3; background: var(--ink); color: var(--white); border-color: var(--ink); }
.tile-tall { grid-column: 3 / 4; grid-row: 1 / 3; }
.tile-text { grid-column: 3 / 5; background: var(--paper-2); border-color: var(--paper-2); justify-content: center; gap: 16px; }
.tile-text .h-serif { font-size: clamp(22px, 2.2vw, 30px); }
.num { font-family: var(--font-num); font-variation-settings: "wdth" 120; font-weight: 800; font-size: clamp(44px, 5vw, 72px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; position: relative; display: inline-block; }
.tile-big .num { font-size: clamp(88px, 11vw, 168px); }
.unit { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-left: 8px; }
.tile-big .unit { font-size: 22px; color: var(--accent); }
.label { display: block; margin-top: 10px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.04em; }
.tile-big .label { color: rgba(255, 255, 255, .6); }
.num-strike::after { content: ""; position: absolute; left: -2%; right: -4%; top: 52%; height: 0.09em; background: var(--accent); transform: rotate(-6deg); border-radius: 2px; }
.tile-exit .unit { color: var(--accent-2); }

/* --- 事業（写真の弁当箱） --- */
.business { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--sec); }
.biz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 250px; gap: 12px; }
.biz { position: relative; overflow: hidden; border-radius: 4px; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: var(--white); isolation: isolate; }
.biz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .8s ease, filter .4s ease; }
.biz::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 32, 43, .86) 0%, rgba(20, 32, 43, .3) 48%, rgba(20, 32, 43, .05) 100%); z-index: -1; }
.biz:hover img { transform: scale(1.04); }
.biz-name { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; }
.biz-name::after { content: " →"; font-family: var(--font-num); font-weight: 700; opacity: .7; }
.biz-desc { font-size: 13px; opacity: .8; margin-top: 4px; }
.biz-pachinko { grid-column: 1 / -1; grid-row: auto; height: 140px; flex-direction: row; align-items: center; gap: 24px; justify-content: flex-start; }
.biz-pachinko img { filter: grayscale(1) contrast(.9); opacity: .55; }
.biz-pachinko .biz-name { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 3px; font-size: 18px; }
.biz-closed { font-size: 12.5px; opacity: .85; max-width: 40em; }
.biz-type { background: var(--navy); justify-content: space-between; }
.biz-type::before { display: none; }
.biz-type .biz-name { font-size: 26px; line-height: 1.2; }
.biz-type .biz-desc { font-family: var(--font-serif); font-weight: 700; font-size: 14px; opacity: .9; }

/* --- 最新の動き --- */
.moves { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) var(--sec); }
.moves-list { border-top: 1px solid var(--ink); }
.moves-year { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.moves-year .year { font-family: var(--font-num); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.moves-year li { display: grid; grid-template-columns: 34px 88px 1fr; gap: 14px; align-items: baseline; padding: 8px 0; }
.moves-year li + li { border-top: 1px dashed var(--rule); }
.mo { font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--ink-3); letter-spacing: 0.04em; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; padding-left: 12px; position: relative; white-space: nowrap; }
.tag::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; transform: translateY(-50%); background: currentColor; }
.tag-new { color: var(--accent-2); }
.tag-build { color: var(--teal); }
.tag-break { color: var(--ink-3); }
.tag-invest { color: var(--navy); }
.ttl { font-size: 15px; }
.moves-more { margin-top: 26px; }

/* --- 採用 --- */
.recruit { background: var(--navy); color: var(--white); }
.recruit-inner { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; }
.recruit h2 { font-size: clamp(32px, 4.2vw, 56px); grid-column: 1; }
.recruit .kicker { grid-column: 1 / -1; }
.recruit-text { grid-column: 1; color: rgba(255, 255, 255, .7); max-width: 34em; }
.recruit .btn-light { grid-column: 2; justify-self: end; }

/* --- アクセス --- */
.access { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); }
.access-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.access h2 { font-size: 24px; margin-bottom: 14px; }
.access-address { color: var(--ink-2); }
.access-tel { display: inline-block; font-family: var(--font-num); font-variation-settings: "wdth" 110; font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -0.01em; margin: 14px 0 6px; color: var(--accent-2); }
.access-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.access-map iframe { width: 100%; aspect-ratio: 16 / 10; border: 0; border-radius: 4px; filter: grayscale(.3); }

/* --- フッター --- */
.foot { border-top: 1px solid var(--ink); }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot-logo { height: 28px; width: auto; }
.foot-tag { margin-top: 10px; font-family: var(--font-serif); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; }
.foot-nav { display: flex; gap: 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.06em; flex-wrap: wrap; }
.foot-bottom { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 32px; font-size: 12px; color: var(--ink-3); }
.foot-note { margin-top: 8px; font-size: 11.5px; line-height: 1.8; }

/* ======================================================
   6) 下層ページ共通
   ====================================================== */

/* ページ見出し: 左に英字ラベル＋大見出し＋一文、右に写真（任意） */
.page-head { max-width: var(--max); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gutter) 0; }
.page-head h1 { font-size: clamp(48px, 8.6vw, 128px); line-height: 1; letter-spacing: -0.04em; margin: 8px 0 clamp(24px, 3vw, 40px) -0.04em; }
/* 見出しの下: 左に一言（明朝）、右に説明。写真は置かない（2026-09-18） */
.page-head-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: baseline; }
.page-head-lead { font-family: var(--font-serif); font-weight: 700; font-size: clamp(20px, 2.2vw, 30px); letter-spacing: 0.04em; margin: 0; }
.page-head-sub { color: var(--ink-2); max-width: 36em; margin: 0; }
.page-head-rule { max-width: var(--max); margin: clamp(32px, 4vw, 56px) auto 0; padding: 0 var(--gutter); }
.page-head > .page-head-rule { padding: 0; } /* section の中に置かれたときは二重の余白を作らない */
.page-head-rule::after { content: ""; display: block; border-top: 1px solid var(--ink); }

/* セクション */
.sec { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); }
.sec + .sec { padding-top: 0; }
.sec-head { margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(26px, 3.2vw, 40px); }
.sec-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.sec-grid .sec-head { position: sticky; top: 96px; margin-bottom: 0; }
.sec-rule { border-top: 1px solid var(--ink); }

/* 長文 */
.prose { max-width: 36em; font-size: 15.5px; }
.prose p + p { margin-top: 1.2em; }
.prose .h-serif { font-size: clamp(22px, 2.4vw, 32px); margin: 0 0 22px; }
.prose-lead { font-family: var(--font-serif); font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: 0.03em; margin-bottom: 20px; }
.prose strong { font-weight: 700; color: var(--ink); }

/* 定義表（会社情報・店舗情報） */
.kv { border-top: 1px solid var(--ink); font-size: 15px; }
.kv-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.kv-row dt, .kv-row th { font-weight: 700; color: var(--ink-2); font-size: 13.5px; letter-spacing: 0.04em; padding-top: 2px; }
.kv-row dd, .kv-row td { margin: 0; }
.kv-compact .kv-row { grid-template-columns: 96px 1fr; padding: 8px 0; font-size: 14px; }

/* カード（店舗・施設） */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 18px; }
.card .kv { border-top-color: var(--rule); }
.card-note { font-size: 13px; color: var(--ink-3); }
.card-closed { filter: grayscale(1); opacity: .75; }
.card-closed h3 { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 3px; }

/* 縦の年表（最新の動きと同じ組み） */
.tl { border-top: 1px solid var(--ink); }
.tl-row { display: grid; grid-template-columns: 96px 100px 1fr; gap: 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.tl-date { font-family: var(--font-num); font-weight: 700; font-size: 14px; color: var(--ink-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tag-renewal { color: var(--navy); }
.tag-company { color: var(--accent-2); }
.tag-open { color: var(--accent-2); }
.tag-close { color: var(--ink-3); }
.tag-transfer { color: var(--teal); }

/* 横スクロールの年表 */
.hscroll { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
.hscroll-track { display: flex; gap: 0; min-width: max-content; border-top: 1px solid var(--ink); }
.era { scroll-snap-align: start; width: clamp(260px, 30vw, 380px); padding: 18px 24px 8px 0; border-right: 1px solid var(--rule); margin-right: 24px; }
.era-label { font-family: var(--font-num); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 28px; letter-spacing: -0.02em; margin-bottom: 14px; }
.era-item { padding: 10px 0; border-top: 1px dashed var(--rule); }
.era-date { font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--accent-2); letter-spacing: 0.04em; }
.era-text { font-size: 14.5px; margin-top: 2px; }
.hscroll-hint { font-size: 12px; color: var(--ink-3); letter-spacing: 0.06em; margin-bottom: 10px; }

/* アコーディオン */
.acc { border-top: 1px solid var(--ink); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.acc-head .acc-title { font-family: var(--font-num); font-variation-settings: "wdth" 120; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.acc-head .acc-count { font-size: 13px; color: var(--ink-3); margin-left: 12px; }
.acc-head::after { content: "+"; font-family: var(--font-num); font-weight: 700; font-size: 22px; color: var(--accent-2); transition: transform .25s ease; }
.acc-item.open .acc-head::after { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 0 18px; }
.acc-item.open .acc-body { display: block; }

/* 紺の帯 */
.band { background: var(--navy); color: var(--white); }
.band-inner { max-width: var(--max); margin: 0 auto; padding: var(--sec) var(--gutter); }
.band .kicker { color: var(--accent); }
.band .prose { color: rgba(255, 255, 255, .8); }
.band h2, .band h3 { color: var(--white); }

/* 価値観（S-H-I-G-A）などの文字タイル */
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.letter { background: var(--white); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 22px 24px; }
.letter-mark { font-family: var(--font-num); font-variation-settings: "wdth" 125; font-weight: 800; font-size: 56px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.letter h3 { font-size: 18px; margin: 12px 0 8px; }
.letter p { font-size: 14px; color: var(--ink-2); }
.band .letter { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .15); }
.band .letter p { color: rgba(255, 255, 255, .7); }

/* フォーム */
.form { max-width: 640px; }
.field { margin-bottom: 26px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.req { display: inline-block; margin-left: 8px; padding: 1px 8px; background: var(--accent-2); color: var(--white); font-size: 10.5px; letter-spacing: 0.1em; border-radius: 2px; vertical-align: middle; }
.field input[type="text"], .field input[type="email"], .field textarea, .field select { width: 100%; padding: 13px 16px; border: 1px solid var(--rule); border-radius: 3px; background: var(--white); font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 135, 30, .15); }
.field textarea { min-height: 180px; resize: vertical; }
.field-check label { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.field-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-2); }
.form-notice { font-size: 13.5px; line-height: 1.8; color: var(--ink-2); border-left: 3px solid var(--accent); padding: 10px 16px; background: var(--paper-2); margin-bottom: 28px; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.6em; }
.form-status.success { color: var(--teal); font-weight: 700; }
.form-status.error { color: var(--accent-2); font-weight: 700; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }

/* 事業モーダル（トップ・事業内容の一覧から詳細をその場で開く） */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: stretch; justify-content: flex-end; background: rgba(20, 32, 43, .55); }
.modal.open { display: flex; }
.modal-panel { width: min(760px, 100%); background: var(--paper); overflow-y: auto; padding: 0 0 48px; animation: modal-in .35s ease; }
@keyframes modal-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--rule); z-index: 1; }
.modal-close { background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.modal-body { padding: 24px var(--gutter) 0; }
.modal-body .page-head, .modal-body .sec { padding-left: 0; padding-right: 0; }
.modal-body .page-head-grid, .modal-body .sec-grid { grid-template-columns: 1fr; }
.modal-body .page-head h1 { font-size: clamp(32px, 5vw, 56px); }
.modal-status { color: var(--ink-3); padding: 24px 0; }
@media (prefers-reduced-motion: reduce) { .modal-panel { animation: none; } }

/* モーダル内の詳細ページ（事業ページの .sec を流し込む）*/
body.modal-open { overflow: hidden; }
.modal-heading { min-width: 0; }
.modal-kicker { margin-bottom: 4px; }
.modal-title { font-size: 20px; line-height: 1.3; }
.modal-body .sec-grid .sec-head { position: static; }
.modal-body .cards { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.modal-body .sec { padding-top: 0; padding-bottom: 44px; }
.modal-body .sec:first-child { padding-top: 8px; }
/* 店舗カードの項目名（「サービス提供時間」など 8 文字）が途中で折れないよう幅を固定 */
.cards .kv-compact .kv-row { grid-template-columns: 104px 1fr; gap: 12px; }
.cards .kv-compact dt { line-break: strict; }


/* --- レスポンシブ --- */
@media (max-width: 960px) {
  .mast-line { display: none; }
  .mast-inner { grid-template-columns: auto 1fr auto; }
  .mast-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .mast-nav.open { display: flex; }
  .mast-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
  .mast-nav-contact { border: 0 !important; padding: 12px 0 !important; }
  .mast-menu { display: block; }
  .hero-grid, .story-grid, .access-grid, .page-head-grid, .sec-grid { grid-template-columns: 1fr; }
  .hero-facts { margin-top: 36px; }
  .sec-grid .sec-head { position: static; }
  .story-head { position: static; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-big { grid-column: 1 / 3; grid-row: auto; }
  .tile-tall { grid-column: auto; grid-row: auto; }
  .tile-text { grid-column: 1 / 3; }
  .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; }
  .biz-pachinko { height: 150px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
  .recruit-inner { grid-template-columns: 1fr; }
  .recruit .btn-light { grid-column: 1; justify-self: start; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .hero-title { font-size: clamp(68px, 19vw, 96px); }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
  .hero-cta { gap: 18px; }
  .hero-ticker { grid-template-columns: 1fr; gap: 6px; }
  .chapter { grid-template-columns: 1fr; gap: 8px; }
  .bento { grid-template-columns: 1fr; }
  .tile-big, .tile-text { grid-column: auto; }
  .tile-big .num { font-size: 96px; }
  .biz-grid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .biz-pachinko { height: 160px; }
  .moves-year { grid-template-columns: 1fr; gap: 8px; }
  .moves-year li { grid-template-columns: 30px 72px 1fr; gap: 10px; }
  .tl-row { grid-template-columns: 72px 1fr; }
  .tl-row .tag { grid-column: 2; }
  .tl-row .tl-text { grid-column: 2; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .kv-compact .kv-row { grid-template-columns: 80px 1fr; }
  .era { width: 80vw; }
  .foot-inner { flex-direction: column; align-items: flex-start; }
}
