/* SENIOR Quality 静的サイト共通スタイル（index.html と各ページで共有） */
:root {
  --brand: #ff6400;
  --brand-dark: #d95400;
  --brand-soft: #fff8f2;
  --navy: #1f377f;
  --text: #333;
  --muted: #6b6b6b;
  --bg: #fff;
  --line: #e4e4e4;
  --hacaro: #e0392b;
  --hacaro-dark: #b92a1e;
  --hacaro-soft: #fff4f2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
}
a { color: var(--navy); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- ヘッダー ---------- */
header.site { background: var(--brand); position: sticky; top: 0; z-index: 50; }
header.site .wrap {
  max-width: 1200px;
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
header.site .logo { flex: none; }
header.site .logo img { height: 34px; width: auto; display: block; }
header.site nav { margin-left: auto; }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
header.site nav a {
  display: block; color: #fff; text-decoration: none; font-weight: bold; font-size: 14px;
  padding: 8px 10px; border-radius: 6px; white-space: nowrap;
}
header.site nav a:hover, header.site nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
header.site .login {
  flex: none;
  color: #fff; text-decoration: none; font-weight: bold; font-size: 14px;
  border: 2px solid #fff; border-radius: 6px; padding: 7px 14px; white-space: nowrap;
}
header.site .login:hover { background: #fff; color: var(--brand); }
header.site .menu-toggle {
  display: none; margin-left: auto;
  background: none; border: 2px solid rgba(255,255,255,.8); border-radius: 6px;
  color: #fff; font: inherit; font-size: 13px; font-weight: bold; padding: 6px 10px; cursor: pointer;
}

@media (max-width: 1040px) {
  header.site .wrap { flex-wrap: wrap; gap: 10px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
  header.site .logo img { height: 28px; }
  header.site .menu-toggle { display: block; }
  header.site .login { font-size: 13px; padding: 5px 10px; }
  header.site nav { display: none; order: 3; width: 100%; margin: 0 0 10px; }
  header.site.open nav { display: block; }
  header.site nav ul { flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid rgba(255,255,255,.35); }
  header.site nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.25); font-size: 15px; }
}
@media (max-width: 640px) {
  header.site .pc-only { display: none; }
}
@media (max-width: 380px) {
  header.site .logo img { height: 24px; }
  header.site .login, header.site .menu-toggle { padding: 5px 8px; }
}

/* ---------- 共通パーツ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 220px; padding: 14px 22px; border-radius: 8px;
  font-weight: bold; font-size: 16px; line-height: 1.4; text-decoration: none; text-align: center;
  transition: background .15s, color .15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; color: var(--brand); border: 2px solid var(--brand); }
.btn-outline:hover { background: #fff3ea; }
.btn-hacaro { background: var(--hacaro); color: #fff; }
.btn-hacaro:hover { background: var(--hacaro-dark); }
.btn-hacaro-outline { background: #fff; color: var(--hacaro); border: 2px solid var(--hacaro); }
.btn-hacaro-outline:hover { background: var(--hacaro-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.notice { background: #f7f8fb; border-bottom: 1px solid var(--line); }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.notice p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.notice strong { color: var(--navy); margin-right: 6px; }
.notice .date { margin-left: 6px; font-size: 12px; color: var(--muted); }

/* ---------- 後継サービス案内（下層ページ用の小バナー） ---------- */
.hacaro-banner { background: var(--hacaro-soft); border-top: 1px solid #f6d3ce; padding: 32px 0; }
.hacaro-banner .wrap { display: flex; align-items: center; gap: 24px; }
.hacaro-banner img { width: 96px; flex: none; }
.hacaro-banner p { margin: 0 0 12px; font-size: 15px; }
.hacaro-banner strong { color: var(--hacaro); }
.hacaro-banner .btn { min-width: 0; padding: 10px 18px; font-size: 15px; }

/* ---------- フッター ---------- */
footer.site { border-top: 1px solid var(--line); padding: 28px 0; font-size: 13px; color: var(--muted); }
footer.site ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site a { color: var(--muted); }

/* ---------- 下層ページ ---------- */
.page-head { background: var(--brand-soft); border-bottom: 1px solid #f7e2d2; padding: 36px 0 28px; }
.page-head .eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: bold; color: var(--brand); letter-spacing: .05em; }
.page-head h1 { margin: 0; font-size: 28px; line-height: 1.4; color: var(--navy); }
.page-head .lead { margin: 10px 0 0; font-size: 15px; max-width: 760px; }

.content { padding: 40px 0 56px; }
.content .wrap, .page-head .wrap { max-width: 900px; }
.content h2 {
  font-size: 22px; line-height: 1.5; color: var(--navy);
  margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--brand);
}
.content h2:first-child { margin-top: 0; }
.content h3 { font-size: 18px; color: var(--navy); margin: 32px 0 10px; }
.content p { margin: 0 0 14px; }
.content ul, .content ol { margin: 0 0 16px; padding-left: 1.4em; }
.content li { margin-bottom: 6px; }
.content figure { margin: 20px 0; text-align: center; }
.content figure img { border-radius: 8px; max-height: 420px; width: auto; }
.content figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.note { font-size: 14px; color: var(--muted); }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin: 20px 0; background: #fff; }
.box.soft { background: var(--brand-soft); border-color: #f7e2d2; }
.box h3:first-child { margin-top: 0; }

.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 4px 0 4px 44px; margin-bottom: 12px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff;
  font-weight: bold; font-size: 15px; line-height: 30px; text-align: center;
}

.slider { position: relative; margin: 20px 0 28px; }
.slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track img { flex: 0 0 100%; width: 100%; scroll-snap-align: start; cursor: pointer; display: block; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-70%);
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(31,55,127,.75); color: #fff; font-size: 28px; line-height: 40px; text-align: center;
}
.slider-btn:hover { background: var(--navy); }
.slider-btn:disabled { opacity: .25; cursor: default; }
.slider-btn.prev { left: 8px; }
.slider-btn.next { right: 8px; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: none; background: #d6d6d6; cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--brand); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.gallery img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; }

.event { border-top: 1px solid var(--line); padding: 24px 0; }
.event h3 { margin-top: 0; }
.event .media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.event .media > :only-child { grid-column: 1 / -1; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.supervisor { display: grid; grid-template-columns: 160px 1fr; gap: 24px; border-top: 1px solid var(--line); padding: 24px 0; }
.supervisor img { width: 160px; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.supervisor h3 { margin-top: 0; }
.supervisor h3 small { display: block; font-size: 14px; color: var(--muted); font-weight: normal; }

.faq-group { margin-bottom: 32px; }
.faq-group h2 { margin-top: 0; }
details.qa { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; background: #fff; }
details.qa summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 48px; position: relative; font-weight: bold;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::before { content: "Q"; position: absolute; left: 16px; top: 12px; color: var(--brand); font-size: 18px; }
details.qa summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 22px; color: var(--muted); }
details.qa[open] summary::after { content: "−"; }
details.qa .a { padding: 0 20px 6px 48px; position: relative; }
details.qa .a::before { content: "A"; position: absolute; left: 16px; top: -2px; color: var(--navy); font-weight: bold; font-size: 18px; }

table.spec { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
table.spec th, table.spec td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; vertical-align: top; }
table.spec th { background: var(--brand-soft); width: 30%; white-space: nowrap; }

@media (max-width: 640px) {
  .btn { width: 100%; min-width: 0; }
  .page-head { padding: 26px 0 20px; }
  .page-head h1 { font-size: 22px; }
  .content h2 { font-size: 19px; }
  .event .media { grid-template-columns: 1fr; }
  .supervisor { grid-template-columns: 1fr; gap: 12px; }
  .supervisor img { width: 120px; }
  .hacaro-banner .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hacaro-banner img { width: 72px; }
  table.spec th { white-space: normal; }
}
