/* Nexus — Japanese Spirit inspired multi-page layout */
:root {
  --sidebar: #0f0c39;
  --sidebar-hover: #1a1650;
  --navy: #0f1835;
  --cyan: #0893cc;
  --cyan-hover: #0679a8;
  --yellow: #ffc900;
  --orange: #ff6700;
  --red: #d81c16;
  --gray: #f1f1f1;
  --gray2: #e0e0de;
  --ink: #222;
  --muted: #666;
  --white: #fff;
  --sidebar-w: 280px;
  --font-sans: "Noto Sans JP", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--scroll-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), #35d3ef, var(--yellow));
  z-index: 300;
  pointer-events: none;
  transition: width 0.08s linear;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.45;
  font-weight: 700;
}

/* ========== SIDEBAR ========== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--sidebar);
  color: var(--white);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.sidebar-logo {
  display: block;
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-logo .brand {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.sidebar-logo .corp {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-estimate {
  background: var(--cyan);
  padding: 1.1rem 1.25rem;
  text-align: center;
}

.sidebar-estimate .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
}

.sidebar-estimate .btn-est {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--white);
  color: var(--cyan);
  font-weight: 700;
  padding: 0.7rem 0.65rem;
  margin-bottom: 0.5rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  font-size: 0.88rem;
  line-height: 1.35;
}

.sidebar-estimate .btn-est-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.sidebar-estimate .btn-est span {
  min-width: 0;
}

.sidebar-estimate .btn-est:hover {
  background: var(--yellow);
  color: var(--navy);
}

.sidebar-estimate .btn-est.sub {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.sidebar-estimate .btn-est.sub:hover {
  background: var(--white);
  color: var(--cyan);
}

.sidebar-estimate .btn-est.line {
  background: #00c300;
  color: var(--white);
}

.sidebar-estimate .btn-est.line:hover {
  background: #00a900;
}

.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0 2rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-left: 3px solid transparent;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-current {
  background: var(--sidebar-hover);
  border-left-color: var(--cyan);
  color: var(--white);
}

.sidebar-nav .nav-group > a {
  font-weight: 700;
}

.sidebar-nav .sub {
  background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav .sub a {
  padding-left: 2.25rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.sidebar-tel {
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-tel .hours {
  display: block;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.25rem;
}

.sidebar-tel a {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.02em;
}

/* Mobile top bar */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--sidebar);
  z-index: 210;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  color: var(--white);
}

.mobile-bar .brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 190;
}

body.nav-open .sidebar-overlay {
  display: block;
}

/* ========== MAIN ==========
   サイドバー分は .site-main の margin-left で確保（全ページ共通・確実）
*/
.site-main {
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

@media (min-width: 1024px) {
  body {
    padding-left: 0;
  }

  .site-main {
    margin-left: var(--sidebar-w);
    width: calc(100% - var(--sidebar-w));
  }

  .sidebar {
    left: 0;
  }

  .cv-band,
  .site-footer {
    width: 100%;
    box-sizing: border-box;
  }
}

.page-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}

.page-hero--home {
  min-height: min(88vh, 760px);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 12, 57, 0.88) 0%,
    rgba(15, 24, 53, 0.72) 45%,
    rgba(8, 147, 204, 0.35) 100%
  );
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(880px, calc(100% - 56px));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
}

.page-hero--home .page-hero-inner {
  padding-bottom: 4.5rem;
}

.hero-brand {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

.hero-en {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--yellow);
  font-weight: 700;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2.35rem);
  font-family: var(--font-serif);
}

.page-hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero-lead {
  margin: 0 0 1.5rem;
  max-width: 32em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin-bottom: 1.5rem;
}

.hero-flow li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 999px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-note {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.breadcrumb {
  background: var(--gray);
  padding: 0.65rem 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.breadcrumb .inner {
  width: min(880px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a:hover {
  color: var(--cyan);
}

/* ========== SECTIONS ========== */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--gray);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.inner {
  width: min(880px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-en {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--navy);
}

.section--navy .section-head h2,
.section--navy .section-en {
  color: var(--white);
}

.section--navy .section-en {
  color: var(--yellow);
}

.section-head p {
  margin: 0 auto;
  max-width: 36em;
  color: var(--muted);
}

.section--navy .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  text-align: center;
}

.btn-icon {
  flex-shrink: 0;
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

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

.btn-cyan {
  background: var(--cyan);
  color: var(--white);
}

.btn-cyan:hover {
  background: var(--cyan-hover);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--sidebar);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--navy);
}

.btn-yellow:hover {
  background: #e6b500;
}

.btn-outline-white {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-line {
  background: #00c300;
  color: var(--white);
}

.btn-line:hover {
  background: #00a900;
}

.line-icon {
  display: inline-flex;
  flex: 0 0 1.65rem;
  width: 1.65rem;
  height: 1.65rem;
  overflow: hidden;
  border-radius: 25%;
  background: #00c300 url("../assets/line-icon.png") center / 134% no-repeat;
}

.line-icon svg {
  display: none;
}

.sidebar-estimate .line-icon {
  flex-basis: 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
}

.btn-block {
  width: 100%;
}

.btn-center {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* Plan cards — like Japanese Spirit */
.plan-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .plan-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}

.plan-card:hover {
  box-shadow: 0 12px 32px rgba(15, 12, 57, 0.12);
  transform: translateY(-4px);
}

.plan-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.plan-card-body {
  padding: 1.35rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.plan-card h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
}

.plan-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}

.plan-card .btn {
  align-self: center;
  min-width: 70%;
}

/* Service grid 8 items */
/* Basic service — mockup style（矢印なし） */
.section--service {
  background:
    linear-gradient(180deg, #f3f8fc 0%, #f7fafc 45%, #f1f5f8 100%);
  position: relative;
  overflow: hidden;
}

.section-head--service h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
}

.section-head--service h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--cyan);
}

.service-grid {
  display: grid;
  gap: 1.35rem 1.2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.4rem 1.25rem;
  }
}

@media (min-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem 1.25rem;
  }
}

.service-item {
  background: var(--white);
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: 100%;
  border-radius: 10px;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 40, 70, 0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 12px 30px rgba(15, 40, 70, 0.12);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-item-media {
  position: relative;
  flex-shrink: 0;
}

.service-item-img {
  height: 128px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-item .num {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  height: 1.85rem;
  padding: 0 0.45rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--white);
  background: var(--cyan);
  line-height: 1;
}

.service-item-body {
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-item h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.service-item p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 639px) {
  .service-item-img {
    height: 160px;
  }
}

@media (min-width: 960px) {
  .service-item-img {
    height: 118px;
  }

  .service-item h3 {
    font-size: 1rem;
  }
}

.section--plan-cta {
  padding-top: 0.5rem;
  padding-bottom: 3.5rem;
}

.section--option-slider {
  background: var(--navy);
  padding: 2.75rem 0 3rem;
  overflow: hidden;
}

.option-slider {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding-left: max(28px, calc((100% - 880px) / 2));
  padding-right: 0;
  box-sizing: border-box;
}

.option-slider-head {
  color: var(--white);
  flex: 0 0 auto;
}

.option-slider-head h2 {
  margin: 0 0 1rem;
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  white-space: nowrap;
}

.option-slider-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.35rem;
  background: var(--white);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.option-slider-cta:hover {
  background: var(--cyan);
  color: var(--white);
}

.option-slider-viewport {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.option-slider-track {
  display: flex;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.2rem 0;
  scrollbar-width: none;
}

.option-slider-track::-webkit-scrollbar {
  display: none;
}

.option-slide {
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.option-slide:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.option-slide-img {
  display: block;
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-slide-label {
  display: block;
  padding: 0.75rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.option-slider-btn {
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border: none;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
  padding: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.option-slider-btn:hover {
  background: var(--cyan-hover);
}

.option-slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (min-width: 640px) {
  .option-slide {
    flex-basis: 220px;
  }

  .option-slide-img {
    height: 160px;
  }
}

@media (min-width: 900px) {
  .section--option-slider {
    padding: 3.25rem 0 3.5rem;
  }

  .option-slider {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem 1.5rem;
    /* 見出しだけ左へ。矢印・カードは viewport で元位置に戻す */
    padding-left: max(16px, calc((100% - 880px) / 2 - 56px));
  }

  .option-slider-head {
    width: 11.5rem;
  }

  .option-slider-head h2 {
    margin-bottom: 1.1rem;
    font-size: 1.55rem;
  }

  .option-slider-viewport {
    flex: 1 1 auto;
    margin-left: 56px;
  }

  .option-slide {
    flex-basis: 230px;
  }

  .option-slide-img {
    height: 168px;
  }
}

@media (max-width: 899px) {
  .option-slider-btn {
    display: none;
  }

  .option-slider {
    padding-right: 28px;
  }
}

.option-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .option-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.option-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray2);
  padding: 1.35rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.option-card:hover {
  border-color: var(--cyan);
  box-shadow: 0 8px 24px rgba(8, 147, 204, 0.12);
}

.option-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.option-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.option-card .more {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
}

/* Option list page */
.section--option-list {
  padding-top: 2.5rem;
}

.option-list-intro {
  margin-bottom: 2.5rem;
}

.option-list-intro .page-lead {
  margin-bottom: 0;
}

.option-list {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.option-feature {
  display: grid;
  gap: 1.35rem;
  scroll-margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .option-feature {
    grid-template-columns: 1.05fr 1fr;
    gap: 2rem 2.5rem;
    align-items: center;
  }

  .option-feature--reverse .option-feature-media {
    order: 2;
  }

  .option-feature--reverse .option-feature-body {
    order: 1;
  }
}

.option-feature-media {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 40, 70, 0.12);
}

@media (min-width: 800px) {
  .option-feature-media {
    min-height: 280px;
  }
}

.option-feature-num {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cyan);
  line-height: 1;
}

.option-feature-body h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.option-feature-body > p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.85;
}

.option-feature-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.option-feature-body li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}

.option-feature-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--cyan);
}

/* Benefits */
.benefit-cards {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .benefit-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  background: var(--white);
  padding: 1.75rem 1.4rem;
  text-align: left;
  border-top: 4px solid var(--cyan);
}

.benefit-card .b-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.benefit-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.benefit-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* 訴求軸カード（速度・安心・分割） */
.strength-card .strength-role {
  display: inline-block;
  margin: 0 0 0.65rem;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 2px;
  background: var(--navy);
  color: var(--white);
}

.strength-card--main {
  border-top-color: var(--orange);
}

.strength-card--main .strength-role {
  background: var(--orange);
}

.strength-card--support {
  border-top-color: var(--cyan);
}

.strength-card--push {
  border-top-color: var(--yellow);
}

.strength-card--push .strength-role {
  background: #c9a000;
  color: var(--navy);
}

.strength-card .b-num {
  margin-bottom: 0.45rem;
}

.strength-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.strength-card p {
  margin-bottom: 0.85rem;
  line-height: 1.7;
}

.strength-card p strong {
  color: var(--navy);
}

.strength-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.strength-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.strength-points li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

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

@media (min-width: 768px) {
  .reason-list {
    grid-template-columns: 1fr 1fr;
  }
}

.reason-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--white);
  padding: 1.35rem 1.4rem;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 24, 53, 0.04);
  transition: box-shadow 0.25s, transform 0.25s;
}

.reason-item:hover {
  box-shadow: 0 10px 28px rgba(8, 147, 204, 0.12);
  transform: translateY(-2px);
}

.reason-item .r-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}

.reason-item .r-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.reason-item .r-body {
  min-width: 0;
  flex: 1;
}

.reason-item .r-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
}

.reason-item .r-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.3rem;
  background: var(--cyan);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.reason-item .r-num {
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  line-height: 1.3;
}

.reason-item h3 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.reason-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 480px) {
  .reason-item {
    gap: 0.85rem;
    padding: 1.1rem 1rem;
  }

  .reason-item .r-icon {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }

  .reason-item h3 {
    font-size: 0.95rem;
  }
}

/* Reasons detail page (7 REASONS layout) */
.section--reasons {
  padding: 3rem 0 4rem;
  background: var(--white);
}

.reasons-wrap {
  width: min(980px, calc(100% - 56px));
  margin: 0 auto;
}

.reasons-intro {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 768px) {
  .reasons-intro {
    grid-template-columns: auto 1fr;
    gap: 2rem 3rem;
    align-items: start;
  }
}

.reasons-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  white-space: nowrap;
}

.reasons-lead {
  margin: 0;
  padding-left: 1rem;
  border-left: 2px solid var(--cyan);
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--ink);
}

.reasons-row {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 1.25rem;
  border-bottom: 1px solid #e8eef4;
  scroll-margin-top: 1.25rem;
  background: var(--white);
}

.reasons-row:nth-child(even) {
  background: #f4f8fb;
}

@media (min-width: 800px) {
  .reasons-row {
    grid-template-columns: 5rem minmax(0, 1fr) 10.5rem;
    gap: 1.5rem 1.75rem;
    align-items: center;
    padding: 2.1rem 1.75rem;
  }
}

.reasons-num {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  font-style: italic;
  color: #6eb8dd;
  line-height: 1;
  letter-spacing: 0.02em;
}

.reasons-main h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.reasons-main p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
  text-wrap: pretty;
}

.reasons-point {
  padding-top: 0.35rem;
}

.reasons-point-label {
  display: block;
  margin-bottom: 0.45rem;
  padding-top: 0.55rem;
  border-top: 2px solid var(--cyan);
  width: fit-content;
  min-width: 3.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cyan);
  line-height: 1;
}

.reasons-point p {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.5;
}

/* Content pages — コンテンツ列の中央にバランスよく配置 */
.prose {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

/* .inner と併用時も同じ幅・中央寄せに揃える */
.inner.prose {
  max-width: 720px;
  width: min(720px, calc(100% - 56px));
}

.page-content {
  max-width: 880px;
  width: min(880px, calc(100% - 56px));
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.inner.page-content {
  width: min(880px, calc(100% - 56px));
  max-width: 880px;
}

.page-content--narrow {
  max-width: 680px;
  width: min(680px, calc(100% - 56px));
}

.inner.page-content--narrow {
  max-width: 680px;
  width: min(680px, calc(100% - 56px));
}

.page-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  line-height: 1.9;
}

.page-h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 2.25rem 0 1.15rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cyan);
  font-size: 1.35rem;
}

.page-h2--center {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
}

.page-content .point-list,
.page-content .reason-list,
.page-content .flow-steps {
  max-width: none;
}

.prose h2 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cyan);
}

.prose h3 {
  color: var(--navy);
  margin: 1.75rem 0 0.65rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul,
.prose ol {
  padding-left: 1.35rem;
  margin: 0.75rem 0 1.25rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.point-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.point-list article {
  background: var(--gray);
  padding: 1.25rem 1.35rem;
  border-left: 4px solid var(--cyan);
  border-radius: 0 6px 6px 0;
}

.point-list h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.point-list p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1rem 0 1.5rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray2);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--navy);
  color: var(--white);
  width: 30%;
  font-weight: 700;
}

.data-table td {
  background: var(--white);
}

/* 会社概要：見出しと同じブロック内・コンパクト幅 */
.data-table--profile {
  width: 100%;
  max-width: none;
  margin: 0.75rem 0 1.5rem;
  table-layout: fixed;
  font-size: 0.88rem;
}

.data-table--profile th {
  width: 8.5rem;
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}

.data-table--profile td {
  padding: 0.65rem 0.9rem;
  word-break: break-word;
}

@media (max-width: 540px) {
  .data-table--profile th {
    width: 6.5rem;
    white-space: normal;
    font-size: 0.8rem;
  }
}

.area-table td:last-child {
  text-align: center;
  font-weight: 900;
  color: #1f7a4d;
  width: 4rem;
}

/* FAQ */
.faq-list details {
  background: var(--white);
  border: 1px solid var(--gray2);
  margin-bottom: 0.65rem;
}

.faq-list summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding-right: 2.5rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 1.25rem;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Voice cards */
.voice-cards {
  display: grid;
  gap: 1.25rem;
}

.voice-card {
  background: var(--white);
  border: 1px solid var(--gray2);
  padding: 1.5rem;
}

.voice-card .meta {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.voice-card blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--navy);
  line-height: 1.7;
}

.voice-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Form */
.contact-inner {
  width: min(760px, calc(100% - 56px));
  margin: 0 auto;
}

.contact-tel {
  text-align: center;
  margin-bottom: 1.5rem;
}

.estimate-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray2);
  border-radius: 8px;
  padding: 0;
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(15, 40, 70, 0.06);
}

.form-offer {
  background: linear-gradient(90deg, var(--cyan), #0a6fa0);
  color: var(--white);
  text-align: center;
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.6;
}

.form-body {
  padding: clamp(1.35rem, 3.5vw, 2rem);
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  margin-bottom: 1.15rem;
}

.form-field label,
.form-field legend {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--gray2);
  border-radius: 4px;
  font: inherit;
  background: #fafafa;
  box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(8, 147, 204, 0.35);
  border-color: var(--cyan);
  background: var(--white);
}

.req {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--red);
  color: var(--white);
  border-radius: 2px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

.opt {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.08rem 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  background: #999;
  color: var(--white);
  border-radius: 2px;
  vertical-align: middle;
  letter-spacing: 0.04em;
}

fieldset.form-field {
  border: none;
  padding: 0;
  margin: 0 0 1.15rem;
  min-width: 0;
}

.form-field--volume legend {
  margin-bottom: 0.55rem;
}

.radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

@media (min-width: 560px) {
  .radio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .radio-option--wide {
    grid-column: 1 / -1;
  }
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--gray2);
  border-radius: 4px;
  background: #fafafa;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.radio-option span {
  white-space: nowrap;
  line-height: 1.4;
}

.radio-option input {
  width: auto;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.radio-option:hover {
  border-color: #b8d4e4;
  background: var(--white);
}

.radio-option:has(input:checked) {
  border-color: var(--cyan);
  background: #e8f6fc;
  box-shadow: inset 0 0 0 1px var(--cyan);
  font-weight: 700;
  color: var(--navy);
}

.form-installment {
  background: #fff8e8;
  border: 1px solid #ffe08a;
  border-radius: 4px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.15rem;
}

.form-installment > label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
  margin: 0;
  font-weight: 400;
  color: var(--ink);
}

.form-installment input[type="checkbox"] {
  width: auto;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
  accent-color: var(--cyan);
}

.form-installment-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.form-installment-title {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-installment .note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.55;
}

.form-error {
  background: #fdecea;
  color: #a12622;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
  border-radius: 4px;
}

.form-success {
  background: #e8f6ee;
  color: #1f7a4d;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border-radius: 4px;
}

.form-success a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
}

.form-flow-note {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* CV band */
.cv-band {
  background: var(--cyan);
  color: var(--white);
  text-align: center;
  padding: 3rem 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

.cv-band h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

.cv-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
}

.cv-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.contact-tel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  background: #08061f;
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 5.5rem;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  width: min(880px, calc(100% - 56px));
  margin: 0 auto 2rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

.site-footer h3 {
  margin: 0 0 0.85rem;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer ul {
  list-style: none;
}

.site-footer li {
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
}

.site-footer a:hover {
  color: var(--yellow);
}

.footer-tel {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--yellow);
}

.copyright {
  width: min(880px, calc(100% - 56px));
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Fixed bottom CTA mobile */
.fixed-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 180;
  grid-template-columns: 1fr 1fr 1fr;
}

.fixed-cta a {
  padding: 0.95rem;
  text-align: center;
  font-weight: 700;
  color: var(--white);
}

.fixed-cta .tel {
  background: var(--navy);
}

.fixed-cta .form {
  background: var(--orange);
}

.fixed-cta .line {
  background: #00c300;
}

/* Flow steps */
.flow-steps {
  display: grid;
  gap: 0.85rem;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 800px) {
  .flow-steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

.flow-steps li {
  background: var(--white);
  padding: 1.15rem 1rem;
  text-align: center;
  border-top: 3px solid var(--cyan);
  counter-increment: step;
}

.flow-steps li::before {
  content: counter(step);
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.flow-steps strong {
  display: block;
  color: var(--navy);
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.flow-steps span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Payment panel */
.payment-panel {
  background: var(--white);
  color: var(--ink);
  padding: 2rem;
}

.payment-panel dl {
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .payment-panel dl {
    grid-template-columns: 1fr 1fr;
  }
}

.payment-panel dt {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.payment-panel dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--gray2);
}

/* Mission strip */
.mission-strip {
  background: var(--sidebar);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  padding: 2.25rem 1.5rem;
  font-family: var(--font-serif);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.9;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1023px) {
  body {
    padding-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }

  .mobile-bar {
    display: flex;
  }

  .site-main {
    margin-left: 0;
    width: 100%;
    padding-top: 56px;
  }

  .cv-band,
  .site-footer {
    margin-left: 0;
    width: 100%;
  }

  .fixed-cta {
    display: grid;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }
}

@media (min-width: 1024px) {
  .fixed-cta {
    display: none;
  }
}

/* ========== MOTION ========== */
.motion-ready .page-hero-bg {
  animation: heroBgDrift 12s ease-out both;
}

.motion-ready .page-hero-inner > * {
  opacity: 0;
  animation: heroRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .page-hero-inner > *:nth-child(1) { animation-delay: 0.08s; }
.motion-ready .page-hero-inner > *:nth-child(2) { animation-delay: 0.16s; }
.motion-ready .page-hero-inner > *:nth-child(3) { animation-delay: 0.24s; }
.motion-ready .page-hero-inner > *:nth-child(4) { animation-delay: 0.32s; }
.motion-ready .page-hero-inner > *:nth-child(5) { animation-delay: 0.4s; }
.motion-ready .page-hero-inner > *:nth-child(6) { animation-delay: 0.48s; }
.motion-ready .page-hero-inner > *:nth-child(7) { animation-delay: 0.56s; }
.motion-ready .page-hero-inner > *:nth-child(8) { animation-delay: 0.64s; }

@keyframes heroBgDrift {
  from { transform: scale(1.12); }
  to { transform: scale(1.04); }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

/* 要素数の多いセクションは、カードが順番にポンポン現れる */
.motion-ready .service-grid > .reveal.is-inview:not(.motion-entered),
.motion-ready .plan-cards > .reveal.is-inview:not(.motion-entered),
.motion-ready .reason-list > .reveal.is-inview:not(.motion-entered),
.motion-ready .option-list > .reveal.is-inview:not(.motion-entered),
.motion-ready .point-list > .reveal.is-inview:not(.motion-entered),
.motion-ready .reasons-rows > .reveal.is-inview:not(.motion-entered) {
  animation: cardPopIn 0.78s cubic-bezier(0.22, 1.35, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes cardPopIn {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.84) rotate(-2deg);
    filter: blur(5px);
  }
  62% {
    opacity: 1;
    transform: translateY(-7px) scale(1.025) rotate(0.5deg);
    filter: blur(0);
  }
  82% {
    transform: translateY(2px) scale(0.992) rotate(-0.15deg);
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.motion-ready .service-grid,
.motion-ready .plan-cards,
.motion-ready .reason-list,
.motion-ready .option-list,
.motion-ready .point-list,
.motion-ready .reasons-rows {
  perspective: 900px;
}

.motion-ready .service-grid > .reveal.is-inview:nth-child(even),
.motion-ready .plan-cards > .reveal.is-inview:nth-child(even),
.motion-ready .option-list > .reveal.is-inview:nth-child(even) {
  animation-name: cardPopInReverse;
}

@keyframes cardPopInReverse {
  0% {
    opacity: 0;
    transform: translateY(42px) scale(0.84) rotate(2deg);
    filter: blur(5px);
  }
  62% {
    opacity: 1;
    transform: translateY(-7px) scale(1.025) rotate(-0.5deg);
    filter: blur(0);
  }
  82% { transform: translateY(2px) scale(0.992) rotate(0.15deg); }
  100% { opacity: 1; transform: none; filter: none; }
}

/* Buttons */
.btn {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 24, 53, 0.12);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-icon,
.btn-est-icon {
  transition: transform 0.25s ease;
}

.btn:hover .btn-icon,
.sidebar-estimate .btn-est:hover .btn-est-icon {
  transform: scale(1.08);
}

/* Cards / media hover */
.plan-card,
.service-item,
.option-slide,
.option-feature-media,
.reason-item {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.25s ease;
}

.plan-card,
.service-item,
.option-slide,
.reason-item {
  position: relative;
  overflow: hidden;
}

.plan-card::after,
.service-item::after,
.option-slide::after,
.reason-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.plan-card:hover::after,
.service-item:hover::after,
.option-slide:hover::after,
.reason-item:hover::after {
  transform: translateX(120%);
}

.plan-card-img,
.service-item-img,
.option-slide-img,
.option-feature-media {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.plan-card:hover .plan-card-img,
.service-item:hover .service-item-img,
.option-slide:hover .option-slide-img {
  transform: scale(1.06);
}

.plan-card:hover,
.service-item:hover,
.option-slide:hover,
.reason-item:hover {
  transform: translateY(-7px) scale(1.012) rotate(-1.8deg);
  transform-origin: center center;
  will-change: transform;
}

.plan-card:nth-child(even):hover,
.service-item:nth-child(even):hover,
.option-slide:nth-child(even):hover,
.reason-item:nth-child(even):hover {
  transform: translateY(-7px) scale(1.012) rotate(1.8deg);
}

/* 登場アニメーションの transform がホバーを上書きしないようにする */
.motion-ready .plan-card:hover,
.motion-ready .service-item:hover,
.motion-ready .option-slide:hover,
.motion-ready .reason-item:hover {
  animation: none !important;
}

.motion-ready .service-grid > .service-item:hover {
  transform: translateY(-7px) scale(1.012) rotate(-1.8deg) !important;
}

.motion-ready .service-grid > .service-item:nth-child(even):hover {
  transform: translateY(-7px) scale(1.012) rotate(1.8deg) !important;
}

.option-feature:hover .option-feature-media {
  transform: scale(1.02);
}

.sidebar-estimate .btn-est {
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

.sidebar-estimate .btn-est:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.sidebar-nav a {
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s ease;
}

.sidebar-nav a:hover {
  padding-left: 1.7rem;
}

.option-slider-btn {
  transition:
    background 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.option-slider-btn:hover:not(:disabled) {
  transform: scale(1.08);
}

.option-slider-btn:active:not(:disabled) {
  transform: scale(0.96);
}

.radio-option {
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.radio-option:hover {
  transform: translateY(-1px);
}

.reasons-row {
  transition: background 0.35s ease, transform 0.35s ease;
}

.reasons-row:hover {
  transform: translateX(4px);
}

.reasons-num {
  transition: color 0.35s ease, transform 0.35s ease;
}

.reasons-row:hover .reasons-num {
  color: var(--cyan);
  transform: scale(1.04);
}

.fixed-cta {
  animation: fixedCtaIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

.fixed-cta .line-icon {
  display: inline-flex;
  vertical-align: middle;
  width: 1.1rem;
  height: 1.1rem;
  margin-right: 0.2rem;
}

@keyframes fixedCtaIn {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.fixed-cta a {
  transition: filter 0.2s ease, transform 0.2s ease;
}

.fixed-cta a:active {
  transform: scale(0.98);
}

/* Focus polish */
.btn:focus-visible,
.sidebar-estimate .btn-est:focus-visible,
.radio-option:focus-within,
.option-slider-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .page-hero-bg,
  .motion-ready .page-hero-inner > *,
  .motion-ready .service-grid > .reveal.is-inview,
  .motion-ready .plan-cards > .reveal.is-inview,
  .motion-ready .reason-list > .reveal.is-inview,
  .motion-ready .option-list > .reveal.is-inview,
  .motion-ready .point-list > .reveal.is-inview,
  .motion-ready .reasons-rows > .reveal.is-inview,
  .fixed-cta {
    animation: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn:hover,
  .sidebar-estimate .btn-est:hover,
  .plan-card:hover,
  .service-item:hover,
  .option-slide:hover,
  .reasons-row:hover,
  .reasons-row:hover .reasons-num,
  .option-slider-btn:hover:not(:disabled),
  .radio-option:hover {
    transform: none !important;
  }

  .plan-card:hover .plan-card-img,
  .service-item:hover .service-item-img,
  .option-slide:hover .option-slide-img,
  .option-feature:hover .option-feature-media,
  .btn:hover .btn-icon,
  .sidebar-estimate .btn-est:hover .btn-est-icon {
    transform: none !important;
  }
}
