/* ==========================================
   まるダJAPAN — Premium Editorial Redesign
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
  /* Base Palette */
  --ink:          #1c1a17;
  --ink-soft:     #2b2825;
  --ivory:        #f4ede0;
  --ivory-dim:    #ece4d2;
  --ivory-deep:   #e2d8c4;

  /* Accent: Brass */
  --brass:        #8b6914;
  --brass-mid:    #b08a24;
  --brass-pale:   rgba(139, 105, 20, 0.12);

  /* Text */
  --text-dark:    #f4ede0;
  --text-dim-dark: rgba(244, 237, 224, 0.52);
  --text-light:   #1c1a17;
  --text-dim-light: #7a7268;

  /* Rules / Lines */
  --rule-dark:    rgba(244, 237, 224, 0.13);
  --rule-light:   rgba(28, 26, 23, 0.11);

  /* Fonts */
  --serif:   'Cormorant Garamond', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
  --sans:    'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --container-width: 1200px;

  /* Easing */
  --ease-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

body::before,
body::after {
  display: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: inherit;
  font-weight: 600;
}

p { line-height: 1.9; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.25s ease, color 0.25s ease;
}

::selection {
  background: var(--brass);
  color: var(--ivory);
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   Header
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 26, 23, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rule-dark);
  transition: box-shadow 0.3s ease;
}

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

.logo {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
  transition: opacity 0.25s;
}

.logo:hover { opacity: 0.6; color: var(--ivory); }

.logo span {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--brass-mid);
  margin-left: 0.1em;
  letter-spacing: 0.1em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  font-size: 0.78rem;
  color: var(--text-dim-dark);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.25s;
}

.nav a::before { display: none; }
.nav a:hover { color: var(--ivory); }

.nav-cta {
  padding: 0.45rem 1.2rem !important;
  border: 1px solid var(--brass) !important;
  color: var(--brass-mid) !important;
  font-size: 0.75rem !important;
  border-radius: 1px;
  background: transparent;
  transition: background 0.25s, color 0.25s !important;
}

.nav-cta:hover {
  background: var(--brass) !important;
  color: var(--ivory) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--ivory);
  transition: all 0.3s ease;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  position: relative;
  background: var(--ink);
  padding: calc(68px + 7rem) 0 7rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Architectural grid overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--rule-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Vertical brass accent line */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 30%;
  width: 1px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    var(--brass) 25%,
    var(--brass) 75%,
    transparent 100%
  );
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
  width: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--brass-mid);
  margin-bottom: 2.5rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-expo) 0.1s both;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--brass-mid);
  border-radius: 0;
  animation: pulse 2.5s infinite;
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6.5vw, 5.25rem);
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
  line-height: 1.18;
  animation: fadeInUp 1s var(--ease-expo) 0.2s both;
}

.hero-title-accent {
  display: block;
  color: var(--brass-mid);
  font-style: italic;
  font-weight: 400;
  -webkit-text-fill-color: unset;
  background: none;
}

.hero-lead {
  font-size: 0.95rem;
  color: var(--text-dim-dark);
  margin-bottom: 2.5rem;
  line-height: 2.1;
  max-width: 580px;
  animation: fadeInUp 1s var(--ease-expo) 0.3s both;
}

.hero-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 3.5rem;
  border-top: 1px solid var(--rule-dark);
  animation: fadeInUp 1s var(--ease-expo) 0.4s both;
  counter-reset: hero-counter;
}

.hero-benefits li {
  position: relative;
  padding: 0.875rem 0 0.875rem 3rem;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 0.85rem;
  color: rgba(244, 237, 224, 0.68);
  letter-spacing: 0.02em;
  counter-increment: hero-counter;
}

.hero-benefits li::before {
  content: counter(hero-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--brass-mid);
  letter-spacing: 0.06em;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--ease-expo) 0.5s both;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-align: center;
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--brass);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--brass-mid);
  color: var(--ivory);
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: rgba(244, 237, 224, 0.65);
  border: 1px solid var(--rule-dark);
}

.btn-secondary:hover {
  border-color: var(--brass);
  color: var(--ivory);
  background: transparent;
  transform: none;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
}

/* ==========================================
   Section Common
   ========================================== */
section {
  padding: 7rem 0;
  position: relative;
  z-index: 1;
}

.section-tag {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--brass-mid);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 1.25rem;
}

.section-tag::before { display: none; }

.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 600;
  color: inherit;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section-title-center { text-align: center; }

.section-lead {
  color: var(--text-dim-light);
  margin-bottom: 4rem;
  font-size: 0.9rem;
  max-width: 620px;
  line-height: 2;
}

.section-lead-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   Problems Section
   ========================================== */
.problems {
  background: var(--ink);
  color: var(--ivory);
  border-top: none;
  border-bottom: none;
}

.problems-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}

.problems-header .section-tag { color: var(--brass-mid); }
.problems-header .section-title { color: var(--ivory); margin-bottom: 0; }

.problems-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}

.problem-item {
  position: relative;
  padding: 2.5rem 2.5rem 2.5rem 0;
  border-right: 1px solid var(--rule-dark);
  background: none;
  border-radius: 0;
  overflow: visible;
  transition: none;
}

.problem-item::before { display: none; }

.problem-item:first-child { padding-left: 0; }

.problem-item:nth-child(2) { padding-left: 2.5rem; }

.problem-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.5rem;
}

.problem-item:hover {
  transform: none;
  border-color: var(--rule-dark);
  background: none;
}

.problem-number {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--brass-mid);
  margin-bottom: 1.5rem;
  display: block;
  letter-spacing: 0.14em;
}

.problem-text {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ivory);
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

.problem-answer {
  font-size: 0.8rem;
  color: rgba(244, 237, 224, 0.5);
  padding-left: 0;
  border-left: none;
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.1rem;
  line-height: 1.85;
}

/* ==========================================
   Program Section
   ========================================== */
.program {
  background: var(--ivory);
}

.program-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.program-header .section-tag { color: var(--brass-mid); }
.program-header .section-title { color: var(--ink); margin-bottom: 0; }

.program-header .section-lead {
  margin-bottom: 0;
  max-width: 400px;
  font-size: 0.85rem;
  text-align: right;
  color: var(--text-dim-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  border-top: 3px solid var(--rule-light);
}

.steps::before { display: none; }

/* Top rail accent */
.steps::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 33.33%;
  height: 3px;
  background: var(--brass);
  opacity: 0.7;
}

.step {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 2.5rem 0;
  background: none;
  border: none;
  border-right: 1px solid var(--rule-light);
  border-radius: 0;
  text-align: left;
  transition: none;
}

.step:first-child { padding-left: 0; }
.step:nth-child(2) { padding-left: 2.5rem; }
.step:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.5rem;
}
.step:hover { transform: none; border-color: var(--rule-light); }

.step-number {
  display: block;
  font-family: var(--mono);
  font-size: 5rem;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.07;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  line-height: 1;
  margin-bottom: -0.75rem;
  letter-spacing: -0.04em;
}

.step-title {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.step-hours {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--brass-mid);
  margin-bottom: 0.875rem;
  letter-spacing: 0.12em;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-dim-light);
  line-height: 1.85;
}

/* ==========================================
   Courses Section
   ========================================== */
.courses {
  background: var(--ink);
  color: var(--ivory);
  border-top: none;
}

.courses-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}

.courses-header .section-tag { color: var(--brass-mid); }
.courses-header .section-title { color: var(--ivory); margin-bottom: 0; }

.course-block {
  margin-bottom: 0;
  padding: 3.5rem 0;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--rule-dark);
}

.course-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.course-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
  gap: 2rem;
}

.course-header-content { flex: 1; }

.course-pamphlet {
  flex-shrink: 0;
  width: 130px;
  margin-left: 0;
  text-align: center;
}

.course-pamphlet img {
  width: 100%;
  height: auto;
  border-radius: 0;
  border: 1px solid var(--rule-dark);
  box-shadow: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: border-color 0.25s;
  filter: brightness(0.85) contrast(1.05);
}

.course-pamphlet img:hover {
  box-shadow: none;
  border-color: var(--brass);
}

.pamphlet-link {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--brass-mid);
  letter-spacing: 0.1em;
  display: inline-block;
}

.pamphlet-link::before { display: none; }
.pamphlet-link:hover { opacity: 0.65; }

.course-name {
  font-family: var(--serif);
  font-size: 2.1rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.course-name-badge {
  display: inline-flex;
  padding: 0.12rem 0.55rem;
  background: none;
  color: var(--brass-mid);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0;
  border: 1px solid var(--brass);
  letter-spacing: 0.08em;
}

.course-subtitle {
  font-size: 0.85rem;
  color: rgba(244, 237, 224, 0.48);
  letter-spacing: 0.02em;
  margin-top: 0.2rem;
}

.course-desc {
  font-size: 0.88rem;
  color: rgba(244, 237, 224, 0.65);
  margin-bottom: 1.1rem;
  max-width: 620px;
  line-height: 2;
}

.course-recommend {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--brass-mid);
  padding: 0 0 0 0.875rem;
  background: none;
  border-radius: 0;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
  border-left: 2px solid var(--brass);
}

.course-recommend::before { display: none; }

.course-goals {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(244, 237, 224, 0.04);
  border-left: 2px solid var(--brass);
  border-radius: 0;
}

.course-goals-title {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  color: var(--brass-mid);
  margin-bottom: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.course-goals ul {
  list-style: none;
  padding-left: 0;
}

.course-goals li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: 0.83rem;
  color: rgba(244, 237, 224, 0.58);
  line-height: 1.85;
}

.course-goals li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brass-mid);
  font-family: var(--mono);
  font-size: 0.78rem;
}

/* Course Accordion */
.course-accordion-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1.25rem;
  background: rgba(244, 237, 224, 0.04);
  border: 1px solid var(--rule-dark);
  border-radius: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(244, 237, 224, 0.65);
  margin-bottom: 0;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
}

.course-accordion-toggle:hover {
  background: rgba(244, 237, 224, 0.07);
  border-color: var(--brass);
  color: var(--ivory);
}

.course-accordion-toggle.is-open {
  border-radius: 0;
  border-bottom: none;
  background: rgba(176, 138, 36, 0.1);
  color: var(--brass-mid);
}

.course-accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.course-accordion-icon::before,
.course-accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.3s var(--ease-expo);
}

.course-accordion-icon::before {
  top: 50%;
  left: 0;
  width: 18px;
  height: 1px;
  transform: translateY(-50%);
}

.course-accordion-icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 18px;
  transform: translateX(-50%);
}

.course-accordion-toggle.is-open .course-accordion-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.course-accordion-content {
  display: none;
  border-radius: 0;
}

.course-accordion-content.is-open {
  display: block;
}

.course-table-wrapper {
  overflow-x: auto;
  border-radius: 0;
  border: 1px solid var(--rule-dark);
}

.course-accordion-content.course-table-wrapper {
  border-radius: 0;
  border-top: none;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.course-table th,
.course-table td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--rule-dark);
}

.course-table th {
  font-family: var(--mono);
  font-weight: 500;
  color: rgba(244, 237, 224, 0.35);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: rgba(244, 237, 224, 0.03);
}

.course-table tbody tr {
  transition: background 0.2s ease;
}

.course-table tbody tr:hover {
  background: rgba(244, 237, 224, 0.03);
}

.course-table tbody tr:last-child td {
  border-bottom: none;
}

.course-table td:first-child {
  font-weight: 500;
  color: var(--ivory);
  white-space: nowrap;
}

.course-table td:nth-child(2) {
  font-family: var(--mono);
  color: var(--brass-mid);
  white-space: nowrap;
  width: 72px;
}

.course-table td:nth-child(3) {
  color: rgba(244, 237, 224, 0.55);
}

/* ==========================================
   Format Section
   ========================================== */
.format {
  background: var(--ivory-dim);
  border-top: none;
  border-bottom: none;
}

.format-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}

.format-header .section-tag { color: var(--brass-mid); }
.format-header .section-title { color: var(--ink); margin-bottom: 0; }

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-light);
}

.format-item {
  padding: 2.25rem 2.25rem 2.25rem 0;
  background: none;
  border: none;
  border-right: 1px solid var(--rule-light);
  border-radius: 0;
  transition: none;
}

.format-item:first-child  { padding-left: 0; }
.format-item:nth-child(2) { padding-left: 2.25rem; }
.format-item:nth-child(3) { padding-left: 2.25rem; }
.format-item:last-child {
  border-right: none;
  padding-right: 0;
  padding-left: 2.25rem;
}
.format-item:hover { transform: none; border-color: var(--rule-light); }

.format-label {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  color: var(--brass-mid);
  letter-spacing: 0.16em;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  display: block;
}

.format-item-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.65rem;
  line-height: 1.4;
}

.format-item p {
  font-size: 0.8rem;
  color: var(--text-dim-light);
  line-height: 1.85;
}

/* ==========================================
   Price Section
   ========================================== */
.price {
  background: var(--ink);
  color: var(--ivory);
  border-bottom: none;
}

.price-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.price-header .section-tag { color: var(--brass-mid); }
.price-header .section-title { color: var(--ivory); margin-bottom: 0; }

.price-header .section-lead {
  margin-bottom: 0;
  max-width: 360px;
  font-size: 0.83rem;
  text-align: right;
  color: rgba(244, 237, 224, 0.45);
}

/* Horizontal comparison board — replaces the 3-card grid */
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule-dark);
}

.price-card {
  display: grid;
  grid-template-columns: 220px 190px 2fr 1fr;
  align-items: center;
  column-gap: 2.5rem;
  padding: 2.25rem 0;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--rule-dark);
  text-align: left;
  transition: background 0.3s ease;
  overflow: visible;
}

.price-card:hover {
  transform: none;
  background: rgba(244, 237, 224, 0.025);
  border-color: var(--rule-dark);
}

.price-card:last-child { border-bottom: none; }

.price-card.featured {
  border-color: var(--rule-dark);
}

.price-card.featured::before { display: none; }

.price-card.featured .price-name {
  margin-top: 0;
}

.price-card.featured .price-name::after {
  content: "RECOMMENDED";
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--brass-mid);
  letter-spacing: 0.18em;
  margin-top: 0.3rem;
  font-weight: 500;
}

.price-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ivory);
  margin-bottom: 0;
}

.price-courses {
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(244, 237, 224, 0.45);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.price-amount {
  font-family: var(--mono);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.03em;
}

/* "万円" span */
.price-amount > span:first-of-type {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  color: rgba(244, 237, 224, 0.5);
  vertical-align: middle;
  margin-left: 0.1em;
  letter-spacing: 0;
}

.price-unit {
  font-size: 0.72rem !important;
  color: rgba(244, 237, 224, 0.35) !important;
  font-family: var(--sans) !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

.price-detail {
  font-size: 0.8rem;
  color: rgba(244, 237, 224, 0.42);
  line-height: 1.75;
  margin-bottom: 0;
}

.price-note {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: rgba(244, 237, 224, 0.28);
  margin-top: 2.5rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  letter-spacing: 0.05em;
}

/* ==========================================
   FAQ Section
   ========================================== */
.faq {
  background: var(--ivory);
  color: var(--ink);
  border-bottom: none;
}

.faq-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}

.faq-header .section-tag { color: var(--brass-mid); }
.faq-header .section-title { color: var(--ink); margin-bottom: 0; }

.faq-list {
  max-width: 100%;
  margin: 0;
}

.faq-item {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  background: none;
  overflow: visible;
  border-bottom: 1px solid var(--rule-light);
  transition: none;
}

.faq-item:hover { border-color: var(--rule-light); }
.faq-item.is-open { border-color: var(--rule-light); }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--ink);
  gap: 2rem;
  transition: color 0.25s ease;
}

.faq-question:hover { color: var(--brass); }
.faq-item.is-open .faq-question { color: var(--brass); }

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--brass);
  transition: transform 0.3s var(--ease-expo);
}

.faq-icon::before {
  top: 50%;
  left: 0;
  width: 18px;
  height: 1px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  left: 50%;
  width: 1px;
  height: 18px;
  transform: translateX(-50%);
}

.faq-item.is-open .faq-icon::after {
  transform: translateX(-50%) rotate(90deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.5rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: 0.87rem;
  color: var(--text-dim-light);
  line-height: 2;
  max-width: 760px;
}

/* ==========================================
   Company Section
   ========================================== */
.company {
  background: var(--ink);
  color: var(--ivory);
  border-top: none;
  border-bottom: none;
}

.company-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-dark);
}

.company-header .section-tag { color: var(--brass-mid); }
.company-header .section-title { color: var(--ivory); margin-bottom: 0; }

.company-content {
  max-width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.company-message {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 0;
}

.company-message-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--brass-mid);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-dark);
}

.company-message p {
  font-size: 0.88rem;
  color: rgba(244, 237, 224, 0.65);
  line-height: 2.15;
  margin-bottom: 1.25rem;
}

.company-message-name {
  margin-top: 2.25rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ivory);
  text-align: right;
  border-right: 2px solid var(--brass);
  padding-right: 1rem;
}

.company-info {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.company-table {
  width: 100%;
  border-collapse: collapse;
}

.company-table th,
.company-table td {
  padding: 1rem 0;
  font-size: 0.83rem;
  text-align: left;
  border-bottom: 1px solid var(--rule-dark);
}

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

.company-table th {
  font-family: var(--mono);
  font-weight: 500;
  color: rgba(244, 237, 224, 0.35);
  white-space: nowrap;
  width: 80px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.company-table td {
  color: var(--ivory);
  padding-left: 2rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
  background: var(--ivory-dim);
  border-bottom: none;
}

.contact-header {
  text-align: left;
  margin-bottom: 3.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}

.contact-header .section-tag { color: var(--brass-mid); }
.contact-header .section-title { color: var(--ink); margin-bottom: 0.75rem; }
.contact-header .section-lead {
  margin-bottom: 0;
  color: var(--text-dim-light);
  font-size: 0.87rem;
}

.contact-form {
  max-width: 760px;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.form-group {
  margin-bottom: 1.75rem;
}

.form-group label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(28, 26, 23, 0.45);
  margin-bottom: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.required {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--brass-mid);
  margin-left: 0.35rem;
  font-family: var(--mono);
  letter-spacing: 0.1em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  font-size: 0.88rem;
  font-family: var(--sans);
  border: none;
  border-bottom: 1px solid var(--rule-light);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.25s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(28, 26, 23, 0.28);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: none;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%238b6914' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 1.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  border: 1px solid var(--rule-light);
  padding: 0.75rem;
  margin-top: 0;
}

.form-group textarea:focus {
  border-color: var(--brass);
}

.checkbox-group {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding-top: 0.25rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.83rem;
  color: var(--text-dim-light);
  cursor: pointer;
  transition: color 0.2s ease;
}

.checkbox-label:hover { color: var(--ink); }

.checkbox-label input {
  width: 15px;
  height: 15px;
  accent-color: var(--brass);
  cursor: pointer;
  border-radius: 0;
}

.form-submit {
  text-align: left;
  margin-top: 2.25rem;
}

.form-privacy {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(28, 26, 23, 0.35);
  margin-top: 1.25rem;
  letter-spacing: 0.05em;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--ink);
  padding: 3.5rem 0 2rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--rule-dark);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule-dark);
  margin-bottom: 1.5rem;
}

.footer-logo-text {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
  margin-bottom: 0.875rem;
}

.footer-logo-text span {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--brass-mid);
  margin-left: 0.1em;
  letter-spacing: 0.1em;
}

.footer-info {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 2;
  color: rgba(244, 237, 224, 0.3);
  letter-spacing: 0.04em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.76rem;
  color: rgba(244, 237, 224, 0.4);
  letter-spacing: 0.04em;
  transition: color 0.25s;
}

.footer-links a:hover { color: var(--ivory); }

.footer-copyright {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.66rem;
  color: rgba(244, 237, 224, 0.18);
  letter-spacing: 0.1em;
}

/* ==========================================
   Responsive — 1024px
   ========================================== */
@media (max-width: 1024px) {
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .format-item:nth-child(2) {
    border-right: none;
  }

  .format-item:nth-child(3) {
    border-right: 1px solid var(--rule-light);
    padding-left: 0;
    padding-right: 2.25rem;
  }

  .format-item:nth-child(4) {
    padding-left: 2.25rem;
    border-right: none;
  }

  .company-content {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .price-card {
    grid-template-columns: 180px 150px 1fr;
  }

  .price-detail { display: none; }
}

/* ==========================================
   Responsive — 768px
   ========================================== */
@media (max-width: 768px) {
  section { padding: 5rem 0; }

  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(28, 26, 23, 0.98);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 0;
    border-bottom: 1px solid var(--rule-dark);
  }

  .nav.is-open { display: flex; }

  .nav a {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--rule-dark);
    color: rgba(244, 237, 224, 0.6);
  }

  .nav a:last-child {
    border-bottom: none;
    margin-top: 0.75rem;
    text-align: center;
  }

  .menu-toggle { display: flex; }

  .hero {
    min-height: auto;
    padding-top: calc(68px + 4.5rem);
    padding-bottom: 5rem;
  }

  .hero::after { display: none; }

  .hero-title { font-size: 2.4rem; }
  .hero-lead br { display: none; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }

  .section-title { font-size: 2rem; }
  .section-lead br { display: none; }

  /* Program header stacked */
  .program-header,
  .price-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .program-header .section-lead,
  .price-header .section-lead {
    text-align: left;
    max-width: 100%;
  }

  /* Problems: stacked */
  .problems-list {
    grid-template-columns: 1fr;
  }

  .problem-item {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-dark);
  }

  .problem-item:last-child { border-bottom: none; }
  .problem-item:nth-child(2) { padding-left: 0; }
  .problem-text br { display: none; }

  /* Program: stacked */
  .steps { grid-template-columns: 1fr; }

  .steps::after { display: none; }

  .step {
    padding: 2rem 0;
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
  }

  .step:last-child { border-bottom: none; padding-left: 0; padding-right: 0; }
  .step:nth-child(2) { padding-left: 0; }

  /* Courses */
  .course-block { padding: 2.5rem 0; }
  .course-desc br { display: none; }
  .course-header { flex-direction: column; gap: 0.875rem; }
  .course-pamphlet { display: none; }

  .course-table { font-size: 0.8rem; }
  .course-table th,
  .course-table td { padding: 0.7rem 0.875rem; }

  /* Format: stacked */
  .format-grid { grid-template-columns: 1fr; }

  .format-item {
    border-right: none;
    border-bottom: 1px solid var(--rule-light);
    padding: 1.75rem 0;
  }

  .format-item:last-child { border-bottom: none; }

  .format-item:nth-child(2),
  .format-item:nth-child(3),
  .format-item:nth-child(4) {
    padding-left: 0;
  }

  /* Price: stacked */
  .price-card {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 2rem 0;
  }

  .price-amount { font-size: 2.25rem; }
  .price-detail { display: block; }

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .checkbox-group {
    flex-direction: column;
    gap: 0.875rem;
  }

  /* Company */
  .company-message p br { display: none; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
}

/* ==========================================
   Responsive — 480px
   ========================================== */
@media (max-width: 480px) {
  html { font-size: 15px; }

  .header-inner { height: 60px; }

  .hero {
    padding-top: calc(60px + 3.5rem);
  }

  .nav { top: 60px; }

  .course-table td:first-child { white-space: normal; }
}

/* ==========================================
   Utility
   ========================================== */
.text-accent { color: var(--brass-mid); }
