/* 合同会社ギャランドゥ（gallant-d.ooo）。HTML は tools/build_gallant.py が作る。 */
:root {
  --paper: #fffaf4;
  --tint: #fff0ea;
  --ink: #23262b;
  --muted: #5e6168;
  --pink: #d63a55;
  --pink-dark: #a8243d;
  --teal: #0b7f86;
  --teal-soft: #e2f4f4;
  --yellow: #ffe15a;
  --line: #ead9cf;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", "Meiryo", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:hover { color: var(--pink-dark); }
h1, h2, h3 { line-height: 1.5; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(800px, 100% - 32px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 10; background: #fff; padding: 8px 12px; }
.center { text-align: center; }
.note { font-size: 14px; color: var(--muted); }

/* ヘッダー */
.site-header { background: #fff; border-bottom: 4px solid var(--pink); position: sticky; top: 0; z-index: 5; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .06em; }
.menu { margin-left: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center; }
.menu a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.menu a:hover, .menu a[aria-current] { color: var(--pink-dark); text-decoration: underline; text-underline-offset: 6px; }
.menu-contact a { background: var(--pink); color: #fff; padding: 6px 16px; border-radius: 999px; }
.menu-contact a:hover { background: var(--pink-dark); color: #fff; text-decoration: none; }
.menu-button { display: none; margin-left: auto; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-button span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
@media (max-width: 860px) {
  .menu-button { display: block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 4px solid var(--pink); }
  .menu.open { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; gap: 0; }
  .menu li a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .menu-contact a { margin-top: 12px; text-align: center; border: 0; }
}

/* 共通部品 */
.section { padding: 56px 0; }
.section.tint { background: var(--tint); }
.heading { font-size: clamp(22px, 3vw, 28px); margin: 0 0 12px; padding-left: 14px; border-left: 6px solid var(--pink); }
.lead { color: var(--muted); margin: 0 0 24px; }
.kicker { margin: 0; color: var(--pink-dark); font-weight: 700; font-size: 14px; letter-spacing: .08em; }
.button { display: inline-block; background: var(--pink); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 28px; border-radius: 999px; }
.button:hover { background: var(--pink-dark); color: #fff; }
.button.ghost { background: #fff; color: var(--pink-dark); border: 2px solid var(--pink); }
.button.ghost:hover { background: var(--tint); }
.text-link { font-weight: 700; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); margin: 0 6px 6px 0; }
.badge.open { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.pause { background: #6b6e75; border-color: #6b6e75; color: #fff; }
.badge.cat { background: var(--teal-soft); border-color: var(--teal-soft); color: var(--teal); }
.facts { display: grid; grid-template-columns: 9em 1fr; margin: 0 0 24px; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.table { width: 100%; border-collapse: collapse; margin: 0 0 24px; background: #fff; font-size: 15px; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.table thead th { background: var(--teal-soft); }
.table tbody th { white-space: nowrap; background: #fffdfb; }
.table .total td { font-weight: 700; }
@media (max-width: 560px) { .table tbody th { white-space: normal; } }

/* ページ見出し */
.page-head { background: var(--teal-soft); padding: 32px 0 36px; }
.page-head h1 { margin: 4px 0 8px; font-size: clamp(24px, 4vw, 36px); }
.page-head .lead { margin: 0; max-width: 820px; }
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; }
.crumbs li + li::before { content: "›"; margin: 0 6px; color: var(--muted); }

/* ホーム */
.hero { background: var(--pink); padding: 32px 0; }
.hero-inner { display: grid; gap: 20px; }
.hero-img { border-radius: 12px; width: 100%; max-height: 300px; object-fit: cover; }
.hero-text { margin: 0; color: #fff; font-size: 17px; font-weight: 600; max-width: 880px; }
.biz-grid, .school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.biz { background: #fff; border-radius: 12px; padding: 22px; border-top: 6px solid var(--teal); }
.biz h2, .biz h3 { margin: 4px 0 8px; font-size: 19px; }
.biz p { margin: 0 0 10px; }
.biz-label { font-size: 13px; font-weight: 700; color: var(--teal); letter-spacing: .08em; }
.biz-beer { border-top-color: #e0a100; }
.biz-beer .biz-label { color: #8a6200; }
.biz-realestate { border-top-color: var(--pink); }
.biz-realestate .biz-label { color: var(--pink-dark); }
.biz-paused { border-top-color: #6b6e75; }
.biz-paused .biz-label { color: #4f5258; }
.biz-career { border-top-color: var(--pink); }
.biz-career .biz-label { color: var(--pink-dark); }
.biz-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
@media (max-width: 900px) { .biz-grid, .school-grid { grid-template-columns: 1fr; } }

/* 研修の一覧 */
.basics { background: #fff; border-radius: 12px; padding: 22px 24px 8px; margin-bottom: 32px; }
.basics h2 { margin: 0 0 12px; font-size: 20px; }
.cat-nav { margin: 0 0 40px; }
.cat-nav p { margin: 0 0 8px; font-weight: 700; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--teal); color: var(--teal); font-weight: 700; text-decoration: none; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.cat-nav a:hover { background: var(--teal); color: #fff; }
.cat-nav span { background: var(--teal-soft); color: var(--teal); border-radius: 999px; padding: 0 8px; font-size: 12px; }
.cat { margin-bottom: 48px; }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-bottom: 24px; }
.course { display: grid; grid-template-columns: 120px 1fr; gap: 16px; background: #fff; border-radius: 12px; padding: 16px; border: 1px solid var(--line); }
.course-thumb img { width: 120px; height: 170px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--line); }
.course h3 { margin: 0 0 6px; font-size: 17px; }
.course h3 a { color: var(--ink); text-decoration: none; }
.course h3 a:hover { color: var(--pink-dark); text-decoration: underline; }
.course p { margin: 0 0 8px; font-size: 14px; }
.course .course-meta { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; line-height: 1.5; }
.course-meta .badge { margin: 0; }
.mini { display: grid; grid-template-columns: 3em 1fr; gap: 2px 8px; margin: 0; font-size: 13px; }
.mini dt { font-weight: 700; color: var(--muted); }
.mini dd { margin: 0; }
@media (max-width: 420px) { .courses { grid-template-columns: 1fr; } .course { grid-template-columns: 88px 1fr; } .course-thumb img { width: 88px; height: 125px; } }
.steps { list-style: none; counter-reset: step; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: #fff; border-radius: 12px; padding: 16px 20px 16px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 4px; font-size: 17px; }
.steps p { margin: 0; }
.contact-box { background: #fff; border: 3px solid var(--pink); border-radius: 14px; padding: 24px; margin: 24px 0; }
.contact-box h2 { margin: 0 0 8px; font-size: 21px; }
.contact-box p { margin: 0 0 12px; }
.contact-list { margin: 0; padding-left: 1.2em; }

/* 研修の詳細 */
.course-detail { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.course-main > p { margin: 0 0 16px; }
.catch { list-style: none; margin: 0 0 20px; padding: 16px 20px; background: var(--teal-soft); border-radius: 12px; font-weight: 700; color: var(--teal); }
.days { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 12px; }
.days li { background: #fff; border-radius: 12px; padding: 16px 20px; border-left: 6px solid var(--teal); }
.days h3 { margin: 0 0 6px; font-size: 17px; }
.days p { margin: 0; }
.day-no { font-size: 13px; font-weight: 700; color: var(--teal); }
.feature-list { margin: 0 0 24px; padding-left: 1.2em; }
.samples { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.samples img { border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.course-side { position: sticky; top: 88px; }
.course-side h2 { font-size: 16px; margin: 0 0 8px; }
.course-side img { border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 900px) { .course-detail { grid-template-columns: 1fr; } .course-side { position: static; max-width: 420px; } }

/* ギャランドゥ学園 */
.feature-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-cards li { background: #fff; border-radius: 12px; padding: 18px 20px; }
.feature-cards h3 { margin: 0 0 6px; font-size: 17px; color: var(--pink-dark); }
.feature-cards p { margin: 0; }
@media (max-width: 900px) { .feature-cards { grid-template-columns: 1fr; } }
.pause-banner { background: #f1f1f3; border-left: 6px solid #6b6e75; border-radius: 8px; padding: 12px 16px; margin: 0 0 24px; font-weight: 600; }
.course.paused { background: #fbfbfc; }

/* 法人概要 */
.divisions, .plain { list-style: none; margin: 0 0 24px; padding: 0; }
.divisions li { display: grid; grid-template-columns: 14em 1fr; gap: 8px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.divisions span { font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .divisions li { grid-template-columns: 1fr; gap: 0; } }

/* フッター */
.site-footer { background: var(--ink); color: #e9e6e2; padding: 40px 0 16px; font-size: 14px; }
.site-footer a { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer-inner p { margin: 0 0 6px; }
.footer-name { font-weight: 700; font-size: 16px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0 0 6px; }
.copyright { text-align: center; margin: 24px 0 0; color: #b9b5b0; font-size: 12px; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }
.course-side a + a { display: block; margin-top: 12px; }
