:root {
  --sky: #2ca5f2;
  --sky-deep: #087fca;
  --sky-pale: #ddf3ff;
  --paper: #fbfdfe;
  --ivory: #fff8ec;
  --mint: #ddefe7;
  --terracotta: #d98969;
  --ink: #274a5a;
  --muted: #667b86;
  --line: #cbe5f1;
  --white: #fff;
  --shadow: 0 18px 50px rgb(39 74 90 / 10%);
  --shadow-small: 0 8px 24px rgb(39 74 90 / 9%);
  --radius: 24px;
  --radius-small: 16px;
  --page: min(1200px, calc(100% - 48px));
  --font-heading: ui-rounded, "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --font-size-h1-home: clamp(2.15rem, 4.5vw, 4.2rem);
  --font-size-h1-page: clamp(1.85rem, 3.95vw, 3.8rem);
  --font-size-h1-detail: clamp(1.45rem, 2.7vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
  animation: page-fade-in .7s ease both;
}
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.35; letter-spacing: .015em; }
h1 { font-size: var(--font-size-h1-page); }
h2 { font-size: clamp(1.9rem, 3.2vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 4px; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid transparent;
  background: rgb(251 253 254 / 82%);
  backdrop-filter: blur(16px);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgb(39 74 90 / 6%); }
.header-inner {
  width: var(--page);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: clamp(220px, 25vw, 320px); aspect-ratio: 4 / 1; object-fit: contain; }
.brand--compact img { width: 178px; aspect-ratio: 880 / 747; }
.global-nav { display: flex; align-items: center; gap: clamp(10px, 1.45vw, 22px); font-size: .9rem; font-weight: 700; }
.global-nav > a:not(.button) { text-decoration: none; }
.global-nav > a:not(.button):hover { color: var(--sky-deep); }
.menu-button { display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.menu-button__line { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.35rem;
  border: 2px solid var(--sky);
  border-radius: 999px;
  background: var(--sky);
  box-shadow: 0 10px 24px rgb(44 165 242 / 24%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgb(44 165 242 / 30%); }
.button--small { min-height: 42px; padding: .5rem 1.05rem; }
.button--contact { padding-right: .9rem; padding-left: .9rem; white-space: nowrap; }
.button--ghost { background: #fff; color: var(--sky-deep); box-shadow: none; }
.button--light { border-color: #fff; background: #fff; color: var(--ink); box-shadow: 0 12px 30px rgb(0 0 0 / 24%); }
.button--light:hover { border-color: #d7f2ff; background: #eef9ff; box-shadow: 0 0 0 5px rgb(158 223 255 / 35%), 0 16px 36px rgb(0 0 0 / 28%); }
.button--sorairo:hover { border-color: #a8e442; box-shadow: 0 0 0 6px rgb(172 235 68 / 72%), 0 16px 36px rgb(63 111 14 / 24%); }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.page-qr { display: flex; align-items: center; gap: 14px; }
.page-qr p { margin: 0; color: var(--ink); font-size: .88rem; font-weight: 800; }
.page-qr img { width: 100px; height: 100px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; background: #fff; image-rendering: pixelated; }
.page-qr--hero { margin-top: 18px; }
.eyebrow { margin-bottom: .55rem; color: var(--sky-deep); font-size: .78rem; font-weight: 900; letter-spacing: .18em; }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 84px));
  overflow: hidden;
  background: linear-gradient(180deg, #eef9ff 0%, var(--paper) 100%);
}
.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -120px;
  width: 44vw;
  height: 260px;
  border-radius: 50%;
  background: var(--mint);
  content: "";
  opacity: .72;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  margin: 0 auto;
  padding: clamp(52px, 7vw, 90px) 0 clamp(70px, 9vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}
.hero__copy h1 { margin-bottom: 1.2rem; font-size: var(--font-size-h1-home); }
.hero__copy h1 span, .hero__copy h1 em { display: block; }
.hero__copy h1 em { color: var(--sky-deep); font-style: normal; white-space: nowrap; background: linear-gradient(transparent 70%, #bce8ff 70%); }
.hero__lead { margin-bottom: 1.8rem; font-size: clamp(1rem, 1.6vw, 1.2rem); }
.hero__people { position: relative; margin: 0; overflow: hidden; border: 8px solid #fff; border-radius: 34px; background: #fff; box-shadow: var(--shadow); transform: rotate(1deg); }
.hero__people > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero__people figcaption { position: absolute; right: 18px; bottom: 18px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.hero__people figcaption span { padding: .5rem .85rem; border-radius: 999px; background: rgb(255 255 255 / 92%); color: var(--sky-deep); box-shadow: 0 8px 18px rgb(39 74 90 / 12%); font-size: .78rem; font-weight: 900; }
.hero__cloud { position: absolute; width: 210px; height: 70px; border-radius: 999px; background: rgb(255 255 255 / 78%); }
.hero__cloud::before, .hero__cloud::after { position: absolute; bottom: 0; border-radius: 50%; background: inherit; content: ""; }
.hero__cloud::before { left: 34px; width: 92px; height: 92px; }
.hero__cloud::after { right: 28px; width: 72px; height: 72px; }
.hero__cloud--one { top: 58px; right: 8%; }
.hero__cloud--two { bottom: 110px; left: -90px; transform: scale(.8); }

.section { width: var(--page); margin: 0 auto; padding: clamp(74px, 9vw, 120px) 0; }
.section--soft { width: 100%; padding-right: max(24px, calc((100% - 1200px) / 2)); padding-left: max(24px, calc((100% - 1200px) / 2)); background: var(--ivory); }
.section--first { padding-top: 46px; }
.section-heading { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 58px); text-align: center; }
.section-heading h2 { margin-bottom: .8rem; }
.section-heading > p:last-child { color: var(--muted); }
.section-action, .back-link { margin: 40px 0 0; text-align: center; }

.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 44px); }
.works-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.work-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-small);
  transition: transform .22s ease, box-shadow .22s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-card[hidden] { display: none; }
.work-card__main { display: block; text-decoration: none; }
.work-card__visual { display: block; overflow: hidden; aspect-ratio: 5 / 4; background: var(--sky-pale); }
.work-card__visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.work-card:hover .work-card__visual img { transform: scale(1.02); }
.work-card__copy { display: block; min-height: 142px; padding: 20px 22px 48px; }
.work-card__copy strong { display: block; margin: .25rem 0 .65rem; font-family: var(--font-heading); font-size: clamp(1.05rem, 1.7vw, 1.32rem); line-height: 1.55; }
.work-card__category { color: var(--sky-deep); font-size: .78rem; font-weight: 900; }
.status { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .76rem; font-weight: 700; }
.status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px #edf8f3; content: ""; }
.status--pending::before { background: var(--terracotta); box-shadow: 0 0 0 3px #fff0ea; }
.download-link { position: absolute; right: 20px; bottom: 17px; color: var(--sky-deep); font-size: .78rem; font-weight: 800; }
.download-link--large { position: static; display: inline-block; margin-top: 18px; font-size: .9rem; }

.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.capability-card { position: relative; overflow: hidden; padding: 30px; border: 1px solid #ecdcbf; border-radius: var(--radius); background: #fff; }
.capability-card::after { position: absolute; right: -22px; bottom: -42px; width: 120px; height: 120px; border-radius: 50%; background: var(--sky-pale); content: ""; }
.capability-card__number { color: var(--terracotta); font-size: .8rem; font-weight: 900; letter-spacing: .16em; }
.capability-card h3 { position: relative; z-index: 1; margin: 1.2rem 0 .7rem; }
.capability-card p { position: relative; z-index: 1; margin: 0; color: var(--muted); }

.one-stop { display: grid; grid-template-columns: .75fr 1.25fr; align-items: center; gap: clamp(36px, 6vw, 88px); }
.one-stop__copy p:last-child { color: var(--muted); }
.flow { margin: 0; padding: 30px; border: 1px solid var(--line); border-radius: 30px; background: #fff; box-shadow: var(--shadow-small); list-style: none; }
.flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; gap: 0 12px; padding: 17px 0; border-bottom: 1px dashed var(--line); }
.flow li:last-child { border-bottom: 0; }
.flow li > span { grid-row: 1 / 3; display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--sky-pale); color: var(--sky-deep); font-weight: 900; }
.flow strong { font-family: var(--font-heading); }
.flow small { color: var(--muted); }

.about-cta { overflow: hidden; padding: clamp(38px, 6vw, 70px); display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 28px; border-radius: 34px; background: var(--sky-pale); }
.about-cta > div { max-width: 620px; }
.about-cta img { width: 100%; max-height: 350px; object-fit: cover; object-position: 50% 35%; border: 8px solid #fff; border-radius: 26px; transform: rotate(2deg); }

.site-footer { margin-top: 90px; padding: 58px 0 24px; border-top: 1px solid var(--line); background: #f3faff; }
.footer-back-to-top { width: var(--page); margin: 0 auto 30px; display: flex; justify-content: flex-end; }
.back-to-top--footer { width: 56px; height: 56px; display: inline-grid; place-items: center; border: 2px solid var(--sky); border-radius: 50%; background: #fff; color: var(--sky-deep); box-shadow: 0 10px 26px rgb(44 165 242 / 18%); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.back-to-top--footer:hover { transform: translateY(-4px); background: var(--sky-pale); box-shadow: 0 15px 34px rgb(44 165 242 / 26%); }
.back-to-top__arrow { font-size: 1.15em; line-height: 1; }
.back-to-top--compact { display: none; }
.detail-info-toggle { display: none; }
@media (max-width: 1199px) {
  .detail-page .back-to-top--compact { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 110; display: inline-flex; min-height: 44px; padding: .6rem .9rem; font-size: .875rem; box-shadow: 0 6px 24px rgb(39 74 90 / 18%); }
}
.footer-inner { width: var(--page); margin: 0 auto; display: grid; grid-template-columns: 1.05fr .8fr 1.15fr; gap: 34px; }
.footer-inner p { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; }
.footer-nav, .footer-links { display: grid; align-content: start; gap: 10px; }
.footer-nav a, .footer-links a { font-size: .9rem; text-decoration: none; }
.footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.footer-links a { min-width: 0; display: flex; align-items: center; gap: 9px; font-weight: 700; }
.footer-links img { width: 32px; height: 32px; flex: 0 0 32px; padding: 6px; border-radius: 9px; background: var(--sky); object-fit: contain; }
.footer-links a:hover { color: var(--sky-deep); }
.copyright { width: var(--page); margin: 42px auto 0; color: var(--muted); font-size: .76rem; text-align: center; }
.mobile-contact-bar { display: none; }

.page-main { min-height: 70vh; }
.breadcrumbs { width: var(--page); margin: 22px auto 0; color: var(--muted); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { margin-right: .7rem; color: var(--sky-deep); content: "›"; }
.breadcrumbs a:hover { color: var(--sky-deep); }
.detail-summary { margin: 0; }
@media (max-width: 1199px) { .detail-page .breadcrumbs { display: none; } }
.page-hero { width: var(--page); margin: 0 auto; padding: clamp(72px, 9vw, 120px) 0 52px; text-align: center; }
.page-hero h1 { margin-bottom: 1rem; }
.page-hero > p:last-child { max-width: 760px; margin-right: auto; margin-left: auto; color: var(--muted); }
.page-hero__intro { max-width: 920px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 8fr) minmax(220px, 4fr); align-items: center; gap: 28px; text-align: left; }
.page-hero__intro > p { margin: 0; color: var(--muted); }
.page-qr--works { justify-content: flex-end; }
.page-hero--works::after { display: block; width: 100px; height: 8px; margin: 30px auto 0; border-radius: 99px; background: linear-gradient(90deg, var(--sky), var(--mint)); content: ""; }
.filter-bar { margin-bottom: 34px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.filter-button { min-height: 44px; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 800; }
.filter-button span { color: var(--muted); font-size: .78rem; }
.filter-button.is-active { border-color: var(--sky); background: var(--sky); color: #fff; }
.filter-button.is-active span { color: #fff; }
.download-index-link { margin-top: 46px; text-align: center; }

.detail-main { width: var(--page); margin: 0 auto; padding: clamp(58px, 8vw, 90px) 0 80px; }
.detail-heading { max-width: 900px; margin: 0 auto 48px; text-align: center; }
.detail-heading h1 { margin-bottom: .8rem; font-size: var(--font-size-h1-detail); }
.detail-heading__intro { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: center; text-align: left; }
.detail-heading__intro > * { padding: 10px; }
.detail-heading__back { margin: 0; }
.detail-heading__back .button { width: 100%; }
.preview-note { color: var(--muted); }
.preview-layout { display: grid; gap: 46px; }
.preview-layout__compare { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); align-items: start; gap: 30px; }
.device-preview { min-width: 0; }
.device-preview__label { margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 900; }
.device-preview__label small { color: var(--muted); font-size: .76rem; font-weight: 700; }
.device-frame { overflow: hidden; min-height: 0; padding: 9px; border: 1px solid #b9d6e3; border-radius: 22px; background: #dceaf0; box-shadow: var(--shadow); }
.device-preview--desktop .device-frame { --device-ratio: 1440 / 1000; border-radius: 22px 22px 8px 8px; }
.device-preview--tablet .device-frame { --device-ratio: 820 / 1180; }
.device-preview--mobile .device-frame { --device-ratio: 390 / 844; }
.device-preview--mobile .device-frame { max-width: 360px; margin: 0 auto; padding: 10px; border-color: #b6ced9; border-radius: 38px; background: linear-gradient(145deg, #e7f0f4, #c8d9e1); }
.device-frame__bar { height: 25px; padding: 7px 10px; display: flex; gap: 6px; border-radius: 13px 13px 0 0; background: #fff; }
.device-frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.preview-scroll { overflow-x: hidden; overflow-y: auto; width: 100%; min-height: 0; aspect-ratio: var(--device-ratio); border-radius: 0 0 12px 12px; background: #fff; overscroll-behavior: contain; scrollbar-color: var(--sky-deep) #e9f4f9; scrollbar-width: auto; }
.device-preview--desktop .preview-scroll { overflow-y: scroll; }
.device-preview--desktop .preview-scroll::-webkit-scrollbar { width: 14px; }
.device-preview--desktop .preview-scroll::-webkit-scrollbar-track { background: #e9f4f9; }
.device-preview--desktop .preview-scroll::-webkit-scrollbar-thumb { border: 3px solid #e9f4f9; border-radius: 999px; background: var(--sky-deep); }
.device-preview--tablet .preview-scroll,
.device-preview--mobile .preview-scroll { cursor: grab; scrollbar-width: none; }
.device-preview--tablet .preview-scroll::-webkit-scrollbar,
.device-preview--mobile .preview-scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.device-preview--tablet .preview-scroll.is-dragging,
.device-preview--mobile .preview-scroll.is-dragging { cursor: grabbing; }
.device-preview--mobile .device-frame__bar { border-radius: 25px 25px 0 0; box-shadow: 0 0 0 1px rgb(159 187 199 / 35%) inset; }
.device-preview--mobile .preview-scroll { border-radius: 0 0 25px 25px; box-shadow: 0 0 0 1px rgb(159 187 199 / 35%) inset; }
.preview-scroll img { width: 100%; height: auto; min-height: 100%; display: block; object-fit: contain; object-position: top; -webkit-user-drag: none; user-select: none; }
.work-site-access { padding: 22px 26px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #f3faff, #fff); box-shadow: var(--shadow-small); }
.work-site-access__action .eyebrow { margin-bottom: 9px; }
.work-site-access__qr { display: grid; grid-template-columns: auto 100px; align-items: center; gap: 16px; }
.work-site-access__qr p { margin: 0; color: var(--ink); font-weight: 800; white-space: nowrap; }
.work-site-access__qr img { width: 100px; height: 100px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; image-rendering: pixelated; }
.spec-card { max-width: 900px; margin: 60px auto 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.spec-card h2 { margin-bottom: 1.4rem; font-size: 1.7rem; }
.spec-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.spec-card dl > div { padding: 17px; border-radius: var(--radius-small); background: #f3faff; }
.spec-card dt { color: var(--muted); font-size: 1rem; font-weight: 800; }
.spec-card dd { margin: .35rem 0 0; font-size: 1rem; font-weight: 400; }

.page-hero--about { padding-bottom: 28px; }
.page-hero--about h1 { color: var(--ink); }
.about-story { padding-top: 34px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 90px); }
.about-story__visual { position: relative; }
.about-story__visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 7px solid #fff; border-radius: 28px; box-shadow: var(--shadow); transform: rotate(-1deg); }
.about-story__copy > p { font-size: 1.08rem; }
.check-list, .compact-list { padding: 0; list-style: none; }
.check-list li { position: relative; margin: 12px 0; padding-left: 32px; }
.check-list li::before { position: absolute; top: .55em; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--mint); color: var(--sky-deep); content: "✓"; font-size: .78rem; font-weight: 900; line-height: 19px; text-align: center; }
.link-panel, .wiz-panel { display: grid; grid-template-columns: 1fr 230px; align-items: center; gap: clamp(28px, 7vw, 80px); padding: clamp(34px, 6vw, 68px); border-radius: 34px; }
.link-panel { background: var(--sky-pale); }
.link-panel h2, .wiz-panel h2 { margin-bottom: .8rem; }
.qr { width: 100%; max-width: 220px; aspect-ratio: 1; object-fit: contain; image-rendering: auto; }
.contact-section { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.contact-card { min-width: 0; padding: 24px; display: flex; align-items: center; gap: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-small); text-decoration: none; }
.contact-card .qr { width: 118px; flex: 0 0 118px; }
.contact-card small, .contact-card strong { display: block; }
.contact-card small { color: var(--muted); font-size: .82rem; }
.contact-card strong { overflow-wrap: anywhere; font-family: var(--font-heading); font-size: clamp(1rem, 2vw, 1.4rem); }
.wiz-panel { color: #fff; background: var(--ink); }
.wiz-panel .eyebrow { color: #9edfff; }
.compact-list { display: grid; gap: 8px; margin-bottom: 28px; }
.compact-list li { padding-left: 1.2em; position: relative; }
.compact-list li::before { position: absolute; left: 0; color: #9edfff; content: "・"; }
.qr--wiz { border: 12px solid #fff; border-radius: 18px; background: #fff; }

.legal-content { width: min(860px, calc(100% - 48px)); margin: 0 auto; padding: 10px 0 70px; }
.legal-content section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.legal-content h2 { margin-bottom: .8rem; font-size: 1.45rem; }
.legal-content p { margin-bottom: 0; }
.legal-content a { color: var(--sky-deep); font-weight: 700; }
.legal-date { margin-top: 36px; color: var(--muted); font-size: .9rem; }
.download-table-wrap { width: var(--page); margin: 0 auto 80px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.download-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.download-table th, .download-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.download-table th { background: #eef9ff; font-size: .8rem; white-space: nowrap; }
.download-table code { font-size: .75rem; overflow-wrap: anywhere; }
.download-table .download-link { position: static; white-space: nowrap; }
.not-found { width: var(--page); min-height: 62vh; margin: 0 auto; padding: 110px 0; text-align: center; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .menu-button { display: block; }
  .global-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    padding: 20px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: grid; }
  .global-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 1023px) {
  :root { --page: min(100% - 40px, 940px); }
  .hero__inner { grid-template-columns: .9fr 1.1fr; gap: 24px; }
  .hero__people { border-width: 6px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card { display: grid; grid-template-columns: 50px 1fr; column-gap: 16px; }
  .capability-card h3 { margin: 0 0 .4rem; }
  .capability-card p { grid-column: 2; }
  .preview-layout__compare { grid-template-columns: 1.2fr .8fr; gap: 20px; }
  .footer-inner { grid-template-columns: 1.2fr 1fr 1fr; }
  .about-story { gap: 36px; }
}

@media (max-width: 767px) {
  :root { --page: calc(100% - 32px); --radius: 20px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); font-size: 1rem; }
  .header-inner { min-height: 72px; }
  .brand img { width: 220px; }
  .menu-button { display: block; }
  .global-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 16px;
    left: 16px;
    padding: 20px;
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .global-nav.is-open { display: grid; }
  .global-nav a { min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .hero { min-height: 0; }
  .hero__inner { padding-top: 52px; grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead br { display: none; }
  .button-row { justify-content: center; }
  .page-qr--hero { justify-content: center; }
  .hero__people { margin-top: 12px; }
  .works-grid, .works-grid--featured { grid-template-columns: 1fr; }
  .work-card__copy { min-height: 130px; }
  .one-stop { grid-template-columns: 1fr; }
  .about-cta { grid-template-columns: 1fr; text-align: center; }
  .about-cta img { max-height: 290px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-nav, .footer-links { gap: 8px; }
  .footer-back-to-top { justify-content: center; }
  .mobile-contact-bar { position: fixed; z-index: 160; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: 1fr 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--line); background: rgb(255 255 255 / 96%); box-shadow: 0 -8px 26px rgb(39 74 90 / 12%); backdrop-filter: blur(12px); }
  .mobile-contact-bar a { min-height: 64px; display: flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: var(--sky); font-size: .88rem; font-weight: 800; text-decoration: none; }
  .mobile-contact-bar a + a { border-left: 1px solid rgb(255 255 255 / 50%); background: var(--sky-deep); }
  .mobile-contact-bar span { font-size: 1.15rem; }
  .filter-bar { display: grid; grid-template-columns: 1fr; }
  .page-hero__intro { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .page-qr--works { justify-content: center; }
  .preview-layout__compare { grid-template-columns: 1fr; }
  .detail-heading__intro { grid-template-columns: 1fr; }
  .spec-card dl { grid-template-columns: 1fr; }
  .about-story { grid-template-columns: 1fr; }
  .link-panel, .wiz-panel { grid-template-columns: 1fr; text-align: center; }
  .link-panel .qr, .wiz-panel .qr { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 18px; gap: 16px; }
  .contact-card .qr { width: 92px; flex-basis: 92px; }
  .legal-content { width: var(--page); }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .detail-page { overflow: hidden; background: #fff; }
  .detail-page .site-header,
  .detail-page .site-footer,
  .detail-page .detail-heading,
  .detail-page .device-preview--desktop,
  .detail-page .device-preview--mobile,
  .detail-page .work-site-access,
  .detail-page .spec-card,
  .detail-page .back-link,
  .detail-page .device-preview__label,
  .detail-page .device-frame__bar { display: none; }
  .detail-page .detail-main { width: 100%; padding: 0; }
  .detail-page .preview-layout,
  .detail-page .preview-layout__compare { display: block; }
  .detail-page .device-frame { height: 100dvh; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .detail-page .preview-scroll { height: 100dvh; aspect-ratio: auto; border-radius: 0; }
  .detail-page .preview-scroll img { width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: top; }
}

@media (max-width: 767px) {
  .detail-page { overflow: hidden; background: #fff; }
  .detail-page .site-header,
  .detail-page .site-footer,
  .detail-page .detail-heading,
  .detail-page .device-preview--desktop,
  .detail-page .device-preview--tablet,
  .detail-page .work-site-access,
  .detail-page .spec-card,
  .detail-page .back-link,
  .detail-page .device-preview__label,
  .detail-page .device-frame__bar { display: none; }
  .detail-page .detail-main { width: 100%; padding: 0; }
  .detail-page .preview-layout,
  .detail-page .preview-layout__compare { display: block; }
  .detail-page .device-preview--mobile .device-frame { max-width: none; height: 100dvh; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .detail-page .preview-scroll { height: 100dvh; aspect-ratio: auto; border-radius: 0; }
  .detail-page .preview-scroll img { width: 100%; height: auto; min-height: 0; object-fit: contain; object-position: top; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Fullscreen previews remain the default; their real text is also accessible on mobile. */
@media (max-width: 1199px) {
  .detail-info-toggle { position: fixed; left: 16px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); z-index: 110; display: inline-flex; min-height: 44px; padding: .6rem .9rem; font-size: .875rem; box-shadow: 0 6px 24px rgb(39 74 90 / 18%); }
  .detail-page.is-detail-info { overflow: auto; background: var(--paper); }
  .detail-page.is-detail-info .site-header,
  .detail-page.is-detail-info .site-footer,
  .detail-page.is-detail-info .breadcrumbs,
  .detail-page.is-detail-info .detail-heading,
  .detail-page.is-detail-info .back-link { display: block; }
  .detail-page.is-detail-info .detail-main { width: var(--page); padding: 42px 0 80px; }
  .detail-page.is-detail-info .preview-layout__compare { display: none; }
  .detail-page.is-detail-info .work-site-access,
  .detail-page.is-detail-info .spec-card { display: grid; }
  .detail-page.is-detail-info .back-to-top--compact { display: none; }
}
@media (max-width: 767px) {
  .detail-page.is-detail-info .work-site-access { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 24px; text-align: center; }
  .detail-page.is-detail-info .work-site-access__qr { justify-self: center; }
  .detail-page .back-to-top--compact { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

@media print {
  .site-header, .site-footer, .button, .filter-bar, .download-link { display: none !important; }
  body { background: #fff; color: #000; }
  .work-card, .device-frame, .spec-card { box-shadow: none; break-inside: avoid; }
}
