/* ============================================================
   お友達紹介キャンペーン LP — style.css
   re-gi.jp/campaign/referral/
   ============================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== Variables ===== */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #1a3a6e;
  --navy-light:  #2d5a9e;
  --orange:      #f97316;
  --orange-dark: #ea580c;
  --orange-bg:   #fff7ed;
  --green:       #059669;
  --green-dark:  #047857;
  --green-bg:    #ecfdf5;
  --gold:        #d97706;
  --red:         #dc2626;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-500:    #6b7280;
  --gray-700:    #374151;
  --white:       #ffffff;
  --radius:      12px;
  --radius-sm:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.07);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.12);
}

/* ===== Layout ===== */
.container        { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.container--wide  { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--narrow{ max-width: 720px;  margin: 0 auto; padding: 0 24px; }

.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
}

/* ===== Eyebrow badge ===== */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(249,115,22,0.1);
  color: var(--orange-dark);
  border: 1px solid rgba(249,115,22,0.3);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ===== Header ===== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 13px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}
.site-header__back {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.2s;
}
.site-header__back:hover { color: var(--navy); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 16px 32px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  text-align: center;
  line-height: 1.3;
}
.btn small {
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.8;
  display: block;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(249,115,22,0.35);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(249,115,22,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}
.btn-outline--dark {
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline--dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(140deg, #0a1628 0%, var(--navy) 40%, #1a3a6e 80%, #0d3260 100%);
  padding: 80px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Grid dot pattern */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.08) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
.hero__mandala-bg {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.05;
  pointer-events: none;
}
.hero__mandala-bg--left {
  right: auto;
  left: -40px;
  opacity: 0.04;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 52px;
  text-align: left;
}
.hero__content {
  /* テキストカラム */
}
.hero__image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.3);
  display: block;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.18);
  color: #fde68a;
  border: 1px solid rgba(249,115,22,0.4);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--white);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: normal;
  color: #fbbf24;
}
.hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.78);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-bottom: 24px;
}
.hero__note {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.45);
}

/* ===== SECTION HEAD ===== */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}
.section-lead {
  font-size: 0.95rem;
  color: var(--gray-500);
  line-height: 1.75;
}

/* ===== BENEFITS ===== */
.benefits {
  background: var(--white);
  padding: 80px 0;
}
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.benefit-card {
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.benefit-card--referrer {
  background: linear-gradient(145deg, #eef4ff, #e4effc);
  border-top: 5px solid var(--navy-mid);
}
.benefit-card--referee {
  background: linear-gradient(145deg, var(--orange-bg), #fef0e0);
  border-top: 5px solid var(--orange);
}
.benefit-icon { font-size: 2.2rem; margin-bottom: 10px; }
.benefit-role {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--white);
  white-space: nowrap;
}
.benefit-card--referrer .role-badge { background: var(--navy-mid); }
.benefit-card--referee  .role-badge { background: var(--orange); }

.benefit-number {
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.benefit-card--referrer .benefit-number { color: var(--red); }
.benefit-card--referee  .benefit-number { color: var(--green); }

.benefit-label {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}
.benefit-detail {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 16px;
}
.benefit-plus {
  font-size: 0.8rem;
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 500;
  line-height: 1.6;
}
.benefit-card--referrer .benefit-plus {
  background: rgba(13,27,62,0.07);
  color: var(--navy);
}
.benefit-card--referee .benefit-plus {
  background: rgba(249,115,22,0.08);
  color: var(--orange-dark);
}

/* Timeline rows */
.benefit-timeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.tl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}
.tl-row--discount {
  background: rgba(5,150,105,0.1);
  border: 1px solid rgba(5,150,105,0.25);
}
.tl-row--normal {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
}
.tl-month {
  font-weight: 700;
  color: #111827;
  min-width: 78px;
  font-size: 0.78rem;
}
.tl-price del { color: var(--gray-500); font-size: 0.76rem; }
.tl-price strong { color: var(--green-dark); font-size: 1rem; }
.tl-price small { font-size: 0.72rem; color: var(--gray-500); }
.tl-row--normal .tl-price { color: var(--gray-700); font-size: 0.84rem; }
.tl-badge {
  margin-left: auto;
  background: var(--green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.tl-badge--gray {
  background: var(--gray-300);
  color: var(--gray-700);
}

/* ===== FLOW ===== */
.flow-section {
  background: var(--gray-50);
  padding: 80px 0;
}
.flow-steps {
  display: flex;
  flex-direction: column;
  max-width: 680px;
  margin: 0 auto;
}
.flow-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 16px;
  align-items: stretch;
  position: relative;
}
.flow-step__left {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.flow-step__circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Helvetica Neue', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--white);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.flow-step:nth-child(1) .flow-step__circle { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.flow-step:nth-child(2) .flow-step__circle { background: linear-gradient(135deg, #f97316, #ea580c); }
.flow-step:nth-child(3) .flow-step__circle { background: linear-gradient(135deg, #10b981, #059669); }
.flow-step:nth-child(4) .flow-step__circle { background: linear-gradient(135deg, #d97706, #b45309); }

.flow-step__line {
  width: 2px;
  flex: 1;
  min-height: 28px;
  background: var(--gray-200);
  margin: 4px auto 0;
}
.flow-step:last-child .flow-step__line { display: none; }

.flow-step__body { padding: 4px 0 36px; }
.flow-step__card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.flow-step__tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-500);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.flow-step__title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 7px;
}
.flow-step__desc {
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.75;
}
.flow-step__desc code {
  font-family: 'Courier New', monospace;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
  word-break: break-all;
  color: var(--navy);
  display: inline-block;
  margin-top: 6px;
}
.flow-cta {
  text-align: center;
  margin-top: 40px;
}

/* ===== FAQ ===== */
.faq-section { background: var(--white); padding: 80px 0; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.faq-item:hover         { box-shadow: var(--shadow); }
.faq-item.is-open       { box-shadow: var(--shadow); border-color: rgba(249,115,22,0.35); }
.faq-q {
  padding: 18px 22px;
  font-weight: 700;
  color: #111827;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
.faq-q-mark {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-q-text {
  flex: 1;
  font-size: 0.93rem;
  line-height: 1.55;
}
.faq-toggle {
  width: 24px; height: 24px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1;
  color: var(--gray-500);
  transition: all 0.25s;
  margin-top: 1px;
}
.faq-item.is-open .faq-toggle {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 22px 18px 50px;
  font-size: 0.88rem;
  color: var(--gray-700);
  line-height: 1.75;
  display: none;
  position: relative;
}
.faq-item.is-open .faq-a { display: block; }
.faq-a-mark {
  position: absolute;
  left: 22px;
  top: 0;
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 900;
  color: var(--gold);
  font-size: 1rem;
}
.faq-a a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: var(--orange); }

/* ===== BOTTOM CTA ===== */
.cta-section {
  background: linear-gradient(140deg, #0a1628 0%, var(--navy) 50%, #1a3a6e 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0);
  background-size: 36px 36px;
  pointer-events: none;
}
.cta-section__inner { position: relative; z-index: 1; }
.cta-section .section-title { color: var(--white); }
.cta-section .section-lead { color: rgba(255,255,255,0.72); margin-bottom: 40px; }
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.cta-note {
  margin-top: 24px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.cta-note a { color: rgba(255,255,255,0.7); text-decoration: underline; text-underline-offset: 2px; }

/* ===== LEGAL + FOOTER ===== */
.legal-section {
  background: #040b18;
  padding: 40px 0 32px;
}
.legal-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4b5563;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-list li {
  font-size: 0.76rem;
  color: #4b5563;
  line-height: 1.65;
  padding-left: 1.4em;
  position: relative;
}
.legal-list li::before {
  content: '※';
  position: absolute;
  left: 0;
  color: #374151;
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo { font-size: 0.85rem; font-weight: 700; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 0.76rem; color: #4b5563; transition: color 0.2s; }
.footer-links a:hover { color: rgba(255,255,255,0.65); }
.footer-copy { font-size: 0.7rem; color: #374151; width: 100%; }

/* ===== STICKY MOBILE CTA ===== */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,22,40,0.97);
  border-top: 1px solid rgba(249,115,22,0.25);
  padding: 10px 16px;
  z-index: 200;
}
@media (max-width: 767px) { .sticky-cta { display: block; } }
.sticky-cta .btn {
  width: 100%;
  font-size: 0.95rem;
  padding: 13px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767px) {
  .hero   { padding: 60px 0 56px; }
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero__cta { justify-content: center; }
  .hero__image-wrap { order: -1; } /* 画像をテキストより上に表示 */
  .hero__img { max-width: 340px; }
  .benefits, .flow-section, .faq-section, .cta-section { padding: 60px 0; }
  .legal-section { padding: 32px 0 80px; } /* space for sticky CTA */
  .section-head { margin-bottom: 36px; }
}
@media (max-width: 640px) {
  .benefits-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.55rem; }
  .hero__cta .btn { width: 100%; }
  .cta-buttons .btn { width: 100%; }
  .benefit-number { font-size: 2.4rem; }
  .benefit-card { padding: 28px 20px; }
  .flow-step { grid-template-columns: 60px 1fr; gap: 0 12px; }
  .flow-step__circle { width: 44px; height: 44px; font-size: 1.1rem; }
  .flow-step__card { padding: 18px 18px; }
  .site-header__back { display: none; }
}
