/* Codex: layout/accessibility. Opus: decorations in scenes/*.css. */
:root { color-scheme: light; --ink: #20252d; --blue: #2148a6; --paper: #fff; --nav-height: 5rem; --core-scene-height: 100vh; }
@supports (height: 100svh) { :root { --core-scene-height: 100svh; } }
* { box-sizing: border-box; }
html { scroll-padding-block: 1rem calc(var(--nav-height) + 1rem); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Yu Gothic", "Meiryo", sans-serif; line-height: 1.8; overflow-wrap: anywhere; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; color: inherit; max-width: 100%; }
button, summary, label:has(input[type="radio"]) { cursor: pointer; }
button, input, select, summary { min-height: 44px; }
button { padding: .6rem 1rem; border: 1px solid #9daec8; border-radius: .3rem; background: #fff; }
button:disabled { cursor: default; opacity: .55; }
input[type="text"] { width: min(100%, 24rem); padding: .5rem; border: 1px solid #74829a; border-radius: .2rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
dialog:not([open]) { display:none !important; }
@supports not (aspect-ratio:1) {
  html:root { --desk-pager-ready:0; }
  #profile { min-height:100vh; }
  #profile [data-scene-mount] { display:none; }
  #profile [data-scene-content],#profile [data-scene-content]>*,#profile [data-career-stop] { position:static;width:auto;height:auto;margin:1rem;overflow:visible;clip-path:none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[id], :focus { scroll-margin-block: 1rem calc(var(--nav-height) + 1rem); }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
img[data-src] { display: none; }
html[data-core-ready] img[data-src] { display: block; visibility: hidden; }
main { padding-block-end: var(--nav-height); }
[data-scene] { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; min-height: var(--core-scene-height, 100vh); padding: clamp(2rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem) calc(var(--nav-height) + 2rem); background: var(--scene-background, #fff); }
[data-scene][data-scene-enabled="false"] { min-height: 0; height: 0; padding: 0; overflow: hidden; }
[data-scene-enabled="false"] > * { display: none; }
.core-viewport-probe { position: fixed; inset: 0 auto auto 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; contain: strict; }
[data-scene="profile"] { --scene-background: #f2f5fa; }
[data-scene="favorites"] { --scene-background: #f8f6ef; }
[data-scene="apps"] { --scene-background: #eef3f5; }
[data-scene="connect"] { --scene-background: #f3f4fa; }
[data-scene-content] { position: relative; z-index: 1; max-width: 60rem; margin-inline: auto; min-width: 0; }
[data-scene-mount] { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: clip; }
[data-scene-mount] [data-decor-action] { pointer-events: auto; touch-action: manipulation; }
h1, h2, h3 { line-height: 1.5; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: 1.1rem; }
.scene-note { color: #394c71; }
.hash-alias { position: absolute; inset-block-start: 0; }
.contact-links { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-block: 1.5rem; }
.contact-links a { display: inline-flex; align-items: center; min-height: 44px; }
.career-list { padding-inline-start: 1.5rem; }
.career-list li { padding-block: .75rem; }
.favorite-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.favorite-grid > * { min-width: 0; padding: .75rem; border: 1px solid #b9bec5; background: #ffffffb3; }
.favorite-grid summary { font-weight: 600; font-size: clamp(.8rem, 2.8vw, 1rem); }
.favorite-grid p { font-size: .9rem; }
.binder-slot { display: flex; flex-direction: column; justify-content: center; font-size: .85rem; }
.app-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.app-list article { padding: 1rem; border: 1px solid #b9c6d1; }
[data-cover-slot] { width: min(100%, 16rem); aspect-ratio: 2 / 3; min-height: 15rem; display: flex; flex-direction: column; justify-content: center; padding: 1rem; border: 1px solid #b9c6d1; }
[data-cover-slot]:has(img) { aspect-ratio: auto; display: block; }
[data-cover-slot] img { width: 100%; height: auto; }
[data-app-status] { font-size: .85rem; }
.scene-nav { position: fixed; z-index: 100; inset: auto 0 0; display: flex; gap: .15rem; padding: .4rem .4rem max(.4rem, env(safe-area-inset-bottom)); background: #fffffff5; border-block-start: 1px solid #b9c5d8; }
.scene-nav a { color:#122e69; display: flex; flex: 1 1 0; min-width: 0; align-items: center; justify-content: center; min-height: 48px; padding: .25rem; text-align: center; white-space: nowrap; overflow-wrap: normal; font-size: clamp(.7rem, 2.5vw, .95rem); text-decoration: none; border: 2px solid transparent; border-radius: .2rem; }
.scene-nav a[data-nav-scene="favorites"] { flex-grow: 1.3; }
.scene-nav a:is([data-nav-scene="profile"], [data-nav-scene="apps"]) { flex-grow: .8; }
.scene-nav a[data-nav-scene="connect"] { flex-grow: 1.1; }
.scene-nav a[aria-current="location"] { color: #122e69; border-color: var(--blue); font-weight: 700; }
.skip-link { position: fixed; z-index: 200; inset: .5rem auto auto .5rem; padding: .6rem 1rem; background: white; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
[data-horizontal-scroll] { max-width: 100%; overflow-x: auto; touch-action: pan-x pan-y pinch-zoom; }
html[data-scroll-mode="snap"] { scroll-snap-type: y mandatory; }
html[data-scroll-mode="snap"] [data-scene] { scroll-snap-align: start; }
html[data-core-ready] [data-scene]:not([data-visible="true"]),
html[data-core-ready] [data-scene]:not([data-visible="true"]) *,
html[data-core-ready] [data-scene]:not([data-visible="true"])::before,
html[data-core-ready] [data-scene]:not([data-visible="true"])::after,
html[data-core-ready] [data-scene]:not([data-visible="true"]) *::before,
html[data-core-ready] [data-scene]:not([data-visible="true"]) *::after { animation-play-state: paused !important; }
html[data-page-hidden="true"] [data-scene], html[data-page-hidden="true"] [data-scene] *,
html[data-page-hidden="true"] [data-scene]::before, html[data-page-hidden="true"] [data-scene]::after,
html[data-page-hidden="true"] [data-scene] *::before, html[data-page-hidden="true"] [data-scene] *::after { animation-play-state: paused !important; }
html[data-reduced-motion="true"] *, html[data-reduced-motion="true"] *::before, html[data-reduced-motion="true"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
[data-scene="connect"]:is([data-connect-experience="complete"], [data-connect-experience="fallback"], [data-connect-experience="reduced"]),
[data-scene="connect"]:is([data-connect-experience="complete"], [data-connect-experience="fallback"], [data-connect-experience="reduced"]) *,
[data-scene="connect"]:is([data-connect-experience="complete"], [data-connect-experience="fallback"], [data-connect-experience="reduced"]) *::before,
[data-scene="connect"]:is([data-connect-experience="complete"], [data-connect-experience="fallback"], [data-connect-experience="reduced"]) *::after { animation: none !important; transition: none !important; }
@media (max-width: 360px) {
  :root { --nav-height: calc(7rem + env(safe-area-inset-bottom)); }
  .scene-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-nav a { min-height: 44px; }
  .favorite-grid > * { padding: .4rem; }
  .card-choices { padding: .5rem; gap: .5rem; }
  .card-choices label { padding: .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
