/* ==========================================================================
   Latefolar 公式サイト 共通スタイル
   プレーンCSS / フレームワーク不使用 / 外部フォント・外部リクエスト不使用
   ========================================================================== */

:root {
  --color-amber: #F5B942;
  --color-amber-strong: #ffcf6b;
  --color-bg: #14151F;
  --color-bg-elevated: #1b1d2a;
  --color-bg-card: #1f2130;
  --color-text: #F5F2EA;
  --color-text-muted: rgba(245, 242, 234, 0.72);
  --color-text-faint: rgba(245, 242, 234, 0.5);
  --color-border: rgba(245, 185, 66, 0.25);
  --color-border-soft: rgba(245, 242, 234, 0.12);
  --color-placeholder-bg: rgba(245, 185, 66, 0.1);
  --color-placeholder-border: rgba(245, 185, 66, 0.45);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, Roboto, sans-serif;
  --max-width: 1080px;
  --content-max-width: 760px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-amber);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

/* ---------- Header / Nav ---------- */

.site-header {
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-reading {
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--color-text-faint);
  margin-left: 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  padding: 6px 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--color-amber);
  text-decoration: none;
}

/* ハンバーガーメニュー(モバイル幅でのみ表示。デスクトップでは非表示) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 185, 66, 0.14), transparent 60%),
    var(--color-bg);
}

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

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.hero-reading {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-faint);
  margin-top: 6px;
}

.hero-message {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  color: var(--color-amber);
  margin: 0 0 18px;
}

/* 全角句読点(。、)は文字セル内の右側に余白を持つため、行末に来ると
   text-align:centerの中心がその分だけ左に寄って見える。行末の句点だけ
   余白を打ち消して見た目の中心を揃える */
.cjk-tail-fix {
  margin-right: -0.15em;
}

.hero-lead {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--color-text-muted);
}

.hero-lead p {
  margin: 0;
}

.hero-lead p + p {
  margin-top: 4px;
}

/* ---------- Store buttons (未公開のため disabled 表示) ---------- */

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.store-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(260px, 100%);
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-bg-elevated);
  color: var(--color-text-faint);
  cursor: not-allowed;
  user-select: none;
}

.store-button .store-button-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.store-button .store-button-label {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.store-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--color-text-faint);
}

.sns-note {
  margin-top: 20px;
  font-size: 0.92rem;
  color: var(--color-text-muted);
}

/* ---------- Sections ---------- */

section.content-section {
  padding: 56px 0;
}

section.content-section + section.content-section {
  border-top: 1px solid var(--color-border-soft);
}

.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.content-section p {
  color: var(--color-text-muted);
  max-width: var(--content-max-width);
}

/* 意味的に分割されたくない語句を折り返し途中で分断しないための補助クラス */
.nowrap {
  white-space: nowrap;
}

/* ---------- Legal / long-form pages ---------- */

.page-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--color-border-soft);
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
}

.page-updated {
  color: var(--color-text-faint);
  font-size: 0.9rem;
}

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

.legal-main .container {
  max-width: var(--content-max-width);
}

.disclaimer {
  background: var(--color-placeholder-bg);
  border: 1px solid var(--color-placeholder-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 40px;
  font-size: 0.92rem;
  color: var(--color-text);
}

.disclaimer strong {
  color: var(--color-amber);
}

.legal-main h2 {
  font-size: 1.2rem;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
}

.legal-main h3 {
  font-size: 1.02rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--color-amber-strong);
}

.legal-main p,
.legal-main li {
  color: var(--color-text-muted);
}

.legal-main ul,
.legal-main ol {
  padding-left: 1.3em;
}

.legal-main li + li {
  margin-top: 6px;
}

.placeholder {
  display: inline;
  background: var(--color-placeholder-bg);
  border: 1px dashed var(--color-placeholder-border);
  border-radius: 4px;
  padding: 0 5px;
  color: var(--color-amber-strong);
  font-style: normal;
}

/* ---------- Simple info card pages (Support / Account Delete) ---------- */

.info-card {
  max-width: var(--content-max-width);
  margin: 0 auto;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius);
  padding: 32px;
}

.info-card h2 {
  margin-top: 0;
}

.contact-email {
  display: inline-block;
  margin: 8px 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding: 32px 0 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* 外部サイトへのリンク(新しいタブで開く)の目印 */
.ext {
  font-size: 0.8em;
  opacity: 0.8;
}

.footer-copy {
  color: var(--color-text-faint);
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid var(--color-border-soft);
    padding: 8px 24px 24px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 8px 2px;
    font-size: 1.02rem;
  }

  .hero {
    padding: 56px 0 40px;
  }

  .info-card {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}
