/* ==========================================================================
   薬学むすび - Main Stylesheet
   ========================================================================== */

/* CSS Variables - Color & Typography Tokens */
:root {
  /* Brand Colors - 明るめブルー基調 */
  --navy: #3a8dde;          /* メイン: 明るめのブルー */
  --navy-deep: #1d5a9c;     /* 締め: 深めのブルー */
  --navy-mid: #2e74c4;      /* 中間 */
  --navy-light: #6cb0ec;    /* 軽い水色 */
  --navy-pale: #e8f3fb;     /* 極淡い水色（背景用） */
  --red: #e63950;           /* アクセント赤(少しソフトに) */
  --red-deep: #c42b40;
  --gold: #c9a961;
  --gold-light: #e4c987;

  /* Neutrals */
  --paper: #fafdff;
  --paper-warm: #f0f6fb;
  --ink: #1e3a5f;           /* 文字: 紺系ダーク */
  --ink-soft: #4a6280;
  --gray: #8aa0b8;
    --gray-light: #d4dde8;
  --line: #e1ebf3;
  --white: #ffffff;

  /* Typography */
  --font-serif: 'Noto Serif JP', 'Yu Mincho', serif;
  --font-sans: 'Noto Sans JP', 'Yu Gothic', sans-serif;
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;

  /* Spacing */
  --container: 1200px;
  --container-wide: 1400px;
  --container-narrow: 980px;

  /* Effects */
  --shadow-soft: 0 4px 24px rgba(29, 90, 156, 0.08);
  --shadow-medium: 0 8px 40px rgba(29, 90, 156, 0.12);
  --shadow-strong: 0 16px 60px rgba(29, 90, 156, 0.18);
  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 32px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-jp {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

.logo-en {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.2em;
  margin-top: 4px;
}

.global-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.global-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
}

.global-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: var(--transition);
}

.global-nav a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 24px !important;
  border-radius: 2px;
  font-weight: 700 !important;
}

.nav-cta:hover {
  background: var(--red);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 32px 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(230, 57, 80, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(108, 176, 236, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  margin-bottom: 32px;
  font-style: italic;
}

.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title .accent {
  color: var(--gold-light);
  position: relative;
  display: inline-block;
}

.hero-title .accent::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--red);
  z-index: -1;
  opacity: 0.6;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}

.hero-stat {
  border-left: 1px solid rgba(201, 169, 97, 0.4);
  padding-left: 20px;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 36px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(215, 38, 56, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn-arrow {
  width: 20px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: var(--transition);
}

.btn-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn-primary:hover .btn-arrow,
.btn-secondary:hover .btn-arrow {
  width: 28px;
}

.hero-side {
  position: relative;
}

.hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 36px 32px;
  width: 280px;
  position: relative;
}

.hero-card::before {
  content: '01';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
}

.hero-card-label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}

.hero-card-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
}

.hero-card-link:hover {
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.5);
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 1; }
}

/* ==========================================================================
   Section Common
   ========================================================================== */
.section {
  padding: 120px 32px;
  position: relative;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-inner-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 24px;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.section-lead {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
}

/* ==========================================================================
   Diagnosis
   ========================================================================== */
.diagnosis {
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.diagnosis::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  opacity: 0.15;
}

.diagnosis::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  opacity: 0.08;
}

.diagnosis-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.diagnosis-intro-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 28px;
}

.diagnosis-intro-text h2 .em {
  color: var(--red);
}

.diagnosis-intro-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.diagnosis-types-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.diagnosis-type-card {
  background: var(--white);
  padding: 24px 20px;
  border-top: 3px solid var(--navy);
  position: relative;
  transition: var(--transition);
}

.diagnosis-type-card:nth-child(1) { border-top-color: var(--navy); }
.diagnosis-type-card:nth-child(2) { border-top-color: var(--navy-light); }
.diagnosis-type-card:nth-child(3) { border-top-color: var(--gold); }
.diagnosis-type-card:nth-child(4) { border-top-color: var(--red); }

.diagnosis-type-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.dtc-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}

.dtc-en {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 4px;
  font-weight: 600;
}

.dtc-jp {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.diagnosis-box {
  background: var(--white);
  border: 1px solid var(--line);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-medium);
}

.diagnosis-progress {
  height: 4px;
  background: var(--line);
  position: relative;
}

.diagnosis-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--red));
  width: 6.25%;
  transition: width 0.5s ease;
}

.diagnosis-progress-label {
  position: absolute;
  top: 12px;
  right: 32px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
}

.diagnosis-content {
  padding: 60px 60px 48px;
}

.diagnosis-question-wrap {
  display: none;
}

.diagnosis-question-wrap.active {
  display: block;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.dq-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.dq-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.1em;
}

.dq-divider {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.dq-type {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dq-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 40px;
}

.dq-options {
  display: grid;
  gap: 12px;
}

.dq-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--paper-warm);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  font-size: 0.95rem;
  color: var(--ink);
  transition: var(--transition);
}

.dq-option:hover {
  background: var(--white);
  border-color: var(--navy);
  transform: translateX(4px);
}

.dq-option.selected {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.dq-option-score {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red);
  min-width: 36px;
}

.dq-option.selected .dq-option-score {
  color: var(--gold-light);
}

.diagnosis-nav {
  padding: 24px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--paper-warm);
}

.diagnosis-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 20px;
  transition: var(--transition);
}

.diagnosis-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.diagnosis-nav-btn:not(:disabled):hover {
  color: var(--navy);
}

.diagnosis-counter {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.diagnosis-counter .current {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Diagnosis Result */
.diagnosis-result {
  display: none;
  padding: 80px 60px;
  text-align: center;
}

.diagnosis-result.active {
  display: block;
  animation: fadeUp 0.6s ease;
}

.result-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 16px;
}

.result-type-en {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.result-type-jp {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  position: relative;
  display: inline-block;
}

.result-type-jp::before,
.result-type-jp::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.result-type-jp::before { left: -50px; }
.result-type-jp::after { right: -50px; }

.result-description {
  font-size: 1.05rem;
  line-height: 2;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 60px;
}

.result-recommendations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
  text-align: left;
}

.result-rec {
  background: var(--paper-warm);
  padding: 32px 24px;
  border-top: 3px solid var(--red);
  position: relative;
}

.result-rec-num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.result-rec-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.5;
}

.result-rec-desc {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.result-scores {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: left;
}

.result-score-item {
  padding: 16px;
  background: var(--paper-warm);
  border-left: 3px solid var(--gray-light);
}

.result-score-item.is-recommended {
  border-left-color: var(--red);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.rsi-label {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.rsi-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.rsi-bar {
  height: 4px;
  background: var(--line);
  position: relative;
  margin-bottom: 6px;
}

.rsi-bar-fill {
  height: 100%;
  background: var(--navy);
  transition: width 0.8s ease;
}

.result-score-item.is-recommended .rsi-bar-fill {
  background: var(--red);
}

.rsi-score {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gray);
}

.result-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 40px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.result-cta:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(14, 33, 72, 0.3);
}

.result-restart {
  display: block;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: underline;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  position: relative;
  background: var(--paper);
  padding: 48px 40px;
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--line);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
  border-color: transparent;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--red);
  transition: width 0.5s ease;
}

.service-card:hover::before {
  width: 100%;
}

.service-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 24px;
  opacity: 0.15;
  position: absolute;
  top: 32px;
  right: 32px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border: 1px solid var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--navy);
  color: var(--white);
}

.service-card:hover .service-icon svg {
  stroke: var(--white);
}

.service-card-en {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 8px;
}

.service-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  line-height: 1.5;
}

.service-card-desc {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.service-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.service-card-features li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
}

.service-card-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--red);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--navy);
}

.service-card:hover .service-card-link {
  color: var(--red);
  border-color: var(--red);
}

/* ==========================================================================
   Schedule
   ========================================================================== */
.schedule {
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.schedule::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(108, 176, 236, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.schedule .section-title {
  color: var(--white);
}

.schedule .section-lead {
  color: rgba(255, 255, 255, 0.75);
}

.schedule .section-eyebrow {
  color: var(--gold-light);
}

.schedule .section-eyebrow::before,
.schedule .section-eyebrow::after {
  background: var(--gold);
}

.schedule-list {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
}

.schedule-item {
  display: grid;
  grid-template-columns: 200px 80px 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
}

.schedule-item:hover {
  padding-left: 16px;
}

.schedule-item:hover::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: var(--red);
}

.schedule-date {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.schedule-date-month {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.schedule-date-day {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
}

.schedule-date-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.schedule-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.schedule-place-area {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-place-region {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
}

.schedule-place-city {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}

.schedule-status {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.schedule-status.is-limited {
  border-color: var(--red);
  color: var(--red);
  background: rgba(215, 38, 56, 0.1);
}

.schedule-foot {
  text-align: center;
  margin-top: 60px;
  position: relative;
  z-index: 2;
}

.schedule-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 24px;
}

/* ==========================================================================
   University Connection
   ========================================================================== */
.university {
  background: var(--paper);
  position: relative;
}

.uni-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.uni-numbers {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.uni-num-item {
  border-left: 2px solid var(--red);
  padding-left: 32px;
}

.uni-num-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 8px;
}

.uni-num-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.uni-num-big {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.uni-num-unit {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}

.uni-num-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
}

.uni-text h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.6;
  margin-bottom: 24px;
}

.uni-text h3 .em {
  color: var(--red);
}

.uni-text p {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

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

.uni-feature {
  background: var(--white);
  padding: 32px 28px;
  border-top: 3px solid var(--navy);
  position: relative;
}

.uni-feature-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.2em;
}

.uni-feature-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.5;
}

.uni-feature-desc {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ==========================================================================
   Blog / News
   ========================================================================== */
.blog-section {
  background: var(--white);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.blog-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.blog-card-img {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative;
  overflow: hidden;
}

.blog-card-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 33, 72, 0.7), rgba(215, 38, 56, 0.2));
}

.blog-card-img-text {
  position: absolute;
  bottom: 20px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

.blog-card-body {
  padding: 28px 24px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--gray);
}

.blog-card-cat {
  background: var(--navy);
  color: var(--white);
  padding: 4px 12px;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.7;
  margin-bottom: 12px;
}

.blog-card-excerpt {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.blog-foot {
  text-align: center;
}

/* ==========================================================================
   SNS Section
   ========================================================================== */
.sns-section {
  background: var(--paper-warm);
  padding: 100px 32px;
}

.sns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
}

.sns-card {
  background: var(--white);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 4px solid var(--navy);
  transition: var(--transition);
}

.sns-card.is-line { border-top-color: #06c755; }
.sns-card.is-ig { border-top-color: #e1306c; }

.sns-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.sns-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.sns-card.is-line .sns-card-icon { color: #06c755; }
.sns-card.is-ig .sns-card-icon { color: #e1306c; }

.sns-card-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.sns-card-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.sns-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

.sns-card.is-line .sns-card-btn { background: #06c755; }
.sns-card.is-ig .sns-card-btn { background: #e1306c; }

.sns-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta {
  background: var(--navy-deep);
  color: var(--white);
  padding: 120px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(108, 176, 236, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(230, 57, 80, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

.cta-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.cta-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.cta h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cta p {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #0d2848;
  color: rgba(255, 255, 255, 0.7);
}

.footer-top {
  padding: 80px 32px 60px;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.footer-top .footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr;
  gap: 60px;
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
}

.footer-service-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-col a:hover {
  color: var(--gold-light);
}

.footer-sns h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  margin-bottom: 20px;
  text-transform: uppercase;
}

.sns-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--white);
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.sns-link.instagram:hover {
  background: rgba(225, 48, 108, 0.15);
  border-left-color: #e1306c;
}

.sns-link.line:hover {
  background: rgba(6, 199, 85, 0.15);
  border-left-color: #06c755;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 32px;
}

.company-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.company-name {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.copyright {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner,
  .diagnosis-intro,
  .uni-hero,
  .footer-top .footer-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-side {
    display: none;
  }

  .services-grid,
  .result-recommendations,
  .blog-grid,
  .uni-features,
  .sns-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .schedule-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .schedule-date {
    align-items: center;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    padding: 100px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    box-shadow: var(--shadow-strong);
  }

  .global-nav.active {
    transform: translateX(0);
  }

  .global-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .global-nav a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .global-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
  }

  .hamburger {
    display: flex;
    z-index: 101;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .section {
    padding: 80px 24px;
  }

  .hero {
    padding: 120px 24px 60px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .diagnosis-content,
  .diagnosis-nav,
  .diagnosis-result {
    padding-left: 28px;
    padding-right: 28px;
  }

  .result-type-jp::before,
  .result-type-jp::after {
    display: none;
  }

  .result-scores {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header-inner {
    padding: 14px 20px;
  }

  .logo-img {
    height: 26px;
  }

  .logo-jp {
    font-size: 0.95rem;
  }

  .logo-en {
    font-size: 0.6rem;
  }

  .diagnosis-types-preview {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .company-info {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Sub Page Common
   ========================================================================== */
.sub-hero {
  position: relative;
  padding: 140px 32px 100px;
  background: var(--navy-deep);
  color: var(--white);
  overflow: hidden;
}

.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(230, 57, 80, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(108, 176, 236, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 50%, var(--navy) 100%);
  z-index: 0;
}

.sub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 1;
}

.sub-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
}

.sub-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px;
}

.sub-hero-breadcrumb a:hover {
  color: var(--gold-light);
}

.sub-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: center;
}

.sub-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.sub-hero-title .accent {
  color: var(--gold-light);
  position: relative;
  display: inline-block;
}

.sub-hero-title .accent::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--red);
  z-index: -1;
  opacity: 0.6;
}

.sub-hero-subtitle {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 540px;
  margin-bottom: 48px;
}

.sub-hero-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.sub-hero-side {
  position: relative;
}

/* ==========================================================================
   Problem Section
   ========================================================================== */
.problem-section {
  background: var(--paper-warm);
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.problem-card {
  background: var(--white);
  padding: 40px 32px;
  border-top: 3px solid var(--red);
  position: relative;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.problem-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--red);
  line-height: 1;
  margin-bottom: 24px;
  font-style: italic;
}

.problem-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 16px;
}

.problem-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.problem-conclusion {
  text-align: center;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--line);
}

.problem-conclusion p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--ink);
}

.problem-conclusion strong {
  color: var(--red);
  font-size: 1.2rem;
}

/* ==========================================================================
   Difference Section
   ========================================================================== */
.difference-section {
  background: var(--white);
}

.difference-list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.difference-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 60px;
  align-items: start;
}

.diff-num {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.2em;
  padding-top: 8px;
  position: relative;
}

.diff-num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 60px;
  height: 1px;
  background: var(--red);
}

.diff-title {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 24px;
}

.diff-desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 32px;
}

.diff-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.diff-compare-col {
  padding: 24px;
  position: relative;
}

.diff-compare-col.is-bad {
  background: rgba(138, 160, 184, 0.08);
  border-left: 3px solid var(--gray);
}

.diff-compare-col.is-good {
  background: var(--navy-pale);
  border-left: 3px solid var(--navy);
}

.dcc-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

.diff-compare-col.is-bad .dcc-label {
  color: var(--gray);
}

.diff-compare-col.is-good .dcc-label {
  color: var(--navy);
}

.diff-compare-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.diff-compare-col li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 16px;
  position: relative;
}

.diff-compare-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: currentColor;
}

.diff-compare-col.is-good li::before {
  background: var(--navy);
}

.diff-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.diff-feature {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--paper-warm);
}

.df-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.diff-feature h4 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.diff-feature p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

.diff-result {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  margin-top: 24px;
}

.dr-arrow {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-light);
}

.diff-result p {
  font-size: 0.95rem;
  line-height: 1.9;
}

.diff-result strong {
  color: var(--gold-light);
}

/* ==========================================================================
   Types Section
   ========================================================================== */
.types-section {
  background: var(--paper-warm);
}

.types-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.type-card {
  background: var(--white);
  padding: 48px 40px;
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--line);
}

.type-card.is-main {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-color: transparent;
}

.type-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.type-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  padding: 6px 14px;
  background: var(--gold);
  color: var(--navy-deep);
  margin-bottom: 24px;
}

.type-badge.is-sub {
  background: var(--navy);
  color: var(--white);
}

.type-en {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  color: var(--red);
}

.type-card.is-main .type-en {
  color: var(--gold-light);
}

.type-jp {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.5;
  color: var(--navy-deep);
}

.type-card.is-main .type-jp {
  color: var(--white);
}

.type-desc {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.type-card.is-main .type-desc {
  color: rgba(255, 255, 255, 0.85);
}

.type-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.type-features li {
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.7;
}

.type-card.is-main .type-features li {
  color: rgba(255, 255, 255, 0.85);
}

.type-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--red);
}

.type-card.is-main .type-features li::before {
  background: var(--gold-light);
}

.type-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--navy);
}

.type-card.is-main .type-link {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* ==========================================================================
   Flow Section
   ========================================================================== */
.flow-section {
  background: var(--white);
}

.flow-timeline {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.flow-timeline::before {
  content: '';
  position: absolute;
  left: 120px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.flow-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 60px;
  position: relative;
  padding-bottom: 48px;
}

.flow-item::after {
  content: '';
  position: absolute;
  left: 115px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--navy);
  z-index: 1;
}

.flow-item.is-highlight::after {
  background: var(--red);
  border-color: var(--red);
  width: 13px;
  height: 13px;
  left: 114px;
}

.flow-time {
  text-align: right;
  padding-top: 4px;
}

.ft-hour {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.05em;
  line-height: 1;
}

.ft-divider {
  width: 30px;
  height: 1px;
  background: var(--gray-light);
  margin: 12px 0 12px auto;
}

.ft-duration {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.flow-content {
  padding-left: 30px;
}

.fc-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 8px;
}

.fc-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
  line-height: 1.5;
}

.fc-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.fc-detail {
  background: var(--paper-warm);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fc-detail-item {
  display: flex;
  gap: 16px;
  align-items: start;
}

.fcd-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: var(--navy);
  padding: 4px 10px;
  flex-shrink: 0;
  letter-spacing: 0.1em;
}

.fc-detail-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--navy-deep);
  margin-bottom: 6px;
}

.fc-detail-item p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ==========================================================================
   Results Section
   ========================================================================== */
.results-section {
  background: var(--paper-warm);
}

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

.result-card {
  background: var(--white);
  padding: 40px 32px;
  text-align: center;
  border-top: 3px solid var(--navy);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.result-card-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}

.rc-unit {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-left: 4px;
}

.result-card-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}

.result-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* ==========================================================================
   Schedule Sub Type Label
   ========================================================================== */
.schedule-type {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(201, 169, 97, 0.2);
  color: var(--gold-light);
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.schedule-type.is-dialogue {
  background: rgba(108, 176, 236, 0.2);
  color: var(--navy-light);
}

.schedule-place-detail {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  line-height: 1.6;
}

/* ==========================================================================
   Price Section
   ========================================================================== */
.price-section {
  background: var(--white);
}

.price-box {
  background: var(--navy-pale);
  padding: 60px;
  position: relative;
  border-top: 4px solid var(--navy);
}

.price-main {
  text-align: center;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.price-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}

.price-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  color: var(--navy-deep);
  font-family: var(--font-display);
}

.price-currency {
  font-size: 2rem;
  font-weight: 500;
}

.price-num {
  font-size: 4.5rem;
  font-weight: 600;
  line-height: 1;
}

.price-unit {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-left: 4px;
}

.price-tax {
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 12px;
  letter-spacing: 0.1em;
}

.price-includes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.price-includes li {
  font-size: 0.95rem;
  padding-left: 28px;
  position: relative;
  color: var(--ink);
  line-height: 1.7;
}

.price-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.price-discount {
  padding: 24px 28px;
  background: var(--white);
  border-left: 4px solid var(--red);
  position: relative;
}

.pd-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  padding: 4px 12px;
  background: var(--red);
  color: var(--white);
  margin-bottom: 12px;
}

.price-discount p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.price-discount strong {
  color: var(--navy-deep);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  background: var(--paper-warm);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--white);
  border-left: 3px solid var(--navy);
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-soft);
}

.faq-item[open] {
  border-left-color: var(--red);
}

.faq-item summary {
  padding: 24px 32px;
  cursor: pointer;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy-deep);
  position: relative;
  list-style: none;
  padding-right: 60px;
  line-height: 1.6;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--navy);
  transition: var(--transition);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--red);
}

.faq-answer {
  padding: 0 32px 28px;
}

.faq-answer p {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--ink-soft);
}

/* ==========================================================================
   Sub Page Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .sub-hero-grid {
    grid-template-columns: 1fr;
  }

  .sub-hero-side {
    display: none;
  }

  .problem-grid,
  .results-grid,
  .diff-features {
    grid-template-columns: 1fr;
  }

  .difference-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .diff-num::after {
    width: 40px;
  }

  .diff-compare {
    grid-template-columns: 1fr;
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

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

  .flow-item {
    grid-template-columns: 60px 1fr;
    gap: 30px;
  }

  .flow-item::after {
    left: 55px;
  }

  .flow-item.is-highlight::after {
    left: 54px;
  }

  .ft-hour {
    font-size: 1.2rem;
  }

  .flow-content {
    padding-left: 20px;
  }

  .price-box {
    padding: 40px 24px;
  }
}

/* ==========================================================================
   Blog Public Pages
   ========================================================================== */

/* Blog Page Hero */
.blog-page-hero {
  padding: 140px 32px 80px;
  background: var(--navy-deep);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.blog-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 50%, rgba(108, 176, 236, 0.25) 0%, transparent 50%),
    linear-gradient(135deg, var(--navy-deep), var(--navy));
}

.blog-page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.blog-page-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 24px 0 24px;
  letter-spacing: 0.02em;
}

.blog-page-subtitle {
  font-size: 1rem;
  line-height: 2;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto;
}

/* Category Filter */
.blog-cat-filter {
  padding: 32px 24px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.blog-filter-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.cat-chip {
  display: inline-block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: all 0.2s;
}

.cat-chip:hover {
  border-color: var(--cat-color, var(--navy));
  color: var(--cat-color, var(--navy));
}

.cat-chip.is-active {
  background: var(--cat-color, var(--navy));
  color: var(--white);
  border-color: var(--cat-color, var(--navy));
}

/* Blog List */
.blog-list-section {
  background: var(--white);
}

.blog-empty {
  text-align: center;
  padding: 80px 0;
  color: var(--gray);
}

.blog-empty p {
  font-size: 1rem;
  color: var(--gray);
}

/* Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 64px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.page-link:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.page-link.is-current {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ==========================================================================
   Article (Single Post)
   ========================================================================== */
.blog-article {
  background: var(--white);
}

.article-hero {
  padding: 120px 32px 60px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.article-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
}

.article-breadcrumb {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.article-breadcrumb a:hover {
  color: var(--gold-light);
}

.article-cat {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 16px;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 24px;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.article-meta {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.7);
}

.article-updated {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.article-eyecatch {
  max-width: 1080px;
  margin: -40px auto 0;
  padding: 0 32px;
  position: relative;
  z-index: 3;
}

.article-eyecatch img {
  width: 100%;
  height: auto;
  box-shadow: var(--shadow-strong);
}

.article-body {
  padding: 80px 32px;
}

.article-content {
  max-width: 760px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.1;
  color: var(--ink);
}

.article-content p {
  margin-bottom: 1.8em;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--navy-deep);
  border-left: 4px solid var(--red);
  padding-left: 20px;
  margin: 3em 0 1.2em;
  line-height: 1.6;
}

.article-content h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin: 2.5em 0 1em;
  line-height: 1.6;
}

.article-content blockquote {
  border-left: 4px solid var(--navy-light);
  background: var(--navy-pale);
  padding: 20px 28px;
  margin: 2em 0;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.article-content ul,
.article-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.8em;
}

.article-content ul li,
.article-content ol li {
  margin-bottom: 0.6em;
  line-height: 2;
}

.article-content ul li {
  list-style: none;
  position: relative;
  padding-left: 24px;
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 12px;
  height: 1px;
  background: var(--red);
}

.article-content ol {
  list-style: decimal;
}

.article-content a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s;
}

.article-content a:hover {
  color: var(--red-deep);
}

.article-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2em auto;
}

.article-content strong {
  color: var(--navy-deep);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(201, 169, 97, 0.3) 65%);
  padding: 0 2px;
}

.article-content em {
  font-style: italic;
  color: var(--navy);
}

.article-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 3em auto;
  width: 60px;
}

.article-foot {
  padding: 40px 32px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  padding: 12px 24px;
  border: 1px solid var(--navy);
  transition: all 0.2s;
}

.article-back-link:hover {
  background: var(--navy);
  color: var(--white);
}

.other-posts-section {
  background: var(--paper-warm);
}

/* Eyecatch in blog cards */
.blog-card-img {
  background-color: var(--navy);
}

@media (max-width: 760px) {
  .article-hero {
    padding: 100px 24px 40px;
  }

  .article-eyecatch {
    padding: 0 16px;
    margin-top: -24px;
  }

  .article-body {
    padding: 48px 24px;
  }

  .article-content {
    font-size: 1rem;
    line-height: 2;
  }

  .blog-cat-filter {
    padding: 24px 16px;
  }

  .cat-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   404 Error Page
   ========================================================================== */
.error-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 32px 80px;
  background: var(--paper-warm);
  position: relative;
  overflow: hidden;
}

.error-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border: 1px solid var(--navy);
  border-radius: 50%;
  opacity: 0.1;
}

.error-section::after {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  border: 1px solid var(--red);
  border-radius: 50%;
  opacity: 0.1;
}

.error-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
}

.error-number {
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 14rem);
  font-weight: 500;
  color: var(--navy);
  line-height: 0.9;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  position: relative;
}

.error-number::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--red);
}

.error-eyebrow {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--red);
  margin-bottom: 24px;
}

.error-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 32px;
}

.error-desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  margin-bottom: 48px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Contact Form
   ========================================================================== */
.contact-section {
  background: var(--white);
}

.contact-intro {
  text-align: center;
  margin-bottom: 60px;
}

.contact-intro .section-title {
  margin-bottom: 16px;
}

.contact-form {
  background: var(--paper-warm);
  padding: 48px;
  border-top: 4px solid var(--navy);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.required {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  padding: 2px 8px;
  margin-left: 8px;
  letter-spacing: 0.05em;
  border-radius: 2px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(58, 141, 222, 0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

.form-radios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.form-radio-label,
.form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  font-size: 0.92rem;
  color: var(--ink);
  transition: all 0.2s;
}

.form-radio-label:hover,
.form-checkbox-label:hover {
  border-color: var(--navy);
}

.form-radio-label input,
.form-checkbox-label input {
  cursor: pointer;
}

.form-radio-label input:checked + span,
.form-checkbox-label input:checked + span {
  font-weight: 600;
  color: var(--navy);
}

.form-field-agreement {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.form-checkbox-label a {
  color: var(--navy);
  text-decoration: underline;
}

.form-actions {
  text-align: center;
  margin-top: 40px;
}

.btn-submit {
  font-size: 1.05rem;
  padding: 20px 60px;
  letter-spacing: 0.1em;
}

.form-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--gray);
}

.form-alert {
  padding: 20px 24px;
  margin-bottom: 32px;
  border-left: 4px solid;
  background: var(--white);
}

.form-alert-error {
  border-color: var(--red);
  background: rgba(230, 57, 80, 0.05);
}

.form-alert strong {
  display: block;
  margin-bottom: 12px;
  color: var(--red);
}

.form-alert ul {
  list-style: disc;
  padding-left: 20px;
}

.form-alert li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 4px;
}

.contact-alt {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.contact-alt-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.contact-alt p {
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.contact-alt-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 540px;
  margin: 0 auto;
}

.cai-item {
  padding: 16px;
  background: var(--paper-warm);
  text-align: left;
}

.cai-label {
  font-size: 0.78rem;
  color: var(--gray);
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.cai-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
}

/* ==========================================================================
   Contact Completed
   ========================================================================== */
.contact-completed {
  background: var(--paper);
  padding: 80px 32px;
}

.completed-card {
  background: var(--white);
  padding: 80px 60px;
  text-align: center;
  border-top: 4px solid var(--navy);
  box-shadow: var(--shadow-medium);
}

.completed-icon {
  color: var(--navy);
  margin-bottom: 32px;
  display: flex;
  justify-content: center;
}

.completed-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 32px;
}

.completed-desc {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 24px;
}

.completed-note {
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--gray);
  margin-bottom: 48px;
}

.completed-actions {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Legal Pages (Privacy / Terms)
   ========================================================================== */
.legal-section {
  background: var(--white);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content .legal-lead {
  font-size: 1rem;
  line-height: 2;
  color: var(--ink-soft);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  border-left: 4px solid var(--red);
  padding-left: 16px;
  margin: 3em 0 1em;
  line-height: 1.6;
}

.legal-content p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 1.2em;
}

.legal-content ol {
  padding-left: 2em;
  margin-bottom: 1.5em;
}

.legal-content ol li {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--ink);
  margin-bottom: 0.8em;
}

.legal-content ul {
  padding-left: 1.5em;
  margin: 0.8em 0;
}

.legal-content ul li {
  list-style: disc;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 0.4em;
}

.legal-contact-box {
  background: var(--paper-warm);
  padding: 24px 28px;
  border-left: 3px solid var(--navy);
  margin: 24px 0;
}

.legal-contact-box p {
  margin-bottom: 0;
}

.legal-contact-box a {
  color: var(--navy);
  text-decoration: underline;
}

.legal-date {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--gray);
  text-align: right;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   About Page
   ========================================================================== */
.about-mission {
  background: var(--paper-warm);
}

.mission-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.mission-content p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 2.2;
  color: var(--ink);
  margin-bottom: 1.5em;
}

.about-info-section {
  background: var(--white);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.company-table th,
.company-table td {
  padding: 24px 28px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.company-table th {
  background: var(--paper-warm);
  width: 200px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.company-table td {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink);
}

.company-table .ct-en {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gray);
  letter-spacing: 0.1em;
}

.company-table a {
  color: var(--navy);
  text-decoration: underline;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: none;
}

.about-strengths {
  background: var(--paper-warm);
}

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

.strength-card {
  background: var(--white);
  padding: 40px 32px;
  border-top: 3px solid var(--red);
  transition: var(--transition);
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.strength-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 20px;
  font-style: italic;
}

.strength-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 16px;
}

.strength-card p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ==========================================================================
   Magazine Page
   ========================================================================== */
.magazine-reach {
  background: var(--white);
}

.reach-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.reach-big-num {
  background: var(--navy-pale);
  padding: 48px 40px;
  border-top: 4px solid var(--navy);
}

.rbn-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 16px;
}

.rbn-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.rbn-number {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 600;
  color: var(--navy-deep);
  line-height: 1;
}

.rbn-unit {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.rbn-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

.reach-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reach-feature {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--paper-warm);
}

.rf-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  border: 1px solid var(--navy);
}

.reach-feature h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.reach-feature p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

.magazine-content {
  background: var(--paper-warm);
}

.mag-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.mag-feature {
  background: var(--white);
  padding: 36px 32px;
  border-top: 3px solid var(--navy);
}

.mf-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 12px;
}

.mf-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-deep);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mag-feature p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ==========================================================================
   Plans (Magazine / Consulting)
   ========================================================================== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.plan-card {
  background: var(--white);
  padding: 40px 32px;
  border: 1px solid var(--line);
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.plan-card.is-recommended {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-color: transparent;
  transform: translateY(-12px);
  box-shadow: var(--shadow-strong);
}

.plan-card.is-recommended:hover {
  transform: translateY(-16px);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 18px;
}

.plan-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.25em;
  color: var(--red);
  margin-bottom: 12px;
}

.plan-card.is-recommended .plan-label {
  color: var(--gold-light);
}

.plan-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.5;
}

.plan-card.is-recommended .plan-title {
  color: var(--white);
}

.plan-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.plan-card.is-recommended .plan-desc {
  color: rgba(255, 255, 255, 0.85);
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.plan-card.is-recommended .plan-features {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.plan-features li {
  font-size: 0.88rem;
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.7;
}

.plan-card.is-recommended .plan-features li {
  color: rgba(255, 255, 255, 0.85);
}

.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--red);
}

.plan-card.is-recommended .plan-features li::before {
  background: var(--gold-light);
}

.plan-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--navy);
}

.plan-card.is-recommended .plan-link {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.price-foot-note {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--paper-warm);
}

.price-foot-note p {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

/* ==========================================================================
   Training Programs
   ========================================================================== */
.training-programs {
  background: var(--white);
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.program-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  padding: 40px;
  background: var(--paper-warm);
  align-items: start;
}

.program-num {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.2em;
  padding-top: 6px;
  position: relative;
}

.program-num::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -16px;
  width: 60px;
  height: 1px;
  background: var(--red);
}

.program-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 16px;
  line-height: 1.5;
}

.program-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--ink-soft);
  margin-bottom: 24px;
}

.program-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--white);
}

.program-points li {
  font-size: 0.88rem;
  color: var(--ink);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}

.program-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--red);
}

.program-meta {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.pm-label {
  font-weight: 700;
  color: var(--navy);
  min-width: 80px;
}

.pm-value {
  color: var(--ink-soft);
}

/* ==========================================================================
   Consulting Services
   ========================================================================== */
.consulting-services {
  background: var(--white);
}

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

.consulting-item {
  background: var(--paper-warm);
  padding: 32px 28px;
  border-top: 3px solid var(--navy);
}

.ci-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.ci-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.consulting-item ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.consulting-item li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.consulting-item li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 1px;
  background: var(--red);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .form-radios {
    grid-template-columns: 1fr;
  }
  .contact-form {
    padding: 32px 24px;
  }
  .reach-grid {
    grid-template-columns: 1fr;
  }
  .mag-features-grid {
    grid-template-columns: 1fr;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .plan-card.is-recommended {
    transform: none;
  }
  .plan-card.is-recommended:hover {
    transform: translateY(-4px);
  }
  .strengths-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
  }
  .program-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 20px;
  }
  .program-points {
    grid-template-columns: 1fr;
  }
  .company-table th {
    width: 130px;
    padding: 16px 14px;
    font-size: 0.85rem;
  }
  .company-table td {
    padding: 16px 14px;
    font-size: 0.88rem;
  }
  .contact-alt-info {
    grid-template-columns: 1fr;
  }
  .completed-card {
    padding: 60px 28px;
  }
}

/* ==========================================================================
   Footer - 会社情報追加
   ========================================================================== */
.company-info-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-address {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

@media (max-width: 600px) {
  .company-address {
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   Magazine Page - 2プラン用レイアウト
   ========================================================================== */

/* 2カラムプラン(magazine.php) */
.plans-grid-2col {
  grid-template-columns: 1fr 1fr !important;
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

/* プラン詳細「こんな薬局におすすめ」 */
.plan-suit {
  background: var(--paper-warm);
  padding: 18px 20px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.plan-card.is-recommended .plan-suit {
  background: rgba(255, 255, 255, 0.1);
}

.ps-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  margin-bottom: 10px;
}

.plan-card.is-recommended .ps-label {
  color: var(--gold-light);
}

.plan-suit ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-suit li {
  font-size: 0.82rem;
  padding-left: 18px;
  position: relative;
  color: var(--ink-soft);
  line-height: 1.65;
}

.plan-card.is-recommended .plan-suit li {
  color: rgba(255, 255, 255, 0.85);
}

.plan-suit li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--navy);
}

.plan-card.is-recommended .plan-suit li::before {
  background: var(--gold-light);
}

/* ==========================================================================
   Editorial Section (校閲セクション)
   ========================================================================== */
.editorial-section {
  background: var(--white);
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.editorial-item {
  background: var(--paper-warm);
  padding: 36px 28px;
  position: relative;
  border-top: 3px solid var(--gold);
}

.ei-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 16px;
  font-style: italic;
}

.ei-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 14px;
  line-height: 1.5;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.editorial-item p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.editorial-note {
  background: var(--navy-pale);
  padding: 28px 32px;
  border-left: 4px solid var(--navy);
}

.editorial-note p {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--navy-deep);
}

.editorial-note strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

/* hero-stat 3列対応 */
@media (max-width: 980px) {
  .plans-grid-2col {
    grid-template-columns: 1fr !important;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
}
