/* ==========================================================================
   フローページ共通CSS - flow.css
   行政書士法人Tree — Forest Green × Gold Premium Design
   ========================================================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors */
  --green-dark: #1a3329;
  --green: #2d4a3a;
  --green-mid: #3d6b52;
  --green-light: #4a8c65;
  --green-pale: #e8f0eb;
  --gold: #b5985a;
  --gold-light: #c9ad6e;
  --gold-pale: #f5eed9;
  --gold-glow: rgba(181, 152, 90, 0.15);

  /* Neutrals */
  --cream: #faf8f4;
  --cream-dark: #f2efe8;
  --white: #ffffff;
  --text-primary: #1a2e24;
  --text-secondary: #4a5d52;
  --text-light: #6b7d72;
  --border-color: #d8d2c8;
  --border-light: #e8e4dc;

  /* Typography */
  --font-sans: 'Noto Sans JP', sans-serif;
  --font-serif: 'Noto Serif JP', serif;

  /* Spacing */
  --section-padding: 64px 0;
  --container-padding: 0 20px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(26, 51, 41, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 51, 41, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 51, 41, 0.10);
  --shadow-card: 0 2px 12px rgba(26, 51, 41, 0.06);
  --shadow-card-hover: 0 12px 40px rgba(26, 51, 41, 0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text-primary);
  background: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* ---------- Utility ---------- */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Scroll animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
  text-align: center;
  line-height: 1.4;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(181, 152, 90, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(181, 152, 90, 0.4);
}

.btn--green {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45, 74, 58, 0.25);
}

.btn--green:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(45, 74, 58, 0.35);
}

.btn--line {
  background: #06c755;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(6, 199, 85, 0.25);
}

.btn--line:hover {
  background: #05b34c;
  transform: translateY(-2px);
}

.btn--phone {
  background: var(--green-dark);
  color: var(--white);
}

.btn--phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 51, 41, 0.3);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.05rem;
}

.btn i { font-size: 1.1em; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  transition: box-shadow var(--transition-base);
  transform: translate3d(0, 0, 0);
}

.header--scrolled {
  box-shadow: 0 1px 16px rgba(26, 51, 41, 0.08);
}

.header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo img { height: 36px; width: auto; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header__phone {
  display: none;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.header__phone i { color: var(--green-mid); }

/* Hamburger */
.header__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1010;
  background: none;
  border: none;
}

.header__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base);
  border-radius: 2px;
}

.header__hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.header__hamburger.active span:nth-child(2) { opacity: 0; }
.header__hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.header__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-base);
  z-index: 1005;
  padding: 80px 30px 30px;
  overflow-y: auto;
}

.header__mobile-menu.active { right: 0; }

.header__mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(26, 51, 41, 0.45);
  z-index: 1004;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
  backdrop-filter: blur(2px);
}

.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Hero — Compact
   ========================================================================== */
.hero-compact {
  position: relative;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 40%, var(--green-mid) 100%);
  padding: 110px 0 48px;
  overflow: hidden;
  text-align: center;
}

.hero-compact::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(181, 152, 90, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-compact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-compact__container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-compact__label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-compact__title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.hero-compact__subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-compact__subtitle em {
  font-style: normal;
  color: var(--gold-light);
  font-weight: 700;
}

/* ==========================================================================
   Flow Timeline
   ========================================================================== */
.flow-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.flow-section__heading {
  text-align: center;
  margin-bottom: 48px;
}

.flow-section__heading-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.flow-section__heading-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* Timeline container */
.flow-timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical gold line */
.flow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 19px;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(181, 152, 90, 0.1) 0%,
    rgba(181, 152, 90, 0.35) 10%,
    rgba(181, 152, 90, 0.35) 90%,
    rgba(181, 152, 90, 0.1) 100%
  );
}

/* Each step */
.flow-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 16px;
}

.flow-step:last-child {
  margin-bottom: 0;
}

/* Number circle */
.flow-step__number {
  position: absolute;
  left: -40px;
  top: 24px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(26, 51, 41, 0.2);
}

/* Last step: gold accent */
.flow-step--final .flow-step__number {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--white);
  box-shadow: 0 2px 12px rgba(181, 152, 90, 0.35);
}

/* Card */
.flow-step__card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.flow-step__card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.flow-step--final .flow-step__card {
  border-color: rgba(181, 152, 90, 0.3);
  background: linear-gradient(135deg, var(--white) 0%, rgba(181, 152, 90, 0.05) 100%);
}

.flow-step__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(45, 74, 58, 0.08), rgba(45, 74, 58, 0.04));
  border-radius: 50%;
  color: var(--green);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.flow-step--final .flow-step__icon {
  background: linear-gradient(135deg, rgba(181, 152, 90, 0.12), rgba(181, 152, 90, 0.06));
  color: var(--gold);
}

.flow-step__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow-step--final .flow-step__title {
  color: var(--gold);
}

.flow-step__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Note box inside card */
.flow-step__note {
  margin-top: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(45, 74, 58, 0.04) 0%, rgba(181, 152, 90, 0.06) 100%);
  border: 1px solid rgba(181, 152, 90, 0.15);
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.flow-step__note strong {
  color: var(--green);
  font-weight: 700;
}

/* Checklist inside note */
.flow-step__checklist {
  margin-top: 6px;
}

.flow-step__checklist li {
  padding: 2px 0 2px 20px;
  position: relative;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.flow-step__checklist li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--green-mid);
  font-size: 0.7rem;
}

/* ==========================================================================
   Price Link Section
   ========================================================================== */
.price-link-section {
  padding: 0 0 64px;
  background: var(--cream);
  text-align: center;
}

.price-link-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.price-link-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.price-link-card__title i {
  color: var(--gold);
  margin-right: 6px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
  padding: 64px 0;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 50%, var(--green-mid) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(181, 152, 90, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.cta-section__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  margin-bottom: 32px;
}

.cta-section__buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
}

.cta-section__buttons .btn { width: 100%; }

.cta-section__hours {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 48px 0 100px;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer__logo { margin-bottom: 20px; }

.footer__logo img {
  width: auto;
  height: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
}

.footer__info { margin-bottom: 24px; }

.footer__detail {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer__detail a { color: var(--gold-light); }
.footer__detail a:hover { text-decoration: underline; }

.footer__map {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.footer__map iframe { width: 100%; height: 100%; border: none; }

.footer__copy {
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- Mobile Fixed Bar ---------- */
.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 -2px 16px rgba(26, 51, 41, 0.1);
  z-index: 999;
  display: flex;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translate3d(0, 0, 0);
}

.mobile-bar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--white);
  gap: 2px;
  text-align: center;
  transition: opacity var(--transition-fast);
}

.mobile-bar__item:active { opacity: 0.8; }
.mobile-bar__item i { font-size: 1.1rem; }

.mobile-bar__item--phone { background: var(--green); }
.mobile-bar__item--line { background: #048343; }
.mobile-bar__item--mail { background: #8b7355; }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  padding: 12px 0;
  background: var(--cream-dark);
}

.breadcrumb__list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-light);
}

.breadcrumb__list a {
  color: var(--green-mid);
}

.breadcrumb__list a:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--border-color);
  font-size: 0.65rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 480px) {
  .hero-compact__title { font-size: 2.6rem; }

  .cta-section__buttons {
    flex-direction: row;
    max-width: 700px;
  }

  .cta-section__buttons .btn { width: auto; flex: 1; }
}

@media (min-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 32px;
  }

  .header__container { height: 72px; }
  .header__phone { display: flex; }
  .header__hamburger { display: none; }

  .hero-compact { padding: 120px 0 52px; }
  .hero-compact__title { font-size: 3rem; }

  .flow-timeline {
    padding-left: 56px;
  }

  .flow-timeline::before {
    left: 27px;
  }

  .flow-step__number {
    left: -56px;
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
    top: 20px;
  }

  .flow-step__card {
    padding: 28px 32px;
  }

  .flow-section__heading-title {
    font-size: 1.7rem;
  }

  .cta-section__title { font-size: 2rem; }

  .footer__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__map { height: 100%; min-height: 240px; }
  .mobile-bar { display: none; }
  .footer { padding-bottom: 48px; }
}

@media (min-width: 1024px) {
  .header__logo img { height: 40px; }
  .hero-compact__title { font-size: 3.2rem; }

  .flow-step__card {
    padding: 32px 36px;
  }
}

/* ---------- Small Mobile ---------- */
@media (max-width: 479px) {
  .hero-compact { padding: 100px 0 36px; }
  .hero-compact__title { font-size: 1.7rem; }
  .hero-compact__subtitle { font-size: 0.88rem; }

  .flow-timeline {
    padding-left: 32px;
  }

  .flow-timeline::before {
    left: 15px;
  }

  .flow-step__number {
    left: -32px;
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
    top: 20px;
  }

  .flow-step__card {
    padding: 18px 18px;
  }

  .flow-step__title { font-size: 0.98rem; }
  .flow-step__desc { font-size: 0.82rem; }
  .flow-step__note { padding: 10px 12px; font-size: 0.76rem; }

  .flow-section__heading-title { font-size: 1.25rem; }
  .flow-section__heading { margin-bottom: 36px; }

  .price-link-card { padding: 24px 20px; }
  .price-link-card__title { font-size: 0.95rem; }

  .cta-section { padding: 48px 0; }
  .cta-section__title { font-size: 1.3rem; }
  .cta-section__subtitle { font-size: 0.85rem; }
  .cta-section__buttons .btn { font-size: 0.92rem; padding: 14px 24px; }

  .footer__detail { font-size: 0.8rem; }
}

/* ==========================================================================
   Modal — Category Selector
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 51, 41, 0.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active { opacity: 1; }
.modal-overlay.hidden { display: none; }

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(26, 51, 41, 0.25);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal__header {
  padding: 28px 28px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(160deg, var(--green-dark), var(--green));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  position: relative;
}

.modal__header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.modal__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
}

.modal__body {
  padding: 16px 24px 20px;
}

.modal__group-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0.06em;
  margin: 10px 0 4px;
  padding-left: 2px;
}

.modal__group-label:first-child {
  margin-top: 0;
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.modal__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 8px 12px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  text-align: center;
}

.modal__item:hover {
  border-color: var(--green-mid);
  background: var(--green-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(45, 74, 58, 0.1);
}

.modal__item:active {
  transform: translateY(0);
  background: var(--green-pale);
}

.modal__item-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.9rem;
}

.modal__item-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.modal__skip {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-top: 1px solid var(--border-light);
  background: var(--cream);
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.modal__skip:hover {
  background: var(--cream-dark);
  color: var(--green);
}

/* ==========================================================================
   Filter Bar
   ========================================================================== */
.filter-bar {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}

.filter-bar--shadow {
  box-shadow: 0 4px 16px rgba(26, 51, 41, 0.06);
}

.filter-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  border-color: var(--green-mid);
  color: var(--green);
  background: var(--green-pale);
}

.filter-btn--active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.filter-btn--active:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
}

/* ==========================================================================
   Flow Cards — Container & Card Layout
   ========================================================================== */
.flow-cards-section {
  padding: var(--section-padding);
  background: var(--cream);
}

.flow-card {
  max-width: 700px;
  margin: 0 auto 48px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.flow-card:last-child {
  margin-bottom: 0;
}

.flow-card--hidden {
  display: none;
}

.flow-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  background: linear-gradient(160deg, var(--green-dark) 0%, var(--green) 100%);
  border-bottom: 3px solid var(--gold);
}

.flow-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.flow-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.flow-card__desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.flow-card__body {
  padding: 32px 28px;
}

.flow-card__link {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-light);
}

/* ==========================================================================
   Responsive Additions
   ========================================================================== */
@media (min-width: 768px) {
  .filter-bar { top: 72px; }

  .filter-bar__inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .modal__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .flow-card__body {
    padding: 36px 36px;
  }
}

@media (max-width: 479px) {
  .filter-btn { padding: 5px 10px; font-size: 0.72rem; }

  .modal__grid { grid-template-columns: repeat(2, 1fr); }
  .modal__item { padding: 10px 6px 8px; }
  .modal__item-icon { width: 32px; height: 32px; font-size: 0.8rem; }
  .modal__item-name { font-size: 0.75rem; }
  .modal__title { font-size: 1.02rem; }

  .flow-card__header { padding: 18px 18px; gap: 12px; }
  .flow-card__icon { width: 40px; height: 40px; font-size: 1rem; }
  .flow-card__title { font-size: 1.1rem; }
  .flow-card__desc { font-size: 0.8rem; }
  .flow-card__body { padding: 24px 18px; }
  .flow-card { margin-bottom: 32px; }
}

/* ---------- Flow Step Badges ---------- */
.flow-step__badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.flow-badge {
  display: inline-block;
  padding: 3px 12px;
  background: linear-gradient(135deg, rgba(26,51,41,0.08) 0%, rgba(45,74,58,0.04) 100%);
  border: 1px solid rgba(45,74,58,0.15);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #2d4a3a;
  letter-spacing: 0.04em;
}


/* Plan variants inside flow step */
.flow-step__plans { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; }
.flow-plan-row { display: flex; align-items: baseline; gap: 8px; font-size: 0.8rem; line-height: 1.55; }
.flow-plan { display: inline-block; padding: 1px 8px; border-radius: 3px; font-size: 0.7rem; font-weight: 700; color: #fff; white-space: nowrap; letter-spacing: 0.03em; flex-shrink: 0; }
.flow-plan--std { background: #2563eb; }
.flow-plan--full { background: linear-gradient(135deg, #d4a017, #f5c842); }
.flow-plan-text { color: #555; }


/* Role indicator (サポート対応 / ご案内) */
.flow-step__role { margin-top: 8px; }
.flow-role { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 9999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.flow-role i { font-size: 0.7rem; }
.flow-role--support { background: rgba(45,74,58,0.08); color: #2d4a3a; border: 1px solid rgba(45,74,58,0.2); }
.flow-role--guide { background: rgba(181,152,90,0.08); color: #8b7355; border: 1px solid rgba(181,152,90,0.25); }


/* Section divider inside flow */
.flow-section-divider {
  position: relative;
  margin: 28px 0 22px;
  margin-left: -40px;
  padding-left: 40px;
}
.flow-section-divider__line { display: none; }
.flow-section-divider__label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 18px 24px 18px 56px;
  background: linear-gradient(135deg, #1a3329 0%, #2d4a3a 55%, #3d6b52 100%);
  border-radius: 10px;
  border: none;
  box-shadow: 0 6px 20px rgba(26, 51, 41, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
  max-width: 100%;
}
.flow-section-divider__label::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #d4a017, #f5c842, #b5985a);
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.45);
}
.flow-section-divider__label::after {
  content: '◆';
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  font-size: 14px;
  color: #f5c842;
  text-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
}
.flow-section-divider__title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.flow-section-divider__desc {
  font-size: 0.78rem;
  color: rgba(245, 245, 240, 0.82);
  margin-top: 6px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .flow-section-divider { margin-left: -24px; padding-left: 24px; margin: 22px 0 18px; }
  .flow-section-divider__label { padding: 14px 18px 14px 44px; }
  .flow-section-divider__label::after { left: 18px; }
  .flow-section-divider__title { font-size: 0.95rem; }
  .flow-section-divider__desc { font-size: 0.72rem; }
}


.flow-plan--marunage { background: linear-gradient(135deg, #d4a017, #f5c842); color: #fff; }
.flow-plan--mini { background: #64748b; color: #fff; }


/* Flow notice callout */
.flow-notice { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; margin: 0 0 18px; background: linear-gradient(135deg, rgba(181,152,90,0.08) 0%, rgba(212,160,23,0.05) 100%); border-left: 4px solid #b5985a; border-radius: 6px; }
.flow-notice__icon { flex-shrink: 0; color: #b5985a; font-size: 1.2rem; margin-top: 2px; }
.flow-notice__text strong { display: block; color: #1a3329; font-size: 0.9rem; font-weight: 700; margin-bottom: 3px; }
.flow-notice__text p { font-size: 0.82rem; color: #44483f; margin: 0; line-height: 1.65; }


/* hide mobile-bar */
.mobile-bar { display: none !important; }
