
:root {
  --green: #00924a;
  --green-dark: #00753b;
  --green-soft: #eaf6ef;
  --orange: #f3981e;
  --orange-soft: #fff4e6;
  --white: #ffffff;
  --bg: #f5f8f6;
  --line: #d9e5dc;
  --line-strong: #bfd3c4;
  --text: #1d2b24;
  --muted: #65726b;
  --shadow: 0 14px 36px rgba(0, 80, 40, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --transition: 0.22s ease;
  --container: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  background: linear-gradient(180deg, #fbfcfb 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 229, 220, 0.8);
  transition: box-shadow 0.2s ease;
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.header-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: var(--transition);
  font-size: 0.94rem;
}

.header-link:hover {
  background: #f3f7f4;
  color: var(--green);
}

.hero {
  padding: 30px 0 24px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 46px 38px;
  color: var(--white);
  background: linear-gradient(135deg, rgba(0,146,74,0.98), rgba(0,117,59,0.96));
  box-shadow: 0 24px 50px rgba(0, 90, 45, 0.14);
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::before {
  width: 260px;
  height: 260px;
  right: -90px;
  top: -70px;
  background: rgba(255,255,255,0.08);
}

.hero-card::after {
  width: 220px;
  height: 220px;
  right: 120px;
  bottom: -90px;
  background: rgba(243, 152, 30, 0.18);
  filter: blur(4px);
}

.hero-kicker {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 0.87rem;
  margin-bottom: 16px;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.hero-text {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 760px;
  font-size: 1rem;
  opacity: 0.96;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 700;
  text-align: center;
}

.btn-primary {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.btn-primary:hover { transform: translateY(-1px); }

.section {
  padding: 16px 0 28px;
  scroll-margin-top: 84px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.select-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.select-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(0, 80, 40, 0.1);
}

.select-card.active {
  border: 2px solid var(--green);
  background: linear-gradient(180deg, #ffffff 0%, #fcfefd 100%);
}

.card-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #8f5a0a;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.select-card h2 {
  margin: 0 0 10px;
  font-size: 1.34rem;
}

.select-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.select-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.card-check {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  color: transparent;
  background: #fff;
  transition: var(--transition);
}

.select-card.active .card-check {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .form-grid {
    transition: opacity 0.22s ease;
  }

  .form-grid.is-switching {
    opacity: 0;
  }

  .result-amount.is-updated,
  .result-item strong.is-updated {
    animation: amountPulse 0.4s ease;
  }

  @keyframes amountPulse {
    0% { opacity: 0.35; transform: translateY(3px); }
    100% { opacity: 1; transform: translateY(0); }
  }
}

.site-header.is-scrolled {
  box-shadow: 0 8px 20px rgba(0, 40, 20, 0.06);
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 24px;
  margin-top: 28px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.panel-title {
  margin: 0 0 6px;
  font-size: 1.42rem;
  letter-spacing: 0.02em;
  scroll-margin-top: 96px;
}

.panel-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.94rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field.full { grid-column: 1 / -1; }

label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.93rem;
  font-weight: 700;
}

.label-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hint {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.input-wrap {
  position: relative;
}

input[type="text"],
select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: #fff;
  color: var(--text);
  padding: 14px 14px;
  outline: none;
  transition: var(--transition);
}

input[type="text"]:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 146, 74, 0.1);
}

select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--green) 50%),
    linear-gradient(135deg, var(--green) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.92rem;
  pointer-events: none;
}

.helper-box {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #fbfcfb;
  border: 1px solid #e5ece7;
  color: var(--muted);
  font-size: 0.9rem;
}

.helper-box strong { color: var(--text); }

.result-panel {
  background: linear-gradient(180deg, rgba(0,146,74,0.035), rgba(255,255,255,1));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.result-main {
  margin-bottom: 22px;
}

.result-amount {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: 0.01em;
  word-break: break-word;
}

.result-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.result-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid #e6efe8;
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
}

.result-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.result-item strong {
  text-align: right;
  font-size: 0.98rem;
  color: var(--text);
}

.cta-box {
  margin-top: 22px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf3 0%, #ffffff 100%);
  border: 1px solid #f2ddbf;
}

.cta-box h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.cta-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice-strip {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.campaign-section {
  padding: 4px 0 54px;
}

.campaign-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.campaign-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.campaign-head h3 {
  margin: 0;
  font-size: 1.34rem;
}

.campaign-tag {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: #8f5a0a;
  font-size: 0.82rem;
  font-weight: 700;
}

.banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid #efdfc8;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf4 0%, #ffffff 100%);
}

.banner-image-link {
  display: block;
  width: 100%;
}

.campaign-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid #efdfc8;
}

.campaign-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  background: var(--white);
  border-top: 1px solid #e7eeea;
}

.site-footer-inner {
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 0.86rem;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(0, 80, 40, 0.22);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease, background 0.2s ease;
  z-index: 30;
}

.back-to-top:hover {
  background: var(--green-dark);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .main-layout,
  .banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    min-height: 64px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .header-links {
    display: none;
  }

  .brand-logo {
    height: 34px;
    max-width: 220px;
  }

  .hero-card {
    padding: 30px 22px;
    border-radius: 24px;
  }

  .cards,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel,
  .campaign-card {
    padding: 22px 18px;
  }

  .result-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-item strong {
    text-align: left;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}
