/* 大喜利なう。公式サイト共通スタイル。アプリ本体の配色・トーンに合わせる */

@font-face {
  font-family: 'Yuji Syuku';
  src: url('../assets/fonts/YujiSyuku-Regular.ttf') format('truetype');
  font-display: swap;
}

:root {
  /* アプリ本体と同じ配色（src/lib/firebase系ではなくtailwind.config.jsのトークンに合わせる） */
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --border: #D1D5DB;
  --ink: #1A1A1A;
  --ink-soft: #4B4B4B;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --blue: #0A84FF;
  --blue-deep: #0055B3;
  --green: #22C55E;
  --pink: #EC4899;
  --amber: #B45309;
  --purple-1: #8EE3EF;
  --purple-2: #B7A3EF;
  --purple-btn-1: #8B5CF6;
  --purple-btn-2: #7C3AED;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.brush {
  font-family: 'Yuji Syuku', serif;
  font-weight: 400;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 246, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-header nav a {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--blue);
}

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px !important;
}

@media (max-width: 640px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
}

/* ---------- hero ---------- */

.hero {
  padding: 68px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.09) 0%, rgba(10, 132, 255, 0) 70%);
  pointer-events: none;
}

.hero-logo {
  width: 240px;
  margin: 0 auto 24px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.5;
  margin: 0 0 18px;
  position: relative;
}

.hero p.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 32px;
  position: relative;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

/* App Storeへの導線。配信開始にあわせて「近日配信」バッジと差し替えたもの */
.store-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  padding: 15px 32px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-cta:hover {
  transform: translateY(-1px);
  opacity: 0.88;
}

.hero-note {
  font-size: 12px;
  color: var(--gray-light);
}

/* ---------- phone showcase (実機スクリーンショット) ---------- */

.phone-stage {
  margin-top: 52px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  position: relative;
}

.phone-frame {
  width: 232px;
  border-radius: 32px;
  border: 6px solid var(--ink);
  background: var(--ink);
  padding: 0;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(26, 26, 26, 0.35);
  position: relative;
  z-index: 1;
}

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

.phone-frame.secondary {
  margin-bottom: 34px;
  transform: rotate(3deg);
}

.phone-frame.primary {
  transform: rotate(-2deg);
}

@media (max-width: 640px) {
  .phone-stage .hand-deco { display: none; }
  .phone-frame.secondary { display: none; }
  .phone-frame.primary { transform: none; width: 240px; }
}

/* ---------- section shell ---------- */

section {
  padding: 72px 0;
}

section.tinted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue);
  background: rgba(10, 132, 255, 0.08);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(22px, 4vw, 30px);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0;
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- showcase（機能 + スクリーンショットを左右に並べる） ---------- */

.showcase {
  display: flex;
  align-items: center;
  gap: 56px;
  max-width: 920px;
  margin: 0 auto;
}

.showcase.reverse {
  flex-direction: row-reverse;
}

.showcase + .showcase {
  margin-top: 64px;
}

.showcase-shot {
  flex-shrink: 0;
  width: 220px;
  border-radius: 30px;
  border: 6px solid var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 48px -18px rgba(26, 26, 26, 0.3);
}

.showcase-text {
  flex: 1;
}

.showcase-text .feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.showcase-text .feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.showcase-text .feature-list .dot-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.showcase-text h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.showcase-text .lead-sm {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .showcase, .showcase.reverse {
    flex-direction: column;
    gap: 28px;
    text-align: center;
  }
  .showcase-text .feature-list li {
    text-align: left;
  }
}

/* ---------- feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 760px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
}

.feature-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- pricing ---------- */

.pricing-card {
  /* 薄いパステルグラデーションだと白文字が沈んで読みにくいため、
     アプリ内の購入ボタンと同系統の、濃く彩度の高い紫グラデーションにする */
  background: linear-gradient(135deg, var(--purple-btn-1), #5B21B6);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 640px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(91, 33, 182, 0.5);
}

.pricing-card img.pro-logo {
  width: 180px;
  margin: 0 auto 8px;
  /* ロゴは黒文字のPNGなので、濃い背景でも見えるよう白に反転させる */
  filter: brightness(0) invert(1);
}

.pricing-card .price {
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 28px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 12px 14px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.compare-table th {
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.compare-table th:first-child, .compare-table td:first-child {
  text-align: left;
  width: 52%;
}

.compare-table td:not(:first-child), .compare-table th:not(:first-child) {
  text-align: center;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.check-yes {
  color: #4ADE80;
  font-weight: 700;
}

.check-no {
  color: rgba(255, 255, 255, 0.78);
}

.pricing-cta {
  margin-top: 28px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- faq ---------- */

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

/* summary の既定の三角マーカーを消し、右側に自前の＋/－を出す */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 32px 16px 0;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

/* シェブロン（山形）アイコン。丸背景の中に山形の罫線を斜めに置いて矢印にする */
.faq-item summary::after {
  content: '';
  position: absolute;
  top: 14px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(10, 132, 255, 0.08);
}

.faq-item summary::before {
  content: '';
  position: absolute;
  top: 21px;
  right: 11px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::before {
  transform: rotate(225deg);
  top: 24px;
}

.faq-item h3 {
  font-size: 14px;
  margin: 0;
  display: inline;
}

.faq-item p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  padding-right: 32px;
}

/* ---------- support ---------- */

.support-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 32px;
  text-align: center;
}

.support-card .mail {
  display: inline-block;
  margin-top: 16px;
  background: var(--blue);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

footer .foot-logo img {
  height: 20px;
  opacity: 0.7;
}

footer .foot-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

footer .foot-links a {
  font-size: 12px;
  color: var(--gray);
  text-decoration: none;
}

footer .foot-links a:hover {
  color: var(--blue);
}

footer .copyright {
  font-size: 11px;
  color: var(--gray-light);
}

/* ---------- legal pages (privacy / terms) ---------- */

.legal-page main {
  padding: 48px 0 80px;
}

.legal-page .wrap {
  max-width: 720px;
}

.legal-page h1 {
  font-size: 24px;
  margin: 0 0 8px;
}

.legal-page .updated {
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 32px;
}

.legal-page .intro {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 32px;
  line-height: 1.9;
}

.legal-page section {
  padding: 0;
  margin-bottom: 28px;
}

.legal-page section h2 {
  font-size: 15px;
  margin: 0 0 10px;
}

.legal-page section p {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.9;
  white-space: pre-line;
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 24px;
}

/* 会社概要ページの一覧表。項目名と内容が横に並び、狭い画面では縦に折り返す */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 36px;
}

.company-table th,
.company-table td {
  font-size: 13.5px;
  line-height: 1.9;
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.company-table th {
  width: 132px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
}

.company-table td {
  color: var(--ink);
}

/* 英語表記は補足なので、日本語より一段落として見せる */
.company-table .en {
  font-size: 12px;
  color: var(--gray-light);
}

@media (max-width: 520px) {
  .company-table th,
  .company-table td {
    display: block;
    width: auto;
    padding: 0;
    border-bottom: none;
  }

  .company-table th {
    padding-top: 14px;
  }

  .company-table td {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
  }
}
