/* =============================================
   ENGAGEMENT株式会社｜無料事業説明会
   css/style.css
   ============================================= */

/* ----- CSS Variables ----- */
:root {
  --bg:      #eaf4ff;
  --blue:    #0f67e8;
  --yellow:  #fff170;
  --orange:  #ff7a00;
  --orange2: #ff9a2f;
  --red:     #df3c2d;
  --line:    #cfdeec;
  --shadow2: 0 8px 20px rgba(255, 122, 0, 0.25);
}

/* ----- Reset ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----- Base ----- */
body {
  background: #dbe7f2;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, 'Noto Sans JP', sans-serif;
  color: #14314b;
  line-height: 1.6;
}

/* ----- Page wrapper (スマホ前提 max-width) ----- */
.page {
  max-width: 430px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow-x: hidden;
}

/* ----- Sections ----- */
.section {
  padding: 32px 20px;
}
.section-soft {
  background: #f3f9ff;
}
.dark-section {
  background: linear-gradient(180deg, #0b223c 0%, #12385d 100%);
  color: #ffffff;
}
.dark-cta {
  background: linear-gradient(180deg, #0b223c 0%, #14395f 100%);
  color: #fff;
}

/* ----- Typography ----- */
h1 {
  font-size: 28px;
  line-height: 1.3;
  color: #ffffff;
}
h2 {
  font-size: 24px;
  line-height: 1.35;
  font-weight: 900;
  text-align: center;
}
h3 {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
}

/* ----- Utility ----- */
.nowrap     { white-space: nowrap; }
.text-center { text-align: center; }
.red         { color: var(--red); }

/* ----- Eyebrow label ----- */
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  color: #f4f9ff;
  margin-bottom: 12px;
}
.dark-section .eyebrow {
  background: rgba(255, 197, 58, 0.14);
  color: #ffd96f;
}

/* ----- Highlight marker ----- */
.marker {
  display: inline;
  padding: 0.02em 0.14em 0.06em;
  background: var(--yellow);
  border-radius: 2px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 32px 20px 40px;
  background: linear-gradient(180deg, #0b1d33 0%, #163657 100%);
  color: #fff;
}
.hero .red          { color: #ffd458; }
.hero .marker       { background: none; color: #ffd458; }
.dark-section .marker {
  background: rgba(255, 209, 84, 0.96);
  color: #07213b;
}

/* Hero attention banner */
.hero-attention {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffd75e, #ffbb24);
  color: #5e3600;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
  width: 100%;
}

/* Hero dark card */
.card {
  padding: 18px;
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

/* Trust badges */
.trust {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.trust-item {
  padding: 15px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #fff;
}
.trust-item b     { display: block; font-size: 14px; }
.trust-item small { display: block; font-size: 12px; color: #dbe8f4; }

/* =============================================
   PHOTOS
   ============================================= */
.photo-real {
  margin: 16px 0 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(198, 216, 232, 0.92);
  box-shadow: 0 10px 28px rgba(9, 31, 56, 0.1);
}
.photo-real img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Aspect ratio variants */
.fv-photo img          { aspect-ratio: 4/5;  object-position: center 18%; }
.owner-photo img       { aspect-ratio: 4/3;  object-position: center 42%; }
.inheritance-photo img { aspect-ratio: 4/3;  object-position: center 46%; }
.wide img              { aspect-ratio: 16/9; }
.trusted-photo img     { aspect-ratio: 4/3;  object-position: center 40%; }
.office-photo img      { aspect-ratio: 16/9; object-position: center 48%; }

/* Dark section photo style */
.dark-section .photo-real,
.dark-cta .photo-real {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

/* =============================================
   CTA BUTTON
   ============================================= */
.cta-btn {
  display: block;
  text-align: center;
  padding: 16px 12px;
  margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange2) 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow2);
  transition: opacity 0.2s;
}
.cta-btn:hover  { opacity: 0.88; }
.cta-btn:active { opacity: 0.75; }
.cta-btn span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.94;
}

/* =============================================
   CHECK / RECOMMEND LIST
   ============================================= */
.list .item,
.check li,
.recommend li {
  position: relative;
  padding: 13px 12px 13px 40px;
  border-radius: 15px;
  background: #f6fbff;
  border: 1px solid #d7e7f4;
  font-weight: 900;
  font-size: 14px;
  margin-top: 10px;
  list-style: none;
}
.list .item::before,
.check li::before,
.recommend li::before {
  content: '✓';
  position: absolute;
  left: 14px;
  top: 13px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8f3ff;
  color: var(--blue);
  font-size: 13px;
}

/* Hero list overrides */
.hero .list .item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.hero .list .item::before {
  background: #ffd458;
  color: #8a4c00;
}

/* =============================================
   SPEECH BUBBLE
   ============================================= */
.speech {
  position: relative;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  font-weight: 900;
  font-size: 16px;
  margin-top: 16px;
}

/* =============================================
   CHECKLIST GRID
   ============================================= */
.feature-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.checklist-grid .item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  background: #f6fbff;
  border: 1px solid #d7e7f4;
}
.checklist-grid .icon  { font-size: 30px; }
.checklist-grid .title { font-size: 15px; font-weight: 900; }
.checklist-grid .desc  { font-size: 12px; color: #55738e; margin-top: 4px; }

/* =============================================
   SEMINAR CARD / FLOW
   ============================================= */
.seminar-card {
  background: linear-gradient(180deg, #eaf5ff 0%, #ffffff 100%);
  padding: 18px;
  border-radius: 16px;
  margin-top: 16px;
}
.dark-section .seminar-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.flow-step {
  padding: 14px 18px 16px;
  background: #fff;
  border-radius: 24px;
  margin-top: 10px;
  border: 1px solid #dbe8f4;
}
.dark-section .flow-step {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.flow-step strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #14314b;
}
.dark-section .flow-step strong { color: #fff; }

/* Blurred secret text */
.flow-mask {
  display: block;
  filter: blur(5px);
  opacity: 0.68;
  user-select: none;
}
.dark-section .flow-mask { color: rgba(255, 255, 255, 0.92); }

.flow-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9a2f 0%, #ff7a00 100%);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

/* =============================================
   COMPARE TABLE
   ============================================= */
.compare {
  overflow: hidden;
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid #e7eef5;
}
.compare .head {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.compare .head div {
  padding: 14px;
  text-align: center;
  font-weight: 900;
}
.compare .head div:first-child { background: #fff2ee; color: #c6553a; }
.compare .head div:last-child  { background: #eaf5ff; color: #1d69db; }
.compare .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e7eef5;
}
.compare .row div {
  padding: 14px;
  font-size: 14px;
  font-weight: 900;
}

/* =============================================
   MINI PROOF
   ============================================= */
.mini-proof-wrap {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.mini-proof {
  padding: 16px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-radius: 16px;
  border: 1px solid #dbe8f4;
}
.mini-proof b    { display: block; font-size: 26px; color: #12304a; }
.mini-proof span {
  font-size: 12px;
  color: #6a8398;
  font-weight: 800;
  margin-top: 4px;
  display: block;
}

/* =============================================
   FORM
   ============================================= */
.form-wrap {
  padding: 18px;
  margin-top: 16px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #cfdeec;
}
.field {
  margin-top: 12px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 6px;
}
.req {
  background: #fff1ec;
  color: #dd4f3d;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  margin-left: 6px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #cfdeec;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
}

/* Form CTA wrap (シンプルボタン方式) */
.form-cta-wrap {
  margin-top: 16px;
  text-align: center;
}
.form-cta-desc {
  font-size: 15px;
  font-weight: 700;
  color: #14314b;
  margin-bottom: 4px;
}
.form-cta-note {
  margin-top: 12px;
  font-size: 12px;
  color: #6a8398;
}

/* Field note (補足説明) */
.field-note {
  font-size: 12px;
  color: #6a8ea8;
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #cfdeec;
  background: #f6fbff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.radio-label:has(input:checked) {
  border-color: var(--blue);
  background: #e8f3ff;
}
.radio-label input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  accent-color: var(--blue);
  cursor: pointer;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Form message box */
.form-msg-box {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-line;
  text-align: center;
}
.form-msg-success {
  background: #eafff4;
  border: 1px solid #7ed6a8;
  color: #1a6e42;
}
.form-msg-error {
  background: #fff0ee;
  border: 1px solid #f4b8b0;
  color: #c0392b;
}

/* =============================================
   SCROLL FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
