@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;600;700;900&family=Shippori+Mincho+B1:wght@700;800&display=swap');

:root {
  --paper: #f7f6f1;
  --ink: #1f2522;
  --muted: #66706a;
  --line: #d8ddd7;
  --green: #236c52;
  --green-soft: #e3f0e9;
  --coral: #e76f5b;
  --white: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Noto Sans JP', sans-serif; }
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .58; }

.topbar {
  min-height: 66px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 246, 241, .94);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand span { width: 19px; height: 19px; background: conic-gradient(from 40deg, #64c9ca, #f5c353, #ec735f, #64c9ca); border-radius: 6px; }
.topbar nav, footer nav { display: flex; gap: 20px; }
.topbar nav a, footer a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }

main { overflow: hidden; }
.hero {
  max-width: 1180px;
  min-height: 360px;
  margin: 0 auto;
  padding: 88px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  align-items: end;
  gap: 70px;
}
.eyebrow { margin: 0 0 12px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1, .steps h2, .guide-band h2 { font-family: 'Shippori Mincho B1', serif; }
h1 { margin-bottom: 0; font-size: clamp(42px, 5vw, 66px); line-height: 1.14; letter-spacing: 0; word-break: keep-all; }
.hero-copy { margin-bottom: 8px; color: var(--muted); font-size: 17px; line-height: 2; }

.service-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1180px; margin: 0 auto; border: 1px solid var(--line); border-width: 1px 0; }
.service-strip span { padding: 18px 20px; color: #425149; font-size: 13px; font-weight: 900; text-align: center; border-right: 1px solid var(--line); }
.service-strip span:last-child { border-right: 0; }

.manage-layout { max-width: 1180px; margin: 0 auto; padding: 76px 24px 110px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.steps { padding-top: 14px; }
.steps h2 { margin-bottom: 32px; font-size: clamp(29px, 3.8vw, 46px); line-height: 1.45; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; }
.steps li b { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #9eb7a9; color: var(--green); border-radius: 50%; }
.steps li span { color: var(--muted); font-size: 14px; line-height: 1.75; }
.steps li strong { display: block; color: var(--ink); font-size: 16px; }
.safety-note { margin-top: 30px; padding: 18px 0; color: #43534b; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.9; }

.manager { min-height: 450px; padding: clamp(24px, 4vw, 46px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 70px rgba(34, 52, 43, .08); }
.manager h2 { margin-bottom: 8px; font-size: 30px; }
.request-form > p:not(.eyebrow), .state-panel p { color: var(--muted); line-height: 1.8; }
.request-form label { display: block; margin: 27px 0 9px; color: #435149; font-size: 13px; font-weight: 900; }
.request-form input { width: 100%; min-height: 54px; padding: 0 15px; border: 1px solid #cbd3cd; border-radius: 6px; background: #fbfcfa; color: var(--ink); }
.request-form input:focus { outline: 3px solid rgba(35, 108, 82, .16); border-color: var(--green); }
.request-form button, .confirm-cancel, .state-panel a {
  width: 100%; min-height: 52px; margin-top: 15px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 6px; background: var(--green); color: #fff; font-weight: 900; text-decoration: none;
}
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-message { min-height: 1.6em; margin: 14px 0 0; color: var(--green); font-size: 13px; font-weight: 700; line-height: 1.7; }
.form-message[data-tone="error"] { color: #b34939; }
.state-panel { padding: 50px 0; text-align: center; }
.spinner { display: block; width: 42px; height: 42px; margin: 0 auto 24px; border: 3px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.state-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 20px; color: #a84c3d; background: #f9e9e5; border-radius: 50%; font-weight: 900; }
.state-panel a { max-width: 320px; margin: 22px auto 0; }

.result-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 24px; }
.verified-email { max-width: 230px; overflow-wrap: anywhere; color: var(--green); font-size: 12px; font-weight: 900; text-align: right; }
.subscription-list { display: grid; gap: 14px; }
.subscription-card { padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: #fbfcfa; }
.subscription-card header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.subscription-card h3 { margin-bottom: 5px; font-size: 18px; }
.subscription-card header p, .subscription-meta { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.status-badge { flex: none; padding: 6px 9px; color: var(--green); background: var(--green-soft); font-size: 11px; font-weight: 900; border-radius: 999px; }
.subscription-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.cancel-toggle { margin-top: 16px; padding: 0; border: 0; background: transparent; color: #8b5145; font-size: 13px; font-weight: 900; text-decoration: underline; }
.cancel-confirm { margin-top: 15px; padding: 16px; background: #f8ebe7; border-left: 3px solid var(--coral); }
.cancel-confirm p { color: #674b44; font-size: 13px; line-height: 1.75; }
.confirm-cancel { margin-top: 8px; background: #a64538; }
.cancel-confirm .cancel-back { width: 100%; min-height: 40px; margin-top: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 800; }
.scheduled { margin: 14px 0 0; color: var(--green); font-size: 13px; font-weight: 900; }
.empty-state { padding: 32px 8px; text-align: center; color: var(--muted); line-height: 1.9; }
.new-link { display: inline-block; margin-top: 24px; color: var(--green); font-size: 13px; font-weight: 900; }

.guide-band { padding: 90px max(24px, calc((100vw - 1132px) / 2)); background: #1d3028; color: #fff; }
.guide-band > div:first-child { display: grid; grid-template-columns: .7fr 1.3fr; gap: 30px; align-items: end; }
.guide-band .eyebrow { color: #9fd6bb; }
.guide-band h2 { margin-bottom: 0; font-size: clamp(34px, 5vw, 60px); }
.guide-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.18); }
.guide-grid article { min-height: 210px; padding: 26px; background: #1d3028; }
.guide-grid h3 { font-size: 18px; }
.guide-grid p { color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.9; }
.guide-grid a { color: #b7e6cd; font-size: 13px; font-weight: 900; }
footer { min-height: 86px; padding: 25px max(24px, calc((100vw - 1180px) / 2)); display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 820px) {
  .topbar { padding: 0 18px; }
  .topbar nav a:first-child { display: none; }
  .hero { min-height: 0; padding: 64px 20px 42px; grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  .hero-copy { font-size: 15px; }
  .service-strip { grid-template-columns: 1fr 1fr; }
  .service-strip span:nth-child(2) { border-right: 0; }
  .service-strip span:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .manage-layout { padding: 56px 20px 78px; grid-template-columns: 1fr; gap: 42px; }
  .manager { padding: 24px 18px; }
  .result-head { display: block; }
  .verified-email { display: block; max-width: none; margin-top: 8px; text-align: left; }
  .guide-band { padding: 68px 20px; }
  .guide-band > div:first-child, .guide-grid { grid-template-columns: 1fr; }
  .guide-grid { gap: 0; }
  .guide-grid article { min-height: 0; border-top: 1px solid rgba(255,255,255,.18); }
  footer { padding: 28px 20px; align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; gap: 12px 18px; }
}
