/*
Theme Name: Otona Kurashi Lab Community
Theme URI: https://comm.otona-kurashi-lab.com
Description: オトナ暮らしラボ コミュニティサイト専用テーマ
Author: Shoko Morita
Version: 1.0.0
Text Domain: otona-comm
*/

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

:root {
  --teal:       #0CA487;
  --teal-dark:  #0a8f77;
  --teal-pale:  #f0faf7;
  --blue:       #3A76C4;
  --pink:       #FB707F;
  --text:       #2c2c2a;
  --muted:      #888780;
  --border:     rgba(0,0,0,0.07);
  --bg:         #f9f8f5;
  --white:      #ffffff;
  --radius:     4px;
}

html, body { height: 100%; }

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-dark); }

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

/* ── Layout ── */
.site-header {
  padding: 28px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
}

.site-logo {
  font-family: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.06em;
  text-decoration: none;
}
.site-logo .logo-en {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  letter-spacing: 0.12em;
  margin-top: 2px;
}

.header-sub-link {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.header-sub-link:hover { color: var(--teal); }

.site-main { flex: 1; }

.site-footer {
  padding: 24px 5%;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color .2s;
}
.site-footer a:hover { color: var(--teal); }

/* ── Buttons ── */
.btn {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-align: center;
  transition: background .2s, border-color .2s, color .2s, transform .15s;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 16px 0;
  font-size: 14px;
  font-weight: 400;
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); color: #fff; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.15);
  padding: 15px 0;
  font-size: 13px;
  font-weight: 300;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.btn-free {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.08em;
  transition: border-color .2s, color .2s;
  background: transparent;
  color: var(--muted);
  border: 1px dashed rgba(0,0,0,0.18);
  padding: 13px 0;
  font-size: 12px;
  font-weight: 300;
}
.btn-free:hover { border-color: var(--blue); color: var(--blue); }
.btn-free .btn-note {
  display: block;
  font-size: 10px;
  margin-top: 3px;
  opacity: 0.8;
}

/* ── Top page ── */
.top-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 5% 60px;
  text-align: center;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
  font-weight: 400;
  margin-bottom: 28px;
  text-transform: uppercase;
}

.top-main h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.top-main h1 strong { font-weight: 600; color: var(--teal); }

.top-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 2.2;
  margin-bottom: 52px;
  letter-spacing: 0.04em;
}

.actions-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 340px;
}

.separator {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sep-line { flex: 1; height: 1px; background: var(--border); }
.sep-text { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; white-space: nowrap; }

.notice {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.accent-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  margin: 0 4px;
  background: var(--teal);
  opacity: 0.6;
}

.thin-rule {
  width: 40px; height: 1px;
  background: rgba(12,164,135,0.3);
  margin: 52px auto 40px;
}

.about-block { max-width: 480px; margin: 0 auto; text-align: center; }
.about-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 2.2;
  letter-spacing: 0.03em;
}
.about-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 12px;
  color: var(--teal);
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(12,164,135,0.3);
  padding-bottom: 2px;
  transition: border-color .2s;
}
.about-link:hover { border-color: var(--teal); }

/* ── Trial / Checkout page ── */
.checkout-wrap {
  max-width: 480px;
  margin: 60px auto;
  padding: 0 5%;
}
.checkout-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 36px 32px;
  text-align: center;
}
.checkout-card h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.checkout-card .trial-badge {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
}
.plan-price {
  font-family: 'Noto Serif JP', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.plan-price span { font-size: 16px; font-weight: 300; color: var(--muted); }
.plan-note { font-size: 12px; color: var(--muted); margin-bottom: 28px; line-height: 1.8; }

.plan-features {
  list-style: none;
  text-align: left;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.6;
}
.plan-features li.locked { color: var(--muted); }
.plan-features li.locked::before { background: var(--muted); opacity: 0.3; }

.stripe-button-wrap { margin-top: 8px; }
.checkout-small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 16px;
  line-height: 1.9;
}

/* ── Member dashboard ── */
.dashboard-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 5%;
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}
.dashboard-greeting {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.trial-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal-pale);
  color: var(--teal);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.trial-status-badge.expiring { background: #fff8ed; color: #b07000; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dash-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 24px 20px;
}
.dash-card.full { grid-column: 1 / -1; }
.dash-card-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.dash-card h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}
.dash-card p { font-size: 13px; color: var(--muted); line-height: 1.9; }

.locked-overlay {
  position: relative;
}
.locked-overlay::after {
  content: '🔒 会員限定';
  position: absolute;
  inset: 0;
  background: rgba(249,248,245,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  border-radius: 12px;
}

/* ── Messages ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 20px;
  line-height: 1.8;
}
.alert-success { background: var(--teal-pale); color: var(--teal-dark); }
.alert-warning { background: #fff8ed; color: #b07000; }
.alert-error   { background: #fff0f0; color: #c0392b; }

/* ── Forms ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}
.form-input:focus { border-color: var(--teal); }

@media (max-width: 600px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .checkout-card { padding: 28px 20px; }
}
