/* momenine 共通スタイル */
/* 実行環境：Xserver上に配置し、各PHPページから <link> で読み込む */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  background: #FAF8F1;
  color: #211D14;
}

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

.wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #FAF8F1;
  display: flex;
  flex-direction: column;
}

.header {
  padding: 18px 24px;
  border-bottom: 1px solid #E7DFC8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.header .logo { font-size: 19px; font-weight: 700; letter-spacing: 0.02em; }
.header .logo .mome { color: #FF4F8B; }
.header .kana { font-size: 11px; font-weight: 700; color: #FF4F8B; margin-top: 2px; letter-spacing: 0.04em; }
.header-brand { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.header-brand img.logo-icon { height: 34px; width: auto; }
.header-brand img.logo-title { height: 20px; width: auto; }
.header-tagline { color: #4A4436; font-size: 11px; font-weight: 700; white-space: nowrap; }

.footer {
  margin-top: auto;
  background: #3A2F22;
  color: #F3EFE4;
  padding: 28px 24px;
}
.footer a { color: #F3EFE4; font-size: 12px; }
.footer .cols { display: flex; gap: 40px; margin-bottom: 18px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer .copyright { font-size: 11px; color: #C9BFA9; }

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: #FF4F8B;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E7DFC8;
  color: #211D14;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
}

.card {
  border: 1px solid #E7DFC8;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 14px 16px;
}

.pill {
  font-size: 12px;
  font-weight: 700;
  color: #E0407A;
  background: #FFE4EF;
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  cursor: pointer;
}

.status-warn { color: #E5484D; font-size: 12px; font-weight: 700; }
.status-ok { color: #FF4F8B; font-size: 11px; font-weight: 700; }

.rule-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #E7DFC8;
  font-size: 13px;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  background: #FFFFFF;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.rule-option.is-selected { border-color: #FF4F8B; background: #FFE4EF; }
.rule-option:has(input:checked) { border-color: #FF4F8B; background: #FFE4EF; }
.rule-option:not(:has(input:checked)) { border-color: #E7DFC8; background: #FFFFFF; }
.rule-option input[type="radio"],
.rule-option input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.field-label { display: block; font-size: 12px; color: #4A4436; margin-bottom: 6px; }
.field-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #E7DFC8;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #FFFFFF;
}

.note { font-size: 11px; color: #8A8270; line-height: 1.7; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: ""; }

/* --- 見出し（SEO対応：意味のある h1/h2/h3 をそのまま装飾する） --- */
h1 { margin: 0; font-size: 20px; line-height: 1.5; font-weight: 700; }
h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.5; font-weight: 700; }
h3 { margin: 0 0 6px; font-size: 15px; line-height: 1.5; font-weight: 700; }
h1.h1-hero { margin: 0 0 12px; font-size: 27px; line-height: 1.55; }

.eyebrow { font-size: 12px; font-weight: 700; color: #FF4F8B; margin: 0 0 8px; }
.lead { margin: 0 0 16px; font-size: 15px; line-height: 1.8; font-weight: 700; }
.body-text { margin: 0; font-size: 14px; line-height: 1.9; color: #4A4436; }
.text-sm { font-size: 13px; line-height: 1.8; color: #4A4436; }
.text-xs { font-size: 11px; line-height: 1.5; color: #4A4436; }
.text-muted { color: #8A8270; }
.text-accent { color: #FF4F8B; }
.text-warn { color: #E5484D; }

/* --- セクション間隔（縦の余白をここで一元管理） --- */
.section { padding: 40px 24px 0; }
.section-lg { padding: 56px 24px 0; }
.section-hero { padding: 36px 24px 24px; }
.section-tight { padding: 16px 24px 0; }
.section-end { padding-bottom: 40px; }
.section-end-sm { padding-bottom: 24px; }
.btn-wrap { padding: 0 24px 40px; }
.btn-wrap-top { padding: 20px 24px 0; }
.btn-wrap-flat { padding: 0 24px; }

/* --- カード・グリッド類 --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; }
.stat-num { font-size: 11px; font-weight: 700; color: #FF4F8B; }
.stat-title { font-size: 13px; font-weight: 700; line-height: 1.4; }
.stat-desc { font-size: 11px; color: #4A4436; line-height: 1.5; }
.highlight-card {
  border: 1px solid #E7DFC8; border-radius: 12px; background: #FFE4EF;
  display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center;
}
.highlight-card img { height: 28px; width: auto; margin-bottom: 6px; }
.highlight-card .caption { font-size: 10px; color: #FF4F8B; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; background: #FFE4EF; color: #FF4F8B; padding: 8px 14px; border-radius: 999px; }
.badge-round { font-size: 11px; font-weight: 700; background: #FFE4EF; color: #FF4F8B; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-round-sm { font-size: 10px; font-weight: 700; background: #FFE4EF; color: #FF4F8B; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge-done { color: #8A8270; }
.badge-done .label { text-decoration: line-through; }

.link-accent { color: #FF4F8B; text-decoration: underline; font-size: 13px; }

.steps-list { padding-left: 20px; font-size: 13px; line-height: 2.0; color: #4A4436; margin: 0; }

.banner-success { margin: 0 24px 20px; padding: 12px 14px; border: 1px solid #2E9E5B; background: #EAF9EF; border-radius: 10px; font-size: 12px; color: #1F7A45; }
.banner-error { margin: 0 24px 20px; padding: 12px 14px; border: 1px solid #E5484D; background: #FFF0EE; border-radius: 10px; font-size: 12px; color: #E5484D; }
.banner-plain-success { padding: 12px 14px; border: 1px solid #2E9E5B; background: #EAF9EF; border-radius: 10px; font-size: 12px; color: #1F7A45; }
.banner-plain-error { padding: 12px 14px; border: 1px solid #E5484D; background: #FFF0EE; border-radius: 10px; font-size: 12px; color: #E5484D; }

.flex-row { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }

/* --- よくある質問 --- */
.qa-card { display: flex; flex-direction: column; gap: 6px; }
.qa-question { font-size: 14px; font-weight: 700; display: flex; gap: 8px; margin: 0; }
.qa-question .q-mark { color: #FF4F8B; }
.qa-answer { font-size: 13px; color: #4A4436; line-height: 1.8; padding-left: 24px; margin: 0; }

/* --- 規約・ポリシー系ページ --- */
.legal-meta { font-size: 11px; color: #8A8270; margin-top: 6px; }
.legal-notice { border: 1px solid #FF4F8B; background: #FFE4EF; border-radius: 12px; padding: 12px 14px; font-size: 11px; line-height: 1.7; }
.legal-body { font-size: 12px; color: #4A4436; line-height: 1.9; margin-top: 8px; }
.legal-list { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #4A4436; line-height: 1.9; }

.content-wrap { padding: 0 24px 40px; }
.page-content { padding: 28px 24px 40px; }
.pt-16 { padding-top: 16px; }
.w-fit { width: fit-content; }

/* --- レビュー --- */
.review-stars { color: #E3A730; font-size: 16px; letter-spacing: 2px; }
.review-comment { font-size: 14px; color: #211D14; line-height: 1.8; white-space: pre-wrap; margin: 0; }

/* --- フォームページ全般 --- */
.form-page { padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; }
.error-text { color: #E5484D; }
.option-title { display: block; font-weight: 700; font-size: 15px; }
.option-desc { display: block; font-size: 12px; color: #4A4436; margin-top: 2px; }
.rule-option input[type="radio"], .rule-option input[type="checkbox"] { accent-color: #FF4F8B; }
.option-group { display: flex; flex-direction: column; gap: 10px; }
.form-page-rules { padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.card-stack { display: flex; flex-direction: column; gap: 10px; }
.card-title { font-size: 14px; font-weight: 700; margin: 0; }
.page-hint { font-size: 12px; color: #4A4436; margin-top: 6px; line-height: 1.7; }
.textarea-tall { min-height: 80px; resize: none; }
.textarea-short { min-height: 44px; resize: none; }
.simple-message { padding: 40px 24px; }
.form-page-simple { padding: 28px 24px; display: flex; flex-direction: column; gap: 18px; }

.pin-box { border: 2px solid #FF4F8B; border-radius: 12px; background: #FFE4EF; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pin-box-label { font-size: 13px; font-weight: 700; color: #FF4F8B; }
.pin-value { font-size: 32px; font-weight: 700; letter-spacing: 0.3em; text-align: center; padding: 8px 0; }
.pin-copy-btn { width: 100%; background: #FFFFFF; border: 1px solid #FF4F8B; color: #FF4F8B; font-weight: 700; font-size: 13px; padding: 10px; border-radius: 10px; font-family: inherit; cursor: pointer; }
.pin-note { font-size: 11px; color: #211D14; line-height: 1.7; }
.pin-warning { border-top: 1px solid #FFFFFF; margin-top: 4px; padding-top: 10px; font-size: 11px; color: #211D14; line-height: 1.7; font-weight: 700; }

/* --- イベントページ --- */
.event-header { padding: 24px 24px 16px; border-bottom: 1px solid #E7DFC8; }
.event-title { font-size: 18px; }
.event-meta { font-size: 12px; color: #4A4436; margin-top: 4px; }

.rules-card-text { font-size: 12px; color: #4A4436; line-height: 1.9; }
.rules-note-block { margin-top: 6px; padding-top: 8px; border-top: 1px solid #E7DFC8; font-size: 12px; color: #211D14; line-height: 1.8; white-space: pre-wrap; }

.participant-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.item-list { padding: 16px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.item-card { border: 1px solid #E7DFC8; border-radius: 12px; background: #FFFFFF; padding: 12px 14px; }
.item-title { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.item-report-row { font-size: 12px; color: #4A4436; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.receipt-link { font-size: 10px; }

.section-stack { padding: 20px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.section-stack-sm { padding: 12px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.inline-details summary { font-size: 14px; color: #FF4F8B; font-weight: 700; padding: 4px 0; }
.inline-details.small summary { font-size: 12px; font-weight: 400; }
.inline-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.inline-form-tight { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }

.organizer-mode-banner { background: #FF4F8B; color: #FFFFFF; border-radius: 12px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 12px; }

.panel-wrap { margin: 20px 24px 0; }
.settlement-section { padding-top: 8px; border-top: 1px solid #E7DFC8; }
.settlement-label { font-size: 11px; color: #8A8270; margin-bottom: 6px; }
.settlement-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 3px 0; }
.balance-diff { font-size: 11px; font-weight: 700; }
.balance-plus { color: #1F7A45; }
.balance-minus { color: #E5484D; }
.balance-zero { color: #8A8270; }
.settlement-summary-row { display: flex; justify-content: space-between; font-size: 12px; color: #4A4436; margin-bottom: 6px; }
.settlement-remaining { color: #E5484D; font-weight: 700; }
.debtor-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 13px; padding: 5px 0; }
.debtor-row.done { color: #8A8270; }
.debtor-row.done .debtor-name { text-decoration: line-through; }
.debtor-remaining { font-size: 11px; color: #E5484D; white-space: nowrap; }
.suggestion-block { margin-top: 10px; padding-top: 8px; border-top: 1px solid #E7DFC8; }
.suggestion-row { font-size: 13px; font-weight: 700; padding: 3px 0; }
.payment-history-block { margin-top: 12px; padding-top: 8px; border-top: 1px solid #E7DFC8; }
.payment-history-row { font-size: 12px; color: #4A4436; padding: 2px 0; }

.finish-section { padding: 16px 24px 24px; }

.pin-gate-box { margin: 20px 24px 24px; border: 1px solid #E7DFC8; border-radius: 12px; background: #FFFFFF; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pin-gate-title { font-size: 13px; font-weight: 700; }
.pin-input { text-align: center; letter-spacing: 0.2em; font-size: 18px; }
.remember-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: #4A4436; }
.pin-hint { text-align: center; font-size: 11px; color: #8A8270; }

.review-form-wrap { padding: 20px 24px 40px; }
.review-card { display: flex; flex-direction: column; gap: 10px; }
.review-stars-input { display: flex; gap: 6px; margin: 6px 0 14px; }
.review-star-label { font-size: 26px; cursor: pointer; }
.review-star-radio { display: none; }
.char-count { color: #8A8270; font-weight: 400; }
.hidden-toggle { display: none; margin-top: 8px; }

/* --- 微調整ユーティリティ --- */
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-10 { margin-top: 10px; }
.mt-14 { margin-top: 14px; }
.mb-0 { margin: 0; }
.mb-8 { margin-bottom: 8px; }
.gap-6-override { gap: 6px; }
.card-title-divider { padding-top: 4px; border-top: 1px solid #E7DFC8; }
.line-h-sm { line-height: 1.5; }
.min-h-100 { min-height: 100px; }
.banner-flat { margin: 0 24px; }
.star-gold { color: #E3A730; }

/* --- ブログ記事（Astro / momenine.com/article/ 配下）--- */
.article-list-header { padding: 28px 24px 4px; }
.article-list { padding: 16px 24px 40px; display: flex; flex-direction: column; gap: 12px; }
.article-card { display: block; }
.article-card-date { font-size: 11px; color: #8A8270; }
.article-card-title { font-size: 16px; font-weight: 700; margin: 4px 0 6px; }
.article-card-desc { font-size: 13px; color: #4A4436; line-height: 1.7; }
.article-body { padding: 24px; line-height: 1.9; font-size: 15px; }
.article-body h2 { margin-top: 32px; }
.article-body img { max-width: 100%; border-radius: 12px; }
.article-meta { font-size: 12px; color: #8A8270; margin-bottom: 8px; }
.article-cta { padding: 0 24px 40px; }
.link-inline { display: inline-block; margin-top: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.m-20-0-24 { margin: 20px 0 24px; }
.usage-step { margin-bottom: 40px; }
.usage-img { width: 100%; border-radius: 12px; border: 1px solid #E7DFC8; margin-bottom: 12px; }
.list-stack { display: flex; flex-direction: column; gap: 12px; }
.list-stack-lg { display: flex; flex-direction: column; gap: 20px; }