/* =========================================================================
 * トリスマ 家づくりセカンドオピニオン相談会 LP
 * スタイルシート（スマートフォンファースト）
 * ========================================================================= */

/* ---- 1. デザイントークン -------------------------------------------------- */
:root {
  --red: #df0716;
  --logo-red: #de0515;
  --pink: #fde7e9;
  --black: #111111;
  --gray: #555555;
  --light: #f0f0f0;
  --border: #e5e7eb;
  --white: #ffffff;
  --star: #f5a623;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 6px 22px rgba(17, 17, 17, 0.07);
  --shadow-strong: 0 10px 30px rgba(223, 7, 22, 0.18);

  --header-h: 58px;
  --fixed-cta-h: 74px;
}

/* ---- 2. リセット ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans",
    Meiryo, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  /* スマホ固定CTAが本文・フッターを隠さないよう下に余白を確保 */
  padding-bottom: calc(var(--fixed-cta-h) + env(safe-area-inset-bottom, 0px));
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.4;
  margin: 0 0 0.6em;
  font-weight: 700;
  letter-spacing: 0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---- 3. アクセシビリティ -------------------------------------------------- */
:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--black);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* ---- 4. レイアウト -------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 52px 0;
}

.section--pink {
  background: var(--pink);
}
.section--light {
  background: var(--light);
}

.section-title {
  font-size: clamp(1.3rem, 5vw, 2rem);
  font-weight: 700;
  margin-bottom: 1em;
}

.section-title .accent {
  color: var(--red);
}

/* 見出し＋イラストの横並び（文字量を減らし視認性を上げる） */
.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.9em;
}
.section-head .section-title {
  margin-bottom: 0;
  flex: 1 1 auto;
  min-width: 0;
}
.illus {
  flex: 0 0 auto;
  margin: 0;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.illus img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ラインアイコン（公式イラストと同系統） */
.icon {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  color: var(--black);
}
.card-icon {
  width: 40px;
  height: 40px;
  color: var(--black);
}

.lead {
  color: var(--gray);
  margin-bottom: 1.4em;
}

/* ---- 5. ボタン ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  padding: 16px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease;
}

.btn-booking {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-strong);
}

.btn-booking:hover {
  background: #c10512;
  transform: translateY(-2px);
}

.btn-booking::after {
  content: "›";
  font-size: 1.3em;
  line-height: 1;
}

.btn-block {
  display: flex;
  width: 100%;
}

.cta-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 12px 0 0;
  line-height: 1.6;
}

/* 予約URL未設定時の案内 */
.booking-pending {
  display: none;
  margin: 14px 0 0;
  padding: 12px 14px;
  background: #fff6f7;
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  color: var(--black);
  font-size: 0.86rem;
  line-height: 1.7;
}
.booking-pending.is-visible {
  display: block;
}

/* ---- 6. ヘッダー ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  padding-top: 6px;
  padding-bottom: 6px;
}

.header-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.header-brand .brand-line {
  font-size: 0.66rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.header-brand img {
  height: 26px;
  width: auto;
}

.header-cta {
  flex: 0 0 auto;
  padding: 11px 16px;
  font-size: 0.82rem;
  box-shadow: none;
}
.header-cta::after {
  display: none;
}

/* ---- 7. ファーストビュー -------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 34px 0 44px;
  background: linear-gradient(180deg, var(--white) 0%, var(--pink) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-brand {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
  margin: 0 0 14px;
}

.hero-title {
  font-size: clamp(1.75rem, 8.5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.32;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

.hero-title .accent {
  color: var(--red);
}

.hero-sub {
  font-size: clamp(0.98rem, 4vw, 1.18rem);
  color: var(--black);
  margin: 0 0 22px;
}

.hero-character {
  position: relative;
  width: 132px;
  margin: 0 0 18px auto;
}

.hero-character img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}

.hero-blob {
  position: absolute;
  inset: 6% -10% 2% -10%;
  background: var(--pink);
  border-radius: 50%;
  z-index: 0;
}

.hero-event {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}

.hero-event-name {
  font-weight: 700;
  font-size: 1.06rem;
  margin: 0 0 10px;
}

.hero-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-event-meta li {
  background: var(--pink);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.4;
}

/* ---- 8. 悩みカード -------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font-size: 0.98rem;
  line-height: 1.7;
}

.check-card .icon {
  margin-top: 2px;
  width: 24px;
  height: 24px;
}

/* ---- 9. 選択肢カード ------------------------------------------------------ */
.option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.96rem;
  line-height: 1.6;
}
.option-card .icon {
  width: 32px;
  height: 32px;
}

.emphasis {
  display: block;
  background: var(--pink);
  border-radius: var(--radius);
  padding: 20px 20px;
  font-weight: 700;
  font-size: clamp(1.02rem, 4vw, 1.22rem);
  line-height: 1.7;
  margin: 24px 0 0;
  color: var(--black);
}

/* ---- 10. 5項目カード ------------------------------------------------------ */
.numbered-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.numbered-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.nc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.numbered-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
}

.numbered-card .card-icon {
  width: 44px;
  height: 44px;
}

.numbered-card h3 {
  font-size: 1.08rem;
  margin: 0 0 8px;
}

.numbered-card p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---- 11. 実績リスト ------------------------------------------------------- */
.feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 20px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.65;
}

.feature-list li .icon {
  width: 26px;
  height: 26px;
  margin-top: 1px;
}

.notice-box {
  background: var(--pink);
  border-radius: var(--radius);
  padding: 20px;
  font-weight: 500;
  line-height: 1.9;
}

/* ---- 12. Googleクチコミ --------------------------------------------------- */
.review-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}

.rating-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 1.05rem;
}

.stars {
  color: var(--star);
  letter-spacing: 2px;
  font-size: 1.1rem;
}

.rating-count {
  font-size: 0.86rem;
  color: var(--gray);
  font-weight: 400;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-card h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.review-card .stars {
  margin-bottom: 10px;
}

.review-card blockquote {
  margin: 0 0 12px;
  font-size: 0.94rem;
  line-height: 1.85;
  color: #222;
}

.review-card cite {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: auto;
}

.review-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin: 18px 0 10px;
  line-height: 1.7;
}

.external-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.external-link::after {
  content: "↗";
  font-size: 0.85em;
}

/* ---- 13. 相談の流れ ------------------------------------------------------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
}

.step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 20px 20px 66px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 20px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
}

.step h3 {
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.step p {
  margin: 0;
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---- 14. 持参物 ----------------------------------------------------------- */
.checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.checklist li .icon {
  width: 30px;
  height: 30px;
}

/* ---- 15. プロフィール ----------------------------------------------------- */
.profile {
  display: grid;
  gap: 22px;
}

.profile-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-photos img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.profile-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.profile-role {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0 0 14px;
}

/* ---- 16. 開催概要（表） --------------------------------------------------- */
.info-table {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.info-table dl {
  margin: 0;
}

.info-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: 0;
}

.info-row dt {
  background: var(--light);
  padding: 14px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-row dt .icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.info-row dd {
  margin: 0;
  padding: 14px 16px;
  font-size: 0.95rem;
}

.venue-photo {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-top: 18px;
}

.venue-map {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 12px;
  background: var(--white);
}

/* ---- 17. 予約枠 ----------------------------------------------------------- */
.slots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.slots li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

/* ---- 18. FAQ -------------------------------------------------------------- */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--black);
  padding: 16px 46px 16px 16px;
  cursor: pointer;
  position: relative;
  line-height: 1.6;
}

.faq-question::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-answer {
  padding: 0 16px 18px;
  font-size: 0.94rem;
  color: var(--gray);
  line-height: 1.85;
}

.faq-answer p {
  margin: 0;
}

/* ---- 19. 最終CTA ---------------------------------------------------------- */
.final-cta {
  background: linear-gradient(180deg, var(--white) 0%, var(--pink) 100%);
  text-align: center;
}

.final-cta .section-title {
  margin-left: auto;
  margin-right: auto;
  max-width: 24em;
}

.final-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 24px;
}

.final-meta li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.phone-block {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.phone-block .phone-label {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 6px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: none;
}

.phone-link .phone-icon {
  width: 30px;
  height: 30px;
  color: var(--red);
  flex: 0 0 auto;
}

.phone-note {
  font-size: 0.82rem;
  color: var(--gray);
  margin: 10px auto 0;
  max-width: 30em;
  line-height: 1.7;
}

/* ---- 20. フッター --------------------------------------------------------- */
.site-footer {
  background: var(--black);
  color: #d9d9d9;
  padding: 40px 0 34px;
  font-size: 0.88rem;
  line-height: 1.9;
}

.site-footer .footer-logo {
  height: 30px;
  width: auto;
  margin-bottom: 12px;
  /* 黒背景でも視認できるようロゴを白く表示 */
  filter: brightness(0) invert(1);
}

.site-footer .footer-tagline {
  color: #fff;
  font-weight: 700;
  margin: 0 0 16px;
}

.site-footer address {
  font-style: normal;
  margin-bottom: 16px;
}

.site-footer a {
  color: #fff;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 16px 0 20px;
}

.footer-copy {
  border-top: 1px solid #333;
  padding-top: 18px;
  font-size: 0.78rem;
  color: #9a9a9a;
  margin: 0;
}

/* ---- 21. スマホ固定CTA ---------------------------------------------------- */
.fixed-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
}

.fixed-cta .btn {
  background: var(--red);
  color: var(--white);
  width: 100%;
  padding: 15px 18px;
  font-size: 1rem;
  box-shadow: var(--shadow-strong);
}

/* ---- 22. フェードイン ----------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---- 23. タブレット以上 --------------------------------------------------- */
@media (min-width: 700px) {
  body {
    padding-bottom: 0;
  }

  .fixed-cta {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .numbered-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .slots {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile {
    grid-template-columns: 1.1fr 1fr;
    align-items: start;
  }

  .info-row {
    grid-template-columns: 150px 1fr;
  }

  .illus {
    width: 120px;
    height: 120px;
  }
}

/* ---- 24. パソコン以上 ----------------------------------------------------- */
@media (min-width: 1000px) {
  body {
    font-size: 17px;
  }

  .header-brand img {
    height: 30px;
  }

  .header-cta {
    font-size: 0.9rem;
    padding: 12px 22px;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
  }

  .hero-character {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    order: 2;
  }

  .hero-text {
    order: 1;
  }

  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .numbered-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }
}

/* ---- 25. 動きを減らす設定 ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .btn-booking:hover {
    transform: none;
  }
}
