/* ===== リセット & 基本 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Noto Sans JP", sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== 変数 ===== */
:root {
  --red: #fa474e;
  --red2: #ff5a64;
  --orange: #fa6d41;
  --pink-bg: #fff5f5;
  --grad: linear-gradient(to right, #ff5a64, #fa474e, #fa6d41);
}

/* ===== ユーティリティ ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 110px; } }

/* ===== アニメーション初期状態 ===== */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-in-right { opacity: 0; transform: translateX(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.fade-up.visible, .fade-in-right.visible { opacity: 1; transform: none; }

/* グラデーションリビール */
.grad-reveal { overflow: hidden; width: fit-content; }
.grad-reveal-inner {
  background: var(--grad);
  padding: 8px 16px;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) { .grad-reveal-inner { padding: 10px 20px; } }
.grad-reveal-inner.visible { clip-path: inset(0 0% 0 0); }

/* ===== CTAボタン ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px; font-weight: 700; color: #fff;
  background: var(--grad);
  transition: opacity 0.2s; cursor: pointer; border: none;
}
.btn:hover { opacity: 0.85; }
.btn-sm { padding: 8px 24px; font-size: 14px; }
.btn-md { padding: 16px 40px; font-size: 16px; }
.btn-xl { padding: 16px 32px; font-size: 16px; width: 100%; max-width: 340px; }
@media (min-width: 768px) { .btn-xl { width: 480px; max-width: none; padding: 20px 32px; font-size: 18px; } }

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
@media (min-width: 768px) {
  .header-inner { padding: 0 110px; height: 104px; }
}
.logo { width: 160px; height: 24px; object-fit: contain; object-position: left; }
@media (min-width: 768px) { .logo { width: 270px; height: 38px; } }

/* ===== HERO ===== */
.hero { background: #fff; overflow: hidden; }
.hero .container { padding-top: 40px; padding-bottom: 40px; }
@media (min-width: 768px) { .hero .container { padding-top: 50px; padding-bottom: 50px; } }

.hero-inner {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
@media (min-width: 768px) {
  .hero-inner { flex-direction: row; gap: 20px; }
}

.hero-image-wrap {
  width: 100%; border-radius: 16px; overflow: hidden; order: 1;
}
@media (min-width: 768px) { .hero-image-wrap { order: 2; flex: 1; } }

.hero-image {
  width: 100%; height: 240px; object-fit: cover; object-position: center;
}
@media (min-width: 768px) { .hero-image { height: 483px; } }

.hero-text { order: 2; width: 100%; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .hero-text { order: 1; width: 545px; flex-shrink: 0; gap: 40px; } }

.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-badge {
  padding: 4px 12px; font-size: 12px; font-weight: 700; color: #fff;
  border-radius: 4px; background: var(--grad);
}
@media (min-width: 768px) { .hero-badge { font-size: 14px; padding: 4px 12px; } }

.hero-title { font-size: 28px; font-weight: 800; line-height: 1.25; color: #000; letter-spacing: 0; }
@media (min-width: 768px) { .hero-title { font-size: 42px; } }
.hero-subtitle { font-size: 16px; font-weight: 800; color: #000; line-height: 1.5; }
@media (min-width: 768px) { .hero-subtitle { font-size: 22px; } }
.hero-desc { font-size: 14px; font-weight: 400; color: #000; line-height: 1.93; }

/* ===== PROBLEM ===== */
.problem { background: var(--pink-bg); padding: 48px 0; }
@media (min-width: 768px) { .problem { padding: 80px 0; } }

.problem-title {
  font-size: 18px; font-weight: 800; color: var(--red); text-align: center;
  line-height: 1.6; margin-bottom: 32px;
}
@media (min-width: 768px) { .problem-title { font-size: 22px; line-height: 1.9; margin-bottom: 40px; } }

.problem-inner { max-width: 760px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .problem-inner { padding: 0 16px; } }

.problem-card {
  border: 2px solid var(--red2); border-radius: 19px;
  padding: 32px; background: #fff;
  display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .problem-card { padding: 48px; gap: 10px; } }

.problem-item { display: flex; align-items: flex-start; gap: 12px; }
@media (min-width: 768px) { .problem-item { align-items: center; } }

.check-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
@media (min-width: 768px) { .check-icon { width: 26px; height: 26px; margin-top: 0; } }

.problem-text { font-size: 14px; font-weight: 500; color: #000; line-height: 1.7; }
@media (min-width: 768px) { .problem-text { font-size: 18px; line-height: 2.33; } }
.problem-text strong { font-weight: 800; }

/* ===== ABOUT ===== */
.about { background: #fff; padding: 48px 0; }
@media (min-width: 768px) { .about { padding: 70px 0; } }

.about-inner { max-width: 865px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .about-inner { padding: 0 16px; } }

.about-titles {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  margin-bottom: 32px;
}
@media (min-width: 768px) { .about-titles { gap: 20px; margin-bottom: 35px; } }

.about-lead { font-size: 18px; font-weight: 800; color: #000; text-align: center; line-height: 1.7; }
@media (min-width: 768px) { .about-lead { font-size: 22px; line-height: 1.9; } }

.grad-reveal-text { font-size: 20px; font-weight: 800; color: #fff; text-align: center; line-height: 1.3; }
@media (min-width: 768px) { .grad-reveal-text { font-size: 32px; } }

.about-sub { font-size: 14px; font-weight: 500; color: #000; text-align: center; line-height: 1.7; }
@media (min-width: 768px) { .about-sub { font-size: 19px; line-height: 2.2; } }

.member-grid {
  display: flex; flex-direction: row; gap: 12px; justify-content: center; align-items: center;
}
@media (min-width: 768px) { .member-grid { gap: 35px; } }

.member-img {
  flex: 1; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden;
  object-fit: cover; object-position: top;
}
@media (min-width: 768px) { .member-img { flex: none; width: 265px; height: 279px; aspect-ratio: auto; } }

/* ===== SERVICE INTRO ===== */
.service { background: var(--pink-bg); padding: 48px 0; }
@media (min-width: 768px) { .service { padding: 70px 0; } }

.service-titles {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .service-titles { gap: 20px; margin-bottom: 50px; } }

.service-lead { font-size: 14px; font-weight: 500; color: #000; text-align: center; line-height: 1.625; max-width: 662px; }
@media (min-width: 768px) { .service-lead { font-size: 16px; } }

.feature-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 55px; } }

.feature-card {
  background: #fff; border-radius: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 20px;
}
@media (min-width: 768px) { .feature-card { padding: 40px; gap: 24px; } }

.feature-icon {
  width: 100px; height: 100px; border-radius: 50%; background: var(--pink-bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
}
@media (min-width: 768px) { .feature-icon { width: 140px; height: 140px; font-size: 48px; } }

.feature-content { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.feature-title { font-size: 18px; font-weight: 700; color: #000; text-align: center; line-height: 1.25; }
@media (min-width: 768px) { .feature-title { font-size: 22px; } }
.feature-desc { font-size: 14px; font-weight: 400; color: #000; line-height: 1.625; }

/* ===== PROCESS ===== */
.process { background: #fff; padding: 48px 0; }
@media (min-width: 768px) { .process { padding: 70px 0; } }

.process-header { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 40px; max-width: 584px; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) { .process-header { gap: 16px; margin-bottom: 50px; } }

.process-lead { font-size: 14px; font-weight: 500; color: #000; text-align: center; line-height: 1.7; }
@media (min-width: 768px) { .process-lead { font-size: 16px; line-height: 2.625; } }

.process-container { max-width: 1440px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .process-container { padding: 0 115px; } }

.process-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

.process-card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 24px 20px;
  display: flex; align-items: flex-start; gap: 20px;
}
@media (min-width: 768px) { .process-card { padding: 50px; gap: 30px; align-items: center; } }

.process-num { font-size: 28px; font-weight: 800; color: var(--red); flex-shrink: 0; line-height: 1; }
@media (min-width: 768px) { .process-num { font-size: 36px; } }
.process-text { display: flex; flex-direction: column; gap: 12px; }
.process-ttl { font-size: 15px; font-weight: 700; color: #000; line-height: 1.25; }
@media (min-width: 768px) { .process-ttl { font-size: 22px; } }
.process-desc { font-size: 13px; font-weight: 400; color: #1a1a1a; line-height: 1.7; }
@media (min-width: 768px) { .process-desc { font-size: 14px; line-height: 1.93; } }

/* ===== CASE ===== */
.case { background: var(--pink-bg); padding: 48px 0; }
@media (min-width: 768px) { .case { padding: 70px 0; } }

.case-title-wrap { max-width: 616px; margin: 0 auto 40px; padding: 0 20px; text-align: center; }
@media (min-width: 768px) { .case-title-wrap { margin-bottom: 50px; padding: 0; } }

.case-list { display: flex; flex-direction: column; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .case-list { gap: 70px; margin-bottom: 60px; } }

.case-item { display: flex; flex-direction: column; }
@media (min-width: 768px) {
  .case-item { flex-direction: row; align-items: center; }
  .case-item.reverse { flex-direction: row-reverse; }
}

.case-img { width: 100%; height: 220px; object-fit: cover; object-position: center; }
@media (min-width: 768px) { .case-img { width: 50%; height: 440px; flex-shrink: 0; } }

.case-body {
  flex: 1; padding: 24px 20px; display: flex; flex-direction: column; gap: 16px;
}
@media (min-width: 768px) { .case-body { padding: 0 60px; gap: 30px; } }

.case-tag {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.333;
  color: var(--red); background: transparent;
  border: 1px solid var(--red); border-radius: 4px;
  padding: 4px 8px; margin-bottom: 12px;
}
.case-result {
  font-size: 20px; font-weight: 800; color: var(--red);
  line-height: 1.25; white-space: pre-line; margin-bottom: 16px;
}
@media (min-width: 768px) { .case-result { font-size: 28px; margin-bottom: 24px; line-height: 1.25; } }
.case-desc { font-size: 14px; font-weight: 400; color: #000; line-height: 1.7; }
@media (min-width: 768px) { .case-desc { font-size: 16px; line-height: 1.6875; } }
.case-company { font-size: 14px; font-weight: 700; color: #000; line-height: 1.4; }
@media (min-width: 768px) { .case-company { font-size: 16px; line-height: 1.43; } }

.case-cta { display: flex; justify-content: center; padding: 0 20px; }

/* ===== FLOW ===== */
.flow { background: #fff; padding: 48px 0; }
@media (min-width: 768px) { .flow { padding: 70px 0; } }

.flow-title-wrap { display: flex; justify-content: center; margin-bottom: 40px; }
@media (min-width: 768px) { .flow-title-wrap { margin-bottom: 50px; } }

.flow-list { max-width: 976px; margin: 0 auto 40px; display: flex; flex-direction: column; gap: 0; }
@media (min-width: 768px) { .flow-list { margin-bottom: 60px; } }

.step-card {
  background: #fff; border: 1px solid #f3f4f6; border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); padding: 20px;
  display: flex; align-items: flex-start; gap: 16px;
}
@media (min-width: 768px) { .step-card { padding: 40px; gap: 24px; align-items: center; } }

.step-arrow { display: flex; justify-content: center; margin: 8px 0; }

.step-num { font-size: 16px; font-weight: 800; color: var(--red); flex-shrink: 0; width: 70px; text-align: center; line-height: 1.25; }
@media (min-width: 768px) { .step-num { font-size: 28px; width: 103px; } }

.step-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
@media (min-width: 768px) { .step-body { flex-direction: row; align-items: center; gap: 24px; } }

.step-title { font-size: 14px; font-weight: 700; color: #000; line-height: 1.43; }
@media (min-width: 768px) { .step-title { font-size: 20px; width: 180px; flex-shrink: 0; white-space: nowrap; } }
.step-text { font-size: 12px; font-weight: 400; color: #4b5563; line-height: 1.7; }
@media (min-width: 768px) { .step-text { font-size: 14px; line-height: 1.93; } }

.flow-cta { display: flex; justify-content: center; }

/* ===== FINAL CTA ===== */
.final-cta {
  background: var(--grad); padding: 48px 0;
}
@media (min-width: 768px) { .final-cta { padding: 69px 0; } }

.final-cta-inner {
  display: flex; flex-direction: column; align-items: center; gap: 32px;
}
@media (min-width: 768px) {
  .final-cta-inner { flex-direction: row; justify-content: space-between; gap: 0; }
}

.final-cta-text { display: flex; flex-direction: column; gap: 16px; max-width: 545px; text-align: center; }
@media (min-width: 768px) { .final-cta-text { text-align: left; gap: 24px; } }

.final-cta-title { font-size: 24px; font-weight: 800; color: #fff; line-height: 1.25; }
@media (min-width: 768px) { .final-cta-title { font-size: 36px; } }
.final-cta-desc { font-size: 14px; font-weight: 400; color: rgba(255,255,255,.95); line-height: 1.7; }
@media (min-width: 768px) { .final-cta-desc { font-size: 16px; } }

.final-cta-btn {
  width: 100%; height: 64px; background: #fff; color: var(--red);
  font-size: 18px; font-weight: 800; border-radius: 9999px;
  border: none; cursor: pointer; transition: background 0.2s;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}
@media (min-width: 768px) { .final-cta-btn { width: 480px; height: 76px; font-size: 22px; } }
.final-cta-btn:hover { background: #fff8f8; }

/* ===== FOOTER ===== */
footer {
  position: relative; padding: 20px 0 32px;
}
@media (min-width: 768px) { footer { padding: 20px 0; } }

.footer-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; z-index: 0;
}
.footer-inner {
  position: relative; z-index: 1;
  max-width: 1440px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; gap: 0; padding: 0 110px; }
}

.footer-nav { display: flex; align-items: center; gap: 0; }
.footer-link { font-size: 14px; color: #9ca3af; transition: color 0.2s; }
.footer-link:hover { color: var(--red); }
.footer-sep { color: #d1d5db; margin: 0 12px; font-size: 14px; }
.footer-copy { font-size: 14px; color: #9ca3af; }

/* ===== CONTACT FORM ===== */
.rpo-form {
  width: 100%; max-width: 480px;
  background: #fff; border-radius: 16px;
  padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  display: flex; flex-direction: column; gap: 12px;
}
@media (min-width: 768px) { .rpo-form { padding: 28px; gap: 14px; } }
.rpo-form__row { display: flex; flex-direction: column; gap: 4px; }
.rpo-form__row--inline { flex-direction: row; gap: 8px; }
.rpo-form__row--inline > input { flex: 1; min-width: 0; }
.rpo-form__label { font-size: 13px; font-weight: 700; color: #374151; }
.rpo-form__req { color: var(--red); margin-left: 4px; }
.rpo-form input[type="text"],
.rpo-form input[type="email"],
.rpo-form input[type="tel"],
.rpo-form input[type="url"],
.rpo-form textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid #d1d5db; border-radius: 8px; background: #fff;
  font-family: inherit; line-height: 1.4;
}
.rpo-form input:focus, .rpo-form textarea:focus {
  outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(250,71,78,.12);
}
.rpo-form textarea { resize: vertical; min-height: 88px; }
.rpo-form__err { font-size: 12px; color: var(--red); }
.rpo-form__agree { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4b5563; }
.rpo-form__agree input { margin-top: 3px; accent-color: var(--red); }
.rpo-form__agree a { color: var(--red); text-decoration: underline; }
.rpo-form__submit {
  margin-top: 4px; width: 100%; height: 52px;
  background: var(--grad); color: #fff; font-size: 16px; font-weight: 900;
  border: none; border-radius: 9999px; cursor: pointer;
  transition: opacity .2s, transform .1s;
}
.rpo-form__submit:hover { opacity: .9; }
.rpo-form__submit:active { transform: scale(0.98); }

/* バリデーションエラー時の入力欄ハイライト */
.rpo-form input.is-invalid,
.rpo-form textarea.is-invalid {
  border-color: var(--red);
  background-color: #fff5f5;
}
.rpo-form__agree.is-invalid > span { color: var(--red); }

/* ===== TERM MODAL ===== */
.term-modal-trigger {
  background: none; border: none; padding: 0;
  font: inherit; color: inherit; cursor: pointer; text-decoration: none;
}
.term-modal-trigger.footer-link { font-size: 14px; color: #9ca3af; transition: color .2s; }
.term-modal-trigger.footer-link:hover { color: var(--red); }

.term-modal { position: fixed; inset: 0; z-index: 9999; display: none; }
.term-modal.is-open { display: block; }
.term-modal__overlay {
  position: absolute; inset: 0;
  background: rgba(17, 24, 39, .6); cursor: pointer;
}
.term-modal__dialog {
  position: absolute; inset: 0; margin: auto;
  width: calc(100% - 32px); max-width: 800px;
  max-height: calc(100vh - 64px);
  background: #fff; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,.25);
}
.term-modal__header {
  position: relative; padding: 16px 56px 16px 20px;
  border-bottom: 1px solid #e5e7eb; text-align: center;
}
.term-modal__title { font-size: 18px; font-weight: 700; color: #111827; }
.term-modal__close {
  position: absolute; top: 50%; right: 16px; transform: translateY(-50%);
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 24px; line-height: 1; cursor: pointer; color: #6b7280;
}
.term-modal__close:hover { color: #111827; }
.term-modal__body {
  padding: 20px; overflow-y: auto; flex: 1;
  font-size: 13px; line-height: 1.8; color: #374151;
}
.term-modal__body dl { margin: 0; }
.term-modal__body dt { font-weight: 700; margin-top: 16px; color: #111827; }
.term-modal__body dt:first-child { margin-top: 0; }
.term-modal__body dd { margin: 4px 0 16px; padding: 0; }
.term-modal__body .link, .term-modal__body a { color: var(--red); text-decoration: underline; word-break: break-all; }
.term-modal__footer {
  padding: 12px 20px; border-top: 1px solid #e5e7eb; text-align: right;
}
.term-modal__footer button {
  padding: 8px 24px; background: var(--grad); color: #fff;
  border: none; border-radius: 9999px; font-weight: 700; cursor: pointer;
}
body.term-modal-open { overflow: hidden; }

/* ===== THANKS ===== */
.rpo-thanks {
  min-height: 60vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 24px; padding: 48px 20px;
}
.rpo-thanks__title { font-size: 28px; font-weight: 900; color: var(--red); text-align: center; }
.rpo-thanks__text { font-size: 15px; color: #374151; line-height: 1.8; text-align: center; max-width: 560px; }
.rpo-thanks__back { display: inline-block; padding: 14px 32px; background: var(--grad); color: #fff; font-weight: 700; border-radius: 9999px; }
