/* =========================================================
   社会保険労務士齊藤事務所 ホームページ 共通スタイル
   色やフォントは :root の変数でまとめて変更できます
   ========================================================= */
:root {
  --navy: #1d1666;
  --navy-dark: #130e48;
  --navy-hero: #2a2280; /* トップのヒーロー用。ヘッダー（--navy）と区別するため一段明るい紺 */
  --navy-light: #eceaf6;
  --accent: #e87a04;
  --accent-dark: #c96803;
  /* お問い合わせボタンの金（案B シャンパンゴールド） */
  --gold: #d4bc85;
  --gold-hi: #e6d6ae;
  --gold-deep: #c1a468;
  --text: #2b2b33;
  --text-sub: #5a5a66;
  --border: #dcdbe6;
  --bg: #ffffff;
  --bg-soft: #f6f6fa;
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --max: 1080px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--accent-dark); }
a[href^="mailto:"] { white-space: nowrap; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; color: var(--navy); }
ul, ol { padding-left: 1.4em; }
table { border-collapse: collapse; width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.site-logo { display: flex; flex-wrap: wrap; column-gap: .45em; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: .06em; color: #fff; text-decoration: none; }
.site-logo:hover { color: #fff; }
.site-logo span { white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-tel {
  display: inline-flex; align-items: center; gap: 4px;
  color: #fff; text-decoration: none; font-size: 13px; line-height: 1.2;
  border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); padding: 8px 10px;
}
.header-tel:hover { color: #fff; background: rgba(255,255,255,.1); }
.header-tel .num, .header-tel .label { display: none; }
.nav-toggle {
  width: 44px; height: 44px; border: 0; border-radius: var(--radius);
  background: transparent; color: #fff; cursor: pointer; padding: 10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.global-nav { display: none; background: var(--navy-dark); }
.global-nav.is-open { display: block; }
.global-nav ul { list-style: none; margin: 0; padding: 8px 16px 16px; }
.global-nav a {
  display: block; color: #fff; text-decoration: none;
  padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.global-nav a[aria-current="page"] { color: #ffd59a; }

@media (min-width: 1024px) {
  .header-inner { min-height: 72px; }
  .site-logo { font-size: 24px; }
  .header-tel .num { display: inline; font-size: 18px; font-weight: bold; letter-spacing: .03em; }
  .header-tel { border: 0; flex-direction: column; align-items: flex-end; padding: 0; }
  .header-tel .label { display: inline; font-size: 11px; opacity: .8; }
  .header-tel .sp { display: none; }
  .nav-toggle { display: none; }
  .global-nav { display: block; background: var(--navy-dark); }
  .global-nav ul { display: flex; justify-content: center; flex-wrap: wrap; padding: 0 16px; max-width: var(--max); margin: 0 auto; }
  .global-nav a { border: 0; padding: 12px 14px; font-size: 14px; }
  .global-nav a:hover { color: #ffd59a; }
}

/* ---------- 共通パーツ ---------- */
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section-title { text-align: center; font-size: 24px; margin: 0 0 32px; }
.section-title span { display: inline-block; }
.section-title small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; color: var(--accent); font-weight: normal; }
.lead { font-size: 17px; }
.btn {
  display: inline-block; text-decoration: none; text-align: center;
  padding: 14px 28px; border-radius: var(--radius); font-weight: bold; line-height: 1.4;
  color: var(--navy); border: 2px solid var(--gold);
  background: linear-gradient(110deg, var(--gold-hi) 0%, var(--gold) 50%, var(--gold-deep) 100%);
  background-size: 200% 100%; background-position: 0% 0;
  transition: background-position .45s ease, border-color .45s ease, box-shadow .3s ease;
}
/* hover: 明るい金から濃い金へ色が移り、うっすら影が出る */
.btn:hover { background-position: 100% 0; border-color: var(--gold-deep); color: var(--navy); box-shadow: 0 4px 14px rgba(19,14,72,.22); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn--white { background: #fff; color: var(--navy); border-color: #fff; }
.btn--white:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--navy); }
.btn--outline:hover, .btn--white:hover { box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.note { font-size: 14px; color: var(--text-sub); }

/* ページ見出し（下層ページ） */
.page-header { background: var(--navy); color: #fff; padding: 40px 0 36px; }
.page-header h1 { color: #fff; margin: 0; font-size: 26px; }
.page-header p { margin: 4px 0 0; font-size: 12px; letter-spacing: .2em; opacity: .75; }
.breadcrumb { font-size: 13px; padding-top: 10px; padding-bottom: 10px; color: var(--text-sub); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "›"; margin: 0 8px; }
.content { padding-top: 24px; padding-bottom: 64px; }
.content h2 { font-size: 21px; border-left: 5px solid var(--navy); padding-left: 12px; margin: 48px 0 16px; }
.content h2:first-child { margin-top: 16px; }
.content h3 { font-size: 18px; margin: 32px 0 8px; }

/* 表（事務所概要・募集要項など） */
.info-table th, .info-table td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; }
.info-table th { background: var(--navy-light); color: var(--navy); width: 30%; font-weight: bold; white-space: nowrap; }
@media (max-width: 599px) {
  .info-table, .info-table tbody, .info-table tr, .info-table th, .info-table td { display: block; width: 100%; }
  .info-table tr { margin-bottom: 8px; }
  .info-table td { border-top: 0; }
}

/* カード */
.cards { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards--2 { grid-template-columns: repeat(2, 1fr); } .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; }
a.card:hover { box-shadow: 0 6px 18px rgba(29,22,102,.15); transform: translateY(-2px); color: var(--text); }
.card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 20px; flex: 1; }
.card-title { font-family: var(--serif); color: var(--navy); font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.card-title::after { content: " →"; color: var(--accent); }
.card p { margin: 0; font-size: 15px; color: var(--text-sub); }

/* 問い合わせ帯 */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 48px 0; }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.cta-band p { margin: 0; }
.cta-tel { display: inline-block; color: #fff; text-decoration: none; font-size: 28px; font-weight: bold; letter-spacing: .04em; margin-top: 12px; }
.cta-tel:hover { color: #ffd59a; }

/* ---------- トップページ ---------- */
.hero { background: var(--navy-hero); color: #fff; display: grid; }
.hero-text { padding: 40px 16px 44px; }
.hero-text span { display: inline-block; }
.hero-text .g { display: inline; }
.hero-care { font-family: var(--serif); font-weight: 600; font-size: 44px; line-height: 1.2; letter-spacing: .12em; color: var(--accent); margin: 0 0 12px; }
.hero-care small { display: block; font-family: var(--sans); font-size: 12px; font-weight: normal; letter-spacing: .3em; color: #fff; opacity: .8; margin-bottom: 4px; }
/* 見出しは「介護事業所の／労務・処遇改善加算をサポートします。」の2行に収まるよう、画面幅に合わせて文字を縮める */
.hero h1.hero-lead { color: #fff; font-size: min(20px, calc((100vw - 32px) / 18.5)); line-height: 1.6; letter-spacing: 0; margin: 0 0 14px; }
.hero-sub { font-size: 18px; line-height: 1.8; margin: 0 0 22px; }
.hero-copy { font-family: var(--serif); font-size: 17px; line-height: 1.9; color: #f4f3fb; margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.25); }
.hero .btn-row { justify-content: flex-start; }
.hero-image { aspect-ratio: 16 / 10; background: url("../img/hero.webp") center 40% / cover no-repeat; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; min-height: 520px; }
  .hero-text { padding: 72px 48px 72px max(16px, calc((100vw - var(--max)) / 2 + 16px)); align-self: center; }
  .hero-care { font-size: 60px; }
  .hero h1.hero-lead { font-size: min(22px, calc((50vw - 64px) / 18.5)); }
  .hero-sub { font-size: 19px; }
  .hero-copy { font-size: 18px; }
  .hero-image { aspect-ratio: auto; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
}
/* PC幅: 見出しを1行に収めるため、文字側の列を少し広げる */
@media (min-width: 1024px) {
  .hero { grid-template-columns: 11fr 9fr; }
  .hero-text { padding-right: 40px; }
  .hero h1.hero-lead { font-size: 21px; white-space: nowrap; }
  .hero-text .g { display: inline-block; }
}
@media (min-width: 1180px) {
  .hero h1.hero-lead { font-size: 22px; }
}

.greeting { display: grid; gap: 24px; align-items: start; }
.greeting img { width: 200px; margin: 0 auto; border-radius: var(--radius); }
@media (min-width: 720px) { .greeting { grid-template-columns: 220px 1fr; } .greeting img { width: 220px; } }

.feature { display: grid; gap: 24px; align-items: center; }
.feature img { border-radius: var(--radius); }
@media (min-width: 720px) { .feature { grid-template-columns: 1fr 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: grid; gap: 10px; }
.checklist li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 12px 48px; position: relative; font-weight: bold; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 3px; background: var(--accent); }
.checklist li::after { content: ""; position: absolute; left: 22px; top: 50%; width: 6px; height: 10px; margin-top: -7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; border-top: 1px solid var(--border); }
.news-list li { border-bottom: 1px solid var(--border); }
.news-list a { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 14px 4px; text-decoration: none; color: var(--text); }
.news-list a:hover .news-title { color: var(--accent-dark); }
.news-list time { color: var(--text-sub); font-size: 14px; min-width: 7.5em; }
.news-item { border-bottom: 1px solid var(--border); padding: 8px 0 24px; scroll-margin-top: 90px; }
.news-item time { display: block; color: var(--text-sub); font-size: 14px; margin-top: 24px; }
.news-item h2 { margin-top: 4px !important; }

/* ---------- 流れ（ステップ） ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px 16px 72px; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-family: var(--serif);
}
.steps h3 { margin: 0 0 4px !important; font-size: 17px !important; }
.steps p { margin: 0; }
.steps p { word-break: auto-phrase; }
.steps p span { display: inline-block; }
.badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: var(--accent-dark); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: bold; line-height: 1.6; letter-spacing: .02em; }

/* ---------- 料金 ---------- */
.price-box { border: 2px solid var(--navy); border-radius: var(--radius); padding: 24px 20px; }
.price-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 8px; }
.price-head h2 { margin: 0 !important; border: 0 !important; padding: 0 !important; }
.price { font-size: 15px; }
.price strong { font-size: 30px; color: var(--accent-dark); font-family: var(--serif); }
.price-list { display: grid; gap: 20px; margin-bottom: 16px; }
.price-head .price { margin: 0; line-height: 1.3; }
.price-box p:last-child { margin-bottom: 0; }
.price-items { list-style: none; padding: 0; margin: 0; }
.price-items li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 10px 0; }
.price-items li + li { border-top: 1px dashed var(--border); }
.price-items .price { margin-left: auto; }
.price-items .price strong { font-size: 24px; }
.price-notes { margin: 12px 0 0; padding-left: 1.2em; border-top: 1px solid var(--border); padding-top: 12px; }

/* ---------- 4つのコウ ---------- */
.kou-list { display: grid; gap: 16px; }
@media (min-width: 720px) { .kou-list { grid-template-columns: repeat(2, 1fr); } }
.kou { border-radius: var(--radius); padding: 20px; color: #fff; }
.kou h3 { color: #fff; margin: 0 !important; font-size: 21px !important; }
.kou .en { font-size: 13px; letter-spacing: .1em; opacity: .85; margin: 0 0 10px; }
.kou p:last-child { margin: 0; }
.kou--1 { background: #5a0a4f; }
.kou--2 { background: #0e4f6b; }
.kou--3 { background: #6a3a08; }
.kou--4 { background: #155f30; }

/* ---------- プロフィール ---------- */
.profile-head { display: grid; gap: 20px; align-items: center; }
.profile-head img { width: 220px; border-radius: var(--radius); margin: 0 auto; }
@media (min-width: 720px) { .profile-head { grid-template-columns: 240px 1fr; } }
.profile-name { font-family: var(--serif); font-size: 22px; color: var(--navy); margin: 0; }

/* ---------- お問い合わせ ---------- */
.form-wrap { position: relative; background: #fff; border-radius: var(--radius); }
.form-loading { position: absolute; top: 40px; left: 0; right: 0; margin: 0; text-align: center; color: var(--text-sub); }
.form-loading[hidden] { display: none; }
/* 背景を透明にし、読み込み完了まで背後の「読み込み中です…」が見えるようにする */
.form-frame { position: relative; display: block; width: 100%; height: 1500px; border: 1px solid var(--border); border-radius: var(--radius); background: transparent; }
/* フォーム上の入力時の注意書き（目立たせすぎず、読み飛ばされない程度に） */
.form-caution { max-width: 720px; margin: 0 0 16px; padding: 10px 14px; font-size: 14px; color: var(--text); background: var(--bg-soft); border-left: 4px solid var(--gold-deep); border-radius: var(--radius); }
.contact-info { display: grid; gap: 12px; max-width: 480px; }
.contact-info div { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; }
.contact-info dt { font-weight: bold; color: var(--navy); }
.contact-info dd { margin: 0; }

/* プライバシーポリシーのSRPⅡ認証マーク */
.srp-mark { display: block; width: 200px; max-width: 60%; height: auto; margin: 0 0 20px; }

.map-frame { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy-dark); color: #d7d5ea; font-size: 14px; padding: 48px 0 24px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 840px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-title { color: #fff; font-family: var(--serif); font-size: 16px; margin: 0 0 10px; }
.footer-logo { display: flex; flex-wrap: wrap; column-gap: .45em; font-family: var(--serif); font-weight: 600; font-size: 20px; line-height: 1.3; letter-spacing: .06em; color: #fff; margin: 0 0 12px; }
.footer-logo span { white-space: nowrap; }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 4px 0; }
.copyright { text-align: center; font-size: 12px; margin: 40px 0 0; opacity: .7; }
