/* ===== 会話カード ウェブサイト スタイル ===== */
/* 紙とマスキングテープ風の親しみトーン。フレームワーク不使用。 */

:root {
  /* アプリのカラーパレット（AppColors.swift と同一） */
  --party-coral: #FA5738;
  --candy-rose: #F0476F;
  --leaf-green: #2EBF70;
  --ocean-blue: #1289B3;
  --mint-spark: #05D6A1;
  --sunny-yellow: #FFD166;
  --deep-ink: #0F2942;
  --card-paper: #FFFCF7;
  --soft-sky: #E8F7FF;
  --cream-glow: #FFF5DE;
  --line-cloud: #D9E3EB;
  --muted-text: #6B7380;
  --warning-orange: #F78000;

  /* セマンティック割当 */
  --bg: var(--card-paper);
  --bg-stripe: rgba(232, 247, 255, 0.55);
  --fg: var(--deep-ink);
  --fg-muted: var(--muted-text);
  --link: var(--ocean-blue);
  --cta: var(--party-coral);
  --cta-secondary: var(--leaf-green);
  --accent: var(--sunny-yellow);
  --border: var(--line-cloud);

  /* 角丸とシャドウ */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 41, 66, 0.06), 0 2px 6px rgba(15, 41, 66, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 41, 66, 0.08), 0 8px 24px rgba(15, 41, 66, 0.06);
  --shadow-lg: 0 4px 14px rgba(15, 41, 66, 0.1), 0 18px 40px rgba(15, 41, 66, 0.08);

  /* タイポ */
  --font-jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, sans-serif;
}

/* ===== リセット ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
  background-color: var(--bg);
  /* 斜めストライプの極薄背景（紙質感） */
  background-image:
    linear-gradient(135deg, transparent 49.5%, var(--bg-stripe) 49.5% 50.5%, transparent 50.5%);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--link);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2rem, 5vw + 1rem, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.5vw + 1rem, 2.4rem); letter-spacing: -0.005em; }
h3 { font-size: clamp(1.15rem, 0.6vw + 1rem, 1.4rem); }
p { margin: 0 0 1em; }

/* ===== レイアウトユーティリティ ===== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container { padding: 0 32px; }
}
.section {
  padding: 64px 0;
}
@media (min-width: 768px) {
  .section { padding: 88px 0; }
}
.section--tight { padding: 40px 0; }
.section-eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--cta);
  background: rgba(250, 87, 56, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section-title {
  margin: 0 0 12px;
}
.section-lead {
  color: var(--fg-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 0 36px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fg);
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.nav {
  display: none;
  gap: 24px;
  font-size: 0.95rem;
}
.nav a {
  color: var(--fg);
  font-weight: 500;
}
.nav a:hover { color: var(--cta); text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--cta);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-cta:hover { background: #e84a2d; text-decoration: none; }
@media (min-width: 880px) {
  .nav { display: inline-flex; align-items: center; }
}

/* ===== ボタン ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 4px 0 #c83d22, var(--shadow-sm);
}
.btn--primary:hover { background: #e84a2d; box-shadow: 0 4px 0 #c83d22, var(--shadow-md); }
.btn--secondary {
  background: var(--cta-secondary);
  color: #fff;
  box-shadow: 0 4px 0 #1f9b59, var(--shadow-sm);
}
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--border);
}
.btn--ghost:hover { border-color: var(--cta); color: var(--cta); }
.btn--block { width: 100%; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--deep-ink);
  color: #fff;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: transform 0.1s ease, box-shadow 0.2s ease;
}
.app-store-btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-lg); }
.app-store-btn__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.app-store-btn__text { line-height: 1.1; }
.app-store-btn__small { display: block; font-size: 0.7rem; font-weight: 400; opacity: 0.85; }
.app-store-btn__big { display: block; font-size: 1.1rem; }

/* ===== ヒーロー ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
}
@media (min-width: 768px) {
  .hero { padding: 80px 0 96px; }
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 880px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}
.hero__copy { position: relative; z-index: 2; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  background: var(--cream-glow);
  color: var(--deep-ink);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(2.1rem, 4.5vw + 1rem, 3.6rem);
  margin: 0 0 18px;
}
.hero__title-line2 { color: var(--cta); }
.hero__lead {
  font-size: 1.1rem;
  color: var(--fg-muted);
  margin: 0 0 28px;
  max-width: 520px;
}
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
}
.badge svg { flex-shrink: 0; }
.badge--coral { color: var(--cta); border-color: rgba(250, 87, 56, 0.3); }
.badge--green { color: #1f9b59; border-color: rgba(46, 191, 112, 0.3); }
.badge--blue { color: var(--ocean-blue); border-color: rgba(18, 137, 179, 0.3); }

/* ヒーロー右側: iPhone モック */
.hero__phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  position: relative;
  width: clamp(240px, 60vw, 320px);
  aspect-ratio: 9 / 19.5;
  background: var(--deep-ink);
  border-radius: 42px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 30px 60px rgba(15, 41, 66, 0.18);
}
.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--card-paper);
}
.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ヒーローの装飾（マスキングテープ・色玉） */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
.deco--tape-1 {
  top: 60px;
  right: -30px;
  width: 130px;
  height: 28px;
  background: rgba(255, 209, 102, 0.6);
  transform: rotate(18deg);
  border-radius: 3px;
}
.deco--tape-2 {
  bottom: 80px;
  left: -40px;
  width: 110px;
  height: 24px;
  background: rgba(46, 191, 112, 0.35);
  transform: rotate(-12deg);
  border-radius: 3px;
}
.deco--dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.deco--dot-coral { background: var(--candy-rose); top: 30px; left: 40%; }
.deco--dot-mint { background: var(--mint-spark); bottom: 120px; right: 8%; width: 18px; height: 18px; }
.deco--sparkle {
  font-size: 28px;
  color: var(--sunny-yellow);
  top: 15%;
  right: 5%;
}

/* ===== プライバシー訴求バンド ===== */
.assurance {
  background: var(--cream-glow);
  padding: 28px 0;
  border-top: 1px solid rgba(255, 209, 102, 0.4);
  border-bottom: 1px solid rgba(255, 209, 102, 0.4);
}
.assurance__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .assurance__list {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }
}
.assurance__item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-weight: 600;
  color: var(--deep-ink);
}
@media (min-width: 768px) {
  .assurance__item { justify-content: flex-start; }
}
.assurance__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  color: var(--cta);
}

/* ===== 機能ハイライト ===== */
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features__grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: #fff;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--soft-sky);
  color: var(--ocean-blue);
}
.feature-card--coral .feature-card__icon { background: rgba(250, 87, 56, 0.12); color: var(--cta); }
.feature-card--green .feature-card__icon { background: rgba(46, 191, 112, 0.14); color: #1f9b59; }
.feature-card--yellow .feature-card__icon { background: rgba(255, 209, 102, 0.25); color: #c98a00; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature-card p { font-size: 0.95rem; color: var(--fg-muted); margin: 0; line-height: 1.65; }

/* ===== スクリーンショットギャラリー ===== */
.gallery__tabs {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.gallery__tab {
  background: transparent;
  border: 0;
  padding: 9px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--fg-muted);
  transition: background 0.15s, color 0.15s;
}
.gallery__tab[aria-selected="true"] {
  background: var(--deep-ink);
  color: #fff;
}
.gallery__viewport {
  position: relative;
  overflow: hidden;
  margin: 0 -20px;
}
.gallery__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 24px;
  scrollbar-width: thin;
}
.gallery__track::-webkit-scrollbar { height: 8px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--line-cloud); border-radius: 4px; }
.gallery__track[hidden] { display: none; }
.gallery__item {
  flex: 0 0 auto;
  width: clamp(220px, 60vw, 280px);
  scroll-snap-align: center;
}
.gallery__item--ipad { width: clamp(280px, 70vw, 380px); }
.gallery__image-wrap {
  background: var(--deep-ink);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.gallery__item--ipad .gallery__image-wrap { border-radius: 24px; padding: 8px; }
.gallery__image-wrap img {
  width: 100%;
  border-radius: 18px;
  display: block;
}
.gallery__caption {
  margin-top: 16px;
  text-align: center;
}
.gallery__caption-title {
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
  margin: 0 0 4px;
}
.gallery__caption-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 0;
}
.gallery__nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.gallery__nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s, color 0.15s;
}
.gallery__nav-btn:hover { background: var(--cta); color: #fff; border-color: var(--cta); }
.gallery__nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== シーン提案 ===== */
.scenes {
  background: linear-gradient(180deg, var(--card-paper) 0%, var(--soft-sky) 100%);
}
.scenes__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) { .scenes__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .scenes__grid { grid-template-columns: repeat(5, 1fr); } }
.scene-card {
  background: #fff;
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.scene-card__emoji {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}
.scene-card h3 { font-size: 1rem; margin: 0 0 4px; }
.scene-card p { font-size: 0.85rem; color: var(--fg-muted); margin: 0; line-height: 1.5; }

/* ===== プライバシーセクション ===== */
.privacy-section {
  background: var(--deep-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.privacy-section .section-title { color: #fff; }
.privacy-section .section-lead { color: rgba(255, 255, 255, 0.78); }
.privacy-section__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .privacy-section__grid { grid-template-columns: repeat(3, 1fr); } }
.privacy-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.privacy-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 8px; }
.privacy-card p { color: rgba(255, 255, 255, 0.78); margin: 0; font-size: 0.95rem; }
.privacy-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 209, 102, 0.2);
  color: var(--sunny-yellow);
  margin-bottom: 16px;
}
.privacy-section__more {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sunny-yellow);
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq__list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.faq-item[open] { box-shadow: var(--shadow-md); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--cta);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p {
  margin: 14px 0 0;
  color: var(--fg-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ===== お問い合わせ ===== */
.contact {
  background: var(--cream-glow);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
  max-width: 680px;
  margin-inline: auto;
}
.contact__action {
  display: flex;
  justify-content: flex-start;
}
.contact__intro p { color: var(--fg-muted); }

/* ===== フッター ===== */
.site-footer {
  background: var(--deep-ink);
  color: rgba(255, 255, 255, 0.82);
  padding: 56px 0 32px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 {
  color: #fff;
  font-size: 0.95rem;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer ul a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}
.site-footer ul a:hover { color: var(--sunny-yellow); }
.site-footer__about p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
  max-width: 340px;
  margin: 0;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== 共通: 法的文書ページ ===== */
.legal {
  background: #fff;
}
.legal__container {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 72px;
}
.legal h1 { font-size: clamp(1.8rem, 2.5vw + 1rem, 2.4rem); }
.legal h2 {
  font-size: 1.25rem;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--cream-glow);
}
.legal p, .legal li {
  color: #2a3a4b;
  font-size: 1rem;
  line-height: 1.8;
}
.legal ul { padding-left: 1.4em; }
.legal__meta {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
}
.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  margin-top: 36px;
}

/* ===== 404 ページ ===== */
.notfound {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.notfound__inner { max-width: 460px; }
.notfound__code {
  font-size: clamp(5rem, 12vw, 8rem);
  font-weight: 800;
  color: var(--cta);
  line-height: 1;
  margin: 0 0 14px;
}
.notfound__text {
  color: var(--fg-muted);
  margin-bottom: 28px;
}

/* ===== セクション / 文言バリエーション ===== */
/* インラインスタイルをまとめるためのモディファイア */
.section--sky { background: var(--soft-sky); }
.section-eyebrow--yellow {
  background: rgba(255, 209, 102, 0.18);
  color: var(--sunny-yellow);
}
.contact__note {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-top: 24px;
}

/* ===== アクセシビリティ ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 3px solid rgba(250, 87, 56, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
/* 円形要素のフォーカスは outline 自体を円にして自然に */
.gallery__nav-btn:focus-visible {
  outline-offset: 3px;
  border-radius: 50%;
}
/* details/summary は border-radius を継承させて違和感を消す */
.faq-item summary:focus-visible {
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===== 印刷時の最小スタイル ===== */
@media print {
  .site-header, .site-footer, .nav, .hero__phone { display: none; }
  body { background: #fff; }
}
