/* ===== Tokens ===== */
:root {
  --primary: #14224a;
  --primary-2: #1e3a8a;
  --accent: #2563eb;
  --bg: #ffffff;
  --bg-soft: #eef2f9;
  --bg-section: #f5f7fb;
  --text: #1a2238;
  --text-sub: #4b5772;
  --text-mute: #6b7589;
  --line: #dbe2ee;
  --line-soft: #e7ecf5;
  --card-bg: #ffffff;
  --card-radius: 8px;
  --btn-radius: 6px;
  --shadow-card: 0 1px 2px rgba(20, 34, 74, 0.04), 0 4px 14px rgba(20, 34, 74, 0.04);
  --shadow-pop: 0 8px 28px rgba(20, 34, 74, 0.10);
  --font-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
  --container: 1140px;
  --header-h: 76px;
  --header-h-shrink: 60px;
}

/* ===== Reset & base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-jp);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--btn-radius);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(20, 34, 74, 0.25);
}
.btn-outline {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: #fafbff;
}
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: height 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: var(--header-h);
}
.site-header.is-scrolled {
  height: var(--header-h-shrink);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 2px 12px rgba(20, 34, 74, 0.05);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--primary);
  font-size: 17px;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 32px;
  height: 32px;
  flex: none;
}
.is-scrolled .brand { font-size: 15.5px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
.nav-list a {
  position: relative;
  padding: 6px 0;
  color: var(--text);
  transition: color 0.15s ease;
}
.nav-list a:hover { color: var(--primary); }
.nav-list a.active {
  color: var(--primary);
  font-weight: 700;
}
.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tel-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.tel-num {
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tel-hours {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}
.is-scrolled .tel-num { font-size: 17px; }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 40;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 500;
}
.mobile-menu .mobile-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-top: var(--header-h);
  overflow: hidden;
  background: #e8edf5;
}

/* 背景写真 */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* 左側グラデーションオーバーレイ（テキストを読みやすくする） */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(240, 245, 252, 0.97) 0%,
    rgba(240, 245, 252, 0.92) 38%,
    rgba(240, 245, 252, 0.55) 60%,
    rgba(240, 245, 252, 0.0) 80%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  padding-top: 72px;
  padding-bottom: 56px;
  min-height: 540px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.hero-title {
  font-family: "Zen Kaku Gothic New", var(--font-jp);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-lead {
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-sub);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* エリアバー */
.hero-area-bar {
  position: relative;
  z-index: 2;
  background: rgba(255, 255, 255, 0.88);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-sub);
}
.hero-area-bar .container {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.hero-area-bar .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* ===== Section base ===== */
.section {
  padding: 76px 0;
}
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-section { background: var(--bg-section); }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-title {
  font-family: "Zen Kaku Gothic New", var(--font-jp);
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.04em;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 32px;
  height: 2px;
  background: var(--primary);
}
.section-sub {
  font-size: 14px;
  color: var(--text-mute);
  margin-top: 14px;
}

/* ===== Cards ===== */
.card {
  background: var(--card-bg);
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
  border-color: #c9d3e6;
}

/* services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.svc-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 20px;
  position: relative;
  cursor: pointer;
}
.svc-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: background 0.2s;
}
.svc-card:hover .svc-icon-wrap {
  background: #dce6f5;
}
.svc-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.5;
}
.svc-desc {
  font-size: 12px;
  color: var(--text-sub);
  line-height: 1.8;
  flex: 1;
}
.svc-arrow {
  color: var(--primary);
  align-self: flex-end;
  margin-top: 4px;
  opacity: 0.6;
}

/* reasons */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.reason-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px;
}
.reason-no {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.reason-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}
.reason-desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.85;
}

/* flow */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: stretch;
  position: relative;
}
.flow-item-wrap {
  display: flex;
  align-items: center;
}
.flow-card {
  flex: 1;
  text-align: left;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-no {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 12px;
  color: var(--primary);
}
.flow-icon {
  color: var(--primary);
  width: 32px; height: 32px;
}
.flow-icon svg { width: 100%; height: 100%; }
.flow-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.flow-desc {
  font-size: 11.5px;
  color: var(--text-sub);
  line-height: 1.7;
}
.flow-arrow {
  flex: none;
  width: 20px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  opacity: 0.6;
}

/* faq */
.faq-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 28px;
}
.faq-head .section-title { margin: 0; }
.faq-link {
  font-size: 13px;
  color: var(--primary);
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1px;
}
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.faq-item {
  padding: 18px 20px;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.faq-q-mark {
  font-family: var(--font-en);
  color: var(--primary);
  font-weight: 800;
  margin-right: 6px;
}
.faq-toggle {
  flex: none;
  color: var(--text-mute);
  transition: transform 0.2s ease;
}
.faq-item.is-open .faq-toggle { transform: rotate(180deg); }
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.85;
  padding-left: 22px;
  position: relative;
}
.faq-a::before {
  content: "A.";
  position: absolute;
  left: 0;
  font-family: var(--font-en);
  color: var(--primary);
  font-weight: 800;
}
.faq-a-collapsed {
  display: none;
}

/* ===== CTA ===== */
.cta-section {
  position: relative;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}
.cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
  z-index: 0;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,34,74,0.55), rgba(20,34,74,0.75));
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0;
}
.cta-title {
  font-family: "Zen Kaku Gothic New", var(--font-jp);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}
.cta-contacts {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-contact {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cta-contact-ico {
  width: 32px; height: 32px;
  color: #fff;
  flex: none;
}
.cta-tel-num {
  font-family: var(--font-en);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}
.cta-tel-sub {
  font-size: 11.5px;
  opacity: 0.85;
}
.cta-form-name { font-size: 15px; font-weight: 600; }
.cta-form-sub { font-size: 11.5px; opacity: 0.85; }

.cta-card {
  background: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 8px;
  padding: 28px 32px;
  text-align: center;
}
.cta-card-h {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.cta-card-p {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.85;
  margin-bottom: 20px;
}
.btn-cta {
  background: #fff;
  color: var(--primary);
  width: 100%;
}
.btn-cta:hover {
  background: #f4f6fc;
  transform: translateY(-1px);
}

/* ===== Footer ===== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--text-mute);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--primary); }

/* ===== Form ===== */
.form-section {
  padding: 76px 0;
  background: var(--bg-section);
}
.form-card {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-row .req {
  font-size: 10.5px;
  background: #d62828;
  color: #fff;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.form-row .opt {
  font-size: 10.5px;
  background: #cbd2dd;
  color: #333;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: inherit;
  font-size: 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--primary-2);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-submit {
  text-align: center;
  margin-top: 26px;
}
.form-success {
  background: #ecf6ec;
  border: 1px solid #cbe7cb;
  color: #2c6f2c;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

/* ===== Placeholder image ===== */
.ph {
  position: relative;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      #e8edf6 0 12px,
      #dde4f1 12px 24px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5772;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 12px;
  text-align: center;
  padding: 16px;
  border-radius: inherit;
  overflow: hidden;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(75, 87, 114, 0.45);
  border-radius: inherit;
  pointer-events: none;
}
.ph-label {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 10px;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 1;
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-title { font-size: 32px; }
  .hero-overlay {
    background: linear-gradient(
      to right,
      rgba(240, 245, 252, 0.97) 0%,
      rgba(240, 245, 252, 0.92) 50%,
      rgba(240, 245, 252, 0.7) 75%,
      rgba(240, 245, 252, 0.2) 100%
    );
  }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .flow-grid { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .flow-card { padding: 16px 10px; }
  .flow-name { font-size: 12.5px; }
  .flow-desc { display: none; }
  .reasons-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .nav-list { display: none; }
  .header-cta .tel-block { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .hero-content-wrap {
    min-height: 420px;
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(240, 245, 252, 0.96) 0%,
      rgba(240, 245, 252, 0.92) 60%,
      rgba(240, 245, 252, 0.75) 100%
    );
  }
  .hero-title { font-size: 26px; line-height: 1.5; }
  .hero-lead { font-size: 14px; }
  .hero-area-bar .container { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 22px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .flow-arrow { display: none; }
  .flow-desc { display: block; }
  .flow-name { font-size: 14px; }
  .cta-title { font-size: 20px; }
  .cta-tel-num { font-size: 22px; }
  .cta-contacts { flex-direction: column; gap: 16px; }
  .form-card { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-nav { gap: 14px; font-size: 12px; }
}
