:root {
  font: 16px/1.65 system-ui, "Hiragino Sans", Meiryo, sans-serif;
  color: #172b38;
  background: #f3f7f8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
.demo-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px clamp(14px, 3vw, 30px); background: #fff; border-bottom: 1px solid #dce5e8; }
.demo-bar a { color: #172b38; text-decoration: none; }
.demo-bar span { color: #52646d; margin-left: 8px; }
#welcome { width: min(100% - 36px, 780px); margin: clamp(36px, 10vh, 105px) auto; padding: clamp(20px, 5vw, 50px); border: 1px solid #dce5e8; border-radius: 14px; background: white; }
h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.3; color: #143b44; }
h2 { margin: 0; font-size: 1.2rem; }
p { margin: .75em 0; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 14px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid #bccfd2; border-radius: 8px; padding: 8px 15px; background: #fff; color: #175b56; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #eaf4f2; }
.primary { background: #08746b; color: #fff; border-color: #08746b; }
.primary:hover { background: #065b54; }
button:disabled { opacity: .55; cursor: default; }
:focus-visible { outline: 3px solid #419c94; outline-offset: 3px; }
.hint, .demo-status { color: #52646d; font-size: .9rem; }
.demo-status { margin: 0; padding: 8px 18px; background: #e4f6f0; }
iframe { display: block; flex: none; width: 100%; max-width: 100%; height: 0; border: 0; background: #f3f7f8; }
iframe[data-loading] { visibility: hidden; }
dialog { width: min(100% - 36px, 460px); padding: 22px; border: 1px solid #c5d4d9; border-radius: 12px; color: #172b38; }
dialog::backdrop { background: #142d3a66; }

@media (max-width: 640px) {
  .demo-bar { padding: 7px 12px; font-size: .875rem; }
  .demo-bar span { margin-left: 4px; }
  .demo-bar button { min-height: 44px; padding: 6px 10px; }
  #welcome { margin-top: 28px; }
  .demo-actions > * { min-height: 44px; max-width: 100%; }
}
