/* アカウント公開画面の見た目。プログ社本体の色・丸み・余白をそのまま使う。 */
:root {
  --bg-base: #f8faff;
  --bg-alt: #eef3ff;
  --main: #5b8def;
  --main-dark: #3b6fd9;
  --main-light: #a5c4f7;
  --main-glow: rgba(91, 141, 239, 0.10);
  --accent1: #f87171;
  --accent2: #fbbf24;
  --gold-light: #fde047;
  --lavender: #a78bfa;
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --font-body: "M PLUS Rounded 1c", "Hiragino Maru Gothic Pro", "Noto Sans JP", sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-main: 0 8px 30px rgba(91, 141, 239, 0.22);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --radius: 16px;
  --radius-pill: 50px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg-base);
  color: var(--text-secondary);
  font: 16px/1.6 var(--font-body);
}
#app {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; }
a { color: var(--main-dark); }
:focus-visible {
  outline: 3px solid var(--main);
  outline-offset: 3px;
}
::selection { background: #c7d9fb; color: var(--text-primary); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 250, 255, 0.82);
  backdrop-filter: blur(16px);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}
.nav-logo img {
  display: block;
  height: 28px;
  width: auto;
  transition: transform 0.3s var(--ease-spring);
}
.nav-logo:hover img { transform: scale(1.06) rotate(-3deg); }
.nav-menu {
  display: flex;
  gap: 0.2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  color: var(--text-secondary);
  font: inherit;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-link:hover { color: var(--main-dark); background: var(--main-glow); }
.nav-link--cta {
  color: #fff;
  background: linear-gradient(135deg, var(--main), var(--main-dark));
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-main);
}
.nav-link--cta:hover { color: #fff; transform: translateY(-2px); }

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #1e3a5f 0%, #2c5aa0 30%, #5b8def 60%, #7ba6f7 100%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 80%, rgba(251, 191, 36, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(248, 113, 113, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(167, 139, 250, 0.12) 0%, transparent 55%);
}
.hero-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute;
  opacity: 0.14;
  animation: blobFloat 14s ease-in-out infinite;
  filter: blur(1px);
}
.blob--1 { width: 280px; height: 280px; background: var(--accent2); border-radius: 40% 60% 55% 45% / 55% 40% 60% 45%; top: 5%; left: -4%; }
.blob--2 { width: 200px; height: 200px; background: var(--accent1); border-radius: 55% 45% 40% 60% / 45% 55% 45% 55%; bottom: 10%; right: -2%; animation-delay: -4s; }
.blob--3 { width: 150px; height: 150px; background: var(--gold-light); border-radius: 45% 55% 60% 40% / 60% 40% 55% 45%; top: 55%; left: 25%; animation-delay: -7s; }
.blob--4 { width: 120px; height: 120px; background: var(--lavender); border-radius: 50% 50% 40% 60% / 55% 45% 55% 45%; top: 15%; right: 18%; animation-delay: -2s; }
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(10px, -15px) rotate(5deg) scale(1.05); }
  50% { transform: translate(-5px, 8px) rotate(-3deg) scale(0.97); }
  75% { transform: translate(8px, 12px) rotate(4deg) scale(1.03); }
}
.hero-wave { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.hero-wave svg { width: 100%; height: 72px; display: block; }
.hero-content {
  position: relative;
  z-index: 2;
  width: min(440px, calc(100% - 2rem));
  padding: 2rem 0 5rem;
}
.hero-logo { display: block; width: min(220px, 60%); margin: 0 auto 1.25rem; filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.2)); }
.hero-title {
  margin: 0 0 0.4rem;
  color: #fff;
  font-size: 1.7rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}
.hero-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  line-height: 1.7;
}

.panel {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
}
.field { display: grid; gap: 0.35rem; margin: 0 0 1rem; }
.field span { color: var(--text-primary); font-weight: 700; font-size: 0.9rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--text-primary);
  background: #fff;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--main);
  box-shadow: 0 0 0 4px var(--main-glow);
  outline: none;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.4rem; }
.links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.links a { color: var(--main-dark); font-weight: 700; font-size: 0.9rem; text-underline-offset: 3px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 2rem;
  font: 700 0.95rem/1 var(--font-body);
  border-radius: var(--radius-pill);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s ease, border-color 0.25s ease;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--main) 0%, var(--main-dark) 100%);
  color: #fff;
  box-shadow: var(--shadow-main);
}
.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(91, 141, 239, 0.4); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); }
.btn-outline {
  background: #fff;
  color: var(--main-dark);
  border: 2px solid var(--main-light);
}
.btn-outline:hover:not(:disabled) { border-color: var(--main); color: var(--main-dark); background: var(--main-glow); }
.btn-danger { background: #fff; color: #b91c1c; border: 2px solid #fecaca; }
.btn-danger:hover:not(:disabled) { background: #fef2f2; }
.btn-block { width: 100%; }

.note, .error, .ok {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.note { background: var(--bg-alt); color: var(--text-secondary); }
.error { background: #fef2f2; color: #991b1b; }
.ok { background: #ecfdf5; color: #065f46; }
.hidden { display: none !important; }

.page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}
.page h1 {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-size: 1.8rem;
}
.page > p { margin: 0 0 1.75rem; }
.section {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border-soft);
}
.section h2 {
  margin: 0 0 0.35rem;
  color: var(--text-primary);
  font-size: 1.15rem;
}
.section > p { margin: 0 0 1rem; }
.account-home .attention {
  padding: 1.25rem;
  border: 1px solid #f4ca65;
  border-radius: var(--radius);
  background: #fffbeb;
}
.account-links { display: grid; gap: 1.5rem; }
.account-links .section { margin: 0; }
.account-settings .section { scroll-margin-top: 96px; }
.settings-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 0 1.25rem;
}
.settings-index a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--text-primary);
  font-weight: 700;
  text-decoration: none;
}
.settings-index a:hover { border-color: var(--main); color: var(--main-dark); }
.backup-display { padding: 1rem 0; }
.backup-display .codes { margin: 1rem 0; }
.account-settings ol { margin: 0.6rem 0 0; padding-left: 1.5rem; }
.account-settings ol li + li { margin-top: 0.35rem; }
.row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
}
.row + .row { border-top: 1px solid var(--border-lighter, #f1f5f9); }
.row strong { color: var(--text-primary); font-size: 0.95rem; }
.muted { color: var(--text-muted); font-size: 0.88rem; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.15rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--bg-alt);
  color: var(--main-dark);
  font-size: 0.78rem;
  font-weight: 700;
}
.codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}
.codes code {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--bg-alt);
  color: var(--text-primary);
  font: 700 0.9rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.qr { display: block; width: 220px; height: 220px; margin: 0.75rem auto; background: #fff; border-radius: 12px; }
.secret { word-break: break-all; font: 700 0.9rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-primary); }
.field input.key {
  font: 700 1rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0 0 1rem;
  min-height: 44px;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--main-dark);
  flex: 0 0 auto;
}
.consent a { font-weight: 700; text-underline-offset: 3px; }

.page.shop { width: min(960px, calc(100% - 2rem)); }
.shop-hero {
  margin: 0 0 1.6rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 80% at 10% 20%, rgba(115, 200, 138, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 70% at 90% 10%, rgba(228, 83, 79, 0.18), transparent 50%),
    linear-gradient(160deg, #14181c, #1d2430);
  color: #e8efe9;
}
.shop-kicker {
  margin: 0 0 0.35rem;
  color: #e6a84f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.shop-hero h1 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.shop-hero p { margin: 0; color: #c9d4cc; }
.shop-card--scc { border-top: 4px solid #73c88a; }
.shop-card--gb { border-top: 4px solid #9a9e3f; }
.shop-card--fc { border-top: 4px solid #e4534f; }
.shop-item--scc .badge { background: #d7f3df; color: #1d5a32; }
.shop-item--gb .badge { background: #e4e6a8; color: #3a4210; }
.shop-item--fc .badge { background: #ffd4d2; color: #8a1518; }
.shop-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.shop-card {
  display: block;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
}
.shop-card:hover { box-shadow: var(--shadow-md); }
.shop-card h2 {
  margin: 0.4rem 0 0.45rem;
  color: var(--text-primary);
  font-size: 1.2rem;
}
.shop-buy {
  margin: 0.7rem 0 0;
  color: #c56a12;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.shop-features {
  margin: 1rem 0 0;
  padding: 0 0 0 1.15rem;
  color: #3a4540;
}
.shop-features li { margin: 0.35rem 0; }
.shop-howto {
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.2rem 1.2rem;
  border-radius: var(--radius);
  background: #f4f7f5;
}
.shop-howto h2 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
}
.shop-steps {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
}
.shop-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.shop-step-n {
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: #1d2430;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.5rem;
  text-align: center;
}
.price {
  margin: 0.85rem 0 0;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.35rem;
}

.legal { max-width: 72ch; }
/* 利用規約本文。Apple legal の .sosumi（12px / 1.33）を基準に、日本語向けへ行間だけ広げる。 */
.legal-terms {
  max-width: 42rem;
  color: #333;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
}
.legal-terms h1 {
  margin-bottom: 0.45rem;
  color: #111;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}
.legal-terms > p {
  margin: 0 0 1em;
  color: #333;
}
.legal-terms .muted {
  color: #666;
  font-size: 11px;
}
.legal-terms .section {
  padding: 0.1rem 0 0;
  border-top: none;
}
.legal-terms .section h2 {
  margin: 1.55em 0 0.5em;
  color: #111;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.legal-terms .section > p { margin: 0 0 0.8em; }
.partner-header {
  background: #fff;
  border-bottom: 1px solid var(--border-soft);
}
.partner-header .nav-inner { height: 52px; }
.partner-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 700;
}
.legal-list { margin: 0; }
.legal-list > div {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0.75rem 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-soft);
}
.legal-list dt {
  margin: 0;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
}
.legal-list dd { margin: 0; }

.site-footer {
  margin-top: auto;
  padding: 0.85rem 1rem;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  width: min(1120px, 100%);
  margin: 0 auto;
}
.site-footer a {
  color: var(--text-secondary);
  font-weight: 700;
  text-underline-offset: 3px;
}
.site-footer a:hover { color: var(--main-dark); }

@media (max-width: 640px) {
  .site-header .nav-inner { height: auto; min-height: 64px; flex-wrap: wrap; gap: 0.25rem; padding: 0.7rem 0; }
  .site-header nav { width: 100%; overflow-x: auto; }
  .site-header .nav-menu { width: max-content; }
  .nav-link { padding: 0.45rem 0.7rem; font-size: 0.82rem; }
  .codes { grid-template-columns: 1fr; }
  .legal-list > div { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer-bar { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
