  :root {
    --bg:        #0d0e10;
    --bg-page:   #c7c7c5;
    --bg-body:   #2a2c30;
    --bg-panel:  #313338;
    --line:      #45474d;
    --line-soft: #35373c;
    --text-hi:   #e9e9e7;
    --text-mid:  #9a9ca1;
    --text-low:  #5c5e63;
    --accent:    #02ffc8;
    --accent-dim: rgba(95, 211, 196, 0.12);

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans JP', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --container: 1000px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  /* アコーディオン開閉でスクロールバーが出たり消えたりして
     ページ全体が左右にズレるのを防ぐため、常にスクロールバー分の幅を確保する */
  html { background: var(--bg-page); scroll-behavior: smooth; overflow-y: scroll; scrollbar-gutter: stable; }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.001ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.001ms !important;
      scroll-behavior: auto !important;
    }
    .scan-sweep { display: none; }
  }

  /* ---------- Ambient grid light sweep ---------- */
  .scan-sweep {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg,
      transparent 47.5%,
      rgba(95, 211, 196, 0.35) 50%,
      transparent 52.5%);
    background-size: 260% 260%;
    mix-blend-mode: screen;
    -webkit-mask-image:
      linear-gradient(#fff 1px, transparent 1px),
      linear-gradient(90deg, #fff 1px, transparent 1px);
    -webkit-mask-size: 48px 48px;
    -webkit-mask-repeat: repeat;
    mask-image:
      linear-gradient(#fff 1px, transparent 1px),
      linear-gradient(90deg, #fff 1px, transparent 1px);
    mask-size: 48px 48px;
    mask-repeat: repeat;
    animation: sweep 12s ease-in-out infinite;
  }

  @keyframes sweep {
    0%   { background-position: -70% -70%; opacity: 0; }
    10%  { opacity: 1; }
    45%  { background-position: 170% 170%; opacity: 0; }
    100% { background-position: 170% 170%; opacity: 0; }
  }

  body {
    background: var(--bg-page);
    color: var(--text-hi);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }

  .page-shell {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    max-width: calc(var(--container) + 48px);
    margin: 0 auto;
    background: var(--bg-body);
    background-image:
      linear-gradient(var(--line-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 48px 48px;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.08);
  }

  .wrap {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
  }

  a { color: inherit; text-decoration: none; }

  /* ---------- Utility: mono label ---------- */
  .eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
  }

  /* ---------- Header ---------- */
  header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(13, 14, 16, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }

  .header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* headerがposition:stickyで上部に固定されているため、
     scrollIntoViewでその分だけ余白を空けて隠れないようにする */
  section.collapsible {
    scroll-margin-top: 90px;
  }

  .logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: baseline;
  }

  .logo-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    animation: typing 0.7s steps(5, end) forwards;
    animation-delay: 2.3s;
  }

  @keyframes typing {
    to { width: 5.2ch; }
  }

  .logo-cursor {
    color: var(--accent);
    opacity: 0;
    animation: blink-cursor 1s step-end infinite;
    animation-delay: 2.3s;
  }

  @keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
  }

  nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    opacity: 0;
    animation: fade-up 0.5s ease forwards;
    animation-delay: 4.8s;
  }

  nav a {
    position: relative;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    transition: color 0.2s ease;
  }

  nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.25s ease;
  }

  nav a:hover { color: var(--text-hi); }
  nav a:hover::after { width: 100%; }

  .status-pill {
    display: none;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-mid);
  }

  .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff4d4d;
    box-shadow: 0 0 8px #ff4d4d;
    animation: power-led 1.2s ease forwards;
  }

  @keyframes power-led {
    0%, 90%   { background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; }
    100%      { background: #3d8bff; box-shadow: 0 0 8px #3d8bff; }
  }

  @media (min-width: 720px) {
    .status-pill { display: flex; }
  }

  /* ---------- Header: mobile stacked layout ---------- */
  @media (max-width: 719px) {
    .header-inner {
      flex-direction: column;
      align-items: flex-start;
      justify-content: flex-start;
      gap: 6px;
    }

    .status-pill {
      display: flex;
      order: -2;
      align-self: flex-end;
    }

    .logo {
      order: -1;
    }

    nav {
      width: 100%;
    }

    nav ul {
      width: 100%;
      flex-wrap: wrap;
      justify-content: center;
      gap: 22px;
      row-gap: 12px;
    }
  }

  /* ---------- Load-in / scroll reveal ---------- */
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .index-anim {
    opacity: 0;
    animation: fade-up 0.7s ease forwards;
  }

  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ---------- 起動演出スキップ(WPページからTOPへ戻ってきた場合) ---------- */
  body.skip-boot .logo-text {
    width: 5.2ch;
    animation: none;
  }

  body.skip-boot .logo-cursor {
    opacity: 1;
    animation: blink-cursor 1s step-end infinite;
    animation-delay: 0s;
  }

  body.skip-boot nav ul {
    opacity: 1;
    animation: none;
  }

  body.skip-boot .status-dot {
    animation: none;
    background: #3d8bff;
    box-shadow: 0 0 8px #3d8bff;
  }

  body.skip-boot .index-anim {
    opacity: 1;
    animation: none;
  }

  /* ---------- Index (first view) ---------- */
  .index {
    position: relative;
    padding: 120px 0 96px;
    border-bottom: 1px solid var(--line);
  }

  @media (max-width: 719px) {
    .index {
      padding-top: 70px;
    }
  }

  /* ---------- Visitor HUD (PC only) ---------- */
  .visitor-hud {
    display: none;
  }

  @media (min-width: 720px) {
    .visitor-hud {
      display: block;
      position: absolute;
      right: 24px;
      bottom: 24px;
      min-width: 220px;
      padding: 16px 18px;
      background: rgba(13, 14, 16, 0.55);
      backdrop-filter: blur(6px);
      border: 1px solid var(--line);
      border-right: 2px solid var(--accent);
    }
  }

  .visitor-hud .hud-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
  }

  .visitor-hud .hud-title::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: blink-cursor 1.4s step-end infinite;
  }

  .visitor-hud dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 6px 16px;
    font-family: var(--font-mono);
    font-size: 11px;
  }

  .visitor-hud dt {
    color: var(--text-low);
    letter-spacing: 0.06em;
  }

  .visitor-hud dd {
    color: var(--text-hi);
    text-align: right;
    word-break: break-all;
  }

  .index .eyebrow { margin-bottom: 20px; display: block; }

  .index h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(48px, 10vw, 96px);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
  }

  .index p.lead {
    max-width: 520px;
    color: var(--text-mid);
    font-size: 16px;
    margin-bottom: 40px;
  }

  .index-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-low);
    margin-bottom: 44px;
    letter-spacing: 0.04em;
  }

  .index-meta span b {
    color: var(--text-mid);
    font-weight: 500;
  }

  .index-meta span b.status-dev {
    color: #ff4d4d;
    text-shadow: 0 0 8px rgba(255, 77, 77, 0.5);
  }

  .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }

  .btn {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    padding: 14px 28px;
    border: 1px solid var(--line);
    display: inline-block;
    transition: border-color 0.2s ease, background 0.2s ease;
  }

  .btn-primary {
    background: var(--accent);
    color: #0d0e10;
    border-color: var(--accent);
    font-weight: 500;
  }

  .btn-primary:hover { background: #79ddd0; }

  .btn-ghost { color: var(--text-hi); }
  .btn-ghost:hover { border-color: var(--text-mid); }

  /* ---------- Bracket panel (signature element) ---------- */
  .panel {
    position: relative;
    border: 1px solid var(--line);
    background: var(--bg-panel);
    padding: 40px;
  }

  .panel::before,
  .panel::after,
  .panel .corner-tl,
  .panel .corner-br {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--accent);
  }

  .panel::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
  }

  .panel::after {
    bottom: -1px; right: -1px;
    border-left: none; border-top: none;
  }

  /* ---------- Section shell (click-to-expand accordion) ---------- */
  /* max-height:0 で潰す要素自体にpaddingを持たせると潰れきらないことがあるため、
     paddingは内側の.block-padに逃がしている */
  .block-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease;
  }

  .block-pad {
    padding: 88px 0;
    border-bottom: 1px solid var(--line);
  }

  .block-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 48px;
  }

  #contact .block-head {
    margin-bottom: 20px;
  }

  .block-head h2 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 18px;
    color: var(--text-mid);
  }

  /* ---------- Design ---------- */
  .design-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  @media (min-width: 720px) {
    .design-grid { grid-template-columns: auto 1.2fr 1fr; }
  }

  .release-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    object-fit: cover;
    display: block;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    align-self: start;
  }

  .design-grid p { color: var(--text-mid); font-size: 15px; }
  .design-grid p + p { margin-top: 16px; }

  @media (max-width: 719px) {
    .release-cta {
      display: block;
      width: fit-content;
      margin-left: auto;
      margin-right: auto;
    }
  }

  .spec-list {
    font-family: var(--font-mono);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .spec-list dt {
    color: var(--text-low);
    letter-spacing: 0.06em;
  }

  .spec-list dd {
    color: var(--text-hi);
    margin: 4px 0 16px;
  }

  /* ---------- Contact form ---------- */
  .hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 480px;
  }

  .form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-row label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-low);
  }

  .form-row input,
  .form-row textarea {
    background: var(--bg-body);
    border: 1px solid var(--line);
    color: var(--text-hi);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 12px 14px;
    resize: vertical;
    transition: border-color 0.2s ease;
  }

  .form-row input:focus,
  .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
  }

  /* ブラウザのオートフィル(自動入力)候補を選んだ際に、背景が白くなるのを防ぐ */
  .form-row input:-webkit-autofill,
  .form-row input:-webkit-autofill:hover,
  .form-row input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-hi);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-body) inset;
    box-shadow: 0 0 0px 1000px var(--bg-body) inset;
    transition: background-color 9999s ease-in-out 0s;
  }

  .form-row input:autofill {
    color: var(--text-hi);
    box-shadow: 0 0 0px 1000px var(--bg-body) inset;
  }

  .contact-form .btn {
    align-self: flex-start;
    background: var(--accent);
    color: #0d0e10;
    border-color: var(--accent);
    font-weight: 500;
    cursor: pointer;
  }

  .contact-form .btn:hover { background: #79ddd0; }

  .form-msg {
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 20px;
  }

  .form-msg-success { color: var(--accent); }
  .form-msg-error { color: #ff4d4d; }

  /* ---------- Feature cards ---------- */
  .feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  @media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
  }

  .feature-more {
    margin-top: 16px;
    text-align: right;
  }

  .feature-more a {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--text-mid);
    transition: color 0.2s ease;
  }

  .feature-more a:hover {
    color: var(--accent);
  }

  .feature-card {
    border: 1px solid var(--line);
    padding: 15px 20px;
    background: var(--bg-panel);
    transition: border-color 0.25s ease, transform 0.25s ease;
  }

  .feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
  }

  .feature-id {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 2px;
    display: block;
  }

  .feature-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }

  .feature-icon {
    width: 88px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
  }

  .feature-card h3 {
    font-family: var(--font-display);
    font-size: 18px;
    margin-bottom: 10px;
  }

  .feature-header h3 {
    margin-bottom: 0;
  }

  .feature-card p {
    color: var(--text-mid);
    font-size: 14px;
    margin-top: 0px;
  }

  /* ---------- Footer ---------- */
  footer {
    padding: 48px 0;
  }

  .footer-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-low);
  }

  @media (min-width: 640px) {
    .footer-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }

  .footer-links {
    display: flex;
    gap: 20px;
  }

  .footer-links a { color: var(--text-mid); }
  .footer-links a:hover { color: var(--accent); }

  .x-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .x-icon {
    width: 16px;
    height: 16px;
  }

  /* ---------- WordPress一覧ページ(archive-utrs-cpt.php)のパンくずリスト ---------- */
  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-low);
  }

  .breadcrumb a {
    color: var(--text-low);
    transition: color 0.2s ease;
  }

  .breadcrumb a:hover {
    color: var(--text-mid);
  }

  .breadcrumb-sep {
    color: var(--text-low);
  }

  .breadcrumb-current {
    color: var(--text-mid);
  }

  /* ---------- WordPress個別ページ(single-utrs-cpt.php)のスペック+説明文 ---------- */
  .single-specs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
  }

  @media (min-width: 720px) {
    .single-specs-grid { grid-template-columns: 1fr 1.4fr; }
  }

  .single-specs-grid > *:only-child {
    grid-column: 1 / -1;
  }

  /* ---------- 追加コンテンツブロック(Carbon Fields / utrs-content-blocks.php) ---------- */
  .content-block {
    margin-bottom: 28px;
  }

  .content-block:last-child {
    margin-bottom: 0;
  }

  .content-block:not(:last-child) {
    position: relative;
    margin-bottom: 56px;
  }

  .content-block:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: -28px;
    border-bottom: 1px solid var(--line);
  }

  .content-block-media {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  @media (min-width: 720px) {
    .content-block-media { grid-template-columns: 1fr 1fr; }
    .content-block-reverse .content-block-img { order: 2; }
  }

  .content-block-img,
  .content-block-img-full {
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    display: block;
  }

  .content-block-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .content-block-gallery-img {
    flex: 0 0 auto;
    height: 280px;
    width: auto;
    border: 1px solid var(--line);
  }

  /* ---------- WordPress個別ページ(single-utrs-cpt.php)の本文 ---------- */
  .single-content {
    color: var(--text-mid);
    font-size: 15px;
    line-height: 1.9;
  }

  .single-content p {
    margin-bottom: 20px;
  }

  .single-content h2,
  .single-content h3 {
    font-family: var(--font-display);
    color: var(--text-hi);
    margin: 32px 0 16px;
  }

  .single-content ul,
  .single-content ol {
    margin: 0 0 20px 1.4em;
  }

  .single-content img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--line);
    margin: 20px 0;
  }

  .single-content a {
    color: var(--accent);
    text-decoration: underline;
  }

  /* ---------- WordPress一覧ページ(archive-utrs-cpt.php)のページネーション ---------- */
  .utrs-pagination {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .utrs-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid var(--line);
    color: var(--text-mid);
  }

  .utrs-pagination a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--text-hi);
  }

  .utrs-pagination .page-numbers.current {
    border-color: var(--accent);
    color: var(--accent);
  }
