/* ========================================
   サブスクAIチェッカー - スタイル
   ======================================== */

/* --- リセット & ベース --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  font-weight: 400;
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--c-purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* --- CSS変数 --- */
:root {
  --c-purple: #845ec2;
  --c-purple-light: #f3eefb;
  --c-pink: #d65db1;
  --c-coral: #ff6f91;
  --c-coral-light: #fff0f3;
  --c-salmon: #ff9671;
  --c-gold: #ffc75f;
  --c-gold-light: #fff8e7;
  --c-lemon: #f9f871;

  --c-orange: #ff6f91;
  --c-orange-light: #fff0f3;
  --c-blue: #845ec2;
  --c-blue-light: #f3eefb;
  --c-yellow: #ffc75f;
  --c-green: #6BCB77;
  --c-mint: #845ec2;
  --c-mint-dark: #7251b5;

  --c-bg: #faf8ff;
  --c-card: #ffffff;
  --c-text: #2d2d3d;
  --c-text-sub: #7a7a8e;
  --c-border: #ece8f4;

  --shadow: 0 4px 20px rgba(132, 94, 194, 0.08);
  --shadow-hover: 0 8px 30px rgba(132, 94, 194, 0.15);

  --radius: 16px;
  --font: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', sans-serif;
  --max-w: 720px;
}

/* --- レイアウト --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  text-decoration: none;
}

.header-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

/* ハンバーガーメニュー */
.menu-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 8px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .menu-bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ナビゲーション */
.header-nav {
  display: none;
  padding: 8px 16px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.header-nav.open {
  display: block;
}

.nav-section {
  padding: 8px 0;
  border-bottom: 1px solid var(--c-border);
}

.nav-section:last-child {
  border-bottom: none;
}

.nav-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-text-sub);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.nav-section a {
  display: block;
  padding: 8px 12px;
  color: var(--c-text);
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.nav-section a:hover {
  background: var(--c-purple-light);
  text-decoration: none;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.3);
}

.nav-overlay.active {
  display: block;
}

/* ========================================
   フッター
   ======================================== */
.site-footer {
  margin-top: 60px;
  padding: 32px 16px;
  background: var(--c-purple-light);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--c-text-sub);
}

.footer-apps {
  margin-bottom: 16px;
}

.footer-apps a {
  font-size: 0.85rem;
  color: var(--c-purple);
  font-weight: 500;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--c-text-sub);
}

/* ========================================
   トップページ
   ======================================== */
.hero {
  text-align: center;
  padding: 48px 16px 40px;
}

.hero-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-text);
  margin-bottom: 12px;
}

.hero-catch {
  font-size: 1.1rem;
  color: var(--c-text-sub);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* CTAボタン */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--c-coral), var(--c-salmon));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 111, 145, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 111, 145, 0.45);
  text-decoration: none;
}

/* 3ステップ */
.steps-section {
  padding: 40px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.steps-section h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--c-text);
}

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

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  border-radius: 50%;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--c-text-sub);
}

/* カテゴリ一覧 */
.categories-section {
  padding: 40px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.categories-section h2 {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.category-icon {
  font-size: 2rem;
}

.category-card span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text);
}

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

/* ========================================
   チェッカー（診断ページ）
   ======================================== */

/* 進捗バー */
.progress-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 16px 0;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-sub);
  margin-bottom: 8px;
  text-align: center;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--c-border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-purple), var(--c-coral));
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ステップ共通 */
.checker-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

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

.step-icon {
  font-size: 2rem;
}

.step-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

/* フォーム要素 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--c-text);
}

.form-group select,
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-card);
  font-size: 1rem;
  color: var(--c-text);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a8e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select:focus,
.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--c-purple);
}

.input-suffix {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-suffix input {
  flex: 1;
}

.input-suffix span {
  font-size: 0.95rem;
  color: var(--c-text-sub);
  white-space: nowrap;
}

/* チェックボックスグループ */
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  border-radius: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.checkbox-group label:has(input:checked) {
  border-color: var(--c-purple);
  background: var(--c-purple-light);
}

.checkbox-group input[type="checkbox"] {
  accent-color: var(--c-purple);
  width: 18px;
  height: 18px;
}

/* サブスク選択チップ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

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

.service-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

.service-chip input[type="checkbox"] {
  display: none;
}

.service-chip i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--c-purple);
  opacity: 0.7;
  flex-shrink: 0;
}

.service-chip:has(input:checked) {
  border-color: var(--c-purple);
  background: var(--c-purple-light);
  box-shadow: 0 2px 8px rgba(132, 94, 194, 0.15);
}

.service-chip:has(input:checked) i {
  opacity: 1;
}

.service-chip:has(input:checked)::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--c-purple);
}

.service-chip:hover {
  border-color: var(--c-purple);
}

/* サブスク用コーラルカラー */
.service-grid.coral .service-chip i {
  color: var(--c-coral);
}

.service-grid.coral .service-chip:has(input:checked) {
  border-color: var(--c-coral);
  background: var(--c-coral-light);
  box-shadow: 0 2px 8px rgba(255, 111, 145, 0.15);
}

.service-grid.coral .service-chip:has(input:checked) i {
  opacity: 1;
}

.service-grid.coral .service-chip:has(input:checked)::after {
  color: var(--c-coral);
}

.service-grid.coral .service-chip:hover {
  border-color: var(--c-coral);
}

/* ナビボタン */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}

.btn-prev,
.btn-next {
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-prev {
  background: var(--c-card);
  color: var(--c-text-sub);
  border: 2px solid var(--c-border);
}

.btn-prev:hover {
  background: var(--c-purple-light);
}

.btn-next {
  background: linear-gradient(135deg, var(--c-coral), var(--c-salmon));
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 111, 145, 0.25);
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255, 111, 145, 0.45);
}

.btn-submit {
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: #fff;
  box-shadow: 0 4px 16px rgba(132, 94, 194, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(132, 94, 194, 0.45);
}

.btn-skip {
  font-size: 0.85rem;
  color: var(--c-text-sub);
  text-decoration: underline;
  background: none;
  border: none;
  cursor: pointer;
}

.step-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================
   入力確認画面
   ======================================== */
.confirm-screen {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.confirm-screen.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.confirm-inner h2 {
  font-size: 1.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
  color: var(--c-text);
}

.confirm-desc {
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-text-sub);
  margin-bottom: 24px;
}

.confirm-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.confirm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--c-card);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.confirm-item.skipped {
  opacity: 0.5;
}

.confirm-item-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.confirm-item-body {
  flex: 1;
  min-width: 0;
}

.confirm-item-name {
  font-size: 0.82rem;
  color: var(--c-text-sub);
}

.confirm-item-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.confirm-total {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, var(--c-coral-light), var(--c-gold-light));
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--c-text);
}

.confirm-total strong {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--c-coral);
}

.confirm-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ========================================
   ローディング
   ======================================== */
.loading-screen {
  display: none;
  text-align: center;
  padding: 60px 16px;
}

.loading-screen.active {
  display: block;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--c-border);
  border-top-color: var(--c-purple);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-screen p {
  font-size: 1rem;
  color: var(--c-text-sub);
}

/* ========================================
   結果画面
   ======================================== */
.result-screen {
  display: none;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.result-screen.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* サマリー */
.result-summary {
  background: linear-gradient(135deg, var(--c-coral), var(--c-salmon));
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;
}

.result-summary h2 {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.9;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.summary-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

.summary-item .label {
  font-size: 0.8rem;
  opacity: 0.85;
  margin-bottom: 4px;
}

.summary-item .value {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.2;
}

.summary-item .unit {
  font-size: 0.85rem;
  font-weight: 500;
}

.summary-item.highlight {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.25);
}

.summary-item.highlight .value {
  font-size: 2rem;
  color: var(--c-gold);
}

/* カテゴリ別棒グラフ */
.chart-section {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 28px;
}

.chart-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--c-text);
}

.chart-row {
  margin-bottom: 16px;
}

.chart-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text);
  margin-bottom: 6px;
}

.chart-bar-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chart-bar {
  flex: 1;
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  background: var(--c-border);
  min-width: 0;
}

.chart-bar-remaining {
  background: linear-gradient(90deg, var(--c-purple), var(--c-purple));
  height: 100%;
  border-radius: 8px 0 0 8px;
  opacity: 0.7;
}

.chart-bar-saving {
  background: linear-gradient(90deg, var(--c-coral), var(--c-salmon));
  height: 100%;
  border-radius: 0 8px 8px 0;
}

.chart-amount {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}

.chart-saving-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--c-coral);
  text-align: right;
  margin-top: 2px;
  padding-right: 80px;
}

.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--c-text-sub);
}

.legend-remaining,
.legend-saving {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-remaining {
  background: var(--c-purple);
  opacity: 0.7;
}

.legend-saving {
  background: linear-gradient(90deg, var(--c-coral), var(--c-salmon));
}

/* カテゴリ別アドバイスカード */
.advice-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.advice-card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.advice-card.skipped {
  opacity: 0.5;
}

.advice-card.skipped .advice-card-header {
  background: var(--c-border);
}

.advice-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--c-coral), var(--c-salmon));
  color: #fff;
}

.advice-card-header .icon {
  font-size: 1.3rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.advice-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.advice-card-body {
  padding: 16px 20px 20px;
}

.advice-assessment {
  font-size: 0.88rem;
  color: var(--c-text-sub);
  margin-bottom: 12px;
  padding: 10px 14px;
  background: var(--c-purple-light);
  border-radius: 10px;
  border-left: 3px solid var(--c-purple);
  line-height: 1.6;
}

.advice-suggestion {
  font-size: 0.92rem;
  color: var(--c-text);
  margin-bottom: 14px;
  line-height: 1.7;
  padding: 0 2px;
}

.advice-saving {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8e7, #fff0f3);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-coral);
  border: 1px solid rgba(255, 111, 145, 0.15);
}

.advice-saving.no-saving {
  background: var(--c-purple-light);
  color: var(--c-purple);
  border-color: rgba(132, 94, 194, 0.15);
}

.advice-skipped-msg {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--c-text-sub);
  font-style: italic;
}

/* ========================================
   診断結果の保存ボタン
   ======================================== */
.save-section {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.save-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--c-text);
}

.save-buttons {
  display: flex;
  gap: 10px;
}

.save-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-card);
  color: var(--c-text);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}

.save-btn:hover {
  border-color: var(--c-purple);
  color: var(--c-purple);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.save-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
}

/* ========================================
   アプリシェアボタン
   ======================================== */
.share-box {
  background: linear-gradient(135deg, var(--c-purple-light) 0%, var(--c-coral-light) 100%);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.share-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--c-text);
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.3s;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.share-btn.native {
  background: linear-gradient(135deg, var(--c-coral), var(--c-salmon));
}

.share-btn.x {
  background: #0f1419;
}

.share-btn.line {
  background: #06C755;
}

.share-btn.copy {
  background: #6B7280;
}

.share-btn.copied {
  background: #22c55e;
}

.btn-retry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--c-card);
  border: 2px solid var(--c-border);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  transition: background 0.2s;
  margin-top: 12px;
}

.btn-retry:hover {
  background: var(--c-purple-light);
}

/* ========================================
   エラー表示
   ======================================== */
.error-message {
  display: none;
  text-align: center;
  padding: 40px 16px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.error-message.active {
  display: block;
}

.error-message .error-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.error-message p {
  font-size: 1rem;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}

/* ========================================
   静的ページ（免責・プライバシー・about）
   ======================================== */
.static-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 16px 40px;
}

.static-page h1 {
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 24px;
  text-align: center;
  color: var(--c-text);
}

.static-card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}

.static-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-purple-light);
  color: var(--c-text);
}

.static-card p {
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.8;
}

.static-card ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.static-card ul li {
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 6px;
  line-height: 1.7;
}

/* 運営者情報テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  font-size: 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.info-table th {
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  width: 30%;
  background: var(--c-purple-light);
}

.info-table td {
  color: var(--c-text);
}

/* ========================================
   パンくずリスト
   ======================================== */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--c-text-sub);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--c-purple);
}

/* ========================================
   読み物記事
   ======================================== */
.static-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 14px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--c-purple-light);
  color: var(--c-text);
}

.static-page > p {
  font-size: 0.95rem;
  color: var(--c-text);
  margin-bottom: 12px;
  line-height: 1.8;
}

/* ========================================
   読み物一覧ページ
   ======================================== */
.column-page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 16px 40px;
}

.column-hero {
  text-align: center;
  padding: 36px 0 28px;
}

.column-hero h1 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--c-text);
}

.column-hero p {
  font-size: 0.9rem;
  color: var(--c-text-sub);
}

.column-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.column-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.column-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
  border-color: var(--c-purple);
}

.column-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-purple-light);
  border-radius: 12px;
}

.column-card-body {
  flex: 1;
  min-width: 0;
}

.column-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--c-text);
  line-height: 1.4;
}

.column-card-desc {
  font-size: 0.78rem;
  color: var(--c-text-sub);
  line-height: 1.5;
}

.column-card-arrow {
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--c-purple);
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}

.column-card:hover .column-card-arrow {
  opacity: 1;
  transform: translateX(3px);
}

/* アプリ紹介カード（別デザイン） */
.column-about-card {
  margin-top: 8px;
}

.column-about-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(135deg, var(--c-purple-light), var(--c-coral-light));
  border-radius: var(--radius);
  border: 2px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.2s, box-shadow 0.2s;
}

.column-about-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.column-about-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
}

.column-about-title {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.column-about-desc {
  font-size: 0.78rem;
  color: var(--c-text-sub);
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (min-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .summary-item .value {
    font-size: 1.8rem;
  }

  .summary-item.highlight .value {
    font-size: 2.4rem;
  }
}

@media (min-width: 720px) {
  .hero {
    padding: 60px 16px 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
