/* =========================================================
   AIの窓口 — トップページ専用スタイル
   ========================================================= */

.top-page {
  min-height: 100vh;
}

/* ─── トップヒーロー ─── */
.top-hero {
  min-height: calc(100vh - var(--header-h));
  padding: calc(var(--header-h) + 40px) max(24px, 4vw) 80px;
  display: flex;
  align-items: center;
  position: relative;
}

.top-hero-grid {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}

/* 左：コピー */
.top-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fadeInUp 1.2s ease 0.2s both;
}

.top-hero-eyebrow {
  font-family: var(--serif-lat);
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--soft-ink);
  text-transform: uppercase;
  font-style: italic;
}

.top-hero-headline {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);  /* やや小さめに調整 */
  line-height: 1.25;
  letter-spacing: 0.04em;
  color: var(--deep-sky);
}

.top-hero-headline .line {
  display: block;
  white-space: nowrap;        /* 句読点での自動改行を防ぐ */
}

@media (max-width: 480px) {
  /* スマホ最小幅では折り返しを許容（はみ出し防止） */
  .top-hero-headline .line {
    white-space: normal;
  }
}

.top-hero-headline .line-emphasis {
  background: linear-gradient(135deg, var(--deep-sky) 0%, var(--gold-deep) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.top-hero-sub {
  font-family: var(--serif-jp);
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 2;
  color: var(--soft-ink);
  letter-spacing: 0.06em;
}

.top-hero-bubble {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 245, 235, 0.6));
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-left: 3px solid var(--gold);
  border-radius: 16px;
  padding: 20px 28px;
  margin-top: 8px;
  box-shadow: 0 6px 24px rgba(180, 200, 220, 0.2);
}

.top-hero-bubble p {
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 1.95;
  color: var(--deep-sky);
  letter-spacing: 0.04em;
}

.top-hero-bubble strong {
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.4) 60%);
  font-weight: 700;
}

/* そらについて、への誘導リンク（ヒーロー下） */
.top-hero-about-link {
  margin-top: 18px;
  font-family: var(--serif-jp);
  font-size: 13.5px;
  letter-spacing: 0.05em;
}

.top-hero-about-link a {
  color: var(--gold-deep);
  text-decoration: none;
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 2px;
  transition: all 0.25s ease;
}

.top-hero-about-link a:hover {
  color: var(--deep-sky);
  border-bottom-color: var(--deep-sky);
}

/* そらの想いセクション（バックストーリー誘導） */
.top-about-sora-cta {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(244, 211, 94, 0.08), transparent);
}

.top-about-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 245, 235, 0.7));
  border: 1.5px solid var(--gold);
  border-radius: 32px;
  padding: 56px 48px;
  box-shadow: 0 16px 48px rgba(244, 211, 94, 0.22);
}

.top-about-img img {
  width: 100%;
  max-width: 240px;
  height: auto;
  filter:
    drop-shadow(0 14px 40px rgba(244, 211, 94, 0.5))
    drop-shadow(0 28px 70px rgba(252, 213, 206, 0.4));
  animation: floatY 7s ease-in-out infinite;
  display: block;
  margin: 0 auto;
}

.top-about-eyebrow {
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.top-about-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: 0.06em;
  color: var(--deep-sky);
  line-height: 1.55;
  margin-bottom: 18px;
}

.top-about-lead {
  font-family: var(--serif-jp);
  font-size: 15px;
  line-height: 2;
  color: var(--soft-ink);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
}

.top-about-lead strong {
  color: var(--deep-sky);
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.35) 60%);
  font-weight: 700;
}

.top-about-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold), var(--peach));
  color: var(--deep-sky);
  border-radius: var(--radius-pill);
  font-family: var(--serif-jp);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(244, 211, 94, 0.4);
  transition: all 0.3s ease;
}

.top-about-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(244, 211, 94, 0.55);
}

.top-about-btn .arrow {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.top-about-btn:hover .arrow {
  transform: translateX(4px);
}

@media (max-width: 700px) {
  .top-about-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 40px 28px;
    text-align: center;
  }
  .top-about-img img {
    max-width: 180px;
  }
}

/* 右：そら */
.top-hero-sora {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.6s ease 0.6s both;
}

.top-hero-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 245, 230, 0.7) 0%, transparent 50%),
    radial-gradient(circle at 50% 70%, rgba(252, 213, 206, 0.5) 0%, transparent 55%);
  filter: blur(45px);
  z-index: 0;
  animation: haloPulse 7s ease-in-out infinite;
}

.top-hero-sora-img {
  width: 100%;
  max-width: 680px;       /* 540px → 680px に拡大 */
  max-height: min(85vh, 900px);
  height: auto;
  object-fit: contain;
  z-index: 1;
  filter:
    drop-shadow(0 14px 40px rgba(220, 200, 220, 0.45))
    drop-shadow(0 28px 80px rgba(252, 213, 206, 0.35));
  animation: floatY 7s ease-in-out infinite;
}

.top-hero-sora-caption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

/* ─── 共通セクション ─── */
.top-section-eyebrow {
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.4em;
  color: var(--soft-ink);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
}

.top-section-title {
  font-family: var(--serif-jp);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--deep-sky);
  text-align: center;
  margin-bottom: 24px;
}

.top-section-lead {
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--soft-ink);
  text-align: center;
  line-height: 1.95;
  letter-spacing: 0.04em;
  max-width: 720px;
  margin: 0 auto 60px;
}

.top-section-lead strong {
  color: var(--gold-deep);
  font-weight: 700;
}

/* ─── 窓口グリッド ─── */
.top-windows {
  padding: 100px 0;
}

.top-windows-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.top-window-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 8px 32px rgba(180, 200, 220, 0.2);
}

.top-window-card:not(.top-window-coming):hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(244, 211, 94, 0.25);
  border-color: var(--gold);
}

.top-window-card:not(.top-window-coming)::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 211, 94, 0.08), rgba(252, 213, 206, 0.12));
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.top-window-card:not(.top-window-coming):hover::before { opacity: 1; }

.top-window-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 12px rgba(180, 200, 220, 0.3));
}

.top-window-icon svg {
  width: 100%;
  height: 100%;
}

.top-window-tag {
  display: inline-block;
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--gold-deep);
  text-transform: uppercase;
  background: rgba(244, 211, 94, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  align-self: flex-start;
}

.top-window-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.top-window-title {
  font-family: var(--serif-jp);
  font-size: 22px;
  font-weight: 700;
  color: var(--deep-sky);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.top-window-desc {
  font-size: 14px;
  color: var(--soft-ink);
  line-height: 1.95;
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  flex: 1;
}

.top-window-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif-jp);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.08em;
  margin-top: auto;
}

.top-window-cta .arrow {
  font-weight: 300;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.top-window-card:hover .top-window-cta .arrow {
  transform: translateX(4px);
}

/* 近日公開カード */
.top-window-coming {
  opacity: 0.65;
  cursor: not-allowed;
}

.top-window-coming-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(180, 200, 220, 0.4);
  color: var(--deep-sky);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.1em;
}

/* ─── 共通の3つの約束 ─── */
.top-features {
  padding: 100px 0;
  background: linear-gradient(180deg, transparent, rgba(255, 245, 235, 0.3), transparent);
}

.top-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.top-feature {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 6px 24px rgba(180, 200, 220, 0.15);
  position: relative;
}

.top-feature-num {
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 48px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1;
}

.top-feature h3 {
  font-family: var(--serif-jp);
  font-size: 19px;
  font-weight: 700;
  color: var(--deep-sky);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.top-feature p {
  font-size: 14px;
  color: var(--soft-ink);
  line-height: 1.95;
  letter-spacing: 0.03em;
}

.top-feature p strong {
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.35) 60%);
  font-weight: 700;
}

/* ─── そらメッセージ ─── */
.top-message {
  padding: 80px 0 120px;
}

.top-sora-msg {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 245, 235, 0.6));
  border-left: 3px solid var(--gold);
  border-radius: 24px;
  padding: 40px 48px;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(180, 200, 220, 0.2);
}

.top-sora-msg p {
  font-family: var(--serif-jp);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 2.1;
  color: var(--deep-sky);
  letter-spacing: 0.05em;
}

.top-sora-msg strong {
  background: linear-gradient(transparent 60%, rgba(244, 211, 94, 0.4) 60%);
  font-weight: 700;
}

.top-sora-msg cite {
  display: block;
  margin-top: 16px;
  text-align: right;
  font-family: var(--serif-lat);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
}

/* ─── レスポンシブ ─── */
@media (max-width: 900px) {
  .top-hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .top-hero-sora {
    order: -1;
  }

  .top-hero-sora-img {
    max-width: 360px;
  }
}

@media (max-width: 600px) {
  .top-hero {
    padding: calc(var(--header-h) + 30px) 20px 60px;
  }

  .top-windows, .top-features {
    padding: 60px 0;
  }

  .top-window-card {
    padding: 28px 24px;
  }

  .top-sora-msg {
    padding: 28px 24px;
  }
}
