/* =============================================================
   front-modal.css — 車選び知識モーダル
   Design: Deep Automotive Night × Editorial Luxury
   Fonts: Cormorant Garamond (display) × Outfit (body)
   ============================================================= */

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

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --fmk-bg:             #07070f;
  --fmk-bg-card:        rgba(255,255,255,0.03);
  --fmk-bg-card-hover:  rgba(200,153,58,0.055);
  --fmk-bg-modal:       #0c0c1e;
  --fmk-bg-modal-alt:   rgba(255,255,255,0.018);
  --fmk-gold:           #c8993a;
  --fmk-gold-light:     #e0bc72;
  --fmk-gold-dim:       rgba(200,153,58,0.25);
  --fmk-gold-border:    rgba(200,153,58,0.2);
  --fmk-white:          #f2ece4;
  --fmk-white-60:       rgba(242,236,228,0.6);
  --fmk-white-35:       rgba(242,236,228,0.35);
  --fmk-white-15:       rgba(242,236,228,0.12);
  --fmk-border:         rgba(255,255,255,0.07);
  --fmk-green-dim:      rgba(100,210,130,0.15);
  --fmk-green-text:     rgba(120,220,150,0.85);
  --fmk-red-dim:        rgba(220,100,85,0.12);
  --fmk-red-text:       rgba(230,120,105,0.85);
  --fmk-radius:         18px;
  --fmk-radius-sm:      10px;
  --fmk-ease:           cubic-bezier(0.22, 1, 0.36, 1);
  --fmk-ease-in:        cubic-bezier(0.36, 0, 0.66, 0);
}

/* ── Section ────────────────────────────────────────────────── */
.fmk-section {
  position: relative;
  background: var(--fmk-bg);
  padding: 100px 20px 112px;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  color: var(--fmk-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise grain texture */
.fmk-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow */
.fmk-section::after {
  content: '';
  position: absolute;
  top: -240px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(200,153,58,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.fmk-section > * { position: relative; z-index: 1; }

/* ── Container ──────────────────────────────────────────────── */
.fmk-container {
  max-width: 1020px;
  margin: 0 auto;
}

/* ── Section Header ─────────────────────────────────────────── */
.fmk-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 72px;
}

.fmk-header__label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.42em;
  color: var(--fmk-gold);
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.fmk-header__label::before,
.fmk-header__label::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--fmk-gold-dim);
}

.fmk-header__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 400;
  color: var(--fmk-white);
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.fmk-header__title em {
  font-style: italic;
  color: var(--fmk-gold-light);
}

.fmk-header__sub {
  font-size: 14px;
  color: var(--fmk-white-60);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ── Cards Grid ─────────────────────────────────────────────── */
.fmk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fmk-grid__row2 {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.fmk-grid__row2 .fmk-card {
  flex: 0 1 calc(50% - 7px);
  max-width: 420px;
}

@media (min-width: 720px) {
  .fmk-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .fmk-grid__row2 {
    gap: 16px;
  }
  .fmk-grid__row2 .fmk-card {
    flex: 0 1 calc(33.333% - 11px);
    max-width: 320px;
  }
}

/* ── Card ───────────────────────────────────────────────────── */
.fmk-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px 22px 22px;
  background: var(--fmk-bg-card);
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius);
  cursor: pointer;
  text-align: left;
  color: var(--fmk-white);
  overflow: hidden;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.45s var(--fmk-ease),
    border-color 0.45s var(--fmk-ease),
    transform 0.45s var(--fmk-ease),
    box-shadow 0.45s var(--fmk-ease);

  /* Entrance animation starting state */
  opacity: 0;
  transform: translateY(28px);
}

/* Inner gradient shimmer */
.fmk-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--fmk-radius);
  background: linear-gradient(145deg, rgba(200,153,58,0.09) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.45s var(--fmk-ease);
  pointer-events: none;
}

/* Bottom-edge gold line */
.fmk-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fmk-gold), transparent);
  opacity: 0;
  transition: opacity 0.45s var(--fmk-ease);
}

.fmk-card:hover,
.fmk-card:focus-visible {
  background: var(--fmk-bg-card-hover);
  border-color: var(--fmk-gold-border);
  transform: translateY(-5px);
  box-shadow:
    0 24px 64px rgba(0,0,0,0.45),
    0 0 0 1px var(--fmk-gold-border),
    0 0 40px rgba(200,153,58,0.06);
}

.fmk-card:hover::before,
.fmk-card:focus-visible::before {
  opacity: 1;
}

.fmk-card:hover::after,
.fmk-card:focus-visible::after {
  opacity: 1;
}

/* Card entrance animation */
.fmk-card.is-visible {
  animation: fmkCardIn 0.7s var(--fmk-ease) forwards;
}

@keyframes fmkCardIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Large faded number */
.fmk-card__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 80px;
  font-weight: 400;
  font-style: italic;
  color: rgba(200,153,58,0.08);
  position: absolute;
  top: -6px;
  right: 12px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.45s var(--fmk-ease);
}

.fmk-card:hover .fmk-card__num,
.fmk-card:focus-visible .fmk-card__num {
  color: rgba(200,153,58,0.16);
}

/* Icon */
.fmk-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(200,153,58,0.09);
  border: 1px solid rgba(200,153,58,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}

.fmk-card:hover .fmk-card__icon {
  background: rgba(200,153,58,0.16);
  border-color: rgba(200,153,58,0.25);
}

.fmk-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--fmk-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Category tag */
.fmk-card__tag {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Card title */
.fmk-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fmk-white);
  line-height: 1.35;
  margin: 0 0 10px;
}

/* Card description */
.fmk-card__desc {
  font-size: 12px;
  color: var(--fmk-white-35);
  line-height: 1.75;
  font-weight: 300;
  margin: 0;
  flex: 1;
}

/* Read CTA */
.fmk-card__cta {
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
}

.fmk-card__cta svg {
  width: 13px;
  height: 13px;
  stroke: var(--fmk-gold);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s var(--fmk-ease);
}

.fmk-card:hover .fmk-card__cta svg {
  transform: translateX(5px);
}

/* ── Overlay ────────────────────────────────────────────────── */
.fmk-overlay {
  position: fixed;
  inset: 0;
  z-index: 9900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(3,3,10,0.88);
  backdrop-filter: blur(10px) saturate(0.8);
  -webkit-backdrop-filter: blur(10px) saturate(0.8);
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--fmk-ease);
}

@media (min-width: 620px) {
  .fmk-overlay {
    align-items: center;
    padding: 28px 20px;
  }
}

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

/* ── Modal Dialog ───────────────────────────────────────────── */
.fmk-modal {
  position: relative;
  width: 100%;
  max-width: 660px;
  max-height: 93dvh;
  background: var(--fmk-bg-modal);
  border: 1px solid var(--fmk-border);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(48px);
  pointer-events: none;
  transition:
    transform 0.52s var(--fmk-ease),
    opacity 0.52s var(--fmk-ease);
}

@media (min-width: 620px) {
  .fmk-modal {
    border-bottom: 1px solid var(--fmk-border);
    border-radius: 24px;
    max-height: 86vh;
  }
}

.fmk-modal.is-active {
  display: flex;
  pointer-events: auto;
}

.fmk-modal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Drag handle (mobile) */
.fmk-modal__handle {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 3px;
  background: rgba(255,255,255,0.14);
  border-radius: 2px;
  z-index: 2;
}

@media (min-width: 620px) {
  .fmk-modal__handle { display: none; }
}

/* Top gold shimmer line */
.fmk-modal__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--fmk-gold) 40%, var(--fmk-gold-light) 60%, transparent 100%);
  opacity: 0.55;
  z-index: 2;
}

/* ── Modal Head ─────────────────────────────────────────────── */
.fmk-modal__head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 24px 0;
  gap: 12px;
}

@media (max-width: 480px) {
  .fmk-modal__head { padding: 28px 18px 0; }
}

.fmk-modal__meta {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fmk-modal__meta::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--fmk-gold-dim);
}

.fmk-modal__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(21px, 4.5vw, 27px);
  font-weight: 600;
  color: var(--fmk-white);
  margin: 0;
  line-height: 1.25;
}

/* Close button */
.fmk-modal__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--fmk-border);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: var(--fmk-white-60);
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.35s var(--fmk-ease),
    color 0.25s;
}

.fmk-modal__close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.fmk-modal__close:hover,
.fmk-modal__close:focus-visible {
  background: rgba(200,153,58,0.14);
  border-color: var(--fmk-gold-border);
  color: var(--fmk-gold-light);
  transform: rotate(90deg);
}

/* ── Tab Navigation ─────────────────────────────────────────── */
.fmk-tabs {
  flex-shrink: 0;
  display: flex;
  padding: 22px 24px 0;
  border-bottom: 1px solid var(--fmk-border);
  gap: 0;
}

@media (max-width: 480px) {
  .fmk-tabs { padding: 20px 18px 0; }
}

.fmk-tab-btn {
  flex: 1;
  padding: 10px 8px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--fmk-white-35);
  position: relative;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}

.fmk-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 10%;
  width: 80%;
  height: 2px;
  background: var(--fmk-gold);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.38s var(--fmk-ease);
}

.fmk-tab-btn.is-active {
  color: var(--fmk-gold-light);
}

.fmk-tab-btn.is-active::after {
  transform: scaleX(1);
}

.fmk-tab-btn:hover:not(.is-active) {
  color: var(--fmk-white-60);
}

/* ── Modal Body ─────────────────────────────────────────────── */
.fmk-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 480px) {
  .fmk-modal__body { padding: 18px; }
}

.fmk-modal__body::-webkit-scrollbar { width: 3px; }
.fmk-modal__body::-webkit-scrollbar-track { background: transparent; }
.fmk-modal__body::-webkit-scrollbar-thumb {
  background: var(--fmk-gold-border);
  border-radius: 2px;
}

/* ── Tab Panels ─────────────────────────────────────────────── */
.fmk-panel { display: none; }

.fmk-panel.is-active {
  display: block;
  animation: fmkFadeUp 0.32s var(--fmk-ease) both;
}

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

/* ── Content Components ─────────────────────────────────────── */

/* Section divider */
.fmk-sep {
  height: 1px;
  background: var(--fmk-border);
  margin: 20px 0;
}

/* Block label */
.fmk-label {
  font-size: 9.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--fmk-white-35);
  font-weight: 500;
  margin: 0 0 10px;
}

/* Fit-for label */
.fmk-fit-block {
  background: rgba(200,153,58,0.06);
  border: 1px solid var(--fmk-gold-border);
  border-radius: var(--fmk-radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.fmk-fit-block__label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.fmk-fit-block__items {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmk-fit-block__items li {
  font-size: 13px;
  color: var(--fmk-white-60);
  font-weight: 300;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.55;
}

.fmk-fit-block__items li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fmk-gold);
  flex-shrink: 0;
  margin-top: 7px;
}

/* Merit / Caution grid */
.fmk-pn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.fmk-pn-box {
  padding: 14px;
  border-radius: var(--fmk-radius-sm);
  border: 1px solid transparent;
}

.fmk-pn-box--merit {
  background: var(--fmk-green-dim);
  border-color: rgba(100,210,130,0.18);
}

.fmk-pn-box--caution {
  background: var(--fmk-red-dim);
  border-color: rgba(220,100,85,0.16);
}

.fmk-pn-box__label {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.fmk-pn-box--merit .fmk-pn-box__label { color: var(--fmk-green-text); }
.fmk-pn-box--caution .fmk-pn-box__label { color: var(--fmk-red-text); }

.fmk-pn-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fmk-pn-box li {
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.55;
}

/* Trend block */
.fmk-trend {
  background: var(--fmk-bg-modal-alt);
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  padding: 16px;
  margin-bottom: 18px;
}

.fmk-trend__head {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fmk-white);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fmk-trend__head span {
  font-size: 10px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--fmk-gold);
  border: 1px solid var(--fmk-gold-border);
  padding: 2px 8px;
  border-radius: 20px;
}

.fmk-trend__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.fmk-trend__list li {
  font-size: 12.5px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.fmk-trend__list li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fmk-gold);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Usage Items (Modal ②) ──────────────────────────────────── */
.fmk-usage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 4px;
}

.fmk-usage-item {
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  padding: 16px;
  background: var(--fmk-bg-modal-alt);
  transition: border-color 0.3s;
}

.fmk-usage-item:hover {
  border-color: var(--fmk-gold-border);
}

.fmk-usage-item__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.fmk-usage-item__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(200,153,58,0.09);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fmk-usage-item__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--fmk-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fmk-usage-item__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--fmk-white);
}

.fmk-usage-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 11px;
}

.fmk-chip {
  font-size: 10px;
  padding: 3px 9px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--fmk-border);
  border-radius: 20px;
  color: var(--fmk-white-35);
  font-weight: 400;
  letter-spacing: 0.04em;
}

.fmk-chip--gold {
  background: rgba(200,153,58,0.08);
  border-color: var(--fmk-gold-border);
  color: var(--fmk-gold-light);
}

.fmk-usage-item__point {
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.65;
  padding-top: 11px;
  border-top: 1px solid var(--fmk-border);
}

.fmk-usage-item__point strong {
  color: var(--fmk-gold-light);
  font-weight: 500;
}

/* ── Cost Blocks (Modal ③) ──────────────────────────────────── */
.fmk-cost-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

@media (min-width: 480px) {
  .fmk-cost-grid { grid-template-columns: repeat(3, 1fr); }
}

.fmk-cost-card {
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  padding: 16px;
  background: var(--fmk-bg-modal-alt);
}

.fmk-cost-card__type {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
  margin-bottom: 8px;
}

.fmk-cost-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--fmk-white);
  margin-bottom: 10px;
}

.fmk-cost-card__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.fmk-cost-card__items li {
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.5;
}

.fmk-cost-card__items li::before {
  content: '·';
  color: var(--fmk-gold);
  font-size: 16px;
  line-height: 1.1;
  flex-shrink: 0;
}

/* Table */
.fmk-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  margin-bottom: 18px;
}

.fmk-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 300px;
  font-size: 12px;
}

.fmk-table th {
  background: rgba(200,153,58,0.07);
  color: var(--fmk-gold);
  font-weight: 500;
  padding: 10px 12px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--fmk-gold-border);
  white-space: nowrap;
}

.fmk-table th:first-child { text-align: left; }

.fmk-table td {
  padding: 10px 12px;
  color: var(--fmk-white-60);
  border-bottom: 1px solid var(--fmk-border);
  font-weight: 300;
  text-align: center;
  vertical-align: middle;
  line-height: 1.4;
}

.fmk-table td:first-child {
  color: var(--fmk-white);
  font-weight: 400;
  text-align: left;
}

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

/* ── Maker / Region (Modal ④) ───────────────────────────────── */
.fmk-axis-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}

.fmk-axis-item {
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  padding: 14px;
  background: var(--fmk-bg-modal-alt);
}

.fmk-axis-item__label {
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fmk-gold);
  font-weight: 500;
  margin-bottom: 6px;
}

.fmk-axis-item__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--fmk-white);
  margin-bottom: 6px;
}

.fmk-axis-item__desc {
  font-size: 11px;
  color: var(--fmk-white-35);
  font-weight: 300;
  line-height: 1.55;
}

.fmk-region-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}

.fmk-region-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 14px;
  background: var(--fmk-bg-modal-alt);
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  transition: border-color 0.3s;
}

.fmk-region-item:hover {
  border-color: var(--fmk-gold-border);
}

.fmk-region-item__flag {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 1px;
}

.fmk-region-item__body { flex: 1; }

.fmk-region-item__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--fmk-gold-light);
  margin-bottom: 3px;
}

.fmk-region-item__desc {
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.55;
}

/* ── Checklist (Modal ⑤) ────────────────────────────────────── */
.fmk-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.fmk-check-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 16px;
  background: var(--fmk-bg-modal-alt);
  border: 1px solid var(--fmk-border);
  border-radius: var(--fmk-radius-sm);
  transition: border-color 0.3s;
}

.fmk-check-item:hover {
  border-color: var(--fmk-gold-border);
}

.fmk-check-item__num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  color: var(--fmk-gold);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  min-width: 24px;
}

.fmk-check-item__body { flex: 1; }

.fmk-check-item__title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fmk-white);
  margin: 0 0 4px;
}

.fmk-check-item__text {
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}

/* ── Modal Footer ───────────────────────────────────────────── */
.fmk-modal__footer {
  flex-shrink: 0;
  padding: 0 24px 24px;
}

@media (max-width: 480px) {
  .fmk-modal__footer { padding: 0 18px 20px; }
}

.fmk-modal__advice {
  background: linear-gradient(135deg, rgba(200,153,58,0.07), rgba(200,153,58,0.03));
  border: 1px solid var(--fmk-gold-border);
  border-radius: var(--fmk-radius-sm);
  padding: 14px 16px;
  font-size: 12px;
  color: var(--fmk-white-60);
  font-weight: 300;
  line-height: 1.75;
  margin: 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.fmk-modal__advice-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.fmk-modal__advice-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--fmk-gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─────────────────────────────
   Mobile: 5枚グリッドを 2＋1（中央）＋2 に制御
   3枚目（Running Cost）を全幅スパンで中央配置
───────────────────────────────── */
@media (max-width: 719px) {
  .fmk-grid > .fmk-card:nth-child(3) {
    grid-column: 1 / -1;   /* 2列全体にまたがる */
    width: calc(50% - 7px); /* 両隣カードと同じ幅感に揃える（gap: 14px の半分） */
    max-width: 240px;       /* 広がりすぎ防止 */
    margin: 0 auto;         /* 水平中央揃え */
  }
}

/* ── Body lock ──────────────────────────────────────────────── */
body.fmk-scroll-lock {
  overflow: hidden;
  touch-action: none;
}
