/* ============================================
   WAIKEI PLAN — Design Tokens
   ============================================ */
:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F5F3;
  --ink: #1A1A1A;
  --ink-soft: #55524E;
  --navy: #0F2A43;
  --orange: #FF7B21;       /* ロゴのオレンジ */
  --orange-deep: #C96010;  /* 文字用に少し濃く */
  --line: #E5E3DF;
  --line-dark: #3A3835;
  --font-ja: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-en: "Inter", "Helvetica Neue", Arial, sans-serif;
  --section-gap: clamp(120px, 14vw, 180px);
  --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================
   Layout primitives
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

section { padding: var(--section-gap) 0; }

/* English label — small, uppercase, tracked out */
.en-label {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 20px;
}
.inverted .en-label { color: #8FA6BC; }

h1, h2, h3 { font-weight: 700; line-height: 1.35; letter-spacing: 0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

.lead {
  color: var(--ink-soft);
  max-width: 36em;
}

.note {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* Thin-rule divider */
.rule { border: 0; border-top: 1px solid var(--line); }

/* Text link with rule underline */
.text-link {
  display: inline-block;
  font-weight: 500;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--ink);
  transition: opacity 0.3s ease;
}
.text-link:hover { opacity: 0.5; }
.text-link .arrow { font-family: var(--font-en); margin-left: 0.6em; color: var(--orange-deep); }

/* Solid button */
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  padding: 18px 48px;
  border-radius: 2px;
  border: 1px solid var(--navy);
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.btn:hover { opacity: 0.85; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.inverted .btn--ghost { color: #fff; border-color: #fff; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.3; }
.brand-en {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
}
.brand-ja { font-size: 10px; color: var(--ink-soft); letter-spacing: 0.1em; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.site-nav a:hover { opacity: 0.5; }
.site-nav a.active { border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.site-nav .nav-cta {
  background: var(--navy);
  color: #fff;
  padding: 12px 28px;
  border-radius: 2px;
}
.site-nav .nav-cta:hover { opacity: 0.85; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 8px;
  width: 24px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease;
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }
.nav-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(20deg); }
.nav-open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-20deg); }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: clamp(120px, 16vw, 200px) 0 var(--section-gap);
  position: relative;
  overflow: hidden;
  /* 柔らかな色のにじみ: 右上=ネイビーの霞・左下=暖色の陽だまり */
  background:
    radial-gradient(ellipse 640px 460px at 88% 8%, rgba(15, 42, 67, 0.10), transparent 68%),
    radial-gradient(ellipse 760px 540px at 4% 96%, rgba(255, 123, 33, 0.09), transparent 70%),
    radial-gradient(ellipse 420px 320px at 62% 55%, rgba(120, 158, 196, 0.07), transparent 70%),
    var(--bg);
}
/* 装飾リング（細い罫線の円・タイポを邪魔しない飾り） */
.hero::before {
  content: "";
  position: absolute;
  right: -140px;
  top: 12%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(15, 42, 67, 0.14);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  right: 60px;
  top: 58%;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(15, 42, 67, 0.07), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { margin-bottom: 36px; }
/* 見出しの一部にネイビー→ブルーのグラデーション */
.hero .accent {
  background: linear-gradient(115deg, var(--navy) 20%, #3E6C9A 75%, #6E93B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--ink-soft); max-width: 34em; margin-bottom: 48px; }

/* Page hero (sub pages) */
.page-hero { padding: clamp(90px, 10vw, 140px) 0 clamp(60px, 7vw, 90px); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.page-hero .lead { margin-top: 28px; }

/* ============================================
   Inverted (sumi) sections
   ============================================ */
.inverted {
  background: var(--ink);
  color: #fff;
}
.inverted .lead, .inverted .note { color: #A9A5A0; }

/* ============================================
   Stats band
   ============================================ */
.stats .grid { row-gap: 64px; }
.stat { grid-column: span 4; }
.stat-num {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(3.2rem, 6.5vw, 5rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.stat-num .stat-unit {
  font-family: var(--font-ja);
  font-size: 0.36em;
  font-weight: 700;
  margin-left: 0.2em;
}
.stat-label {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-dark);
  font-size: 14px;
  color: #A9A5A0;
}
.stats .note { grid-column: 1 / -1; margin-top: 8px; }

/* はじめやすさ（白背景バリアント） */
.start .stat { grid-column: span 5; }
.start .stat-num { color: var(--navy); }
.start .stat-label { border-top-color: var(--line); color: var(--ink-soft); }

/* ============================================
   Section header (asymmetric)
   ============================================ */
.section-head { grid-column: 1 / span 5; }
.section-body { grid-column: 7 / -1; }

/* ============================================
   Service list (index)
   ============================================ */
.service-item {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.service-item:last-of-type { border-bottom: 1px solid var(--line); }
.service-num {
  grid-column: 1 / span 1;
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: 0.1em;
}
.service-title { grid-column: 2 / span 4; }
.service-desc { grid-column: 7 / -1; color: var(--ink-soft); }

/* ============================================
   Steps (仕組み 3-step)
   ============================================ */
.steps { row-gap: 48px; }
.step {
  grid-column: span 4;
  border-top: 1px solid var(--ink);
  padding-top: 28px;
}
.inverted .step { border-top-color: var(--line-dark); }
.step-num {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--orange-deep);
  display: block;
  margin-bottom: 16px;
}
.inverted .step-num { color: #F5A94F; }
.step h3 { margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--ink-soft); }
.inverted .step p { color: #A9A5A0; }

/* ============================================
   Definition table (service detail / company / legal)
   ============================================ */
.def-table { width: 100%; border-collapse: collapse; }
.def-table th, .def-table td {
  text-align: left;
  vertical-align: top;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.def-table th {
  width: 220px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.def-table td { color: var(--ink-soft); }

/* 表セル内の箇条書き（／区切りの代わり・スマホで読みやすく） */
.cell-list { list-style: none; margin: 0; padding: 0; }
.cell-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 8px;
  line-height: 1.7;
}
.cell-list li:last-child { margin-bottom: 0; }
.cell-list li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--orange-deep);
}

/* 住所ブロック（本社・支店を段組みで見せる） */
.addr { margin-bottom: 16px; line-height: 1.8; }
.addr:last-child { margin-bottom: 0; }
.addr-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin-bottom: 2px;
}

/* ============================================
   Comparison table (flow)
   ============================================ */
.compare { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare th, .compare td {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 15px;
}
.compare thead th {
  font-size: 13px;
  letter-spacing: 0.05em;
  padding-bottom: 16px;
}
.compare .row-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  width: 26%;
}
.compare .col-old { color: var(--ink-soft); }
.compare .col-wk {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}
.compare thead .col-wk { font-weight: 700; }
.compare tbody tr:last-child .col-wk { border-bottom-color: var(--navy); }

/* ============================================
   Service detail blocks
   ============================================ */
.service-block { padding: 72px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; padding-top: 0; }
.service-block .grid { row-gap: 40px; }
.service-block .section-head h2 { margin-bottom: 16px; }
.service-block .section-head p { color: var(--ink-soft); font-size: 15px; }

/* ============================================
   CTA band
   ============================================ */
.cta-band { text-align: left; }
.cta-band h2 { margin-bottom: 24px; }
.cta-band .lead { margin-bottom: 48px; }
.cta-actions { display: flex; gap: 20px; flex-wrap: wrap; }

/* ============================================
   Forms
   ============================================ */
.form-grid { display: grid; gap: 44px; max-width: 640px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.field .req {
  font-size: 11px;
  color: var(--orange-deep);
  font-weight: 600;
  margin-left: 8px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
}
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: var(--font-ja);
  font-size: 16px;
  padding: 10px 2px;
  border-radius: 0;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-bottom-color: var(--navy);
  border-bottom-width: 2px;
}
.field textarea { min-height: 160px; resize: vertical; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: 100px 0 48px;
}
.footer-top { row-gap: 48px; margin-bottom: 96px; }
.footer-brand { grid-column: 1 / span 6; }
.footer-brand .en-label { color: #8FA6BC; }
.footer-copy { font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; line-height: 1.5; }
.footer-nav {
  grid-column: 8 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  align-content: start;
}
.footer-nav a { font-size: 14px; color: #C9C6C1; transition: opacity 0.3s ease; }
.footer-nav a:hover { opacity: 0.6; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 12px;
  color: #A9A5A0;
  letter-spacing: 0.08em;
}

/* ============================================
   Reveal animation
   ============================================ */
/* JSが有効なとき（html.js）だけ初期非表示にする — JS無効環境でも内容が見える */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 24px 24px;
  }
  .site-nav a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav .nav-cta { text-align: center; margin-top: 16px; padding: 14px 28px; }
  .nav-open .site-nav { display: flex; }
  .nav-toggle { display: block; }

  .section-head { grid-column: 1 / -1; }
  .section-body { grid-column: 1 / -1; }

  .service-num { grid-column: 1 / -1; }
  .service-title { grid-column: 1 / -1; }
  .service-desc { grid-column: 1 / -1; }
  .service-item { padding: 40px 0; }

  .stat, .start .stat { grid-column: 1 / -1; }
  .step { grid-column: 1 / -1; }

  .footer-brand { grid-column: 1 / -1; }
  .footer-nav { grid-column: 1 / -1; }

  .compare { table-layout: auto; }
  .compare th, .compare td { padding: 16px 10px; font-size: 13px; }
  .compare .row-label { width: auto; }

  .def-table th { width: auto; display: block; padding-bottom: 0; border-bottom: 0; }
  .def-table td { display: block; padding-top: 6px; }
}

/* ============================================
   News（お知らせ）
   ============================================ */
.news { padding: clamp(48px, 6vw, 80px) 0; }
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.news-date {
  font-family: var(--font-en);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.news-tag {
  font-size: 11px;
  line-height: 1.6;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 2px;
  padding: 1px 10px;
  white-space: nowrap;
}
.news-tag--holiday { color: var(--orange-deep); border-color: var(--orange-deep); }
.news-title { font-size: 15px; }

/* ============================================
   Notice band（休業帯・script.jsが注入する）
   ============================================ */
.notice-band {
  background: var(--navy);
  color: #F6F5F3;
  font-size: 13px;
  line-height: 1.7;
  padding: 12px 0;
}
.notice-band .container {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
}
.notice-label { color: #F5A94F; font-weight: 700; white-space: nowrap; }