:root {
  --ink: #191919;
  --muted: #505050;
  --line: #d8d8d3;
  --yellow: #ffe100;
  --font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: white;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body, h1, h2, p, figure, dl, dd { margin: 0; }
body { font-size: 1rem; line-height: 1.75; }
a { color: inherit; text-underline-offset: .2em; }
a:hover { text-decoration: underline; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #295bc0; outline-offset: 4px; }
[hidden], #status:empty { display: none !important; }
.wrap { width: min(1232px, calc(100% - clamp(40px, 9vw, 144px))); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner, .header-links, .footer-inner, .footer-links { display: flex; align-items: center; }
.masthead-inner, .footer-inner { justify-content: space-between; }
.masthead-inner { min-height: 78px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { display: block; height: auto; max-width: 100%; }
.header-links, .footer-links { gap: 30px; }
.header-links a, .footer-links a { text-decoration: none; font-size: .875rem; font-weight: 650; }
.header-links a:hover, .footer-links a:hover { text-decoration: underline; }
.header-request { border: 1px solid var(--ink); padding: 9px 22px; border-radius: 4px; }
.hero { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(24px,5vw,80px); padding-block: clamp(44px,5vw,78px); align-items: center; }
.file-meta { display: flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; }
.sheet-icon { display: inline-block; width: 14px; height: 17px; border: 1.6px solid currentColor; background: linear-gradient(currentColor,currentColor) center 6px/7px 1px no-repeat,linear-gradient(currentColor,currentColor) center 10px/7px 1px no-repeat; }
.sep { color: #777; }
h1 { font-size: clamp(3.5rem,5.85vw,5.8rem); font-weight: 800; letter-spacing: -.065em; line-height: 1.13; margin-block: 24px 20px; }
h1 span { display: block; font-size: .41em; letter-spacing: -.035em; margin-bottom: 9px; }
.lead { max-width: 29em; line-height: 1.95; color: #3d3d3b; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; border: 1px solid var(--ink); border-radius: 4px; padding: 10px 26px; background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.primary:hover { background: #363636; text-decoration: none; }
.hero-copy > .primary { margin-top: 24px; }
.preview { position: relative; overflow: hidden; isolation: isolate; aspect-ratio: 1.23; background: var(--yellow); background-image: linear-gradient(130deg, #ffe933, #ffde00 85%); }
.paper-front, .paper-back { position: absolute; background: white; box-shadow: 0 10px 25px #493c002e, 0 1px 4px #30260020; }
.paper-front { width: 79%; left: 9%; top: 9%; transform: rotate(-6deg); }
.paper-back { width: 76%; left: 16%; top: 12%; transform: rotate(6deg); }
.preview img { display: block; width: 100%; height: auto; }
figcaption { position: absolute; inset: auto 0 0; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 16px; color: #191919; background: #ffe100; border-top: 1px solid #998700; font-size: .82rem; font-weight: 650; }
figcaption a { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; text-decoration: none; }
.zoom-icon { font-size: 1.2rem; line-height: 1; }
.details { background: #f5f5f2; border-top: 1px solid var(--line); padding-block: clamp(44px,6vw,94px); }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(36px,8vw,124px); align-items: start; }
h2 { font-size: clamp(1.4rem,2.25vw,2.1rem); line-height: 1.45; letter-spacing: -.04em; }
.cases > p, .form-lead, .note, .case-list dd { color: var(--muted); }
.cases > p { margin-top: 14px; }
.case-list { margin-top: 30px; }
.case-list > div { padding: 18px 0; border-top: 1px solid #c6c6c1; }
.case-list > div:last-child { border-bottom: 1px solid #c6c6c1; }
.case-list dt { display: flex; align-items: center; gap: 14px; font-weight: 750; font-size: 1.13rem; }
.case-list dd { margin-top: 6px; }
.verdict { padding: 1px 9px; font-size: .78rem; border-radius: 2px; }
.allow { background: #dcebdc; color: #194c2a; }
.hold { background: #e5e2e2; color: #4e393a; }
.limited { background: #ffea9b; color: #513b00; }
.sheet-note { font-size: .94rem; }
.panel { background: white; padding: clamp(22px, 3vw, 44px); border: 1px solid var(--line); border-top: 5px solid var(--yellow); scroll-margin-top: 20px; }
.form-lead { font-size: .94rem; margin-top: 8px; }
#material label:not(.option) { display: block; font-weight: 700; margin: 20px 0 6px; }
label small { margin-left: 4px; color: #656560; font-size: .76rem; font-weight: 500; }
input:not([type=checkbox]):not([type=hidden]) { width: 100%; padding: 8px 12px; min-height: 46px; border: 1px solid #888983; background: #fff; border-radius: 3px; }
.option { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; font-size: .91rem; }
.option input { accent-color: var(--ink); width: 16px; height: 16px; margin: .3em 0 0; flex: none; }
.note { font-size: .82rem; margin-block: 12px; }
.panel .primary { width: 100%; margin-top: 14px; }
button:disabled { opacity: .6; }
#status { margin-top: 15px; }
footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; }
.footer-links a { font-size: .78rem; letter-spacing: .06em; }
dialog { padding: 0; width: min(95vw,1180px); max-width: 100%; max-height: 91vh; border: 0; color: var(--ink); box-shadow: 0 12px 60px #0004; }
dialog::backdrop { background: #101010b5; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.dialog-bar h2 { font-size: 1rem; }
.dialog-bar button { min-height: 44px; padding-inline: 14px; border: 1px solid var(--line); background: white; }
.dialog-body { overflow: auto; max-height: calc(90vh - 66px); }
.dialog-body img { display: block; width: 100%; min-width: 900px; height: auto; }
@media (max-width: 760px) {
  .masthead-inner { min-height: 62px; }
  .masthead .brand img { width: 120px; }
  .service-link { display: none; }
  .header-request { padding: 7px 13px; }
  .hero, .detail-grid { grid-template-columns: 1fr; }
  .hero { padding-block: 32px 36px; gap: 28px; }
  h1 { font-size: clamp(3.2rem,11vw,4.3rem); margin-block: 14px; }
  h1 br { display: none; }
  h1 span { font-size: 1.3rem; }
  .lead { line-height: 1.8; }
  .hero-copy > .primary { margin-top: 18px; }
  .preview { aspect-ratio: 1.48; }
  .paper-front { width: 73%; top: 8%; left: 12%; }
  .paper-back { width: 70%; top: 12%; left: 19%; }
  .detail-grid { gap: 34px; }
  .details { padding-block: 36px; }
  .footer-inner { min-height: 74px; }
}
@media (max-width: 430px) {
  h1 { font-size: clamp(2rem,8.5vw,2.35rem); }
  .wrap { width: calc(100% - 32px); }
  .panel { padding: 21px 15px; }
  .footer-links { gap: 16px; }
}
figcaption a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 374px) {
  .panel { margin-inline: -16px; padding-inline: 8px; }
}
