@import url('https://fonts.googleapis.com/css2?family=Shippori+Mincho+B1:wght@500;700&family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
  --bg: #FFFBEA;
  --bg-card: #FFFFFF;
  --bg-deep: #F2E8CE;
  --text-primary: #1C1917;
  --text-secondary: #57534E;
  --text-muted: #5C5956;
  --accent-gold: #984F03;
  --accent-green: #4D7C0F;
  --border: rgba(28, 25, 23, 0.12);
  --border-strong: rgba(28, 25, 23, 0.25);
  --cta-bg: #1C1917;
  --cta-text: #FFFBEA;
  --font-heading: 'Shippori Mincho B1', serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --max-width: 960px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

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

/* Header */

.site-header {
  background: var(--bg-deep);
  border-bottom: 0.5px solid var(--border);
  padding: 20px 0;
}

.backstage-link {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 14px;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.backstage-link:hover {
  color: var(--accent-gold);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.logo:hover {
  opacity: 0.75;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--text-primary);
  position: relative;
  flex-shrink: 0;
}

.logo-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-gold);
  transform: translate(-50%, -50%);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-primary);
}

.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.site-nav a {
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--accent-gold);
}

/* Hero */

.hero {
  padding: 64px 0 48px;
  position: relative;
  overflow: hidden;
}

.hero-motif {
  position: absolute;
  right: -60px;
  top: -40px;
  opacity: 0.6;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 560px;
}

.release-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  background: rgba(217, 118, 6, 0.08);
  border: 0.5px solid rgba(217, 118, 6, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.release-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-gold);
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.5;
  margin: 0 0 20px;
}

.hero p.lead {
  font-size: 16px;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: 0.5px solid transparent;
}

.btn-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* Apple公式バッジ: 改変禁止のため独自のbtnスタイルは当てず、サイズと余白のみ調整。
   高さは公式アートワークの最小サイズ(40px)を下回らない。 */
.app-store-link {
  display: inline-flex;
  align-items: center;
}

/* hidden 属性を確実に効かせる。UA標準の [hidden]{display:none} は、作者側で
   display を指定したセレクタ(.app-store-link や .release-badge の
   inline-flex 等)に負けるため、hidden を付けても消えないという事故が2回起きた
   (2026-09-14 App Storeバッジ / 2026-09-17 「近日公開」バッジ)。
   個別に書くとまた漏れるので、!important でまとめて押さえる。
   RELEASE-DAY.md の手順は hidden の付け外しを前提にしている。 */
[hidden] {
  display: none !important;
}

.app-store-link img {
  display: block;
  height: 48px;
  width: auto;
}

/* Screenshot strip */

.screens {
  padding: 24px 0 72px;
  overflow-x: auto;
}

.screens-track {
  display: flex;
  gap: 20px;
  padding: 0 24px;
  min-width: min-content;
}

.screens-track img {
  width: 220px;
  height: auto;
  border-radius: 20px;
  border: 0.5px solid var(--border);
}

.screen-card {
  margin: 0;
  width: 220px;
  flex-shrink: 0;
}

.screen-card figcaption {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 14px 4px 0;
  width: 100%;
}

/* Section shared */

section.block {
  padding: 64px 0;
}

section.block h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 40px;
}

/* Story */

.story {
  background: var(--bg-deep);
  border-top: 0.5px solid var(--border);
  border-bottom: 0.5px solid var(--border);
}

.story-body {
  max-width: 620px;
}

.story-body p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 20px;
}

.story-body p:last-child {
  margin-bottom: 0;
}

.story-sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 150ms ease;
}

.story-sign:hover {
  color: var(--accent-gold);
}

.story-sign svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Features */

.feature-list {
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: flex;
  gap: 28px;
  padding: 36px 0;
  border-top: 0.5px solid var(--border);
}

.feature-item:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-num {
  flex-shrink: 0;
  width: 32px;
  padding-top: 6px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-gold);
}

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.5;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  max-width: 520px;
}

/* Pricing */

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 0.5px solid var(--border);
  font-size: 14px;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
}

.pricing-table th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 13px;
}

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

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

.pricing-table td.plan-premium {
  color: var(--accent-gold);
  font-weight: 500;
}

.pricing-table .cell-note {
  font-size: 0.82em;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 0.25em;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Footer */

.site-footer {
  background: var(--bg-deep);
  border-top: 0.5px solid var(--border);
  /* 下側は「Powered by Netlify」バッジ(右下固定)がフッターのリンクに
     重ならないよう余白を多めに確保している */
  padding: 36px 0 100px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a {
  white-space: nowrap;
}

.footer-links a {
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -10px -10px -10px 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}


/* Legal document pages */

.legal-doc {
  padding: 56px 24px 80px;
  max-width: 720px;
}

.legal-doc h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  margin: 0 0 8px;
}

.legal-doc .updated {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 40px;
}

.legal-doc h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 40px 0 12px;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-secondary);
  font-size: 15px;
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.4em;
}

.legal-doc .intro {
  color: var(--text-primary);
}

.notice-box {
  background: rgba(217, 118, 6, 0.08);
  border: 0.5px solid rgba(217, 118, 6, 0.3);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.tokushoho-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.tokushoho-table th,
.tokushoho-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 0.5px solid var(--border);
  vertical-align: top;
}

.tokushoho-table th {
  width: 180px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

.pending {
  color: var(--text-muted);
  font-style: normal;
}

/* Contact form */

.contact-form {
  max-width: 480px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  color: var(--text-secondary);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius, 8px);
  padding: 10px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.field-error {
  font-size: 13px;
  color: #b3401f;
  margin: 0;
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.form-status {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  min-height: 1.2em;
}

@media (max-width: 640px) {
  .site-header {
    position: relative;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-deep);
    border-bottom: 0.5px solid var(--border);
    z-index: 20;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-top: 0.5px solid var(--border);
  }
  .site-footer .container {
    flex-direction: column;
    align-items: flex-start;
  }

  /* 見出しの不自然な行折れを防ぐ(日本語は文節で折る) */
  .feature-item h3,
  .pricing-table td:first-child {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .legal-doc h1 {
    font-size: 23px;
  }

  /* 機能一覧: 番号列を詰めて見出しに幅を回す */
  .feature-item {
    gap: 14px;
  }
  .feature-num {
    width: 22px;
  }
  .feature-item h3 {
    font-size: 20px;
  }

  /* 料金表を画面幅に収める */
  .pricing-table {
    font-size: 13px;
  }
  .pricing-table th,
  .pricing-table td {
    padding: 12px 10px;
  }
  .pricing-table .cell-note {
    display: block;
    margin-left: 0;
    margin-top: 2px;
  }

  /* 特商法テーブル: 狭い画面では「ラベル → 値」の縦積みにする */
  .tokushoho-table,
  .tokushoho-table tbody,
  .tokushoho-table tr,
  .tokushoho-table th,
  .tokushoho-table td {
    display: block;
    width: auto;
  }
  .tokushoho-table tr {
    padding: 14px 0;
    border-bottom: 0.5px solid var(--border);
  }
  .tokushoho-table th {
    white-space: normal;
    padding: 0 0 4px;
    font-size: 13px;
    border-bottom: none;
  }
  .tokushoho-table td {
    padding: 0;
    border-bottom: none;
  }
}
