/* ========================================
  Common / 共通設定・ヘッダー・下層共通・フッター
======================================== */

/* ========================================
  Foundation / 共通設定
======================================== */

:root {
  --ink: #2f3a45;
  --accent-blue: #0e77cd;
  --button: #0b3a5b;
  --sky: #46b8fc;
  --concern-pill: #e5f4fc;
  --concern-shadow: rgba(47, 58, 69, 0.12);
  --hero-copy-bg: rgba(0, 73, 117, 0.82);
  --sky-wash:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
    var(--sky);
  --policy-red: #e75353;
  --price-overlay: rgba(0, 62, 120, 0.6);
  --price-line: #91d3ff;
  --price-blue: #1891d8;
  --profile-bg: #eaf8ff;
  --flow-overlay: rgba(0, 73, 117, 0.5);
  --flow-icon-bg: #e9f8ff;
  --flow-number: #e9f8ff;
  --faq-bg-pc: #e7f5fc;
  --faq-bg-sp: #eaf8fd;
  --faq-line: #d7e0e7;
  --contact-overlay: rgba(0, 73, 117, 0.5);
  --contact-card-bg: rgba(255, 255, 255, 0.7);
  --contact-mail: #0b3a5b;
  --contact-line: #5ead1f;
  --footer-bg: #0b3a5b;
  --sp-menu-bg: rgba(0, 73, 117, 0.86);
  --sp-menu-light: #e7f5fc;
  --font-ja: "Zen Kaku Gothic New", sans-serif;
  --font-en: "Figtree", sans-serif;
  --header-scroll-offset: 98px;
  --lower-header-space: 94px;
  --sp-base-width: 393px;
  --sp-header-edge: 16px;
  --sp-footer-edge: 30px;
  --pc-base-width: 1440px;
  --pc-max-width: 1800px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-scroll-offset);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ja);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

body.is-menu-open {
  overflow: hidden;
}

.lower-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.lower-page main {
  flex: 1;
  margin-top: var(--lower-header-space);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================
  Header / ヘッダー
======================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: transparent;
  transition:
    background 0.25s ease,
    backdrop-filter 0.25s ease;
}

body .site-header.is-scrolled {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  background: rgb(255 255 255 / 10%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1417px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 22px 44px 22px;
}

.site-name {
  flex: 0 1 auto;
  margin: 0;
  line-height: 1;
}

.site-logo {
  display: block;
  width: 320px;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 44px;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.header-nav a {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.header-tel::before {
  display: block;
  width: 28px;
  height: 25px;
  background: url("../images/icon-phone-blue.svg") center / contain no-repeat;
  content: "";
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 208px;
  min-height: 54px;
  padding: 17px 48px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  background: var(--button);
  border-radius: 3px;
  white-space: nowrap;
  transition:
    background-color 0.24s ease,
    box-shadow 0.24s ease,
    transform 0.24s ease;
}

/* Header Button Hover / ヘッダーCTAのホバー演出 */
@media (hover: hover) and (pointer: fine) {
  .header-button:hover,
  .header-button:focus-visible {
    background-color: #082f4a;
    box-shadow: 0 6px 14px rgba(11, 58, 91, 0.16);
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-button {
    transition: none;
  }

  .header-button:hover,
  .header-button:focus-visible {
    transform: none;
  }
}

.lower-page .site-header {
  background: #fff;
}

.lower-page .header-inner {
  width: min(1417px, calc(100vw - 24px));
  padding: 73px 44px 52px;
}

/* ========================================
  Responsive >= 900px / プライバシーページのPCヘッダー
======================================== */

@media (min-width: 900px) {
  .lower-page.privacy-page .header-inner,
  .lower-page.contact-page .header-inner {
    width: 100%;
    padding: 20px 55px;
  }
}

.menu-toggle {
  position: relative;
  display: none;
  width: 25px;
  height: 22px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.5s;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  display: inline-block;
  width: 100%;
  height: 3px;
  background: var(--button);
  border-radius: 3px;
  transition: all 0.5s;
}

.menu-toggle span:nth-of-type(1) {
  top: 0;
}

.menu-toggle span:nth-of-type(2) {
  top: 10px;
}

.menu-toggle span:nth-of-type(3) {
  bottom: 0;
}

.menu-toggle.is-active {
  z-index: 110;
}

.menu-toggle.is-active span {
  background: #fff;
}

.menu-toggle.is-active span:nth-of-type(1) {
  transform: translateY(10px) rotate(-45deg);
}

.menu-toggle.is-active span:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-of-type(3) {
  transform: translateY(-9px) rotate(45deg);
}

/* ========================================
  SP Menu / スマホメニュー
======================================== */

.sp-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.sp-menu-panel {
  position: relative;
  min-height: 100dvh;
  padding: 0 0 34px;
  color: #fff;
  overflow-y: auto;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  background: var(--sp-menu-bg);
}

.sp-menu-nav {
  padding: 109px 10px 0;
}

.sp-menu-nav ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sp-menu-nav li {
  min-height: 71.59px;
}

.sp-menu-nav a,
.sp-menu-privacy {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 30.6px;
  letter-spacing: 0.7px;
}

.sp-menu-nav a {
  min-height: 70.59px;
  padding-left: 40px;
}

.sp-menu-nav a::before {
  content: none;
}

.sp-menu-privacy {
  display: flex;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  margin: 18px auto 0;
  color: var(--sp-menu-light);
  font-size: 10px;
  font-weight: 500;
  line-height: 26px;
  text-align: center;
}

.sp-menu-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 60px;
  margin: 82px 0 0;
}

.sp-menu-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.sp-menu-tel {
  gap: 5px;
  color: var(--button);
  font-family: var(--font-en);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 1.44px;
  background: #fff;
}

.sp-menu-tel img {
  width: 15px;
  height: 15px;
  filter: brightness(0) saturate(100%) invert(16%) sepia(44%) saturate(1343%)
    hue-rotate(169deg) brightness(89%) contrast(97%);
}

.sp-menu-contact {
  color: var(--sp-menu-light);
  font-size: 14px;
  line-height: 18px;
  background: var(--button);
}

.sp-menu-sns {
  display: flex;
  justify-content: center;
  gap: 21px;
  margin-top: 22px;
}

.sp-menu-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.sp-menu-sns img {
  display: block;
  width: 25px;
  height: 25px;
  object-fit: contain;
}

body.is-menu-open .sp-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

/* ========================================
  Shared Section Layout / 下層共通レイアウト
======================================== */

.section-inner,
.footer-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

main > section:not(.hero) {
  padding: 88px 0;
}

h2,
h3,
p {
  line-break: anywhere;
  overflow-wrap: anywhere;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.35;
}

.section-subtitle {
  margin: 4px 0 32px;
  color: #1673c7;
  font-family: var(--font-ja);
  font-size: smaller;
  font-weight: bold;
}

/* ========================================
  Lower Hero / 下層ページMV
======================================== */

.contact-page-main > .lower-hero {
  position: relative;
  height: 331px;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.lower-hero picture,
.lower-hero img {
  width: 100%;
  height: 100%;
}

.lower-hero img {
  object-fit: cover;
  object-position: center 45%;
}

.lower-hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--contact-overlay);
  content: "";
}

.lower-hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 6px;
  text-align: center;
}

.lower-hero-copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-en);
  font-size: 52px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 3.2px;
}

.lower-hero-copy p {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 22px;
  letter-spacing: 4.2px;
}

/* ========================================
  Footer / フッター
======================================== */

.site-footer {
  min-height: 378px;
  padding: 64px 0 48px;
  color: #fff;
  background: var(--footer-bg);
}

.footer-inner {
  position: relative;
  display: grid;
  width: min(1360px, calc(100% - 80px));
  min-height: 266px;
}

.footer-name {
  margin: 0 0 15px;
  line-height: 1;
}

.footer-logo {
  width: 420px;
  height: auto;
}

.site-footer address {
  color: #fff;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
}

.footer-sns {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 24px;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.footer-sns img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.copyright {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  white-space: nowrap;
}

/* ========================================
  Responsive <= 1200px / 小さめPC・タブレット横
======================================== */

@media (max-width: 1200px) {
  .header-inner {
    width: 100%;
    padding-right: 24px;
    padding-left: 24px;
  }

  .header-nav ul {
    gap: 18px;
  }

  .site-logo {
    width: 260px;
  }

  .header-nav a {
    font-size: 15px;
  }

  .header-contact {
    gap: 14px;
  }

  .header-tel {
    gap: 7px;
    font-size: 19px;
  }

  .header-tel::before {
    width: 16px;
    height: 19px;
  }

  .header-button {
    min-width: 128px;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* ========================================
  Responsive 900px-1439px / ヒーロー・Lead・FooterをPC比率で縮小
======================================== */

@media (min-width: 900px) and (max-width: 1439px) {
  .header-inner {
    width: 100%;
    padding: clamp(14px, 1.5278vw, 22px) 3.8194vw clamp(14px, 1.5278vw, 22px)
      3.9583vw;
  }

  .site-logo {
    width: clamp(220px, 22.2222vw, 320px);
  }

  .header-actions {
    gap: clamp(16px, 3.0556vw, 44px);
  }

  .header-nav ul {
    gap: clamp(14px, 2.2222vw, 32px);
    padding: clamp(4px, 0.6944vw, 10px);
  }

  .header-nav a {
    font-size: clamp(12px, 1.25vw, 18px);
  }

  .header-contact {
    gap: clamp(10px, 2.0833vw, 30px);
  }

  .header-tel {
    gap: clamp(6px, 0.6944vw, 10px);
    font-size: clamp(18px, 1.875vw, 27px);
  }

  .header-tel::before {
    width: clamp(16px, 1.9444vw, 28px);
    height: clamp(18px, 1.7361vw, 25px);
  }

  .header-button {
    min-width: clamp(128px, 14.4444vw, 208px);
    min-height: clamp(40px, 3.75vw, 54px);
    padding: clamp(12px, 1.1806vw, 17px) clamp(18px, 3.3333vw, 48px);
    font-size: clamp(13px, 1.25vw, 18px);
  }

  .site-footer {
    min-height: 26.25vw;
    padding: 4.4444vw 0 3.3333vw;
  }

  .footer-inner {
    width: calc(100% - 5.5556vw);
    min-height: 18.4722vw;
  }

  .footer-name {
    margin-bottom: 1.0417vw;
  }

  .footer-logo {
    width: 29.1667vw;
  }

  .site-footer address {
    font-size: 1.3889vw;
    line-height: 1.5;
  }

  .footer-sns {
    gap: 1.8vw;
  }

  .footer-sns a,
  .footer-sns img {
    width: 3.3333vw;
    height: 3.3333vw;
  }

  .copyright {
    font-size: 0.8333vw;
  }
}

/* ========================================
  Responsive 1440px-1800px / 共通・ヒーロー・導線をPC基準で拡大
======================================== */

@media (min-width: 1440px) and (max-width: 1800px) {
  .header-inner {
    width: calc(100% - 5.5556vw);
    padding: 1.5278vw 1.0417vw 1.5278vw 5.5556vw;
  }

  .lower-page .header-inner {
    width: calc(100% - 5.5556vw);
    padding: 73px 44px 52px;
  }

  .site-logo {
    width: 320px;
  }

  .header-actions {
    gap: 44px;
  }

  .header-nav ul {
    gap: 32px;
    padding: 10px;
  }

  .header-nav a {
    font-size: 18px;
  }

  .header-contact {
    gap: 30px;
  }

  .header-tel {
    gap: 10px;
    font-size: 27px;
  }

  .header-tel::before {
    width: 28px;
    height: 25px;
  }

  .header-button {
    min-width: 208px;
    min-height: 54px;
    padding: 17px 48px;
    font-size: 18px;
  }

  main > section:not(.hero) {
    padding: 6.1111vw 0;
  }

  .section-inner,
  .footer-inner {
    width: min(77.7778vw, calc(100% - 2.7778vw));
  }

  h2 {
    font-size: 3.3333vw;
  }

  .section-subtitle {
    margin: 0.2778vw 0 2.2222vw;
  }

  .site-footer {
    min-height: 21.25vw;
    padding: 4.4444vw 0 3.3333vw;
  }

  .footer-inner {
    width: calc(100% - 5.5556vw);
    min-height: 13.4722vw;
  }

  .footer-name {
    margin-bottom: 1.0417vw;
  }

  .footer-logo {
    width: 29.1667vw;
  }

  .site-footer address {
    position: absolute;
    bottom: 0;
    left: 0;
    font-size: 1.3889vw;
    line-height: 1.5;
  }

  .footer-sns {
    gap: 1.8vw;
  }

  .footer-sns a,
  .footer-sns img {
    width: 3.3333vw;
    height: 3.3333vw;
  }

  .copyright {
    font-size: 0.8333vw;
  }
}

/* ========================================
  Responsive 900px-1800px / Contact PC基準の比率可変
======================================== */

@media (min-width: 900px) and (max-width: 1800px) {
  .contact-page-main > .lower-hero {
    height: 22.9861vw;
  }

  .lower-hero-copy {
    gap: 1.1111vw;
    padding-top: 0.4167vw;
  }

  .lower-hero-copy h1 {
    font-size: 3.6111vw;
    line-height: 2.9167vw;
    letter-spacing: 0.2222vw;
  }

  .lower-hero-copy p {
    font-size: 1.3889vw;
    line-height: 1.5278vw;
    letter-spacing: 0.2917vw;
  }
}

/* ========================================
  Responsive >= 1801px / 1800px時点のコンテンツ幅で固定
======================================== */

@media (min-width: 1801px) {
  .site-header {
    background: transparent;
  }

  .header-inner {
    width: 1700px;
    padding: 27.5px 19px 27.5px 100px;
  }

  .lower-page .header-inner {
    width: 1700px;
    padding: 73px 44px 52px;
  }

  .site-logo {
    width: 340px;
  }

  .header-actions {
    gap: 44px;
  }

  .header-nav ul {
    gap: 32px;
    padding: 10px;
  }

  .header-nav a {
    font-size: 18px;
  }

  .header-contact {
    gap: 30px;
  }

  .header-tel {
    gap: 10px;
    font-size: 27px;
  }

  .header-tel::before {
    width: 28px;
    height: 25px;
  }

  .header-button {
    min-width: 208px;
    min-height: 54px;
    padding: 17px 48px;
    font-size: 18px;
  }

  main > section:not(.hero) {
    padding: 110px 0;
  }

  .section-inner,
  .footer-inner {
    width: 1400px;
  }

  h2 {
    font-size: 60px;
  }

  .section-subtitle {
    margin: 5px 0 40px;
  }

  .contact-page-main > .lower-hero {
    height: 414px;
  }

  .lower-hero-copy {
    gap: 20px;
    padding-top: 8px;
  }

  .lower-hero-copy h1 {
    font-size: 65px;
    line-height: 53px;
    letter-spacing: 4px;
  }

  .lower-hero-copy p {
    font-size: 25px;
    line-height: 28px;
    letter-spacing: 5.25px;
  }

  .site-footer {
    min-height: 472px;
    padding: 80px 0 60px;
  }

  .footer-inner {
    width: 1700px;
    min-height: 332px;
  }

  .footer-name {
    margin-bottom: 19px;
  }

  .footer-logo {
    width: 525px;
  }

  .site-footer address {
    font-size: 25px;
  }

  .footer-sns {
    gap: 30px;
  }

  .footer-sns a,
  .footer-sns img {
    width: 60px;
    height: 60px;
  }

  .copyright {
    font-size: 15px;
  }
}

/* ========================================
  Responsive <= 899px / 393pxのSP基準を縮小・拡大
======================================== */

@media (max-width: 899px) {
  :root {
    --header-scroll-offset: 62px;
    --lower-header-space: 60px;
  }

  .site-header {
    height: 62px;
    background: transparent;
  }

  .header-inner {
    width: 100%;
    padding: 20px var(--sp-header-edge) 0;
  }

  .lower-page .header-inner {
    width: 100%;
    padding: 20px var(--sp-header-edge) 0;
  }

  .privacy-page .site-header {
    height: 60px;
    background: #fff;
  }

  .contact-page .site-header {
    height: 60px;
    background: #fff;
  }

  .lower-page.privacy-page .header-inner,
  .lower-page.contact-page .header-inner {
    width: 100%;
    height: 60px;
    padding: 0;
  }

  .privacy-page .site-header .header-inner .site-name,
  .contact-page .site-header .header-inner .site-name {
    position: absolute;
    top: 50%;
    left: var(--sp-header-edge);
    text-align: left;
    transform: translateY(-50%);
  }

  .privacy-page .site-header .header-inner .menu-toggle,
  .contact-page .site-header .header-inner .menu-toggle {
    top: 20px;
    right: var(--sp-header-edge);
  }

  .site-logo {
    width: min(220px, calc(100vw - 96px));
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    position: absolute;
    top: 20px;
    right: var(--sp-header-edge);
    z-index: 1;
    display: block;
  }

  .menu-toggle span {
    background: var(--button);
  }

  body.is-menu-open .site-header {
    z-index: 120;
    background: transparent;
    pointer-events: none;
  }

  body.is-menu-open .site-name {
    visibility: hidden;
  }

  body.is-menu-open .menu-toggle {
    pointer-events: auto;
  }

  body.is-menu-open .menu-toggle span {
    top: 50%;
    bottom: auto;
    height: 4px;
    border-radius: 999px;
  }

  body.is-menu-open .menu-toggle span:nth-of-type(1) {
    transform: translateY(-50%) rotate(45deg);
  }

  body.is-menu-open .menu-toggle span:nth-of-type(3) {
    transform: translateY(-50%) rotate(-45deg);
  }

  main > section:not(.hero) {
    padding: 56px 0;
  }

  h2 {
    font-size: 28px;
    word-break: break-all;
  }

  .section-inner,
  .footer-inner {
    width: calc(100% - 32px);
  }

  .site-footer {
    min-height: 184px;
    padding: 22px 0 10px;
  }

  .footer-inner {
    width: calc(100% - (var(--sp-footer-edge) * 2));
    min-height: 152px;
    gap: 0;
  }

  .footer-name {
    margin: 0;
    line-height: 1;
  }

  .footer-logo {
    width: min(240px, calc(100vw - 120px));
  }

  .site-footer address {
    position: absolute;
    top: 28px;
    left: 0;
    font-size: 12px;
    line-height: 1.6667;
  }

  .footer-sns,
  .copyright {
    position: absolute;
  }

  .footer-sns {
    top: 107px;
    right: 11px;
    justify-content: flex-end;
    gap: 10px;
  }

  .footer-sns a,
  .footer-sns img {
    width: 22px;
    height: 22px;
  }

  .copyright {
    right: 0;
    bottom: 1px;
    font-size: 8px;
    line-height: 1.5;
  }

  .contact-page-main > .lower-hero {
    height: 115px;
    padding: 0;
  }

  .lower-hero img {
    object-position: center center;
  }

  .lower-hero-copy {
    gap: 0;
    padding-top: 2px;
  }

  .lower-hero-copy h1 {
    font-family: var(--font-en);
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 2.2px;
  }

  .lower-hero-copy p {
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 2.2px;
  }
}

/* ========================================
  Responsive 768px-899px / タブレット縦専用調整
======================================== */

@media (min-width: 768px) and (max-width: 899px) {
  .site-logo {
    width: 260px;
  }
}
