/* ==========================================================================
   バージョン: v1.0.0
   名称: musubi-LP-stylesheet（安心安全匿名チャットLP用スタイル）
   変更点／追加機能: 新規作成
   作成日: 2026-06-17
   機能詳細:
     musubi（安心安全匿名チャット）ランディングページの全スタイルを定義する。
     深いネイビー〜紫を基調に、夜景背景とコーラル〜オレンジのグラデーションを
     用いた配色。ヘッダー／ヒーロー／特徴グリッド／伝言フロー／下部CTA／
     フッターの各セクションと、スマートフォン向けレスポンシブ対応を含む。
   ========================================================================== */

/* ----- デザイントークン（色・余白・角丸などの共通変数） ----- */
:root {
  --bg-deep: #150f33;        /* 最も深い背景色 */
  --bg-navy: #1a1340;        /* セクション背景（濃いめ） */
  --bg-navy-2: #1f1849;      /* セクション背景（やや明るめ） */
  --accent: #ff6f8a;         /* 強調テキストのコーラルピンク */
  --accent-2: #ff8a6b;       /* 強調の補助オレンジ */
  --text: #ffffff;           /* 主要テキスト（白） */
  --text-sub: #b7afd6;       /* 補助テキスト（ラベンダーグレー） */
  --text-dim: #8d85b0;       /* さらに薄いテキスト */
  --card-bg: rgba(255, 255, 255, 0.035);   /* カード背景 */
  --card-bd: rgba(167, 150, 230, 0.16);    /* カード枠線 */
  --grad-cta: linear-gradient(96deg, #b14fd0 0%, #ff6f8a 50%, #ff9a5c 100%); /* CTAグラデ */
  --maxw: 1080px;            /* コンテンツ最大幅 */
  --radius: 16px;            /* 基本角丸 */
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
          "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

/* ----- リセット ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

/* 強調テキスト（コーラル色） */
.accent {
  color: var(--accent);
}

/* セクション内の中央寄せコンテナ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ==========================================================================
   ボタン
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  font-family: inherit;
}

/* グラデーションの主要CTA */
.btn-grad {
  color: #fff;
  background: var(--grad-cta);
  padding: 16px 34px;
  box-shadow: 0 10px 30px rgba(214, 92, 130, 0.35);
}

.btn-grad:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(214, 92, 130, 0.45);
}

/* 枠線のみのセカンダリボタン */
.btn-outline {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 15px 28px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ヘッダー内の小さめCTA */
.btn-grad.btn-sm {
  padding: 11px 24px;
  font-size: 14px;
  border-radius: 999px;
}

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px;
}

/* ロゴ（シンボル＋テキスト） */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__mark {
  width: 46px;
  height: 40px;
  flex: none;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo__name {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.logo__sub {
  font-size: 11px;
  color: var(--text-sub);
  letter-spacing: 0.06em;
}

/* グローバルナビ */
.gnav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.gnav__list {
  display: flex;
  gap: 30px;
  list-style: none;
}

.gnav__list a {
  font-size: 15px;
  color: var(--text-sub);
  transition: color 0.18s ease;
}

.gnav__list a:hover {
  color: var(--text);
}

/* ハンバーガー（モバイル時のみ表示） */
.nav-toggle {
  display: none;
}

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  background-image: url("/static/hero-bg.svg");
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
}

/* 下端を次セクションへ滑らかに繋ぐオーバーレイ */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, var(--bg-navy));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: 150px 110px;
  max-width: 640px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.hero__lead {
  margin-top: 30px;
  font-size: 18px;
  color: #ece8f8;
  line-height: 1.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero__lead--sub {
  margin-top: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 40px;
}

/* ==========================================================================
   特徴（安心して話せること）セクション
   ========================================================================== */
.features {
  background: var(--bg-navy);
  padding-block: 96px;
}

.features .container {
  display: grid;
  grid-template-columns: minmax(0, 400px) 1fr;
  gap: 40px;
  align-items: start;
}

.section-heading {
  font-size: clamp(25px, 2.9vw, 30px);
  font-weight: 800;
  line-height: 1.5;
}

.features__intro {
  margin-top: 26px;
  color: var(--text-sub);
  font-size: 15px;
  line-height: 1.95;
}

/* 特徴カードのグリッド（4列×2行） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  padding: 26px 12px 24px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 111, 138, 0.4);
  background: rgba(255, 111, 138, 0.06);
}

.feature-card__icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 16px;
  color: var(--accent);
}

.feature-card__icon svg {
  width: 100%;
  height: 100%;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  white-space: nowrap;
}

.feature-card__desc {
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ==========================================================================
   伝言（会話の続きを残せる）セクション
   ========================================================================== */
.relay {
  background: var(--bg-navy-2);
  padding-block: 90px;
  position: relative;
}

.relay__title {
  text-align: center;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  margin-bottom: 52px;
}

/* 3ステップを矢印で繋ぐ横並び */
.relay__flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
}

.relay-card {
  flex: 1;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.relay-card__icon {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 111, 138, 0.5);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.relay-card__icon svg {
  width: 30px;
  height: 30px;
}

.relay-card__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.relay-card__desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* ステップ間の矢印 */
.relay__arrow {
  flex: none;
  align-self: center;
  color: var(--text-dim);
  font-size: 22px;
}

.relay__note {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   下部CTAセクション
   ========================================================================== */
.cta {
  position: relative;
  background-image: url("/static/cta-bg.svg");
  background-size: cover;
  background-position: center;
  padding-block: 100px;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg-navy-2) 0%, transparent 18%);
  pointer-events: none;
}

.cta .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta__title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.4;
}

.cta__lead {
  margin-top: 18px;
  font-size: 16px;
  color: #e7e2f5;
}

.cta__action {
  text-align: center;
}

.cta__action .btn-grad {
  font-size: 19px;
  padding: 20px 56px;
}

.cta__note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-sub);
}

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer {
  background: var(--bg-deep);
  padding-block: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer .logo__name {
  font-size: 22px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 13px;
  color: var(--text-sub);
  transition: color 0.18s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* ==========================================================================
   レスポンシブ（タブレット）
   ========================================================================== */
@media (max-width: 900px) {
  .features .container {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .relay__flow {
    flex-direction: column;
    align-items: center;
  }

  .relay-card {
    width: 100%;
    max-width: 460px;
  }

  .relay__arrow {
    transform: rotate(90deg);
  }
}

/* ==========================================================================
   レスポンシブ（スマートフォン）
   ========================================================================== */
@media (max-width: 640px) {
  /* ナビをトグル式に切り替え */
  .gnav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(78vw, 320px);
    background: rgba(26, 19, 64, 0.97);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 30;
  }

  .gnav.is-open {
    transform: translateX(0);
  }

  .gnav__list {
    flex-direction: column;
    gap: 22px;
  }

  .gnav__list a {
    font-size: 17px;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 40;
    position: relative;
  }

  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    margin-inline: auto;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 640px;
  }

  .hero__inner {
    padding-block: 130px 90px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  /* 特徴カードは2列に */
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta .container {
    flex-direction: column;
    text-align: center;
  }

  .cta__action {
    width: 100%;
  }

  .cta__action .btn-grad {
    width: 100%;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }
}

/* ==========================================================================
   アクセシビリティ（モーション低減設定の尊重）
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* キーボードフォーカスの可視化 */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
