/* ============================================
   Kiraboshi Corporate Site - Common Stylesheet
   Design Tokens: Navy #0E1E3A × Amber #D8932F
   ============================================ */

:root {
  /* Color Tokens */
  --color-navy: #0E1E3A;
  --color-amber: #D8932F;
  --color-deep-blue: #123B63;
  --color-green: #2E7D5B;
  --color-off-white: #FAF8F3;
  --color-panel-gray: #F2EFE8;
  --color-ink: #1E2333;
  --color-medium-gray: #64748B;
  --color-border: #E5E7EB;
  --color-white: #FFFFFF;

  /* Typography */
  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;
  --font-sans: 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --font-num: 'Helvetica Neue', 'Arial', sans-serif;

  /* Spacing & Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --header-height-mobile: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14, 30, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(14, 30, 58, 0.08);
  --shadow-lg: 0 12px 32px rgba(14, 30, 58, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-off-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Heading - Mincho */
h1, h2, h3, h4, .heading-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }

p { font-size: 1rem; line-height: 1.8; }

a { color: var(--color-deep-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-amber); }

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

/* Numbers - Tabular */
.num, .num * {
  font-family: var(--font-num);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ============================================
   Marker (琥珀色マーカー - 蛍光ペン風)
   ============================================ */
.marker {
  background: linear-gradient(transparent 60%, rgba(216, 147, 47, 0.4) 60%);
  padding: 0 2px;
}

.marker-strong {
  background: linear-gradient(transparent 55%, rgba(216, 147, 47, 0.55) 55%);
  padding: 0 4px;
  font-weight: 700;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title .eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--color-amber);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.section-title h2 { margin-bottom: 1rem; }
.section-title p { color: var(--color-medium-gray); }

/* ============================================
   Header / Global Nav
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: 0.05em;
}
.logo .accent { color: var(--color-amber); }

.global-nav { display: flex; gap: 2rem; }
.global-nav a {
  font-size: 0.92rem;
  color: var(--color-ink);
  font-weight: 500;
  position: relative;
}
.global-nav a:hover { color: var(--color-amber); }
.global-nav a.is-active { color: var(--color-amber); }
.global-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--color-amber);
}

.header-cta { display: flex; gap: 0.75rem; align-items: center; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--color-amber);
  color: var(--color-white);
}
.btn-primary:hover {
  background: #c47e1d;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-secondary:hover {
  background: var(--color-deep-blue);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 1.5px solid var(--color-navy);
}
.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-white);
}
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-deep-blue) 100%);
  color: var(--color-white);
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('hero.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.35;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero h1 .marker {
  background: linear-gradient(transparent 60%, rgba(216, 147, 47, 0.7) 60%);
  color: var(--color-white);
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.9;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 720px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 880px;
}
.trust-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.25rem;
  border-radius: 6px;
  text-align: center;
}
.trust-card .num-large {
  font-family: var(--font-num);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--color-amber);
  display: block;
  line-height: 1.1;
}
.trust-card .label {
  font-size: 0.8rem;
  margin-top: 0.5rem;
  opacity: 0.9;
}

/* Page Hero (slim for sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-deep-blue) 100%);
  color: var(--color-white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 0.75rem; }
.page-hero .breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1rem;
}
.page-hero .breadcrumb a { color: var(--color-white); }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: all .25s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.2rem; }
.card p { color: var(--color-medium-gray); font-size: 0.95rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ============================================
   Numbers Section (数字で見るKiraboshi)
   ============================================ */
.stats-section {
  background: var(--color-panel-gray);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.stat-item {
  background: var(--color-white);
  padding: 2rem 1.25rem;
  border-radius: 8px;
  text-align: center;
  border-top: 4px solid var(--color-amber);
}
.stat-item .stat-num {
  font-family: var(--font-num);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-navy);
  display: block;
  line-height: 1.1;
}
.stat-item .stat-unit {
  font-size: 0.85rem;
  color: var(--color-medium-gray);
  margin-left: 0.25rem;
}
.stat-item .stat-label {
  font-size: 0.85rem;
  color: var(--color-ink);
  margin-top: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}
.stat-item .stat-note {
  font-size: 0.7rem;
  color: var(--color-medium-gray);
  margin-top: 0.4rem;
}

/* ============================================
   Reasons (5つの強み)
   ============================================ */
.reason-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.reason-num {
  font-family: var(--font-num);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-amber);
  line-height: 1;
  flex-shrink: 0;
  width: 60px;
}
.reason-body h3 { margin-bottom: 0.75rem; color: var(--color-navy); }
.reason-body p { color: var(--color-medium-gray); }

/* ============================================
   Steps / Flow
   ============================================ */
.flow-steps {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
}
.flow-step {
  flex: 0 0 240px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  scroll-snap-align: start;
}
.flow-step .step-num {
  display: inline-block;
  background: var(--color-amber);
  color: var(--color-white);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--font-num);
}
.flow-step h4 { color: var(--color-navy); margin-bottom: 0.5rem; font-size: 1.05rem; }
.flow-step p { font-size: 0.88rem; color: var(--color-medium-gray); line-height: 1.6; }

/* ============================================
   FAQ Accordion
   ============================================ */
.faq-list { max-width: 880px; margin: 0 auto; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-navy);
  font-size: 1rem;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  color: var(--color-amber);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--color-amber);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 1.5rem 1.5rem 3rem;
  color: var(--color-medium-gray);
  line-height: 1.8;
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
}

/* ============================================
   Forms
   ============================================ */
.form-section {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-ink);
}
.form-label .required {
  background: var(--color-amber);
  color: var(--color-white);
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  font-weight: 700;
}
.form-label .optional {
  background: var(--color-panel-gray);
  color: var(--color-medium-gray);
  font-size: 0.7rem;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  margin-left: 0.5rem;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--color-off-white);
  transition: border-color .2s, background .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-amber);
  background: var(--color-white);
}
.form-textarea { resize: vertical; min-height: 120px; }
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-off-white);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.92rem;
}
.checkbox-item input { accent-color: var(--color-amber); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 4rem 0 2rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .logo {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.8; opacity: 0.8; }
.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--color-amber); }
.role-separation {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--color-amber);
  padding: 1.25rem 1.5rem;
  border-radius: 4px;
  font-size: 0.82rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}
.role-separation strong { color: var(--color-amber); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   Sticky Mobile CTA
   ============================================ */
.sticky-mobile-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--color-white);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  gap: 0.5rem;
}
.sticky-mobile-cta .btn { flex: 1; padding: 0.85rem 0.5rem; font-size: 0.88rem; }

/* ============================================
   Mobile Menu Toggle
   ============================================ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 44px; height: 44px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-navy);
  margin: 5px auto;
  transition: transform .3s, opacity .3s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Utility
   ============================================ */
.text-center { text-align: center; }
.text-amber { color: var(--color-amber); }
.text-navy { color: var(--color-navy); }
.bg-panel { background: var(--color-panel-gray); }
.bg-white { background: var(--color-white); }
.bg-navy { background: var(--color-navy); color: var(--color-white); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.gap-2 { gap: 1rem; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-header { height: var(--header-height-mobile); }
  .global-nav {
    display: none;
    position: fixed;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-white);
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-top: 1px solid var(--color-border);
  }
  .global-nav.is-open { display: flex; }
  .global-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--color-border);
  }
  .menu-toggle { display: block; }
  .header-cta { display: none; }

  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }

  .hero { padding: 3rem 0; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .trust-cards { grid-template-columns: 1fr; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .reason-card { flex-direction: column; gap: 0.75rem; }
  .reason-num { width: auto; font-size: 2rem; }

  .form-section { padding: 1.75rem; }
  .checkbox-group { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .sticky-mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}
