:root {
  --green-950: #12382d;
  --green-900: #184a3a;
  --green-800: #23634b;
  --green-700: #2f7d59;
  --green-600: #3e9468;
  --green-500: #62ad7d;
  --green-300: #b8d9c1;
  --green-150: #e1efe4;
  --green-100: #edf6ef;
  --ivory: #fbfaf5;
  --cream: #f3f0e5;
  --earth: #83694c;
  --amber: #a96816;
  --red: #b63d3d;
  --ink: #20312b;
  --muted: #66756f;
  --line: #d7e1d9;
  --white: #fff;
  --shadow: 0 18px 48px rgba(22, 65, 49, .11);
  --shadow-soft: 0 8px 24px rgba(22, 65, 49, .08);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--font); font-size: 16px; line-height: 1.75; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 10px 16px; background: var(--green-950); color: #fff; border-radius: 10px; }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(18,56,45,.94); color: #fff; backdrop-filter: blur(14px); }
.header-inner { width: min(1180px, calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .02em; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(145deg, #75bd88, #2f7d59); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); font-size: 22px; }
.brand small { display: block; color: #bfe0c8; font-weight: 600; font-size: 11px; letter-spacing: .12em; }
.header-support { color: #d9eadf; font-size: 13px; }

.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(circle at 82% 16%, rgba(133,196,145,.26), transparent 28%), linear-gradient(135deg, #143d30 0%, #205b44 55%, #387a55 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); }
.hero::before { width: 460px; height: 460px; right: -120px; top: -220px; }
.hero::after { width: 300px; height: 300px; left: -160px; bottom: -170px; }
.hero-inner { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); min-height: 520px; margin: auto; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 64px; padding: 72px 0; }
.eyebrow { margin: 0 0 9px; color: var(--green-600); font-weight: 800; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.hero .eyebrow { color: #aee1bb; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.18; letter-spacing: -.035em; }
.hero-lead { max-width: 680px; margin: 24px 0 0; color: #e0eee4; font-size: clamp(16px, 1.7vw, 20px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-points li { padding: 7px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #eff8f1; font-size: 13px; }
.hero-art { position: relative; min-height: 360px; display: grid; place-items: center; }
.plant-orbit { position: absolute; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.plant-orbit::before, .plant-orbit::after { content: ""; position: absolute; inset: 42px; border: 1px dashed rgba(255,255,255,.16); border-radius: 50%; }
.plant-orbit::after { inset: 90px; }
.plant-illustration { position: relative; z-index: 2; width: 240px; padding: 30px 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 34px; background: rgba(255,255,255,.11); box-shadow: 0 28px 80px rgba(0,0,0,.2); text-align: center; backdrop-filter: blur(8px); }
.plant-illustration .plant-icon { display: block; font-size: 96px; filter: drop-shadow(0 12px 16px rgba(0,0,0,.16)); }
.plant-illustration strong { display: block; margin-top: 8px; font-size: 19px; }
.plant-illustration span { color: #dceee1; font-size: 13px; }

.page-shell { width: min(1100px, calc(100% - 32px)); margin: auto; padding: 72px 0 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1.3; }
.section-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }

.service-choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 44px; }
.service-choice { min-height: 126px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; text-align: left; transition: .2s ease; }
.service-choice:hover, .service-choice:focus-visible { transform: translateY(-3px); border-color: var(--green-500); box-shadow: var(--shadow-soft); }
.service-choice.is-selected { border-color: var(--green-700); background: var(--green-100); box-shadow: inset 0 0 0 1px var(--green-700); }
.service-choice span { display: block; font-size: 28px; }
.service-choice strong { display: block; margin-top: 7px; line-height: 1.4; }
.service-choice small { display: block; margin-top: 4px; color: var(--muted); }

.form-card { padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.form-section { padding: 0 0 38px; margin: 0 0 38px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; margin-bottom: 12px; }
.form-section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-step { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--green-900); color: #fff; font-weight: 800; }
.form-section h3 { margin: 0; font-size: 21px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: grid; gap: 8px; color: var(--ink); font-weight: 700; }
.label-note { color: var(--muted); font-weight: 500; font-size: 13px; }
.required { color: var(--red); font-size: 12px; }
input, select, textarea { width: 100%; border: 1px solid #cbd7ce; border-radius: 12px; background: #fff; color: var(--ink); padding: 13px 14px; outline: none; transition: border-color .18s, box-shadow .18s; }
input:focus, select:focus, textarea:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(47,125,89,.13); }
textarea { resize: vertical; min-height: 130px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.checkbox-row input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--green-700); }
.honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; }

.photo-drop { padding: 22px; border: 2px dashed var(--green-300); border-radius: 18px; background: var(--green-100); text-align: center; }
.photo-drop input { border: 0; background: transparent; padding: 8px; }
.photo-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.photo-preview-item { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: 14px; background: var(--cream); }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; right: 7px; bottom: 7px; border: 0; border-radius: 999px; background: rgba(18,56,45,.9); color: #fff; padding: 5px 10px; font-size: 12px; cursor: pointer; }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 22px; cursor: pointer; font-weight: 800; text-decoration: none; transition: transform .18s, opacity .18s, box-shadow .18s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-primary { background: linear-gradient(135deg, var(--green-800), var(--green-600)); color: #fff; box-shadow: 0 10px 24px rgba(47,125,89,.24); }
.button-secondary { border: 1px solid var(--line); background: #fff; color: var(--green-900); }
.button-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.form-actions { display: flex; justify-content: center; padding-top: 10px; }
.form-actions .button { min-width: min(360px, 100%); }

.alert { padding: 14px 16px; margin: 18px 0; border-radius: 12px; font-weight: 700; }
.alert-error, .inline-error { border: 1px solid #e4b5b5; background: #fff1f1; color: #8f2929; }
.alert-warning { border: 1px solid #e7c98c; background: #fff8e8; color: #7a5413; }
.alert-success { border: 1px solid #a9d1b3; background: #eff9f1; color: var(--green-900); }
.inline-error { padding: 10px 12px; border-radius: 10px; font-size: 13px; }

.completion { padding: 56px 28px; border: 1px solid var(--green-300); border-radius: var(--radius); background: linear-gradient(145deg, #fff, var(--green-100)); text-align: center; box-shadow: var(--shadow); }
.completion-icon { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--green-800); color: #fff; font-size: 38px; }
.completion h2 { margin: 0; font-size: 32px; }
.reception-box { max-width: 480px; margin: 26px auto; padding: 18px; border-radius: 16px; background: var(--green-950); color: #fff; }
.reception-box span { display: block; color: #bfe0c8; font-size: 12px; letter-spacing: .12em; }
.reception-box strong { display: block; margin-top: 4px; font-size: 24px; letter-spacing: .04em; }

.site-footer { padding: 42px 16px; border-top: 1px solid var(--line); background: var(--cream); text-align: center; color: var(--muted); font-size: 13px; }

/* Member portal */
.member-body { background: #f4f6f1; }
.member-header { background: var(--green-950); color: #fff; }
.member-header .header-inner { min-height: 66px; }
.login-shell { width: min(980px, calc(100% - 32px)); min-height: calc(100vh - 66px); margin: auto; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 54px; padding: 60px 0; }
.login-copy h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.2; }
.login-copy p { color: var(--muted); font-size: 18px; }
.login-feature-list { display: grid; gap: 12px; margin-top: 26px; }
.login-feature { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-soft); }
.login-card { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.login-card h2 { margin-top: 0; }
.login-card .button { width: 100%; margin-top: 12px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted); font-size: 12px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }

.portal-shell { width: min(1240px, calc(100% - 28px)); margin: auto; padding: 30px 0 80px; }
.portal-hero { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(135deg, var(--green-950), var(--green-700)); color: #fff; box-shadow: var(--shadow); }
.portal-hero h1 { margin: 4px 0 0; font-size: clamp(28px, 4vw, 44px); }
.portal-hero p { margin: 4px 0 0; color: #dceee1; }
.portal-stats { display: grid; grid-template-columns: repeat(3, minmax(95px, 1fr)); gap: 10px; }
.portal-stat { padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.1); text-align: center; }
.portal-stat strong { display: block; font-size: 25px; }
.portal-stat span { color: #dceee1; font-size: 12px; }
.portal-nav { position: sticky; z-index: 20; top: 66px; display: flex; gap: 6px; overflow-x: auto; padding: 14px 4px; margin: 12px 0 22px; background: rgba(244,246,241,.94); backdrop-filter: blur(12px); }
.portal-nav button { flex: 0 0 auto; border: 0; border-radius: 999px; background: #fff; color: var(--muted); padding: 10px 17px; cursor: pointer; font-weight: 800; }
.portal-nav button.is-active { background: var(--green-900); color: #fff; }
.portal-section { margin-bottom: 34px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card, .detail-card, .report-card, .request-card, .plant-card { border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-soft); }
.mini-card { padding: 20px; }
.mini-card h3 { margin: 12px 0 4px; font-size: 18px; }
.mini-card p { margin: 0; color: var(--muted); }
.status-chip { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; background: var(--green-100); color: var(--green-800); padding: 3px 9px; font-size: 11px; font-weight: 800; }
.stack { display: grid; gap: 16px; }
.detail-card, .report-card { padding: 24px; }
.detail-card-head, .report-card-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.detail-card h3, .report-card h3 { margin: 6px 0 0; }
.plain-list { margin: 14px 0 0; padding-left: 20px; color: var(--muted); }
.plant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plant-card { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; padding: 18px; }
.plant-symbol { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--green-100); font-size: 34px; }
.plant-card h3 { margin: 8px 0 2px; }
.plant-card p, .plant-card small { margin: 0; color: var(--muted); }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 0 0 26px; }
.timeline-item::before { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 2px; background: var(--green-300); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 16px; height: 16px; margin-top: 6px; border: 4px solid var(--green-300); border-radius: 50%; background: var(--green-800); }
.timeline-meta { display: flex; align-items: center; gap: 10px; }
.timeline-item h3 { margin: 6px 0 0; }
.timeline-item p { margin: 2px 0; color: var(--muted); }
.note { padding: 10px 12px; border-radius: 10px; background: var(--green-100); }
.report-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.report-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.request-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.request-card { display: grid; gap: 15px; padding: 22px; }
.request-card h3 { margin: 0; }
.empty-state { grid-column: 1 / -1; min-height: 170px; display: grid; place-items: center; align-content: center; padding: 28px; border: 1px dashed var(--green-300); border-radius: 18px; background: var(--green-100); color: var(--muted); text-align: center; }
.empty-state span { font-size: 38px; }
.empty-state p { margin: 5px 0 0; }
.loading-panel { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.spinner { width: 24px; height: 24px; border: 3px solid var(--green-150); border-top-color: var(--green-700); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast-region { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(380px, calc(100% - 36px)); }
.toast { padding: 14px 16px; border-radius: 12px; background: var(--green-950); color: #fff; box-shadow: var(--shadow); font-weight: 700; }
.toast-success { background: var(--green-800); }
.toast-warning { background: var(--amber); }

@media (max-width: 900px) {
  .hero-inner, .login-shell { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; }
  .plant-orbit { width: 270px; height: 270px; }
  .service-choices { grid-template-columns: repeat(2, 1fr); }
  .portal-hero { grid-template-columns: 1fr; }
  .card-grid, .plant-grid, .request-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .header-inner { width: min(100% - 22px, 1180px); min-height: 62px; }
  .header-support { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .hero-inner { width: min(100% - 24px, 1180px); min-height: auto; padding: 52px 0 40px; gap: 20px; }
  .hero-art { min-height: 235px; }
  .plant-illustration { width: 195px; padding: 20px; }
  .plant-illustration .plant-icon { font-size: 74px; }
  .plant-orbit { width: 225px; height: 225px; }
  .page-shell { width: min(100% - 22px, 1100px); padding: 48px 0 72px; }
  .service-choices { grid-template-columns: 1fr 1fr; gap: 10px; }
  .service-choice { min-height: 112px; padding: 14px; }
  .service-choice small { display: none; }
  .form-card { padding: 20px 16px; border-radius: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .photo-preview { grid-template-columns: repeat(2, 1fr); }
  .login-shell { width: min(100% - 22px, 980px); padding: 38px 0; gap: 28px; }
  .login-card { padding: 24px 18px; }
  .portal-shell { width: min(100% - 18px, 1240px); padding-top: 14px; }
  .portal-hero { padding: 24px 18px; }
  .portal-stats { width: 100%; }
  .portal-nav { top: 62px; margin-inline: -2px; }
  .card-grid, .plant-grid, .request-grid { grid-template-columns: 1fr; }
  .detail-card-head, .report-card-head { display: grid; }
  .report-photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* GREEN-9 customer replacement history */
.replacement-flow{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;margin:18px 0;padding:14px;border-radius:14px;background:#f1f8f3;color:#173d2b}.replacement-flow span{display:block;padding:10px 12px;border-radius:10px;background:#fff;text-align:center;font-weight:700}.replacement-flow strong{font-size:1.25rem}@media(max-width:560px){.replacement-flow{grid-template-columns:1fr}.replacement-flow strong{transform:rotate(90deg);text-align:center}}
