:root {
  --bg-color: #0b0f19;
  --panel-bg: rgba(20, 30, 50, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-glow: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --secondary-glow: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-green: #10b981;
  --accent-blue: #38bdf8;
  --accent-red: #ef4444;
  --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-hover-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-title: 'Outfit', 'Noto Sans JP', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* ヒーローヘッダー */
header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 20px;
  text-align: center;
}

.logo-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.logo-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, #10b981, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* メインコンテナ */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* トグルスイッチ（タブ） */
.tabs-container {
  display: flex;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 30px;
  max-width: 450px;
  margin: 0 auto 40px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tab-btn.active {
  background: var(--primary-glow);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.25);
}

.tab-btn.active.isekai-tab {
  background: var(--secondary-glow);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.25);
}

/* コンテンツセクション */
.content-section {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* セクションタイトル */
.section-intro {
  text-align: center;
  margin-bottom: 40px;
}

.section-intro h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-intro p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-kicker {
  color: var(--accent-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.guide-link {
  align-items: center;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  color: #c7f9e4;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 16px;
  transition: var(--transition);
}

.guide-link:hover {
  background: rgba(16, 185, 129, 0.16);
  transform: translateY(-1px);
}

.guide-link.isekai-guide {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #d8f3ff;
}

.payment-inline-note {
  align-items: center;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  color: #d8f3ff;
  display: flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 10px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding: 12px 14px;
}

.payment-inline-note i {
  color: var(--accent-green);
  font-size: 1.08rem;
}

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

/* 商品カード */
.product-card {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-glow);
  opacity: 0.8;
  transition: var(--transition);
}

.product-card.isekai-card::before {
  background: var(--secondary-glow);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--card-hover-shadow);
}

.product-card.isekai-card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 12px 40px 0 rgba(14, 165, 233, 0.15);
}

/* カードの中身 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}

.platform-badge i {
  font-size: 1rem;
}

.stock-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stock-badge.out {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.stock-badge.low {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.stock-badge.manual {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.25);
}

.product-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-main);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.text-link-card {
  align-items: center;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  color: #d8f3ff;
  display: flex;
  font-size: 0.88rem;
  font-weight: 800;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.5;
  margin: -8px 0 20px;
  padding: 12px 14px;
  text-decoration: none;
  transition: var(--transition);
}

.text-link-card span {
  align-items: center;
  display: flex;
  gap: 8px;
}

.text-link-card:hover {
  background: rgba(56, 189, 248, 0.13);
  border-color: rgba(56, 189, 248, 0.34);
  transform: translateY(-1px);
}

.account-select-panel {
  background: rgba(15, 23, 42, 0.32);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: grid;
  gap: 14px;
  margin: 16px 0 20px;
  padding: 16px;
}

.account-type-grid {
  display: grid;
  gap: 10px;
}

.account-type-card {
  align-items: center;
  background: rgba(15, 23, 42, 0.52);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 14px;
  text-align: left;
  transition: var(--transition);
  width: 100%;
}

.account-type-card:hover,
.account-type-card.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.08);
}

.account-type-radio {
  border: 2px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  display: block;
  height: 22px;
  position: relative;
  width: 22px;
}

.account-type-card.active .account-type-radio {
  border-color: var(--accent-blue);
}

.account-type-card.active .account-type-radio::after {
  background: var(--accent-blue);
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 4px;
  position: absolute;
  top: 4px;
  width: 10px;
}

.account-type-body {
  display: grid;
  gap: 4px;
}

.account-type-body strong {
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
}

.account-type-body small,
.account-type-meta small {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.account-type-meta {
  align-items: flex-end;
  display: grid;
  gap: 5px;
  justify-items: end;
}

.account-type-meta em {
  background: rgba(16, 185, 129, 0.12);
  border-radius: 999px;
  color: #bbf7d0;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.account-discount-note {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 14px;
  color: #fecaca;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.6;
  padding: 12px;
}

.account-discount-note strong,
.off-text {
  color: #f87171;
  font-weight: 900;
}

.select-field {
  appearance: none;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  color: var(--text-main);
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}

.select-field:focus {
  border-color: rgba(56, 189, 248, 0.58);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.select-helper {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin-top: 8px;
}

.hidden {
  display: none !important;
}

.year-inline-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(108px, 0.35fr);
}

.year-cart-lines {
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-muted);
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 2px;
  padding: 12px;
}

.year-cart-lines div {
  align-items: center;
  color: var(--text-main);
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.year-cart-lines strong {
  color: #bbf7d0;
}

.year-cart-lines button {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.24);
  border-radius: 999px;
  color: #fecaca;
  cursor: pointer;
  flex: 0 0 auto;
  font-weight: 800;
  padding: 5px 10px;
}

.year-cart-lines.compact {
  margin-top: 0;
}

.account-order-summary {
  display: grid;
  gap: 9px;
  margin: 2px 0 20px;
}

.account-order-summary p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.original-price {
  color: #f87171;
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 3px;
  text-decoration-line: line-through;
  text-decoration-style: double;
  text-decoration-thickness: 2px;
}

/* フォーム入力 */
.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-field {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.input-field:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.product-card.isekai-card .input-field:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.15);
}

/* 価格とボタン */
.card-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.price-container {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-amount {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: baseline;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  margin-left: 2px;
}

.buy-btn {
  background: var(--primary-glow);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.buy-btn:disabled {
  background: #334155;
  color: #dbeafe;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.86;
}

.product-card.isekai-card .buy-btn {
  background: var(--secondary-glow);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.product-card.isekai-card .buy-btn:hover {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.service-shell {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.selector-label {
  align-items: center;
  color: #d1fae5;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
}

.selector-label.compact {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.social-selector {
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  gap: 8px;
  margin: 0 auto;
  max-width: 520px;
  padding: 8px;
  width: 100%;
}

.social-filter {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex: 1;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
  position: relative;
  transition: var(--transition);
}

.social-filter:hover,
.social-filter.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.22);
  color: var(--text-main);
}

.social-filter.active {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35), 0 8px 22px rgba(16, 185, 129, 0.16);
}

.social-filter.active::after {
  align-items: center;
  background: var(--primary-glow);
  border-radius: 999px;
  color: #ffffff;
  content: '選択中';
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.social-filter.active::before {
  bottom: -15px;
  color: var(--accent-green);
  content: '▼';
  font-size: 0.8rem;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.boost-layout {
  align-items: stretch;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(280px, 0.85fr) minmax(360px, 1.15fr);
}

.boost-plan-panel {
  min-width: 0;
}

.boost-plan-list {
  background: rgba(20, 30, 50, 0.48);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.boost-plan {
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 14px;
  text-align: left;
  transition: var(--transition);
}

.boost-plan:hover,
.boost-plan.active {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.34);
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.08);
}

.boost-plan-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.boost-plan-main strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.boost-plan-main small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.boost-plan-tags {
  display: flex;
  flex-shrink: 0;
  gap: 6px;
  margin-left: 12px;
}

.boost-plan-tags em {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  color: #bbf7d0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
}

.boost-plan-tags em.manual {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

.boost-order-card {
  min-height: 100%;
}

.notice-box {
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 14px;
  color: #fde68a;
  display: none;
  font-size: 0.86rem;
  gap: 10px;
  line-height: 1.6;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.notice-box:not(:empty) {
  display: flex;
}

.quantity-panel {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  margin-bottom: 22px;
  padding: 16px;
}

.boost-drip-panel {
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 16px;
  margin: 0 0 22px;
  padding: 16px;
}

.drip-toggle {
  align-items: center;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 10px;
}

.drip-toggle input {
  accent-color: var(--accent-blue);
  inline-size: 18px;
  block-size: 18px;
}

.drip-toggle input:disabled + span {
  color: var(--text-muted);
}

.drip-controls {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.drip-controls label {
  color: var(--text-muted);
  display: grid;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 6px;
}

.drip-controls select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  color: var(--text-main);
  font: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
}

.drip-summary {
  color: #bae6fd;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.6;
  margin-top: 12px;
}

.quantity-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.quantity-head strong {
  color: var(--text-main);
  display: block;
  font-size: 0.98rem;
}

.unit-price {
  color: #bbf7d0;
  font-size: 0.86rem;
  font-weight: 800;
}

.quantity-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 44px 1fr 44px;
}

.icon-btn {
  align-items: center;
  aspect-ratio: 1;
  background: rgba(16, 185, 129, 0.13);
  border: 1px solid rgba(16, 185, 129, 0.24);
  border-radius: 12px;
  color: #d1fae5;
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
  transition: var(--transition);
}

.icon-btn:hover {
  background: rgba(16, 185, 129, 0.2);
}

.quantity-input {
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 800;
  height: 44px;
  text-align: center;
  width: 100%;
}

.quantity-input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
  outline: none;
}

.quantity-meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 10px;
}

.contact-note {
  align-items: flex-start;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 18px;
  color: #d8f3ff;
  display: flex;
  gap: 12px;
  line-height: 1.6;
  padding: 16px;
}

.contact-note i {
  color: var(--accent-blue);
  font-size: 1.4rem;
  margin-top: 2px;
}

.contact-note strong,
.contact-note span {
  display: block;
}

.contact-note span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.contact-note a {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
}

.contact-note a:hover {
  text-decoration: underline;
}

.modal-backdrop {
  align-items: center;
  background: rgba(2, 6, 23, 0.72);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 1200;
}

.modal-backdrop.show {
  display: flex;
}

.guide-modal {
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  max-height: min(760px, 90vh);
  max-width: 620px;
  overflow-y: auto;
  padding: 28px;
  position: relative;
  width: 100%;
}

.guide-modal h3 {
  font-family: var(--font-title);
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  font-size: 1.1rem;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
}

.guide-list {
  counter-reset: guide;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.guide-list li {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: grid;
  gap: 5px;
  padding: 14px 16px;
}

.guide-list strong {
  color: var(--text-main);
}

.guide-list span,
.guide-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.guide-note {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 14px;
  margin-top: 16px;
  padding: 12px 14px;
}

.guide-caution {
  display: grid;
  gap: 7px;
}

.guide-caution strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 3px;
}

.guide-caution span {
  display: block;
}

/* フッター */
footer {
  text-align: center;
  padding: 60px 20px 40px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 80px;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
  margin-top: 14px;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-main);
  text-decoration: underline;
}

.legal-page {
  max-width: 920px;
}

.legal-nav {
  background: rgba(15, 23, 42, 0.44);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px;
}

.legal-nav a {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 999px;
  color: #d8f3ff;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 13px;
  text-decoration: none;
}

.legal-section {
  background: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  margin-bottom: 24px;
  padding: 28px;
}

.legal-section h1 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  margin-bottom: 18px;
}

.legal-table {
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.legal-table div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
}

.legal-table div + div {
  border-top: 1px solid var(--border-color);
}

.legal-table strong,
.legal-table span {
  line-height: 1.7;
  padding: 14px 16px;
}

.legal-table strong {
  background: rgba(15, 23, 42, 0.46);
  color: var(--text-main);
}

.legal-table span {
  color: var(--text-muted);
}

.legal-table a,
.legal-copy a {
  color: var(--accent-blue);
  font-weight: 800;
  text-decoration: none;
}

.legal-table a:hover,
.legal-copy a:hover {
  text-decoration: underline;
}

.legal-note {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 14px;
  color: #bbf7d0;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  padding: 14px;
}

.legal-copy {
  display: grid;
  gap: 12px;
}

.legal-copy h2 {
  color: var(--text-main);
  font-size: 1rem;
  margin-top: 8px;
}

.legal-copy p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.8;
}

/* 通知トースト */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid var(--accent-green);
  color: #ffffff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.error {
  border-color: var(--accent-red);
}

/* レスポンシブ調整 */
@media (max-width: 600px) {
  header {
    padding: 30px 10px 10px;
  }
  .logo-text {
    font-size: 1.8rem;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    padding: 20px;
  }
  .legal-section {
    padding: 20px;
  }
  .legal-table div {
    grid-template-columns: 1fr;
  }
  .legal-table strong {
    padding-bottom: 6px;
  }
  .legal-table span {
    padding-top: 6px;
  }
  .buy-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 840px) {
  main {
    padding: 16px;
  }
  .tabs-container {
    max-width: 100%;
  }
  .boost-layout {
    grid-template-columns: 1fr;
  }
  .card-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
  }
  .buy-btn {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .social-selector {
    flex-direction: column;
  }
  .social-filter {
    width: 100%;
  }
  .tab-btn {
    font-size: 0.92rem;
    padding: 11px 12px;
  }
  .boost-plan {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .boost-plan-tags {
    margin-left: 0;
  }
  .guide-modal {
    padding: 24px 18px;
  }
}

/* ラジオグループのプレミアムセレクター */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.option-pill {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  text-align: left;
}

.option-pill:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.15);
}

.option-pill.active {
  background: rgba(14, 165, 233, 0.1);
  border-color: var(--accent-blue);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.08);
}

.option-pill.active.insta-pill {
  background: rgba(225, 48, 108, 0.08);
  border-color: #e1306c;
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.08);
}

.option-pill.active.tiktok-pill {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-main);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.option-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.option-price-container {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-price {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-blue);
}

.option-price.insta-price {
  color: #f472b6;
}

.option-price.tiktok-price {
  color: var(--text-main);
}

.option-discount-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  margin-left: 6px;
}

.back-link {
  align-items: center;
  color: #d8f3ff;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  margin-bottom: 28px;
  text-decoration: none;
}

.year-order-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.45fr);
}

.year-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.year-card {
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 126px;
  padding: 16px;
  text-align: left;
  transition: var(--transition);
}

.year-card:hover,
.year-card.active {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.34);
  box-shadow: 0 10px 24px rgba(56, 189, 248, 0.08);
}

.year-card-main {
  display: grid;
  gap: 5px;
}

.year-card-main strong {
  font-family: var(--font-title);
  font-size: 1.15rem;
}

.year-card-main small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.year-quantity-select {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 10px;
  width: 100%;
}

.year-quantity-select span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.year-quantity-select select {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  color: var(--text-main);
  font: inherit;
  font-weight: 800;
  min-height: 38px;
  padding: 0 10px;
  width: 100%;
}

.year-summary-card {
  position: sticky;
  top: 20px;
}

.restock-panel {
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px;
}

.restock-panel strong,
.restock-panel span {
  display: block;
}

.restock-panel span {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.55;
  margin-top: 3px;
}

.restock-panel.compact {
  margin-bottom: 0;
}

.secondary-btn {
  align-items: center;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 12px;
  color: #d8f3ff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  transition: var(--transition);
}

.secondary-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.secondary-btn:disabled {
  background: rgba(51, 65, 85, 0.6);
  border-color: rgba(148, 163, 184, 0.12);
  color: #64748b;
  cursor: not-allowed;
  transform: none;
}

.secondary-btn.full {
  width: 100%;
}

@media (max-width: 900px) {
  .account-type-card {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .account-type-meta {
    grid-column: 2;
    justify-items: start;
  }
  .year-inline-grid {
    grid-template-columns: 1fr;
  }
  .year-order-layout {
    grid-template-columns: 1fr;
  }
  .year-summary-card {
    position: static;
  }
}

/* ======================================================
   2026-07 UI改善: 新レイアウト用スタイル
   （legal.html / x-year-accounts.html 用の既存スタイルは上に温存）
   ====================================================== */

[hidden] {
  display: none !important;
}

/* ヘッダー */
.tagline-main {
  color: var(--text-main) !important;
  font-size: 1.02rem !important;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

.tagline-sub {
  color: var(--text-muted) !important;
  font-size: 0.88rem !important;
  margin: 6px auto 0 !important;
  max-width: 640px;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 16px;
}

.trust-chip {
  align-items: center;
  background: rgba(20, 30, 50, 0.55);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 6px;
  padding: 6px 12px;
}

.trust-chip i {
  font-size: 0.95rem;
}

/* モード切替タブ */
.mode-tabs {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin: 28px auto 0;
  max-width: 640px;
}

.mode-tab {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  text-align: left;
  transition: var(--transition);
}

.mode-tab strong {
  align-items: center;
  display: flex;
  font-size: 0.98rem;
  gap: 7px;
}

.mode-tab small {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.mode-tab:hover {
  border-color: rgba(148, 163, 184, 0.32);
}

.mode-tab:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.mode-tab.on-boost {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.35);
}

.mode-tab.on-boost strong {
  color: var(--accent-green);
}

.mode-tab.on-account {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.mode-tab.on-account strong {
  color: var(--accent-blue);
}

/* セクション / ステップ */
.content-section {
  padding-top: 32px;
}

.flow {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.step-block + .step-block {
  margin-top: 26px;
}

.step-label {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.step-num {
  align-items: center;
  background: rgba(24, 34, 56, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  color: var(--text-main);
  display: flex;
  flex: none;
  font-size: 0.8rem;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.boost-theme .step-num {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--accent-green);
}

.account-theme .step-num {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent-blue);
}

.step-label h2 {
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 700;
}

.step-hint {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-left: auto;
  text-align: right;
}

/* SNSセグメント */
.seg {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
}

.seg-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 46px;
  transition: var(--transition);
}

.seg-btn i {
  font-size: 1.05rem;
}

.seg-btn:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.boost-theme .seg-btn[aria-pressed="true"] {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--text-main);
}

.account-theme .seg-btn[aria-pressed="true"] {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--text-main);
}

/* プラン一覧 */
.plan-list {
  display: grid;
  gap: 8px;
}

.plan-item {
  align-items: center;
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  color: var(--text-main);
  cursor: pointer;
  display: grid;
  gap: 3px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 13px 15px;
  text-align: left;
  transition: var(--transition);
}

.plan-item:hover {
  border-color: rgba(148, 163, 184, 0.32);
}

.plan-item:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.plan-item .p-title {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.93rem;
  font-weight: 700;
  gap: 7px;
  line-height: 1.45;
}

.plan-item .p-sub {
  color: var(--text-muted);
  font-size: 0.78rem;
  grid-column: 1;
}

.plan-item .p-price {
  font-family: var(--font-title);
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  grid-column: 2;
  grid-row: 1 / span 2;
  text-align: right;
  white-space: nowrap;
}

.plan-item .p-price small {
  color: var(--text-muted);
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
}

.boost-theme .plan-item.selected {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.65);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.boost-theme .plan-item.selected .p-price {
  color: var(--accent-green);
}

.mini-tag {
  border-radius: 6px;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  padding: 4px 6px;
  white-space: nowrap;
}

.mini-tag.pop {
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent-green);
}

.mini-tag.h48 {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* 注文カード */
.order-card {
  backdrop-filter: blur(20px);
  background: var(--panel-bg);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 22px;
  position: sticky;
  top: 16px;
}

.oc-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.oc-plat {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
}

.oc-title {
  font-family: var(--font-title);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.45;
}

.oc-desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 8px 0 16px;
}

.oc-lines {
  border-top: 1px dashed rgba(148, 163, 184, 0.3);
  display: grid;
  gap: 7px;
  margin-top: 18px;
  padding-top: 14px;
}

.oc-line {
  color: var(--text-muted);
  display: flex;
  font-size: 0.85rem;
  gap: 12px;
  justify-content: space-between;
  line-height: 1.5;
}

.oc-line b {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.oc-line .strike {
  color: #f87171;
  text-decoration: line-through;
}

.oc-line .discount-val {
  color: #f87171;
}

.oc-total {
  align-items: baseline;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.oc-total .t-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.oc-total .t-amount {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.oc-total .t-amount small {
  font-size: 0.9rem;
  font-weight: 600;
  margin-left: 2px;
}

.buy-btn.full {
  justify-content: center;
  margin-top: 14px;
  min-height: 50px;
  width: 100%;
}

.account-theme .buy-btn {
  background: var(--secondary-glow);
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.account-theme .buy-btn:hover:not(:disabled) {
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

.account-theme .buy-btn:disabled {
  background: #334155;
  box-shadow: none;
}

.cta-reason {
  color: #fbbf24;
  font-size: 0.78rem;
  line-height: 1.5;
  margin-top: 9px;
  min-height: 1.2em;
  text-align: center;
}

.pay-note {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.75rem;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

/* アカウント種類カード（新レイアウト用調整） */
.type-cards {
  display: grid;
  gap: 8px;
}

.type-card-v2 {
  cursor: pointer;
}

.type-card-v2 .stock-badge.sm {
  font-size: 0.7rem;
  margin-left: 4px;
  padding: 3px 7px;
  vertical-align: middle;
}

.type-card-v2:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 2px;
}

.pack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.pack-chip {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  transition: var(--transition);
}

.pack-chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

.pack-chip.active {
  background: rgba(56, 189, 248, 0.14);
  border-color: rgba(56, 189, 248, 0.6);
  color: var(--accent-blue);
}

.pack-chip.soldout {
  opacity: 0.55;
}

.discount-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.6;
  margin-top: 10px;
}

.discount-hint b {
  color: #f87171;
}

/* 年数指定パネル */
.year-panel {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 16px;
}

.year-chipbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.year-chipbar:empty {
  display: none;
}

.year-chip {
  align-items: center;
  background: rgba(24, 34, 56, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 7px;
  padding: 6px 7px 6px 12px;
}

.year-chip button {
  align-items: center;
  background: rgba(239, 68, 68, 0.15);
  border: none;
  border-radius: 50%;
  color: #fca5a5;
  cursor: pointer;
  display: flex;
  font-size: 0.8rem;
  height: 20px;
  justify-content: center;
  width: 20px;
}

/* よくある質問 */
.faq-section {
  margin: 44px auto 24px;
  max-width: 780px;
}

.faq-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.faq-head h2 {
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 800;
}

.faq-head .guide-link {
  margin-top: 0;
  padding: 8px 14px;
}

.faq-item {
  background: rgba(20, 30, 50, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-bottom: 8px;
}

.faq-item summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 13px 16px;
}

.faq-item p {
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 12px 16px;
}

.faq-item a {
  color: var(--accent-blue);
  font-weight: 700;
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

/* モバイル固定バー */
.sticky-bar {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 25, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  bottom: 0;
  display: none;
  gap: 14px;
  justify-content: space-between;
  left: 0;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 900;
}

.sticky-bar .sb-total {
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  line-height: 1.2;
}

.sticky-bar .sb-total small {
  color: var(--text-muted);
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
}

.sticky-bar .buy-btn.sb-cta {
  flex: 1;
  justify-content: center;
  max-width: 260px;
  min-height: 46px;
}

.account-theme-active .sticky-bar .buy-btn {
  background: var(--secondary-glow);
}

/* レスポンシブ（新レイアウト） */
@media (max-width: 960px) {
  .flow {
    grid-template-columns: 1fr;
  }
  .order-card {
    position: static;
  }
  .sticky-bar {
    display: flex;
  }
  footer {
    padding-bottom: 120px;
  }
}

@media (max-width: 560px) {
  .mode-tabs {
    grid-template-columns: 1fr;
  }
  .seg {
    grid-template-columns: 1fr;
  }
  .seg-btn {
    justify-content: flex-start;
    padding-left: 14px;
  }
  .step-hint {
    display: none;
  }
  .faq-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* 本番公開ガード */
.maintenance-notice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  margin: 0 0 22px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 18px;
  background: rgba(127, 29, 29, 0.32);
  color: #fee2e2;
  box-shadow: 0 18px 50px rgba(127, 29, 29, 0.18);
}

.maintenance-notice[hidden] {
  display: none;
}

.maintenance-notice i {
  font-size: 1.35rem;
  color: #fca5a5;
  margin-top: 2px;
}

.maintenance-notice strong,
.maintenance-notice span {
  display: block;
}

.maintenance-notice strong {
  font-size: 1rem;
  margin-bottom: 4px;
}

.maintenance-notice span {
  color: #fecaca;
  line-height: 1.7;
}

.field-error {
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 8px 0 0;
  min-height: 1.2em;
}

body.is-maintenance .buy-btn {
  cursor: not-allowed;
  opacity: 0.62;
}
