/* ===== Reset & Variables ===== */
:root {
  --purple: #5b2a9b;
  --purple-dark: #4a2182;
  --purple-light: #ece6f6;
  --bg-gray: #f3f3f7;
  --text: #222;
  --text-sub: #444;
  --border: #d8d8e0;
  --container: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--text);
  line-height: 1.8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; transition: .2s; cursor: pointer;
}
.btn--primary { background: var(--purple); color: #fff; }
.btn--primary:hover { background: var(--purple-dark); }
.btn--outline { border-color: var(--purple); color: var(--purple); background: #fff; }
.btn--outline:hover { background: var(--purple); color: #fff; }
.btn--white { background: #fff; color: var(--purple); padding: 16px 40px; font-size: 17px; }
.btn--white:hover { background: var(--purple-light); }
.btn--sm { padding: 6px 14px; font-size: 13px; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,.96); border-bottom: 1px solid #eee;
  backdrop-filter: blur(6px);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 10px 24px; height: 60px;
}

/* ===== Logo（画像版） ===== */
.logo { display: inline-flex; align-items: center; }
.logo img { height: 32px; width: auto; display: block; }
.logo--sm img { height: 24px; }

.header__nav ul { display: flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; }
.header__nav a:not(.btn):hover { color: var(--purple); }
.header__toggle { display: none; }

/* ===== Hero（Xもコンテンツ幅の中に配置） ===== */
.hero {
  padding: 84px 0 20px;
  background: #fff;
}
.hero__inner { position: relative; }
.hero__inner > *:not(.hero__x) { position: relative; z-index: 1; }

.hero__x {
  position: absolute; top: 0; bottom: 0;
  right: 24px;                          /* 写真の右端とそろえる */
  width: 180px;
  pointer-events: none;
  z-index: 0;
}
.hero__x img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}
.hero__label { color: var(--purple); font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.hero__title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 900; line-height: 1.35; margin-bottom: 10px; }
.hero__lead { font-size: 14px; color: var(--text-sub); margin-bottom: 16px; }

/* ===== Photo band（コンテンツ幅に固定） ===== */
.photo-band { padding: 0 0 8px; }
.photo-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 1;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ===== Fee ===== */
.fee { padding: 36px 0 12px; }
.fee__box {
  display: flex; align-items: center; justify-content: center; gap: 36px;
  background: var(--purple-light); border: 2px solid var(--purple);
  padding: 14px 24px; flex-wrap: wrap;
}
.fee__label {
  background: var(--purple); color: #fff; font-weight: 700; font-size: 18px;
  padding: 8px 20px;
}
.fee__item { display: flex; align-items: baseline; gap: 14px; }
.fee__name { font-weight: 700; font-size: 15px; }
.fee__rate { font-size: 46px; font-weight: 900; color: var(--purple); line-height: 1; }
.fee__rate small { font-size: 24px; margin-left: 2px; }
.fee__divider { width: 1px; height: 40px; background: var(--purple); opacity: .5; }
.fee__note { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 14px; }

/* ===== Headings ===== */
.heading { font-size: clamp(24px, 3vw, 32px); font-weight: 900; line-height: 1.5; }
.heading--bar { border-left: 8px solid var(--purple); padding-left: 18px; }

/* ===== Message ===== */
.message { padding: 56px 0; }
.message__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.message__text .heading { margin-bottom: 18px; }
.message__text p { font-size: 15px; color: var(--text-sub); }
.message__img img { width: 100%; height: 220px; object-fit: cover; }

/* ===== Features ===== */
.features { background: var(--bg-gray); padding: 36px 0; }
.features__title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.features__list { border-top: 1px solid var(--border); }
.features__list li {
  display: grid; grid-template-columns: 70px 1.2fr 1.3fr; align-items: center;
  gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border);
}
.features__num { font-size: 22px; font-weight: 900; color: var(--purple); }
.features__head {
  font-size: 20px; font-weight: 900;
  border-left: 1px solid #999; padding-left: 20px;
}
.features__desc { font-size: 13px; color: var(--text-sub); border-left: 1px solid #999; padding-left: 20px; }

/* ===== Reason ===== */
.reason { padding: 56px 0 40px; }
.reason__inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.reason__text { border-left: 1px solid var(--border); padding-left: 32px; font-size: 14px; color: var(--text-sub); }
.reason__text p + p { margin-top: 12px; }
.reason__small { font-size: 12px; }

/* ===== Flow ===== */
.flow { padding: 0 0 64px; }
.flow__title { font-size: 24px; font-weight: 900; margin-bottom: 16px; }
.flow__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flow__list li { border-top: 2px solid var(--purple); padding-top: 10px; }
.flow__head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.flow__num { color: var(--purple); font-weight: 900; font-size: 22px; }
.flow__name { font-weight: 900; font-size: 16px; }
.flow__list p { font-size: 12.5px; color: var(--text-sub); line-height: 1.7; }

/* ===== FAQ ===== */
.faq { margin-top: 32px; }
.faq__title { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.faq__item { border-top: 1px solid #555; }
.faq__item:last-child { border-bottom: 1px solid #555; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 10px 4px; font-size: 14px; font-weight: 500;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; width: 8px; height: 8px; border-right: 2px solid #222; border-bottom: 2px solid #222;
  transform: rotate(45deg); transition: .25s; margin-right: 6px;
}
.faq__item[open] summary::after { transform: rotate(-135deg); }
.faq__item p { padding: 0 4px 14px; font-size: 13px; color: var(--text-sub); }

/* ===== CTA ===== */
.cta { background: var(--purple); color: #fff; padding: 28px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta__text { font-size: clamp(22px, 3.2vw, 32px); font-weight: 900; line-height: 1.4; }

/* ===== Footer ===== */
.footer { padding: 14px 0; border-top: 1px solid #eee; font-size: 12px; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__company { flex: 1; display: inline-flex; align-items: center; }
.footer__company img { height: 20px; width: auto; display: block; }
.footer__links { display: flex; gap: 32px; }
.footer__links a:hover { color: var(--purple); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .header__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .header__toggle span { display: block; height: 2px; background: #222; transition: .25s; }
  .header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__nav {
    position: absolute; top: 60px; left: 0; width: 100%; background: #fff;
    border-bottom: 1px solid #eee; max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .header__nav.is-open { max-height: 480px; }
  .header__nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; font-size: 15px; }
  .header__nav li { border-bottom: 1px solid #f0f0f0; }
  .header__nav a:not(.btn) { display: block; padding: 12px 0; }
  .header__nav .btn { margin: 12px 0; width: 100%; }

  .hero__x { width: 140px; }

  .message__inner, .reason__inner { grid-template-columns: 1fr; }
  .reason__text { border-left: 0; padding-left: 0; }
  .flow__list { grid-template-columns: repeat(2, 1fr); }
  .features__list li { grid-template-columns: 56px 1fr; }
  .features__desc { grid-column: 2; border-left: 0; padding-left: 0; }
  .features__head { font-size: 18px; }
}

@media (max-width: 560px) {
  .hero { padding: 76px 0 16px; }
  .hero__x { width: 90px; opacity: .95; }
  .hero__title { font-size: 24px; }
  .btn--primary { width: 100%; }
  .photo-band img { aspect-ratio: 3 / 1; }
  .fee__box { gap: 12px; padding: 16px; }
  .fee__label { width: 100%; text-align: center; }
  .fee__divider { display: none; }
  .fee__rate { font-size: 38px; }
  .flow__list { grid-template-columns: 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .btn--white { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__company img { height: 18px; }
  .footer__links { gap: 20px; }
}