:root {
  color-scheme: light;
  --navy: #203565;
  --ink: #172947;
  --muted: #485975;
  --line: #ccd9ea;
  --paper: #eef3f9;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 system-ui, sans-serif; }
.wrap { width: min(860px, calc(100% - 32px)); margin-inline: auto; }


main { padding-block: clamp(26px, 5vw, 54px); }
.intro { margin-bottom: 24px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 10px; }
h1 { font-size: clamp(26px, 5vw, 44px); letter-spacing: -.03em; }
h2 { font-size: clamp(20px, 3vw, 25px); }
h3 { font-size: 16px; }
p { margin: 8px 0; }
.intro p, small { color: var(--muted); }
.card { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: clamp(16px, 4vw, 28px); }
#drop { margin: 18px 0 12px; border: 2px dashed #7699c4; border-radius: 12px; padding: clamp(10px, 3vw, 20px); background: #f0f6ff; text-align: center; }
#drop.active { border-color: var(--navy); background: #dcecff; }
input[type="file"] { display: block; width: min(100%, 360px); margin: 10px auto; color: var(--ink); font: inherit; }
button, #download, input::file-selector-button { border: 0; border-radius: 7px; background: var(--navy); color: white; padding: 8px 12px; font: inherit; font-weight: 700; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: #eaf1fa; color: var(--navy); }
#download { text-decoration: none; }
[hidden] { display: none !important; }
#items, #status { overflow-wrap: anywhere; }
#items { padding-left: 20px; }
#items button { padding: 2px 8px; margin: 4px 0 4px 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice { border-left: 3px solid #718fb9; padding: 12px 14px; margin-top: 18px; background: #f4f7fb; border-radius: 4px; }
.notice p:last-child { margin-bottom: 0; }
ol { padding-left: 24px; }
ol li + li { margin-top: 7px; }
.skip { color: var(--navy); }
.skip { position: absolute; top: -200px; background: white; padding: 8px; }
.skip:focus { top: 8px; left: 8px; }
:focus-visible { outline: 3px solid #4786ce; outline-offset: 3px; }

/* サイト共通のインラインフレーム */
.site-frame { display: block; width: 100%; border: 0; }
.site-header-frame { position: sticky; top: 0; z-index: 10000; height: 105px; background: #223a70; }
.site-footer-frame { height: 210px; background: #223a70; }
@media (max-width: 530px) {
    .site-header-frame { height: 72px; }
    .site-footer-frame { height: 245px; }
}

.site-home-link { text-align: center; margin: 24px 16px; }
