/* APOLLO アプリストア 決済ページ（ストアと同じ紙と墨の配色） */
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@700;900&family=Noto+Sans+JP:wght@400;700&display=swap');

:root { --ink: #1C1B19; --paper: #F4F1EA; --card: #FBFAF6; --line: #CFC9BB; --sub: #4A4740; --accent: #5B4E86; --danger: #9A3B2A; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'Noto Sans JP', sans-serif; line-height: 1.8; }
a { color: var(--accent); }
.testbar { background: #C8962E; color: var(--ink); text-align: center; font-size: 13px; font-weight: 700; padding: 6px 16px; }
header.site { border-bottom: 1px solid var(--ink); padding: 16px 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { width: 32px; height: 32px; background: #1F3A5F; color: var(--paper); display: flex; align-items: center; justify-content: center; font-family: 'Zen Old Mincho', serif; font-weight: 900; }
.brand b { font-family: 'Zen Old Mincho', serif; font-weight: 900; font-size: 20px; letter-spacing: .08em; }
.brand small { font-size: 12px; letter-spacing: .2em; color: var(--sub); }
main { max-width: 720px; margin: 0 auto; padding: 40px 20px 72px; }
h1 { font-family: 'Zen Old Mincho', serif; font-size: clamp(24px, 5vw, 32px); line-height: 1.4; margin: 0 0 20px; }
.steps { font-size: 13px; color: var(--sub); margin: 0 0 12px; }
.steps b { color: var(--accent); }
.form { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.form input[type=text], .form input:not([type]), .form input[type=email], .form input[type=password] { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--ink); background: #fff; min-height: 48px; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; margin-top: 4px; }
.plans { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.plans legend { font-weight: 700; margin-bottom: 8px; }
.plan { position: relative; display: grid !important; grid-template-columns: auto 1fr auto; gap: 4px 12px !important; align-items: center; background: var(--card); border: 1px solid var(--ink); padding: 16px 18px; cursor: pointer; }
.plan:has(input:checked) { border: 2px solid var(--accent); padding: 15px 17px; }
.plan input { width: 20px; height: 20px; }
.plan-name { font-family: 'Zen Old Mincho', serif; font-size: 20px; }
.plan-price { font-size: 20px; font-weight: 700; text-align: right; }
.plan-price small { font-size: 12px; font-weight: 400; }
.plan-note { grid-column: 2 / 4; font-size: 13px; font-weight: 400; color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border: 0; background: var(--accent); color: var(--paper); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn.danger { background: var(--danger); }
.kv { width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--card); }
.kv th, .kv td { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 12px; text-align: left; vertical-align: top; font-size: 15px; }
.kv th { width: 9em; font-weight: 700; white-space: nowrap; }
.big { font-size: 22px; }
.small { font-size: 13px; color: var(--sub); }
.notice { background: #F3E9D6; border-left: 4px solid #C8962E; padding: 12px 16px; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); border: 2px dashed var(--accent); padding: 20px; margin: 24px 0; }
.code-box span { font-size: 13px; color: var(--sub); }
.code-box b { font-family: monospace; font-size: clamp(20px, 6vw, 28px); letter-spacing: .08em; }
.secure { display: flex; gap: 16px; align-items: flex-start; background: #EEF2F7; border: 2px solid #1F3A5F; padding: 20px 22px; color: #1F3A5F; }
.secure svg { flex: none; margin-top: 2px; }
.secure p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.9; }
.secure .secure-title { color: #1F3A5F; font-size: 19px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
/* カード入力（fincode の部品）
   fincode がフォームに付ける見た目（細い箱・角丸・影）を打ち消して、ページの幅に合わせる */
#fincode-form { width: 100% !important; max-width: none !important; margin: 28px 0 40px !important; padding: 0 !important;
  height: auto !important; min-height: 0 !important; overflow: visible !important; position: static !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
/* 入力欄の窓の高さ。4つの欄（番号・有効期限・セキュリティコード・名義）が収まる高さ */
.card-frame { --card-ui-height: 400px; background: var(--card); border: 1px solid var(--line); padding: 16px; display: flex; justify-content: center; }
.card-frame iframe { width: 100% !important; max-width: 480px !important; height: var(--card-ui-height) !important; border: 0 !important; display: block; }
.btn:disabled { opacity: .5; cursor: wait; }
footer.site { background: var(--ink); color: #CFCABE; font-size: 12px; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: #CFCABE; }
@media (max-width: 520px) {
  .kv th { width: auto; white-space: normal; }
  .kv th, .kv td { display: block; border: 0; padding: 6px 12px; }
  .kv tr { display: block; border-top: 1px solid var(--line); padding: 8px 0; }
}
h2 { font-family: 'Zen Old Mincho', serif; font-size: 20px; margin: 36px 0 8px; }
.plan.disabled { opacity: .55; cursor: not-allowed; }
.plan.disabled .plan-note b { color: var(--danger); }
.form .btn + .small { margin: -10px 0 8px; }
.plan-name { white-space: nowrap; }
