@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@300;400;500&display=swap');

/* =============================================
   CSS変数
============================================= */
:root {
  --color-bg: #f7f6f3;
  --color-surface: #ffffff;
  --color-accent: #1a1a1a;
  --color-accent-light: #333;
  --color-muted: #888;
  --color-border: #e0ddd8;
  --color-selected: #1a1a1a;
  --color-selected-text: #ffffff;
  --color-disabled: #d0cdc8;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  background-color: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-accent);
  min-height: 100vh;
  padding: 40px 16px 80px;
}

/* =============================================
   コンテナ
============================================= */
.container {
  max-width: 560px;
  margin: 0 auto;
}

/* =============================================
   ヘッダー
============================================= */
.header {
  text-align: center;
  margin-bottom: 32px;
}

.header__sub {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.header__title {
  font-family: var(--font-display);
  font-size: 30px!important;
  letter-spacing: 0.1em;
  line-height: 1;
  margin-bottom: 16px;
}

.header__desc {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.8;
  font-weight: 300;
}

/* =============================================
   ナビゲーション
============================================= */
.nav-links {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.nav-link {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--color-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.nav-link:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* =============================================
   お知らせ
============================================= */
.notice {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 16px;
  font-weight: 300;
}

/* =============================================
   ステップ
============================================= */
.step {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

.step__title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.step__num {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--color-muted);
}

.step__note {
  font-size: 11px;
  color: var(--color-muted);
  margin-bottom: 20px;
  margin-left: 38px;
}

/* =============================================
   オプショングリッド
============================================= */
.option-grid {
  display: grid;
  gap: 10px;
}

.option-grid--2 {
  grid-template-columns: 1fr 1fr;
}

.option-grid--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.option-grid--flex {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* =============================================
   オプションカード（性別・アイテム）
============================================= */
.option-card {
  cursor: pointer;
  display: block;
}

.option-card input[type="radio"] {
  display: none;
}

.option-card__inner {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  position: relative;
  transition: all 0.2s ease;
  background: var(--color-bg);
  text-align: center;
}

.option-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: transparent;
  transition: all 0.2s ease;
}

.option-card input:checked ~ .option-card__inner {
  border-color: var(--color-selected);
  background: var(--color-selected);
}

.option-card input:checked ~ .option-card__inner .option-card__label {
  color: var(--color-selected-text);
}

.option-card input:checked ~ .option-card__inner .option-card__check {
  background: white;
  border-color: white;
  color: var(--color-selected);
}

.option-card__label {
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

/* Coming soon */
.option-card--disabled {
  cursor: not-allowed;
}

.option-card--disabled .option-card__inner {
  opacity: 0.5;
}

.option-card__label--soon {
  text-decoration: line-through;
  color: var(--color-muted);
}

.option-card__soon {
  font-size: 10px;
  color: var(--color-muted);
  margin-top: 4px;
  font-weight: 300;
}

/* =============================================
   身長・サイズボタン（小さいピル型）
============================================= */
.size-btn {
  padding: 10px 20px;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.size-btn:hover {
  border-color: var(--color-accent);
}

.size-btn.selected {
  background: var(--color-selected);
  border-color: var(--color-selected);
  color: var(--color-selected-text);
}

/* =============================================
   ブランドセクション
============================================= */
.brand-section {
  margin-bottom: 20px;
}

.brand-section:last-child {
  margin-bottom: 0;
}

.brand-label {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  color: var(--color-accent-light);
}

/* =============================================
   比較画像エリア
============================================= */
#comparisonContainer {
  margin-top: 8px;
}

.comparison-images {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.comparison-images img {
  width: calc(50% - 6px);
  max-width: 280px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid var(--color-border);
}

.comparison-images img:hover {
  transform: scale(1.02);
}

/* 1枚の時は大きく表示 */
.comparison-images img:only-child {
  width: 100%;
  max-width: 400px;
}

/* =============================================
   モーダル
============================================= */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal__img {
  display: block;
  max-width: 88%;
  max-height: 85%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: var(--radius-sm);
}

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: none;
  font-size: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: rgba(255,255,255,0.1);
  border: none;
  font-size: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__nav--prev { left: 16px; }
.modal__nav--next { right: 16px; }

.modal__nav:hover,
.modal__close:hover {
  background: rgba(255,255,255,0.2);
}
