/* ===== かおる音楽教室 共通スタイル（ライト固定・モバイル安全） ===== */

:root{
  --bg1:#fffefb;
  --bg2:#fff8f2;
  --card:#ffffff;
  --fg:#2b2b2b;
  --muted:#6b7280;
  --accent:#ff7aa0;
  --accent2:#67c7ff;
  --accent3:#ffd166;
  --ring: rgba(255,122,160,.24);
}

html { color-scheme: light; }

/* リセット＆ベース */
*{ box-sizing: border-box; }
html, body { height: auto; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color: var(--fg);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--bg2), transparent),
    radial-gradient(900px 500px at 110% 10%, var(--bg1), transparent),
    linear-gradient(160deg, #fff, var(--bg1)) fixed;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

.shell{
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.card{
  background: var(--card);
  border-radius: 28px;
  box-shadow: 0 8px 24px rgba(20,25,60,.08);
  padding: 28px;
  border: 1px solid rgba(0,0,0,.04);
  margin: 12px 0 24px;
}
@media (min-width:720px){
  .card{ padding: 44px 52px; }
}

/* ヘッダー（右上に表示名を固定配置） */
.header{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;          /* 狭い画面では2段になる */
  position: relative;
}
.header > .auth-badge{
  margin-left:auto;        /* 右端へ押し出す（ラッパー不要） */
}
.header .left{
  display:flex;
  align-items:center;
  gap:14px;
}

/* 右上の表示名（ログインバッジ） */
.auth-badge{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(255,122,160,.15);
  color:var(--accent);
  font-weight:800;
  border:1px solid rgba(255,122,160,.35);
  white-space:nowrap;
}
@media (max-width:560px){
  .auth-badge{ margin-left:0; margin-top:8px; }
}

/* 画像ロゴ */
.logo{
  width:96px;
  height:96px;
  border-radius:20px;
  box-shadow:0 6px 14px var(--ring);
  object-fit:cover;
  object-position:center;
  background:#fff;
}
@media (max-width:480px){
  .logo{ width:80px; height:80px; border-radius:16px; }
}

/* 見出しの余白増量 */
.title{
  font-size: clamp(28px, 6vw, 42px);
  letter-spacing:.02em;
  margin:8px 0 14px;
}
.subtitle{
  color:var(--muted);
  margin:6px 0 0;
  font-size:1.05rem;
}

.ribbon{
  margin-top:12px;
  display:inline-flex;
  align-items:center;
  gap:.5em;
  background:rgba(255,122,160,.15);
  color:var(--accent);
  padding:8px 12px;
  border-radius:999px;
  font-weight:700;
}

.cta{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin:22px 0 8px;
}
.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:14px;
  padding:14px 18px;
  font-weight:800;
  font-size:1rem;
  transition:.2s transform,.2s box-shadow,.2s background;
  display:inline-flex;
  align-items:center;
  gap:.6em;
  text-decoration:none;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
  box-shadow:0 10px 24px var(--ring);
}
.btn-ghost{
  background:#fff;
  color:var(--accent);
  border:2px solid rgba(255,122,160,.35);
}

.links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  margin-top:10px;
  font-size:1rem;
}
.links a{
  color:var(--muted);
  text-decoration:none;
  border-bottom:2px dotted rgba(107,114,128,.35);
  padding-bottom:2px;
  transition:.15s color,.15s border-color;
}
.links a:hover{ color: var(--accent); border-bottom-color: var(--accent); }

.divider{
  border:none;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,122,160,.35),transparent);
  margin:18px 0 10px;
}

.footer{
  margin-top:14px;
  color:var(--muted);
  font-size:.9rem;
  display:flex;
  justify-content:space-between;
  gap:8px;
  flex-wrap:wrap;
}
.footer a{ color:inherit; text-decoration:none; border-bottom:1px dotted rgba(107,114,128,.35); }
.pill{
  display:inline-flex;
  align-items:center;
  gap:.5em;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,122,160,.18);
  color:var(--accent);
  font-weight:700;
  font-size:.85rem;
}

.section{ margin-top:14px; }
.section h2{ margin:14px 0 12px; font-size:1.25rem; }
.section p, .section li{ line-height:1.9; }
ul{ padding-left:1.2em; }

@media (max-width:360px){
  .btn{ padding:12px 14px; }
}

