@charset "UTF-8";

/* =========================================================
   オペまる 公開ページ 共通スタイル

   ブランド色・フォントはこの :root の変数だけを差し替えれば
   全ページに反映される。Figma 確定後はここを更新する。
   ========================================================= */

:root {
  /* 【要差し替え】Figma のブランドカラーに合わせる */
  --brand:        #0f9b8e;
  --brand-dark:   #0b7a70;
  --brand-tint:   #e8f5f3;

  --text:         #1f2937;
  --text-muted:   #6b7280;
  --text-faint:   #9ca3af;
  --border:       #e5e7eb;
  --bg:           #ffffff;
  --bg-subtle:    #f7f8fa;

  --radius:       10px;
  --max-width:    720px;

  --font-sans: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP",
               "Yu Gothic", "Meiryo", sans-serif;
}

/* ダークモード（アプリ内 WebView が対応している場合に追従） */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-tint: #123531;
    --text:       #e5e7eb;
    --text-muted: #9ca3af;
    --text-faint: #6b7280;
    --border:     #374151;
    --bg:         #111827;
    --bg-subtle:  #1f2937;
  }
}

/* ---------- リセット ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* WebView で端末のフォントサイズ設定に引きずられないようにする */
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.02em;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-dark);
}

/* ---------- レイアウト ---------- */

.header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding-top: env(safe-area-inset-top, 0px);
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  text-decoration: none;
}

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 20px 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.footer__copyright {
  margin: 0;
  color: var(--text-faint);
  font-size: 12px;
}

/* ---------- 見出し・本文 ---------- */

.page-title {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}

.page-lead {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.updated {
  display: block;
  margin-top: 4px;
  color: var(--text-faint);
  font-size: 13px;
}

.section {
  margin: 0 0 32px;
}

.section__title {
  margin: 0 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--brand);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 700;
}

.section p {
  margin: 0 0 14px;
}

.section ol,
.section ul {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.section li {
  margin-bottom: 6px;
}

.section li::marker {
  color: var(--text-muted);
}

/* ---------- FAQ アコーディオン（JS 不要） ---------- */

.faq-group {
  margin: 0 0 28px;
}

.faq-group__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-item > summary {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

/* Safari のデフォルト三角を消す */
.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::before {
  content: "Q";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.faq-item > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 8px 0 0 auto;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
  transform: rotate(-135deg);
}

.faq-item__body {
  padding: 0 16px 16px 48px;
  font-size: 15px;
  color: var(--text-muted);
}

.faq-item__body p {
  margin: 0 0 10px;
}

.faq-item__body p:last-child {
  margin-bottom: 0;
}

/* ---------- リンクカード（トップページ用） ---------- */

.link-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-card {
  display: block;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

.link-card:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--text);
}

.link-card__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.link-card__desc {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 404 ---------- */

.notfound {
  padding: 56px 0;
  text-align: center;
}

.notfound__code {
  margin: 0;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
}

.notfound__text {
  margin: 12px 0 28px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- 画面が広いとき ---------- */

@media (min-width: 600px) {
  .page-title { font-size: 28px; }
  .main       { padding: 40px 24px 72px; }
}
