:root {
  color-scheme: light;
  --green: #315c4c;
  --green-dark: #244b3d;
  --green-soft: #e9efe4;
  --paper: #ffffff;
  --ink: #283d35;
  --muted: #65726a;
  --line: #dce2d8;
  --error: #a83e35;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 18px;
}
* { box-sizing: border-box; }
html { min-width: 0; background: #fbfaf6; }
body { min-width: 0; margin: 0; color: var(--ink); background: #fbfaf6; line-height: 1.8; letter-spacing: .02em; overflow-wrap: anywhere; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .66; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.account-page { width: min(100%, 1080px); min-height: 100svh; margin: 0 auto; padding: max(38px, env(safe-area-inset-top)) 32px max(40px, env(safe-area-inset-bottom)); }
.account-brand { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 2px 0 34px; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 17px 17px 17px 5px; color: white; background: var(--green-dark); font-family: "Yu Mincho", serif; font-size: 27px; font-weight: 600; }
.brand-name { display: grid; }
.brand-name strong { font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: 29px; font-weight: 600; line-height: 1.2; letter-spacing: .13em; }
.brand-name small { margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 500; }
.service-information { width: min(100%, 560px); margin: 18px auto 0; padding: 0 22px; border: 1px solid #d8e4e1; border-radius: 16px; background: rgba(255,255,255,.72); color: #49615e; }
.service-information summary { min-height: 54px; display: flex; align-items: center; cursor: pointer; color: #245f63; font-weight: 650; }
.service-information div { padding: 0 0 18px; }
.service-information p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; }
.service-information p:last-child { margin-bottom: 0; }
.service-information a { color: #176c70; text-underline-offset: 3px; }
.service-contact-link { display: block; width: fit-content; margin: 18px auto 0; color: #176c70; font-weight: 650; line-height: 1.6; text-underline-offset: 3px; }
.service-contact-link[hidden] { display: none; }
.account-card { width: 100%; max-width: 560px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: 0 8px 30px #203f310b; }
#entry-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: none; padding: 0; overflow: hidden; }
.guest-intro { padding: 36px; background: #f6f7f0; min-width: 0; }
.login-section { padding: 36px; min-width: 0; border-left: 1px solid var(--line); }
#entry-panel > .section-divider { display: none; }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 17px; color: var(--green); background: var(--green-soft); }
.card-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.5; letter-spacing: .025em; }
h1[tabindex="-1"]:focus { outline: none; }
h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.5; }
.lead { margin: 12px 0 22px; color: var(--muted); font-size: 18px; line-height: 1.85; font-weight: 400; }
.primary-button, .secondary-button { width: 100%; min-height: 58px; padding: 13px 18px; border-radius: 12px; font-size: 18px; line-height: 1.6; font-weight: 600; }
.primary-button { border: 1px solid var(--green-dark); color: white; background: var(--green-dark); box-shadow: 0 3px 6px #243f2410; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible, .back-button:focus-visible, input:focus-visible, .password-toggle:focus-visible { outline: 4px solid #f2b951; outline-offset: 2px; }
.secondary-button { margin-top: 13px; border: 1px solid #cbd6c8; color: var(--green-dark); background: white; font-size: 18px; }
.secondary-button:hover { background: #f1f3ec; }
.text-button, .back-button { min-height: 48px; border: 0; color: var(--green-dark); background: transparent; font-size: 18px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
.text-button { display: block; width: 100%; margin-top: 8px; }
.back-button { margin: -8px 0 18px -6px; padding: 6px; text-decoration: none; }
.expiry-note, .scope-note, .register-note { color: var(--muted); font-size: 16px; line-height: 1.65; }
.expiry-note { margin: 11px 0 0; text-align: center; }
.scope-note { margin: 20px 5px 0; text-align: center; }
.register-note { margin: 18px 2px 0; padding: 13px 14px; border-radius: 14px; background: #f4f7f5; }
.section-divider { height: 1px; margin: 27px 0 24px; background: #cfddd8; }
.provider-login { margin: 18px 0 20px; }
.line-login-button { width: min(100%, 260px); min-height: 48px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 0; border-radius: 8px; color: white; background: #06c755; font-size: 17px; font-weight: 800; text-decoration: none; }
.line-login-button:hover { background: #05b84e; }
.line-login-button:focus-visible { outline: 4px solid #f2b951; outline-offset: 2px; }
.provider-label { margin: 0 0 6px; color: var(--muted); font-size: 14px; text-align: center; }
#google-button { display: flex; min-height: 44px; justify-content: center; }
.login-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.login-or::before, .login-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.provider-login .form-error { margin-top: 12px; }
form { display: grid; gap: 17px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: 18px; font-weight: 600; }
.field input { width: 100%; min-width: 0; min-height: 60px; padding: 12px 14px; border: 1px solid #a8b8a7; border-radius: 12px; color: var(--ink); background: white; font-size: 18px; }
.password-field { position: relative; min-width: 0; }
.password-field input { padding-right: 78px; }
.password-toggle { position: absolute; top: 6px; right: 6px; min-width: 64px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 8px; color: var(--green-dark); background: var(--green-soft); font-size: 16px; font-weight: 600; }
.field-help { margin: -2px 2px 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.form-error, .form-success { margin: -3px 0 0; padding: 12px 14px; border-radius: 13px; font-size: 16px; line-height: 1.6; font-weight: 750; }
.form-error { color: var(--error); background: #fff0ee; }
.form-success { color: var(--green-dark); background: var(--green-soft); }
[hidden] { display: none !important; }
.consent-page { max-width: 660px; }
.consent-documents { display: grid; gap: 16px; }
.consent-document { display: grid; gap: 10px; padding: 17px; border: 1px solid var(--line); border-radius: 14px; }
.consent-document > a { color: var(--green-dark); font-size: 18px; font-weight: 650; text-underline-offset: 4px; }
.consent-document > label { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.6; cursor: pointer; }
.consent-document input { flex: 0 0 auto; width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--green-dark); }
.consent-document input:focus-visible, .consent-document a:focus-visible { outline: 4px solid #277b7f; outline-offset: 3px; }
.working-layer { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(246, 243, 236, .88); backdrop-filter: blur(4px); }
.working-layer > div { display: grid; justify-items: center; gap: 15px; width: min(100%, 320px); padding: 28px 20px; border-radius: 22px; background: var(--paper); box-shadow: 0 16px 40px rgba(24, 50, 47, .2); }
.working-layer strong { font-size: 20px; text-align: center; }
.spinner { width: 44px; height: 44px; border: 5px solid #cce3da; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
@media (max-width: 760px) {
  .account-page { max-width: 540px; padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
  .account-brand { margin-bottom: 24px; }
  #entry-panel { display: block; }
  .guest-intro, .login-section { padding: 26px 24px; }
  .login-section { border-left: 0; border-top: 1px solid var(--line); }
  .account-card { padding: 28px 24px; border-radius: 20px; }
  h1 { font-size: 26px; }
  h2 { font-size: 23px; }
}
@media (max-width: 340px) {
  .account-page { padding-inline: 10px; }
  .account-card { padding: 22px 14px 20px; border-radius: 21px; }
  .guest-intro, .login-section { padding: 24px 18px; }
  .brand-mark { width: 52px; height: 52px; }
  .lead { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* Product candidate v1: keep the entry page in the same adult, calm visual system. */
:root {
  --green: #237f83;
  --green-dark: #165e64;
  --green-soft: #e8f3f1;
  --paper: #fffefa;
  --ink: #183b42;
  --muted: #687a7c;
  --line: #dce7e3;
}
html, body { background: #f7f5f0; }
body {
  background:
    radial-gradient(circle at 88% 0, rgba(143, 170, 131, .18), transparent 28rem),
    radial-gradient(circle at 0 36%, rgba(35, 127, 131, .07), transparent 24rem),
    #f7f5f0;
}
.account-brand { margin-bottom: 30px; }
.brand-mark {
  width: 52px;
  height: 52px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 7px 20px rgba(31, 73, 72, .08);
}
.brand-mark svg { width: 34px; height: 34px; fill: none; stroke: #277b7f; stroke-width: 1.4; }
.brand-name strong { color: #1b595d; font-size: 30px; }
.brand-name small { color: #647b76; font-size: 14px; letter-spacing: .05em; }
.account-card {
  overflow: hidden;
  border-color: rgba(220, 231, 227, .92);
  background: rgba(255, 254, 250, .96);
  box-shadow: 0 16px 46px rgba(31, 73, 72, .085);
}
.guest-intro { background: linear-gradient(150deg, #eef4e9, #f6f6ef 64%); }
.guest-intro .lead { margin-bottom: 26px; }
.primary-button {
  border-color: var(--green-dark);
  border-radius: 15px;
  background: var(--green-dark);
  box-shadow: 0 8px 18px rgba(22, 94, 100, .15);
}
.primary-button:hover { background: #104f55; }
.secondary-button { border-color: #cddfdb; border-radius: 15px; }
.field input { border-color: #b8cac6; border-radius: 14px; }
.password-toggle { color: var(--green-dark); background: var(--green-soft); }
.register-note { background: #eef5f2; }

@media (max-width: 760px) {
  .account-page { padding-top: max(22px, env(safe-area-inset-top)); }
  .account-brand { justify-content: flex-start; margin-left: 4px; }
  .guest-intro, .login-section { padding: 28px 24px; }
}
