/* HOMENOTE - カスタムスタイル（Tailwind補助） */

html {
  scroll-behavior: smooth;
}

:root {
  --header-height: 4rem;
}

/* プレースホルダー画像用パターン */
.placeholder-image {
  background-color: #e2e8f0;
  background-image:
    linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
    linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

/* フルスクリーンヒーロー（固定ヘッダー分を含めてビューポート全体を覆う） */
.hero-fullscreen {
  min-height: calc(100vh + var(--header-height));
  min-height: calc(100dvh + var(--header-height));
  margin-top: calc(-1 * var(--header-height));
  padding-top: var(--header-height);
}

/* ヒーロー視差効果 */
.hero-parallax__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 125%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .hero-parallax__img {
    height: 100%;
    will-change: auto;
    transform: none !important;
  }
}

/* 課題セクション背景 */
.section-problem-bg {
  position: relative;
  isolation: isolate;
}

.section-problem-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/top_bg1.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.section-problem-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 40%, rgba(15, 23, 42, 0.25)),
    linear-gradient(to right, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.55) 50%, rgba(15, 23, 42, 0.35));
  z-index: -1;
}

/* すりガラスカード */
.glass-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.section-problem-bg .glass-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* 無料トライアルセクション背景 */
.section-trial-bg {
  position: relative;
  isolation: isolate;
}

.section-trial-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../images/top_bg2.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -2;
}

.section-trial-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 23, 42, 0.6), transparent 50%, rgba(15, 23, 42, 0.3)),
    linear-gradient(to right, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.6) 50%, rgba(15, 23, 42, 0.4));
  z-index: -1;
}

/* ヒーロー背景グラデーション */
.hero-gradient {
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(32, 178, 170, 0.12), transparent),
    linear-gradient(to bottom, #f8fafc, #ffffff);
}

/* セクション見出し下の装飾線 */
.section-label::after {
  content: '';
  display: block;
  width: 2rem;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 9999px;
  background-color: #20b2aa;
}

/* 法的文書ページ */
.legal-prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1e293b;
}

.legal-prose p,
.legal-prose li {
  font-size: 0.875rem;
  line-height: 1.75;
  color: #475569;
}

.legal-prose ol,
.legal-prose ul {
  margin-top: 0.75rem;
  padding-left: 1.25rem;
}

.legal-prose ol {
  list-style-type: decimal;
}

.legal-prose ul {
  list-style-type: disc;
}

.legal-prose li + li {
  margin-top: 0.5rem;
}

.legal-prose ol ol,
.legal-prose ul ul {
  margin-top: 0.5rem;
}

/* アプリ埋め込み表示（?embed=1） */
body.embed-mode {
  margin: 0;
  min-height: 100%;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1e293b;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
}

.legal-embed {
  max-width: 48rem;
  margin-inline: auto;
  padding: 1.25rem 1rem 2rem;
}

.legal-embed h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.legal-embed .legal-date {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
}

.legal-embed .legal-prose {
  margin-top: 1.5rem;
}

.legal-embed a {
  color: #1a9a93;
  text-decoration: underline;
}

/* WORKS ページ スクリーンショット */
.works-screenshot {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background-color: #f8fafc;
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.works-screenshot img {
  display: block;
  width: 100%;
  height: auto;
}

.works-phone {
  max-width: 220px;
  margin-inline: auto;
  filter: drop-shadow(0 20px 30px rgba(15, 23, 42, 0.15));
}

.works-phone img {
  display: block;
  width: 100%;
  height: auto;
}

/* 建築中機能スライダー */
.construction-features-slider {
  width: 100%;
}

.construction-features-swiper {
  overflow: hidden;
}

.construction-features-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: auto !important;
}

.construction-features-pagination .swiper-pagination-bullet {
  width: 0.5rem;
  height: 0.5rem;
  margin: 0 !important;
  background-color: #cbd5e1;
  opacity: 1;
  transition: background-color 0.2s, transform 0.2s;
}

.construction-features-pagination .swiper-pagination-bullet-active {
  background-color: #20b2aa;
  transform: scale(1.2);
}
