/*
 * イシグロ・ヘルスケア 共通の CSS（骨格）。どの案でも同じ並び・大きさ・スマホ対応をここで決める。
 * 色・文字・角の丸み・影などの「見た目」は theme.css が --変数 で上書きする（2026-10-24 にB案「きりっと」に決まった）。
 */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f5;
  --text: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --accent: #333333;
  --accent-text: #ffffff;
  --accent-2: #333333;
  --head-font: system-ui, sans-serif;
  --en-font: var(--head-font);
  --body-font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", Meiryo, sans-serif;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: none;
  --header-h: 72px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .03em;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-2); }
a:hover { text-decoration: none; }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.5; margin: 0 0 .6em; font-weight: 700; word-break: auto-phrase; text-wrap: balance; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.sp-only { display: none; }
@media (max-width: 640px) { .sp-only { display: inline; } .pc-only { display: none; } }

/* ---------- 頭 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--header-line, var(--line)); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand img { width: 64px; filter: var(--logo-filter, none); }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; font-family: var(--head-font); }
.brand-kabu { font-size: 11px; color: var(--muted); }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--text); font-size: 15px; font-weight: 600; border-radius: var(--radius); }
.site-nav a[aria-current="page"] { color: var(--accent-2); }
.site-nav a.nav-cta { background: var(--accent); color: var(--accent-text); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .brand img { width: 48px; }
  .brand-name { font-size: 15px; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: transparent; cursor: pointer; font-size: 14px; }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; } .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--header-bg, var(--bg)); border-bottom: 1px solid var(--line); display: none; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a.nav-cta { margin-top: 12px; text-align: center; border-radius: var(--radius); border: 0; }
}

/* ---------- 見出しの部品 ---------- */
.section { padding: clamp(56px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-en { font-family: var(--en-font); color: var(--accent-2); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .3em; }
.section-title { font-size: clamp(24px, 3.4vw, 34px); }
.section-lead { color: var(--muted); }
.page-head { padding: clamp(48px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); background: var(--page-head-bg, var(--bg-alt)); }
.page-title { font-size: clamp(28px, 4.6vw, 44px); margin: 0; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 28px; border: 2px solid var(--accent); border-radius: var(--btn-radius, var(--radius)); background: var(--accent); color: var(--accent-text); font-weight: 700; text-decoration: none; cursor: pointer; transition: opacity .2s, transform .2s; }
.btn:hover { opacity: .85; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-tel { font-size: 17px; letter-spacing: .04em; }

/* ---------- トップの大きな写真 ---------- */
.hero { position: relative; }
.hero-media img { width: 100%; height: clamp(360px, 62vh, 640px); object-fit: cover; object-position: 30% 40%; }
.hero-copy { position: absolute; inset: auto 0 0 0; padding: 0 0 clamp(32px, 6vw, 72px); width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.hero-en { font-family: var(--en-font); letter-spacing: .14em; margin: 0 0 .4em; }
.hero-title { font-size: clamp(30px, 5.4vw, 60px); line-height: 1.35; margin: 0 0 .5em; }
.hero-lead { font-size: clamp(15px, 1.6vw, 18px); margin: 0; }

/* ---------- 事業（写真＋文） ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feature-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.feature-label { color: var(--accent-2); font-weight: 700; margin-bottom: .3em; }
.feature-title { font-size: clamp(22px, 3vw, 30px); }
.curves-mark img { width: 120px; border-radius: var(--radius); margin-top: 8px; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- 店舗（トップの一覧） ---------- */
.store-mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.store-mini a { display: flex; flex-direction: column; justify-content: center; min-height: 88px; padding: 16px 20px; background: var(--card-bg, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.store-mini a:hover { border-color: var(--accent); }
.store-mini-name { font-weight: 700; font-family: var(--head-font); }
.store-mini-area { font-size: 14px; color: var(--muted); }

/* ---------- 店舗（フィットネス事業のページ） ---------- */
.store-list { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.store { background: var(--card-bg, var(--bg)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.store-photo { width: 100%; aspect-ratio: 392 / 235; object-fit: cover; }
.store-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.store-name { font-size: 20px; margin-bottom: .4em; }
.store-address { color: var(--muted); font-size: 15px; line-height: 1.7; }
.store-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; }
.note { font-size: 14px; color: var(--muted); }

/* ---------- 代表のあいさつ ---------- */
.message-in { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.message-media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.message-sign { font-family: var(--head-font); font-weight: 700; text-align: right; }
@media (max-width: 760px) { .message-in { grid-template-columns: 1fr; } .message-media { max-width: 420px; } }

/* ---------- 採用・お問い合わせへの入口 ---------- */
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cta-card { display: flex; flex-direction: column; gap: 4px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--cta-bg, var(--accent)); color: var(--cta-text, var(--accent-text)); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s; position: relative; }
.cta-card::after { content: "→"; position: absolute; right: 28px; bottom: 24px; font-size: 22px; transition: transform .2s; }
.cta-card:hover::after { transform: translateX(4px); }
.cta-en { font-family: var(--en-font); letter-spacing: .14em; font-size: 13px; text-transform: uppercase; opacity: .85; }
.cta-title { font-family: var(--head-font); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.cta-text { font-size: 15px; padding-right: 32px; }
@media (max-width: 640px) { .cta-grid { grid-template-columns: 1fr; } }

/* ---------- 表（会社概要・募集要項・確認画面） ---------- */
.table-list { margin: 0; border-top: 1px solid var(--line); }
.table-list > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.table-list dt { font-weight: 700; font-family: var(--head-font); }
.table-list dd { margin: 0; }
@media (max-width: 600px) { .table-list > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 2px; } .table-list dt { font-size: 14px; color: var(--muted); } }
.tbd { display: inline-block; padding: 0 10px; border-radius: 99px; background: #fff3c4; color: #7a5a00; font-size: 14px; font-weight: 700; }

/* ---------- 読み物 ---------- */
.prose h2 { font-size: clamp(20px, 2.4vw, 24px); margin-top: 2em; }
.prose h3 { font-size: clamp(18px, 2vw, 21px); margin-top: 1.6em; color: var(--accent-2); }
.prose .section-title { margin-top: 0; }
.prose ul { padding-left: 1.4em; margin: 0 0 1em; }

/* ---------- 採用の応募 ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.entry-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card-bg, var(--bg)); box-shadow: var(--shadow); }
.entry-card h3 { font-size: 20px; }
.entry-tels { list-style: none; margin: 0; padding: 0; }
.entry-tels li { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.entry-tels a { font-weight: 700; white-space: nowrap; }
@media (max-width: 700px) { .entry-grid { grid-template-columns: 1fr; } }

/* ---------- お問い合わせ ---------- */
.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; counter-reset: s; }
.steps li { flex: 1; text-align: center; padding: 8px; border-radius: var(--radius); background: var(--bg-alt); color: var(--muted); font-weight: 700; font-size: 14px; counter-increment: s; }
.steps li::before { content: counter(s) ". "; }
.steps li[aria-current] { background: var(--accent); color: var(--accent-text); }
.contact-tel { padding: 16px 20px; margin-bottom: 28px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: var(--radius); font-size: 15px; }
.contact-tel p { margin: 0; }
.form-alert { padding: 12px 16px; border-radius: var(--radius); background: #fdecea; color: #a4231b; font-weight: 700; }
.field { margin-bottom: 22px; }
.field > label:first-child { display: block; font-weight: 700; margin-bottom: 6px; }
.req, .opt { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 99px; font-size: 12px; line-height: 1.8; vertical-align: 2px; }
.req { background: #c0392b; color: #fff; }
.opt { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--line); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #b9b9b9; border-radius: var(--radius); background: #fff; font-size: 16px;
}
.field [aria-invalid="true"] { border-color: #c0392b; background: #fff8f7; }
.field-error { color: #c0392b; font-size: 14px; font-weight: 700; margin: 6px 0 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.form-actions .btn { min-width: 200px; }
.done { text-align: center; }

/* ---------- 足 ---------- */
.site-footer { background: var(--footer-bg, #222); color: var(--footer-text, #eee); padding: 56px 0 24px; font-size: 14px; }
.site-footer a { color: inherit; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-company p { margin: 0 0 .3em; }
.footer-name { font-family: var(--head-font); font-size: 18px; font-weight: 700; }
.footer-group { margin-top: .8em !important; opacity: .85; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: 6px 32px; }
.footer-links a { text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-links a:hover { text-decoration: underline; }
.copyright { text-align: center; margin: 40px 0 0; opacity: .7; }

/* ---------- 検証中だけ ---------- */
.draft-note { margin: 24px 0 0; padding: 12px 16px; border: 2px dashed #d4a017; border-radius: 6px; background: #fffbea; color: #6b5200; font-size: 14px; }

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

/* ---------- フィットネス事業（元のサイトの並び: 大きな見出し・文・ロゴと写真を横に2枚） ---------- */
.fitness-lead { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 1em; }
.fitness-gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: center; margin-top: 32px; }
.fitness-gallery img { width: 100%; height: auto; }
.page-fitness .store-name { text-align: center; }
@media (max-width: 600px) { .fitness-gallery { grid-template-columns: 1fr; } .fitness-gallery img:first-child { max-width: 320px; margin-inline: auto; } }
.cta-grid-single { grid-template-columns: 1fr; }
