/* マイ就活ノート — support, 規約 and shared-link pages. Same colors as the app's ほっこり手帳 skin. */
:root {
  --bg: #FFFDF8; --dot: #F0E2D3; --surface: #FFFFFF; --surface2: #FFF8EE;
  --ink: #463B35; --ink2: #78695F; --ink3: #A39488; --line: #F2E7DC; --stitch: #E7D5C3;
  --accent: #B4580F; --pop: #FFB648; --popInk: #45290D; --marker: #FFE9A8; --danger: #C2413A;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #221D1A; --dot: #3A322C; --surface: #2C2622; --surface2: #352D28;
    --ink: #F5ECE3; --ink2: #C6B6A9; --ink3: #9C8D82; --line: #41372F; --stitch: #5F5047;
    --accent: #FFBE7D; --pop: #FFC567; --popInk: #3A2410; --marker: #5A4A22; --danger: #FF9A90;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #221D1A; --dot: #3A322C; --surface: #2C2622; --surface2: #352D28;
  --ink: #F5ECE3; --ink2: #C6B6A9; --ink3: #9C8D82; --line: #41372F; --stitch: #5F5047;
  --accent: #FFBE7D; --pop: #FFC567; --popInk: #3A2410; --marker: #5A4A22; --danger: #FF9A90;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px); background-size: 18px 18px;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Zen Maru Gothic", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  font-size: 15px; line-height: 1.85; letter-spacing: 0.02em;
}
a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; border-radius: 8px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }

/* header + tabs */
.top { padding: 20px 0 6px; display: flex; align-items: center; gap: 12px; }
.top img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(70, 59, 53, .45); }
.top .name { font-size: 19px; font-weight: 700; letter-spacing: .08em; margin: 0; line-height: 1.3; }
.top .sub { font-size: 12px; color: var(--ink2); margin: 0; line-height: 1.4; }
nav.tabs { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 10px 0; margin-bottom: 8px; }
nav.tabs ul { list-style: none; margin: 0; padding: 4px; display: grid; grid-template-columns: repeat(4, auto); gap: 4px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px; }
nav.tabs a { display: block; white-space: nowrap; text-align: center; padding: 6px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 400; color: var(--ink2); text-decoration: none; }
@media (max-width: 459px) {
  nav.tabs ul { grid-template-columns: 1fr 1fr; border-radius: 20px; }
}
nav.tabs a[aria-current="page"] { background: var(--pop); color: var(--popInk); font-weight: 700; }

/* content */
main { padding-bottom: 32px; }
h1 { font-size: 22px; margin: 18px 0 6px; letter-spacing: .06em; line-height: 1.5; }
h2 { font-size: 16.5px; margin: 26px 0 8px; padding-left: 12px; border-left: 4px solid var(--pop); line-height: 1.5; }
h3 { font-size: 15px; margin: 18px 0 4px; }
p { margin: 0 0 10px; }
.meta { color: var(--ink2); font-size: 13px; margin-bottom: 14px; }
.card { background: var(--surface); border: 1.5px solid var(--line); border-radius: 20px; padding: 16px 18px; margin: 12px 0; }
.note { background: var(--surface2); border: 1.5px dashed var(--stitch); border-radius: 16px; padding: 12px 16px; font-size: 13.5px; color: var(--ink2); }
.draft { background: var(--marker); color: var(--ink); border-radius: 12px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
mark { background: var(--marker); color: inherit; padding: 0 2px; border-radius: 3px; }
ol, ul.list { margin: 0 0 10px; padding-left: 1.6em; }
ol li, ul.list li { margin: 2px 0; }
ol ol { list-style: none; padding-left: 0.4em; counter-reset: sub; }
ol ol > li { counter-increment: sub; }
ol ol > li::before { content: "(" counter(sub) ") "; color: var(--ink2); }
.scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0 14px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 1.7; }
.scroll.wide table { min-width: 640px; }
th, td { text-align: left; vertical-align: top; padding: 9px 12px; border-top: 1px solid var(--line); }
thead th { background: var(--surface2); border-top: 0; color: var(--ink2); font-size: 12px; }
tbody td:first-child { font-weight: 700; width: 34%; }
.scroll.wide tbody td:first-child { width: auto; min-width: 120px; }

/* support */
details { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; margin: 8px 0; }
summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "＋"; color: var(--accent); }
details[open] summary::after { content: "－"; }
details > div { padding: 0 16px 12px; color: var(--ink); font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--pop); color: var(--popInk); font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; cursor: pointer; }
.btn.soft { background: var(--surface); color: var(--ink); border: 1.5px solid var(--stitch); }
.btn.block { display: flex; width: 100%; }
.btns { display: grid; gap: 10px; margin: 14px 0; }

/* shared link */
.co { font-size: 22px; font-weight: 700; letter-spacing: .04em; margin: 4px 0 2px; overflow-wrap: anywhere; }
.rows { margin: 0; }
.rows div { display: flex; gap: 12px; padding: 9px 0; border-top: 1.5px dashed var(--line); }
.rows div:first-child { border-top: 0; }
.rows dt { width: 76px; flex: none; font-size: 12.5px; font-weight: 700; color: var(--ink2); }
.rows dd { margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ev { list-style: none; margin: 0; padding: 0; }
.ev li { padding: 9px 0; border-top: 1.5px dashed var(--line); }
.ev li:first-child { border-top: 0; }
.ev b { display: block; }
.ev span { font-size: 13px; color: var(--ink2); }
.hidden { display: none !important; }

footer { border-top: 1.5px dashed var(--stitch); padding: 18px 0 40px; color: var(--ink2); font-size: 12.5px; }
footer a { font-weight: 400; }
footer ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
