/* P5: 層と責務ごとのスタイル。画面の同一性は算出スタイルで検証する。 */
@layer base {
* { box-sizing: border-box; }
button span { transition: transform 0.2s; }
a span { transition: transform 0.2s; }
a:hover > span:last-child { transform: translateX(3px); }
button:hover > span:last-child { transform: translateX(3px); }
label:not(.check-label) { display: block; font-size: 14px; margin: 19px 0 8px; }
input:not([type="checkbox"]) { width: 100%; height: 48px; border: 1px solid #d8d9ce; background: #fffef9; padding: 9px 13px; min-width: 0; color: var(--ink); font-size: 16px; }
input:disabled { background: #eceee8; color: #5c6156; }
summary { -webkit-tap-highlight-color: transparent; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
details[open] > summary > span { transform: rotate(45deg); }
dialog p { margin-top: 15px; font-size: 14px; }
dialog h3 { margin-top: 20px; font-size: 20px; }
dialog pre { padding: 18px; background: #e7e9e1; font-size: 13px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
dialog a { color: var(--red); }
input { font: inherit; -webkit-tap-highlight-color: transparent; border-radius: 0; font-variant-numeric: tabular-nums; }
button { font: inherit; -webkit-tap-highlight-color: transparent; cursor: pointer; color: inherit; border-radius: 0; background: none; font-variant-numeric: tabular-nums; }
p { margin: 0; text-wrap: pretty; }
button:active { transform: translateY(1px); }
input:not([type="checkbox"]):not([type="radio"]) { min-height: 52px; border: 1px solid #728a80; border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 14px; box-shadow: inset 0 1px 0 rgb(29 48 45 / 4%); transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
input::placeholder { color: #73817c; }
textarea::placeholder { color: #73817c; }
input:not([type="checkbox"]):not([type="radio"]):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body { margin: 0; -webkit-font-smoothing: antialiased; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%238d8167' opacity='.04' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E"); background-color: var(--paper); font-variant-numeric: tabular-nums; background: var(--nc-50); color: var(--nc-800); font: 1rem/1.9 var(--font-sans); letter-spacing: 0; -webkit-text-size-adjust: 100%; line-break: strict; overflow-wrap: break-word; }
h1 { margin: 0; font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
h2 { margin: 0; font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
h3 { margin: 0; font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
h4 { font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
h5 { font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
h6 { font-family: var(--font-sans); color: var(--nc-900); font-weight: 700; letter-spacing: .01em; line-height: 1.4; }
a { -webkit-tap-highlight-color: transparent; text-decoration: none; color: var(--brand-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
button:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
a:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
summary:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
input:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
select:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
textarea:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: 2px; box-shadow: none; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-height: 48px; padding: 11px 14px; border: 1px solid var(--nc-500); border-radius: var(--radius-sm); background: var(--nc-0); color: var(--nc-900); font: 400 1rem/1.5 var(--font-sans); box-shadow: none; }
select { -webkit-tap-highlight-color: transparent; width: 100%; height: 48px; min-width: 0; font-size: 16px; font-variant-numeric: tabular-nums; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; min-height: 48px; padding: 11px 14px; border: 1px solid var(--nc-500); border-radius: var(--radius-sm); background: var(--nc-0); color: var(--nc-900); font: 400 1rem/1.5 var(--font-sans); box-shadow: none; }
textarea { font-variant-numeric: tabular-nums; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; min-height: 48px; padding: 11px 14px; border: 1px solid var(--nc-500); border-radius: var(--radius-sm); background: var(--nc-0); color: var(--nc-900); font: 400 1rem/1.5 var(--font-sans); box-shadow: none; }
input:not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--brand-ink); outline: 2px solid var(--brand-ink); outline-offset: 0; box-shadow: none; }
select:focus { border-color: var(--brand-ink); outline: 2px solid var(--brand-ink); outline-offset: 0; box-shadow: none; }
textarea:focus { border-color: var(--brand-ink); outline: 2px solid var(--brand-ink); outline-offset: 0; box-shadow: none; }
label { font-size: 0.9375rem; font-weight: 600; color: var(--nc-800); letter-spacing: 0; }
legend { font-size: 0.9375rem; font-weight: 600; color: var(--nc-800); letter-spacing: 0; }
dialog { background: var(--paper); padding: 30px; width: min(660px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-float); color: var(--nc-800); }
dialog::backdrop { backdrop-filter: blur(3px); background: rgba(28, 27, 23, .45); }
details > summary { color: var(--nc-900); }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset) + 20px); }
}
@layer base {
@media (max-width: 760px) {
dialog { padding: 22px; }
dialog pre { font-size: 11px; }
}
}
@layer base {
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
}
}
