:root {
  --navy: #061b3a;
  --navy2: #0b2a55;
  --red: #d8202f;
  --ink: #071b35;
  --muted: #66758d;
  --bg: #f6f8fb;
  --line: #dfe6ef;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.75;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* 共通ヘッダー（5ページ共通） */
.sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 18px rgba(6, 27, 58, .12);
}
.header {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.logo { width: 112px; height: auto; display: block; flex: 0 0 auto; }
.toplink {
  border: 1px solid #c7d3e2;
  border-radius: 999px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  flex: 0 0 auto;
}
.nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}
.nav a { white-space: nowrap; flex: 0 0 auto; }
.nav a:hover { color: var(--red); }
.cta, .ghost, .outlineRed, .blackCta {
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-width: max-content;
  flex: 0 0 auto;
  font-weight: 900;
}
.cta {
  background: var(--red);
  color: #fff;
  padding: 13px 22px;
  box-shadow: 0 10px 24px rgba(216, 32, 47, .25);
}
.cta:hover { color: #fff; filter: brightness(1.05); }
.ghost {
  border: 1px solid #c8d2df;
  padding: 12px 20px;
  background: #fff;
  color: var(--navy);
}
.ghost:hover { color: var(--navy); background: #f5f8fc; }
.outlineRed {
  border: 2px solid var(--red);
  color: var(--red);
  background: #fff;
  padding: 11px 18px;
}
.outlineRed:hover { color: #b91927; background: #fff7f7; }
.blackCta { background: #000; color: #fff; padding: 13px 18px; }
.blackCta:hover { color: #fff; background: #202020; }

/* 共通フッター（TOPの詳細フッターを全ページで共有） */
.footer { background: #041329; color: #dce8f7; padding: 56px 0 24px; }
.footerGrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr; gap: 34px; }
.footer h4 { color: #fff; margin: 0 0 12px; }
.footer ul { margin: 0; padding: 0; list-style: none; }
.footer li { margin: 7px 0; color: #aab9cf; font-size: 13px; }
.footerLogoBox { display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.footLogo { width: 120px; height: auto; display: block; }
.footer a { color: inherit; }
.footer .ghost { color: var(--navy); background: #fff; border-color: #c8d2df; }
.footer .ghost:hover { color: var(--navy); text-decoration: none; background: #f5f8fc; }
.footer a:hover { color: #fff; text-decoration: underline; }
.legalLinks { display: flex; gap: 18px; flex-wrap: wrap; }
.copy {
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 34px;
  padding-top: 16px;
  font-size: 12px;
  color: #9aadca;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .header { min-height: 66px; }
  .toplink { margin-left: auto; }
  .outlineRed { display: none; }
  .logo { width: 104px; }
  .footerGrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 14px; }
  .header { gap: 10px; }
  .header > .cta, .header > .blackCta { padding-left: 12px; padding-right: 12px; font-size: 12px; }
  .footerGrid { grid-template-columns: 1fr; }
  .copy { display: block; }
  .legalLinks { margin-top: 10px; gap: 8px 14px; }
}

/* LINE相談バナー（フッター直前の白背景の帯） */
.line-banner {
  padding: 40px 16px;
  background-color: #fff;
}

.line-banner__link {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 5% / 19%; /* 画像の角丸に合わせ、角の白地を隠す */
  transition: opacity .25s;
}

.line-banner__link:hover {
  opacity: .8;
}

.line-banner__img {
  display: block;
  width: 100%;
  height: auto;
}
