/* 文字は、サイトの中に置いたものを使う（外部から読み込まない） */
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 400 500; font-style: normal; font-display: swap; src: url('/fonts/ZenMaruGothic-Medium.woff') format('woff'); }
@font-face { font-family: 'Zen Maru Gothic'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/ZenMaruGothic-Bold.woff') format('woff'); }

:root {
  --sky: #bee2f7;
  --pale: #e6f4fc;
  --navy: #1d4e78;
  --accent: #1b78b8;
  --text: #26445a;
  --sub: #3a566e;
  --line: #d5e6f3;
  --cream: #fff1c9;
  --warn: #fff3c4;
  --warn-text: #5a4300;
  --err: #a31d1d;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Yu Gothic', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.9; letter-spacing: 0.03em;
}
body.nav-open { overflow: hidden; }
a { color: var(--navy); }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* ヘッダー */
.site-top { background: var(--sky); position: relative; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; }
.brand-name { font-size: 22px; letter-spacing: 0.08em; }
.brand-co { font-size: 13px; font-weight: 500; }
.nav-toggle {
  min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--navy); border-radius: 12px;
  background: #fff; color: var(--navy); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer;
}
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 14px 20px; text-decoration: none; color: var(--navy); font-weight: 500; }
.nav a[aria-current='page'] { font-weight: 700; box-shadow: inset 4px 0 0 #fff; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 72px; z-index: 10;
  background: var(--sky); border-top: 1px solid #fff; padding-bottom: 12px;
}
.wave { display: block; width: 100%; height: 36px; background: var(--sky); }
.wave path { fill: #fff; }

/* 本文 */
.hero { background: var(--sky); padding: 8px 20px 4px; }
.wrap { max-width: 960px; margin: 0 auto; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 1.5; letter-spacing: 0.06em; color: var(--navy); }
.lead { margin: 0; font-size: 16px; }
main { padding: 24px 20px 56px; }
.card { background: var(--pale); border-radius: 20px; padding: 20px; margin-bottom: 28px; }
.tel { display: inline-block; margin: 4px 0; padding: 4px 0; font-size: 26px; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.hours { margin: 0; font-size: 15px; color: var(--sub); }
.todo { background: var(--warn); color: var(--warn-text); padding: 0 4px; border-radius: 4px; }
.card h2 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.note { background: var(--cream); border-radius: 16px; padding: 14px 18px; margin: 0 0 24px; font-size: 15px; }

/* フォーム */
.form { display: grid; gap: 22px; }
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.req { margin-left: 8px; font-size: 12px; font-weight: 700; background: var(--accent); color: #fff; padding: 1px 8px; border-radius: 999px; }
.opt { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--sub); }
input[type='text'], input[type='email'], input[type='tel'], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; border: 2px solid #9cc4e0; border-radius: 12px;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
input[aria-invalid='true'], select[aria-invalid='true'], textarea[aria-invalid='true'] { border-color: var(--err); }
.hint { margin: 4px 0 0; font-size: 14px; color: var(--sub); }
.err { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--err); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check input { width: 24px; height: 24px; margin: 4px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.check label { margin: 0; font-weight: 500; color: var(--text); }
.btn {
  display: inline-block; min-height: 52px; padding: 12px 32px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-line { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.btn-line:hover { background: var(--pale); color: var(--navy); }
.status { margin: 0; padding: 14px 18px; border-radius: 14px; font-weight: 700; }
.status:empty { display: none; }
.status.is-error { background: #fde8e8; color: var(--err); }
.status.is-ok { background: var(--pale); color: var(--navy); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* フッター */
.site-foot { background: var(--pale); padding: 20px; font-size: 15px; color: var(--sub); }
.site-foot .wrap { display: flex; flex-direction: column; gap: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { display: inline-block; padding: 8px 0; }

@media (min-width: 640px) {
  .bar { padding: 0 40px; }
  .hero, main { padding-left: 40px; padding-right: 40px; }
  h1 { font-size: 36px; }
  .card { padding: 28px 32px; }
}
@media (min-width: 1024px) {
  .bar { min-height: 96px; padding: 0 80px; }
  .nav-toggle { display: none; }
  .nav, .nav.is-open { display: block; position: static; background: none; border: 0; padding: 0; }
  .nav ul { display: flex; gap: 8px; }
  .nav a { padding: 10px 14px; }
  .nav a[aria-current='page'] { box-shadow: inset 0 -3px 0 #fff; }
  .hero, main { padding-left: 80px; padding-right: 80px; }
  h1 { font-size: 44px; }
  .site-foot { padding: 20px 80px; }
  .site-foot .wrap { max-width: none; flex-direction: row; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.sec { margin: 0 0 12px; font-size: 22px; color: var(--navy); }
.mail { font-size: 20px; letter-spacing: 0.02em; word-break: break-all; }

/* メニューバーを画面の上に固定（スクロールしてもついてくる） */
html { scroll-padding-top: 88px; }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; background: var(--sky); box-shadow: 0 2px 10px rgba(29, 78, 120, 0.12); }
.site-top { padding-top: 72px; }
.nav.is-open { top: 100%; }
@media (min-width: 1024px) { .site-top { padding-top: 96px; } html { scroll-padding-top: 104px; } }
.note-small { font-size: 14px; }

/* ===== 問い合わせページ（送信後の流れ・まとまりごとの入力欄） ===== */
.flow { margin: 0 0 36px; }
.flow-title { margin: 0 0 14px; font-size: 18px; color: var(--navy); letter-spacing: 0.06em; }
.flow-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.flow-steps li { display: flex; align-items: flex-start; gap: 14px; position: relative; }
.flow-num {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: #fff;
  box-shadow: inset 0 0 0 3px #3aa0dc; color: var(--accent); font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
}
.flow-steps li + li::before {
  content: ''; position: absolute; left: 19px; top: -14px; height: 14px; width: 2px;
  background: repeating-linear-gradient(180deg, #7cc6ee 0 4px, transparent 4px 8px);
}
.flow-text { font-size: 15px; line-height: 1.7; color: var(--sub); padding-top: 2px; }
.flow-text b { display: block; font-size: 17px; color: var(--navy); }

.group {
  margin: 0; padding: 18px 18px 22px; min-width: 0;
  border: 2px solid var(--line); border-radius: 22px; background: #fff;
}
.group legend {
  padding: 0 12px; margin-left: -4px; font-size: 19px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 10px; letter-spacing: 0.05em;
}
.group legend .opt { margin-left: 0; }
.group-no {
  width: 30px; height: 30px; border-radius: 10px; background: var(--sky); color: var(--navy);
  font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.group-lead { margin: 4px 0 16px; font-size: 15px; color: var(--sub); }
.group > .field + .field { margin-top: 20px; }
.grid2 { display: grid; gap: 20px; }
.field-label { font-weight: 700; color: var(--navy); margin-bottom: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; display: block; margin: 0; }
.chip input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: flex; align-items: center; min-height: 48px; padding: 8px 20px; border-radius: 999px;
  border: 2px solid #9cc4e0; background: #fff; color: var(--navy); font-weight: 700; font-size: 16px;
}
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }

.send { background: var(--pale); border-radius: 22px; padding: 22px 18px 24px; display: grid; gap: 16px; }
.btn-send { width: 100%; min-height: 58px; font-size: 18px; letter-spacing: 0.06em; }
.send-hint { margin: 0; text-align: center; }

@media (min-width: 640px) {
  .flow-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .flow-steps li { flex-direction: column; gap: 10px; }
  .flow-steps li + li::before {
    left: calc(-100% + 46px); right: calc(100% + 6px); top: 19px; width: auto; height: 2px;
    background: repeating-linear-gradient(90deg, #7cc6ee 0 6px, transparent 6px 12px);
  }
  .group { padding: 22px 28px 28px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .field-wide { grid-column: 1 / -1; }
  .send { padding: 28px 32px 30px; justify-items: center; }
  .send .field { justify-self: stretch; }
  .btn-send { width: auto; min-width: 320px; }
}

/* ===== 文章ページ（プライバシーポリシーなど） ===== */
.policy { max-width: 760px; }
.policy h2 { margin: 40px 0 10px; font-size: 20px; line-height: 1.6; color: var(--navy); letter-spacing: 0.05em; }
.policy h2:first-of-type { margin-top: 8px; }
.policy p { margin: 0 0 12px; }
.policy ul { margin: 0 0 12px; padding-left: 1.3em; }
.policy li { margin-bottom: 6px; }
.policy dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.policy dt { font-weight: 700; color: var(--navy); }
.policy dd { margin: 0; }
.policy .dates { margin-top: 36px; color: var(--sub); font-size: 15px; }
.policy .actions { margin-top: 36px; }
