:root {
  --ink: #171914;
  --paper: #f3f0e6;
  --acid: #d8ff3e;
  --orange: #ff5a36;
  --muted: #6d7067;
  --line: rgba(23, 25, 20, 0.18);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  min-height: 100vh;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}
.site-header {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 25px; height: 25px; display: flex; align-items: center; gap: 2px; transform: rotate(-8deg); }
.brand-mark span { display: block; border: 2px solid var(--ink); border-left: 0; border-radius: 0 100% 100% 0; height: 12px; width: 5px; }
.brand-mark span:nth-child(2) { height: 18px; }
.brand-mark span:nth-child(3) { height: 24px; }
.header-status { display: flex; align-items: center; gap: 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .11em; font-weight: 800; }
.status-dot { width: 8px; height: 8px; background: #e8a72c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(232,167,44,.15); }
.header-status.supported .status-dot { background: #5fa739; box-shadow: 0 0 0 4px rgba(95,167,57,.15); }
.header-status.unsupported .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255,90,54,.15); }
main { overflow: hidden; }
.hero { padding: 24px clamp(20px, 5vw, 72px) 72px; }
.eyebrow { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(350px, .9fr); min-height: 600px; }
.hero-copy { padding: clamp(48px, 7vw, 100px) 7vw 32px 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
h1 { margin: 0; font-family: var(--serif); font-size: clamp(61px, 8vw, 126px); font-weight: 400; line-height: .94; letter-spacing: -.055em; }
h1 em { color: var(--orange); font-weight: 400; }
html[lang="ja"] h1 { font-size: clamp(52px, 5.5vw, 72px); line-height: 1.16; letter-spacing: -.035em; }
html[lang="ja"] h1 em { display: inline-block; white-space: nowrap; }
.lead { max-width: 590px; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.55; color: #4d5048; margin: 42px 0 32px; }
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.scan-button { border: 0; border-radius: 0; color: var(--paper); background: var(--ink); min-width: 242px; padding: 19px 20px; display: flex; align-items: center; gap: 15px; cursor: pointer; font-weight: 800; transition: transform .2s, background .2s; box-shadow: 7px 7px 0 var(--acid); }
.scan-button:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--acid); }
.scan-button:active { transform: translate(3px, 3px); box-shadow: 4px 4px 0 var(--acid); }
.scan-button:disabled { cursor: not-allowed; opacity: .65; box-shadow: 7px 7px 0 #b7baad; }
.button-icon { font-size: 27px; line-height: 0; }
.button-arrow { margin-left: auto; }
.text-button { border: 0; background: none; border-bottom: 1px solid var(--ink); padding: 7px 0; cursor: pointer; font-weight: 700; }
.secure-note { margin-top: 28px; font-size: 11px; font-weight: 700; letter-spacing: .03em; color: var(--muted); }
.secure-note span { color: #5fa739; margin-right: 5px; }
.scanner-panel { background: var(--ink); color: var(--paper); min-height: 520px; padding: 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.scanner-panel::after { content: ""; position: absolute; width: 170px; height: 170px; right: -75px; bottom: -75px; background: var(--acid); transform: rotate(45deg); }
.scanner-meta { display: flex; justify-content: space-between; font-size: 9px; font-weight: 900; letter-spacing: .15em; color: #a9aca3; z-index: 2; }
.scanner-visual { min-height: 365px; flex: 1; display: grid; place-items: center; position: relative; }
.orbit { position: absolute; border: 1px solid rgba(243,240,230,.16); border-radius: 50%; }
.orbit-outer { width: 320px; height: 320px; }
.orbit-inner { width: 220px; height: 220px; }
.phone-shape { position: relative; width: 115px; height: 205px; border: 3px solid var(--paper); border-radius: 22px; background: #22251e; display: grid; place-items: center; z-index: 3; transform: rotate(8deg); box-shadow: 18px 20px 0 rgba(0,0,0,.32); }
.phone-shape::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(243,240,230,.25); border-radius: 15px; }
.phone-speaker { position: absolute; top: 10px; width: 29px; height: 4px; background: var(--paper); border-radius: 5px; }
.nfc-glyph { display: flex; align-items: center; gap: 3px; transform: rotate(-8deg); }
.nfc-glyph i { display: block; width: 9px; border: 3px solid var(--acid); border-left: 0; border-radius: 0 100% 100% 0; height: 27px; }
.nfc-glyph i:nth-child(2) { height: 43px; }.nfc-glyph i:nth-child(3) { height: 60px; }
.scan-wave { display: none; position: absolute; width: 180px; height: 180px; border: 2px solid var(--acid); border-radius: 50%; opacity: 0; }
.scanner-panel.scanning .scan-wave { display: block; animation: pulse 2s infinite; }
.scanner-panel.scanning .wave-two { animation-delay: 1s; }
.scanner-panel.scanning .phone-shape { animation: hover 2s ease-in-out infinite; }
.scanner-panel.success { background: #234529; }.scanner-panel.error { background: #56291f; }
.scanner-message { border-top: 1px solid rgba(243,240,230,.25); padding-top: 20px; display: flex; flex-direction: column; gap: 7px; max-width: 85%; z-index: 2; }
.scanner-message strong { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.scanner-message span { color: #b9bcb3; font-size: 13px; line-height: 1.5; }
@keyframes pulse { 0% { transform: scale(.55); opacity:.8 } 100% { transform: scale(2.3); opacity:0 } }
@keyframes hover { 50% { transform: rotate(8deg) translateY(-10px); } }
.results-section { background: #e8e4d8; padding: 72px clamp(20px, 5vw, 72px); border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 35px; }
.kicker { font-size: 10px; letter-spacing: .16em; font-weight: 900; color: var(--orange); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 68px); letter-spacing: -.045em; margin: 9px 0 0; }
.result-actions { display: flex; gap: 8px; }
.small-button { border: 1px solid var(--ink); background: transparent; padding: 11px 15px; cursor: pointer; font-weight: 800; font-size: 12px; }
.small-button:hover { color: var(--paper); background: var(--ink); }
.tag-summary { display: grid; grid-template-columns: 2fr 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 18px; }
.summary-item { padding: 20px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.summary-item:last-child { border: 0; }.summary-item span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.summary-item strong { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 15px; word-break: break-all; }
.records { display: grid; gap: 12px; }
.record-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); border: 1px solid var(--ink); background: var(--paper); }
.record-index { border-right: 1px solid var(--ink); padding: 18px; font-family: var(--serif); font-size: 24px; color: var(--orange); }
.record-content { padding: 18px 22px; min-width: 0; }
.record-header { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 13px; }
.record-type { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.record-meta { color: var(--muted); font-family: ui-monospace, monospace; font-size: 11px; }
.record-value { line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.record-value a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
details { margin-top: 13px; border-top: 1px solid var(--line); padding-top: 10px; }
summary { cursor: pointer; font-size: 11px; font-weight: 800; color: var(--muted); }
.hex-view { font: 11px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; color: #565950; overflow-wrap: anywhere; }
.info-section { display: grid; grid-template-columns: repeat(3, 1fr); padding: 70px clamp(20px, 5vw, 72px); gap: 1px; background: var(--ink); }
.info-section article { background: var(--paper); padding: clamp(24px, 4vw, 45px); min-height: 260px; }
.info-number { font-family: var(--serif); font-style: italic; color: var(--orange); font-size: 21px; }
.info-section h3 { font-family: var(--serif); font-size: 31px; font-weight: 400; margin: 56px 0 14px; letter-spacing: -.03em; }
.info-section p { color: var(--muted); line-height: 1.6; margin: 0; max-width: 330px; }
.compatibility { padding: 80px clamp(20px, 5vw, 72px); display: grid; grid-template-columns: .8fr 1.2fr; gap: 8vw; }
.requirements { border-top: 1px solid var(--ink); }
.requirements > div { display: grid; grid-template-columns: 38px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.check { width: 31px; height: 31px; border-radius: 50%; background: var(--acid); display: grid; place-items: center; font-weight: 900; }
.requirements p { margin: 0; line-height: 1.55; color: var(--muted); }.requirements strong { color: var(--ink); }
footer { min-height: 80px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 5vw, 72px); font-size: 10px; letter-spacing: .12em; font-weight: 800; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: var(--paper); padding: 13px 18px; font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transition: .25s; z-index: 30; box-shadow: 5px 5px 0 var(--acid); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 850px) {
  .hero-grid, .compatibility { grid-template-columns: 1fr; }
  .hero-copy { padding-right: 0; min-height: 510px; }
  .scanner-panel { min-height: 560px; }
  .info-section { grid-template-columns: 1fr; }
  .info-section article { min-height: 220px; }
  .info-section h3 { margin-top: 35px; }
  .tag-summary { grid-template-columns: 1fr; }
  .summary-item { border-right: 0; border-bottom: 1px solid var(--ink); }
  .section-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .site-header { height: 65px; }.header-status { font-size: 9px; }
  .hero { padding-left: 15px; padding-right: 15px; }
  h1 { font-size: 62px; line-height: .98; letter-spacing: -.045em; }
  html[lang="ja"] h1 { font-size: clamp(34px, 11vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
  .lead { margin-top: 34px; }
  .actions { align-items: stretch; flex-direction: column; width: 100%; }.scan-button { width: calc(100% - 8px); }.text-button { align-self: flex-start; }
  .scanner-panel { padding: 18px; min-height: 520px; }.orbit-outer { width: 290px; height: 290px; }
  .result-actions { width: 100%; }.small-button { flex: 1; }
  .record-card { grid-template-columns: 46px 1fr; }.record-index { padding: 13px; }.record-content { padding: 16px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
