/* TheNote 公開サイト — 共通スタイル
   コンセプト: 「紙とインク」。切り取り線（アプリの看板機能）をモチーフに、
   生成りの紙・墨のインク・アイコン由来の橙をアクセントにした文具的ミニマリズム。 */

:root {
  color-scheme: light;
  --paper: #f6f1e7;
  --paper-deep: #ede5d3;
  --card: #fffdf8;
  --ink: #221d18;
  --ink-soft: #6b6259;
  --accent: #e85d13;
  --accent-deep: #c44a0a;
  --line: rgba(34, 29, 24, 0.16);
  --line-strong: rgba(34, 29, 24, 0.38);
  --font-display: "Iowan Old Style", Palatino, Georgia, "Hiragino Mincho ProN", "Yu Mincho", "BIZ UDPMincho", serif;
  --font-body: "Avenir Next", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic", Meiryo, sans-serif;
  --shadow-paper: 0 1px 2px rgba(34, 29, 24, 0.06), 0 8px 24px rgba(34, 29, 24, 0.1);
  --shadow-lift: 0 2px 4px rgba(34, 29, 24, 0.08), 0 18px 44px rgba(34, 29, 24, 0.16);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1200px 600px at 85% -100px, rgba(232, 93, 19, 0.07), transparent 60%),
    radial-gradient(900px 500px at -100px 40%, rgba(34, 29, 24, 0.045), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0 0.09 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-wrap: anywhere;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.45; word-break: auto-phrase; text-wrap: balance; letter-spacing: 0.02em; }

a { color: inherit; }

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

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }

/* ---- 切り取り線（セクション区切り） ---- */
.tear {
  position: relative;
  border: none;
  border-top: 2px dashed var(--line-strong);
  margin: 0 auto;
  max-width: 1012px;
}
.tear::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -13px;
  width: 24px;
  height: 24px;
  background-color: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6259' stroke-width='1.6'%3E%3Ccircle cx='6' cy='6' r='3'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Cpath d='M8.5 7.8 20 16M8.5 16.2 20 8'/%3E%3C/svg%3E");
  background-size: 18px 18px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---- ヘッダー ---- */
.site-head { padding: 22px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand b { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.03em; font-weight: 700; }
.site-nav { display: flex; gap: 22px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.site-nav a:hover { color: var(--accent-deep); }

/* ---- ボタン ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); background: #000; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-paper); }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.btn-note { font-size: 12px; color: var(--ink-soft); }

/* ---- フッター ---- */
.site-foot { margin-top: 96px; padding: 40px 0 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--accent-deep); text-decoration: underline; }

/* ---- 記事ページ（ポリシー・規約・サポート） ---- */
.doc { max-width: 720px; margin: 40px auto 0; padding: 0 24px; }
.doc header { margin-bottom: 40px; }
.doc .doc-label { font-size: 13px; letter-spacing: 0.22em; color: var(--accent-deep); font-weight: 700; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); margin: 10px 0 14px; }
.doc .doc-date { font-size: 13.5px; color: var(--ink-soft); }
.doc h2 { font-size: 21px; margin: 52px 0 14px; padding-top: 26px; border-top: 2px dashed var(--line); }
.doc h3 { font-size: 17px; margin: 28px 0 8px; font-family: var(--font-body); font-weight: 700; }
.doc p, .doc li { color: #3a342d; font-size: 15.5px; }
.doc p { margin: 14px 0; }
.doc ul, .doc ol { margin: 14px 0 14px 1.4em; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc strong { font-weight: 700; color: var(--ink); }
.doc a { color: var(--accent-deep); }
.doc .doc-note { background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; padding: 16px 20px; font-size: 14.5px; box-shadow: var(--shadow-paper); }
