:root {
  --ocean-900: #313ec8;
  --ocean-700: #4a56d4;
  --ocean-500: #6f79e0;
  --sky-200: #dfe2ff;
  --sky-100: #f3f4ff;
  --peach: #ffd7c8;
  --text-main: #1f2f3d;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(49, 62, 200, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: var(--text-main);
  line-height: 1.75;
  background: #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header .container {
  width: min(1400px, calc(100% - 0.2rem));
}

.site-header {
  position: relative;
  top: auto;
  z-index: 20;
  background: #ffffff;
  border-bottom: none;
  backdrop-filter: blur(8px);
  overflow: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.28s ease;
}

body.is-scrolled .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 18px rgba(49, 62, 200, 0.12);
}

@media (min-width: 1025px) {
  body.is-scrolled {
    padding-top: 86px;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
  padding: 0.2rem 0 0.1rem;
  overflow: visible;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
  position: relative;
  z-index: 2;
  min-height: 78px;
  padding-left: 0.45rem;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  position: relative;
  left: auto;
  top: auto;
  object-fit: contain;
  transform: none;
  transform-origin: center center;
  transition: width 0.28s ease, height 0.28s ease, transform 0.28s ease;
}

body.is-scrolled .brand-logo {
  width: 58px;
  height: 58px;
  transform: none;
}

body.is-scrolled .brand {
  padding-left: 0.45rem;
}

.logo {
  margin: 0;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--ocean-900);
  line-height: 1.3;
  text-align: left;
  padding-left: 0.3rem;
}

.header-tel {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 0.46rem 0.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #313ec8, #4a56d4);
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.global-nav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin-left: auto;
  padding-bottom: 0;
}

.global-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #313ec8;
}

.global-nav a:hover {
  color: var(--ocean-700);
}

.global-nav .header-tel,
.global-nav .header-tel:hover {
  color: #ffffff;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 58px;
  height: 50px;
  border: none;
  border-radius: 0;
  background: transparent;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.28rem;
  cursor: pointer;
  padding: 0.35rem 0.4rem 0.3rem;
}

.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.menu-toggle-bars span {
  display: block;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  background: var(--ocean-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ocean-900);
}

.menu-toggle.is-open .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 76vh;
  width: min(1400px, calc(100% - 0.2rem));
  margin: 0 auto 2.6rem;
  border-radius: 64px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.9s ease;
  z-index: 0;
}

.hero-slide.is-visible {
  opacity: 1;
}

.hero-catch {
  position: absolute;
  left: clamp(1rem, 3vw, 2.5rem);
  bottom: clamp(1rem, 3vw, 2.5rem);
  width: clamp(170px, 28vw, 420px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  animation: heroCatchFloat 2s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroCatchFloat {
  0% {
    transform: translate3d(-3px, -8px, 0);
  }
  100% {
    transform: translate3d(3px, 3px, 0);
  }
}

.hero-copy {
  padding: 2.4rem 0 3.2rem;
  background: #ffffff;
}

.hero-copy-inner {
  text-align: center;
}

.hero-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(49, 62, 200, 0.35);
  font-size: 0.9rem;
}

.hero-copy h1,
.hero-subcopy {
  color: var(--ocean-900);
  text-shadow: none;
}

.hero-copy h1 {
  margin: 0 0 4rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.45;
}

.hero-subcopy {
  margin-top: 1.1rem;
  margin-bottom: 1.8rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.12rem, 1.45vw, 1.3rem);
  line-height: 2;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--peach), #ffc3ac);
  color: #5a2f1c;
  padding: 0.9rem 1.45rem;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.section {
  padding: 5rem 0;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 1.6rem;
  font-size: clamp(1.5rem, 2.4vw, 2.05rem);
  line-height: 1.45;
  color: var(--ocean-900);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

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

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

.card {
  background: var(--white);
  border-radius: 18px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(49, 62, 200, 0.2);
}

.worries {
  background: linear-gradient(180deg, #f3fbff, #f8fdff);
}

.services {
  background: linear-gradient(180deg, #313ec8, #3b49cf);
  color: #ffffff;
}

.services h2,
.services .service-card h3 {
  color: #ffffff;
}

.services .card {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: none;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: var(--ocean-700);
}

.reason-list {
  display: grid;
  gap: 1rem;
}

.reason-item {
  background: var(--white);
  border-left: 6px solid var(--ocean-500);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.reason-item h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.flow {
  background: linear-gradient(180deg, #f8fdff, #eef8ff);
}

.flow-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.flow-column {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(49, 62, 200, 0.18);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.flow-column h3 {
  margin: 0 0 0.8rem;
  color: var(--ocean-900);
}

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  counter-reset: flow-step;
}

.flow-list li {
  counter-increment: flow-step;
  background: var(--white);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  box-shadow: var(--shadow);
}

.flow-list li::before {
  content: counter(flow-step) ". ";
  font-weight: 700;
  color: var(--ocean-700);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list details {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(49, 62, 200, 0.2);
  padding: 0.9rem 1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ocean-700);
}

.community-report {
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
}

.community-report-inner {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(49, 62, 200, 0.16);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.community-report-inner h2 {
  margin-bottom: 1.4rem;
}

.community-report-inner p {
  margin: 0 0 1rem;
}

.community-report-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

.community-report-photo {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ffffff;
}

.community-report-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.kaiyo-sankotsu {
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
}

.kaiyo-sankotsu-lead {
  max-width: 900px;
  margin: 0 0 1.6rem;
}

.kaiyo-plan-grid {
  margin-bottom: 1rem;
}

.kaiyo-plan-card {
  border-top: 5px solid rgba(49, 62, 200, 0.55);
}

.kaiyo-plan-card h3 {
  margin: 0 0 0.5rem;
  color: var(--ocean-900);
}

.kaiyo-price {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  line-height: 1.4;
  font-weight: 800;
  color: var(--ocean-700);
}

.kaiyo-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.kaiyo-feature-item {
  background: #ffffff;
  border: 1px solid rgba(49, 62, 200, 0.2);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.kaiyo-feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  color: var(--ocean-900);
}

.kaiyo-feature-item p {
  margin: 0;
}

.kaiyo-include-list {
  margin: 0;
  padding-left: 1.1rem;
}

.kaiyo-include-list li {
  margin: 0.2rem 0;
}

.access-map {
  background: #ffffff;
}

.access-map-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  margin-top: 0.5rem;
}

.access-map-item {
  margin: 0;
}

.access-map-heading {
  margin: 0 0 0.35rem;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--ocean-900);
}

.access-map-address {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  opacity: 0.92;
}

.access-map-frame {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(49, 62, 200, 0.22);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.access-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
}

.cta {
  text-align: center;
  background:
    radial-gradient(circle at top right, rgba(255, 215, 200, 0.4), transparent 45%),
    linear-gradient(180deg, #e6f7ff, #d7f1ff);
}

.cta-inner {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(49, 62, 200, 0.25);
  border-radius: 20px;
  padding: 2rem 1rem;
}

.cta-tel {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: clamp(1.8rem, 4.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ocean-900);
}

.site-footer {
  padding: 2.3rem 0 5rem;
  background: #313ec8;
  color: #ebf7ff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.35rem;
}

.footer-brand-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-contact {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0.35rem;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(235, 247, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

@media (min-width: 641px) {
  .footer-contact {
    margin-left: auto;
  }
}

.footer-contact-lead {
  margin: 0;
  font-size: clamp(0.68rem, 1.55vw, 0.76rem);
  font-weight: 500;
  letter-spacing: 0.06em;
  opacity: 0.88;
  line-height: 1.35;
  align-self: flex-start;
  width: 100%;
}

.footer-phone {
  margin: 0;
  font-size: clamp(1.35rem, 3.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
  align-self: flex-start;
}

.footer-phone:hover {
  opacity: 0.92;
  text-decoration: none;
}

.footer-meta {
  margin-top: 1.35rem;
  text-align: center;
}

.footer-brand {
  display: block;
  line-height: 0;
}

.footer-logo {
  display: block;
  height: clamp(5.5rem, 14vw, 7.75rem);
  width: auto;
  max-width: min(100%, 200px);
  object-fit: contain;
}

.footer-address-block {
  flex: 1 1 14rem;
  min-width: min(100%, 18rem);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  justify-content: center;
  align-items: flex-start;
  min-height: clamp(5.5rem, 14vw, 7.75rem);
}

.footer-company-name {
  margin: 0 0 0.15rem;
  font-size: clamp(1.14rem, 2.85vw, 1.48rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.28;
}

.footer-address-line {
  margin: 0;
  font-size: clamp(0.74rem, 1.72vw, 0.84rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1.55;
  opacity: 0.86;
}

.site-footer h2 {
  color: #ebf7ff;
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-copy {
  display: inline-block;
  margin: 0;
  opacity: 0.82;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.floating-call {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  background: #ffffff;
  color: #313ec8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 4.2rem 0.9rem 1rem;
  border-radius: 0;
  border-top: 1px solid rgba(49, 62, 200, 0.25);
  box-shadow: none;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.floating-call-note,
.floating-call-number {
  display: block;
  line-height: 1.2;
}

.floating-call::after {
  content: "→";
  position: absolute;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #2f3340;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1;
}

.floating-call::before {
  content: "";
  position: absolute;
  right: 0.7rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #2f3340;
}

.floating-call.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 1024px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    min-height: 74px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .global-nav {
    display: none;
    width: 100%;
    order: 3;
    padding: 0.6rem 0 0.4rem;
    border-top: 1px solid rgba(49, 62, 200, 0.25);
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .global-nav.is-open {
    display: flex;
  }

  .global-nav a {
    font-size: 0.95rem;
    width: 100%;
  }

  .global-nav .header-tel {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin-top: 0.35rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
  }

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

  .community-report-gallery {
    grid-template-columns: 1fr;
  }

  .kaiyo-features {
    grid-template-columns: 1fr;
  }

  .flow-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    width: 54px;
    height: 46px;
    gap: 0.22rem;
    padding: 0.32rem 0.35rem 0.28rem;
  }

  .menu-toggle-bars span {
    width: 24px;
  }

  .menu-toggle-label {
    font-size: 0.52rem;
  }

  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-brand-col {
    align-items: center;
  }

  .footer-address-block {
    align-items: center;
    min-height: 0;
  }

  .footer-contact {
    margin-left: 0;
    align-items: flex-start;
    text-align: left;
    width: min(100%, 22rem);
    align-self: center;
  }

  .site-footer {
    padding-bottom: 2rem;
    margin-bottom: 6rem;
  }

  .floating-call {
    background: #313ec8;
    color: #ffffff;
    border-top: none;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    width: auto;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding: 0.92rem 3.6rem 0.92rem 2rem;
    box-shadow: 0 10px 24px rgba(24, 33, 122, 0.2);
    border: none;
    text-align: center;
  }

  .floating-call-note {
    display: none;
  }

  .floating-call-number {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .floating-call::before {
    display: none;
  }

  .floating-call::after {
    content: "";
    right: 0.42rem;
    top: 50%;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: url("../images/arrow-r.png") center / cover no-repeat;
    transform: translateY(-52%);
    color: transparent;
    font-size: 0;
  }

  .header-inner {
    min-height: 52px;
    padding: 0.35rem 0 0.12rem;
  }

  .brand {
    min-height: 52px;
    padding-left: 0.35rem;
    gap: 0.3rem;
    justify-content: flex-start;
  }

  .logo {
    padding-left: 0.12rem;
  }

  .brand-logo {
    display: block;
    width: 40px;
    height: 40px;
    position: relative;
    left: auto;
    top: auto;
    transform: none;
  }

  body.is-scrolled .brand {
    padding-left: 0.35rem;
  }

  body.is-scrolled .header-inner {
    min-height: 48px;
    padding: 0.28rem 0 0.1rem;
  }

  body.is-scrolled .brand {
    min-height: 48px;
  }

  body.is-scrolled .brand-logo {
    width: 36px;
    height: 36px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: 56vh;
    width: min(100%, calc(100% - 1.2rem));
    margin: 0 auto 1.8rem;
    border-radius: 38px;
  }

  .hero-catch {
    width: clamp(96px, 30vw, 148px);
    left: 0.9rem;
    bottom: 0.9rem;
  }

  .hero-copy {
    padding: 1.9rem 0 2.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.28rem, 5vw, 1.6rem);
  }

  .hero-subcopy {
    text-align: left;
  }

  .services h2 {
    font-size: clamp(1.28rem, 5vw, 1.55rem);
  }

  .card-grid.four,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .hero-subcopy br {
    display: none;
  }
}
