:root {
  --color-green: #4fa66a;
  --color-green-dark: #2f7f4a;
  --color-orange: #f39a3d;
  --color-orange-dark: #df7f1f;
  --color-beige: #fff7ec;
  --color-bg: #ffffff;
  --color-text: #263238;
  --color-muted: #667085;
  --color-border: #e8eee8;
  --color-soft-green: #f1faf4;
  --color-shadow: rgba(38, 50, 56, 0.1);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

body.is-loading {
  overflow: hidden;
}

body::selection {
  background: rgba(79, 166, 106, 0.18);
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #ffffff;
  opacity: 1;
  visibility: visible;
  transition: opacity 1.8s ease, visibility 1.8s ease;
}

.page-loader__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-loader__logo {
  width: min(420px, 72vw);
  height: auto;
  opacity: 0;
  animation: loaderLogoFadeIn 0.9s ease forwards;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes loaderLogoFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #dcefe2;
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 6px;
}

.header-actions {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: min(52vw, 200px);
  height: auto;
  object-fit: contain;
}

.hero {
  background:
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  padding: 24px 0 58px;
  position: relative;
  overflow: hidden;
}

.hero-shell {
  display: grid;
  gap: 24px;
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--color-green-dark);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 9vw, 58px);
  line-height: 1.28;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 12.5em;
  margin-bottom: 16px;
  color: #1f2f35;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", system-ui, sans-serif;
  font-size: clamp(32px, 9vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

.text-accent {
  color: var(--color-green-dark);
  white-space: nowrap;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 7vw, 42px);
  line-height: 1.35;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.45;
  letter-spacing: 0;
}

.hero-subtitle {
  color: var(--color-orange-dark);
  margin-bottom: 0;
  font-size: clamp(21px, 5.5vw, 29px);
  font-weight: 800;
  line-height: 1.45;
}

.hero-body,
.section-lead,
.section-heading p,
.cta-panel p,
.final-panel p {
  color: var(--color-muted);
}

.hero-body {
  max-width: 30em;
  font-size: clamp(17px, 4.4vw, 20px);
  line-height: 1.9;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 10px 22px var(--color-shadow);
}

.button-primary {
  background: var(--color-orange);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--color-orange-dark);
}

.button-secondary {
  background: #ffffff;
  color: var(--color-green-dark);
  border-color: rgba(47, 127, 74, 0.26);
}

.button-secondary:hover {
  border-color: var(--color-green);
  background: var(--color-soft-green);
}

.badge-list,
.point-list,
.check-list {
  list-style: none;
  padding: 0;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}

.badge-list li,
.point-list li {
  border: 1px solid rgba(79, 166, 106, 0.22);
  background: #ffffff;
  color: var(--color-green-dark);
  border-radius: 999px;
  padding: 7px 13px;
  font-weight: 800;
  font-size: 14px;
}

.hero-visual {
  min-height: 270px;
  background: transparent;
  overflow: hidden;
  position: relative;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  min-height: 270px;
  object-fit: cover;
  object-position: center right;
  border-radius: 0;
  position: relative;
  z-index: 2;
}

.hero-visual-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.hero-merits {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 3;
}

.hero-merit {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(79, 166, 106, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 18px rgba(38, 50, 56, 0.045);
}

.hero-merit h2 {
  margin: 0;
  color: #213339;
  font-size: 18px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.hero-merit-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-soft-green);
  border: 1px solid rgba(79, 166, 106, 0.18);
  position: relative;
}

.hero-merit-icon::before,
.hero-merit-icon::after {
  content: "";
  position: absolute;
}

.hero-merit-icon-home::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--color-green-dark);
  border-top: 0;
  border-radius: 3px;
  bottom: 9px;
}

.hero-merit-icon-home::after {
  width: 16px;
  height: 16px;
  border-left: 2px solid var(--color-green-dark);
  border-top: 2px solid var(--color-green-dark);
  transform: rotate(45deg);
  top: 10px;
}

.hero-merit-icon-funds::before {
  width: 22px;
  height: 15px;
  border: 2px solid var(--color-orange-dark);
  border-radius: 4px;
}

.hero-merit-icon-funds::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-orange-dark);
}

.hero-merit-icon-peace::before {
  width: 18px;
  height: 14px;
  border-left: 2px solid var(--color-green-dark);
  border-bottom: 2px solid var(--color-green-dark);
  transform: rotate(-45deg);
  top: 11px;
}

.hero-merit-icon-peace::after {
  width: 18px;
  height: 14px;
  border-radius: 0 0 20px 20px;
  border-bottom: 2px solid var(--color-orange);
  bottom: 11px;
}

.risuta-mascot {
  display: none;
}

.house-roof {
  width: 160px;
  height: 160px;
  background: var(--color-green);
  transform: rotate(45deg) translate(36px, 36px);
  border-radius: 18px;
}

.house-body {
  position: absolute;
  width: 190px;
  height: 132px;
  bottom: 50px;
  border-radius: 18px;
  background: #ffffff;
  border: 3px solid rgba(47, 127, 74, 0.18);
}

.house-door {
  position: absolute;
  width: 46px;
  height: 72px;
  bottom: 50px;
  border-radius: 24px 24px 0 0;
  background: var(--color-orange);
}

.sun {
  position: absolute;
  right: 38px;
  top: 38px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #ffd58d;
}

.section {
  padding: 62px 0;
}

.section-soft {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-soft-green) 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.card-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(38, 50, 56, 0.06);
}

.card-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  margin-bottom: 16px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--color-orange) 0 48%, transparent 48%),
    var(--color-soft-green);
  border: 1px solid rgba(79, 166, 106, 0.18);
}

.info-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.split {
  display: grid;
  gap: 24px;
}

.step-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.step-cards li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.step-cards span,
.flow-list span {
  min-width: 50px;
  color: var(--color-orange-dark);
  font-weight: 900;
}

.section-cta {
  padding: 34px 0;
}

.cta-panel,
.final-panel {
  padding: 26px;
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(79, 166, 106, 0.1), rgba(243, 154, 61, 0.13)),
    #ffffff;
  border: 1px solid rgba(79, 166, 106, 0.18);
}

.cta-panel h2,
.final-panel h2 {
  font-size: clamp(25px, 6vw, 36px);
}

.cases-section {
  background: #ffffff;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.check-list li {
  padding: 14px 16px 14px 48px;
  border-radius: 8px;
  background: var(--color-beige);
  position: relative;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 20px;
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--color-green-dark);
  border-bottom: 3px solid var(--color-green-dark);
  transform: rotate(-45deg);
}

.point-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  align-content: start;
}

.flow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.flow-list p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.faq-question {
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 0;
  background: #ffffff;
  color: var(--color-text);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  position: relative;
  border-radius: 50%;
  background: var(--color-soft-green);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-green-dark);
  inset: 10px 5px auto;
  height: 2px;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--color-muted);
}

.faq-answer p {
  margin-bottom: 0;
}

.final-section {
  background: var(--color-beige);
}

.final-panel {
  text-align: left;
}

.contact-grid {
  display: grid;
  gap: 24px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  box-shadow: 0 12px 28px rgba(38, 50, 56, 0.06);
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.field span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.field span span {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--color-orange);
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 15px;
  background: #ffffff;
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(79, 166, 106, 0.18);
  border-color: var(--color-green);
}

.button-full {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.form-note {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer {
  padding: 36px 0 96px;
  background: var(--color-text);
  color: #ffffff;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.site-footer p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.76);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -10px 24px rgba(38, 50, 56, 0.1);
}

.sticky-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
}

.sticky-primary {
  background: var(--color-orange);
}

.sticky-phone {
  background: var(--color-green-dark);
}

@media (max-width: 749px) {
  body {
    padding-bottom: 86px;
  }

  .page-loader__logo {
    width: min(320px, 78vw);
  }
}

@media (min-width: 750px) {
  body {
    font-size: 18px;
  }

  .header-inner {
    justify-content: space-between;
    gap: 18px;
    min-height: 76px;
    padding-block: 9px;
  }

  .brand-logo {
    width: 260px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
  }

  .header-button {
    min-width: 180px;
    min-height: 54px;
    padding: 13px 24px;
    font-size: 18px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(38, 50, 56, 0.08);
  }

  .button-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .button {
    min-width: 200px;
  }

  .hero {
    padding: 32px 0 76px;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 30%, rgba(255, 255, 255, 0.88) 42%, rgba(255, 255, 255, 0.24) 56%, rgba(255, 255, 255, 0) 68%);
    pointer-events: none;
  }

  .hero-shell {
    gap: 30px;
    min-height: 510px;
  }

  .hero-grid {
    display: block;
    min-height: 400px;
  }

  .hero-copy {
    width: min(58%, 720px);
    padding-top: 0;
    position: relative;
    z-index: 3;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .hero-visual {
    position: absolute;
    top: -10px;
    right: calc((100% - 100vw) / 2);
    bottom: 42px;
    width: min(76vw, 1040px);
    min-height: 0;
    z-index: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 10%, #000000 24%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.18) 10%, #000000 24%);
  }

  .hero-visual > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center right;
  }

  .hero-merits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 820px;
    margin-top: -36px;
  }

  .hero-merit {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    min-height: 76px;
    padding: 14px 16px;
  }

  .hero-merit h2 {
    font-size: 18px;
  }

  .risuta-mascot {
    position: absolute;
    right: max(18px, calc((100% - 100vw) / 2 + 42px));
    bottom: 56px;
    z-index: 4;
    display: block;
    width: clamp(96px, 9vw, 128px);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(38, 50, 56, 0.14));
    pointer-events: none;
  }

  .section {
    padding: 82px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .split,
  .contact-grid,
  .service-split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.86fr);
    align-items: start;
    gap: 44px;
  }

  .cta-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 34px;
  }

  .cta-buttons {
    min-width: 230px;
    justify-content: flex-end;
  }

  .model-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .final-panel {
    padding: 42px;
  }

  .sticky-cta {
    display: none;
  }

  .site-footer {
    padding-bottom: 40px;
  }
}

@media (min-width: 1024px) {
  .brand-logo {
    width: 320px;
  }

  .header-button {
    min-width: 190px;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reasons-section .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loader,
  .page-loader__logo {
    animation: none;
    transition: none;
  }

  .page-loader__logo {
    opacity: 1;
  }
}
