/*
Theme Name: FujiSSL
Theme URI: https://www.fujissl.jp/
Author: Nijimo, Inc.
Author URI: https://www.fujissl.jp/
Description: FujiSSL公式コーポレート/プロダクトサイトテーマ。和×B2Bテックの硬質デザイン、ACME自動更新を主役に据える。
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fujissl
Tags: business, custom-colors, custom-menu, featured-images, threaded-comments
*/

:root {
    --ink: #0a1628;
    --ink-2: #1a2332;
    --paper: #faf8f3;
    --paper-2: #f1ede4;
    --paper-3: #e8e2d4;
    --red: #c8102e;
    --red-dark: #9a0c24;
    --line: #d8d2c4;
    --line-soft: #ebe6da;
    --muted: #6b7280;
    --gold: #a8804a;
    --green: #2d6a4f;
    --max: 1240px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.7;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
  }

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

  .mono { font-family: 'JetBrains Mono', monospace; font-feature-settings: normal; }
  .serif { font-family: 'Shippori Mincho', serif; }

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

  /* ---------- Top utility bar ---------- */
  .topbar {
    background: var(--ink);
    color: rgba(255,255,255,0.78);
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
  }
  .topbar .meta { display: flex; gap: 22px; align-items: center; }
  .topbar .meta span::before {
    content: "";
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
  }
  .topbar .links { display: flex; gap: 22px; }
  .topbar a:hover { color: #fff; }

  /* ---------- Header ---------- */
  header.site {
    background: var(--paper);
    border-bottom: 1px solid var(--line-soft);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(250, 248, 243, 0.92);
  }
  header.site .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1480px;
    padding: 0 32px;
    gap: 32px;
  }
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.01em;
    flex-shrink: 0;
  }
  .logo-mark {
    width: 32px; height: 32px;
    background: var(--red);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .logo-mark::before {
    content: "";
    width: 0; height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 12px solid #fff;
    margin-top: 4px;
  }
  .logo small {
    display: block;
    font-size: 9px;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0.14em;
    margin-top: 2px;
  }
  nav.main {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 4px;
    align-items: center;
  }
  nav.main a {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    position: relative;
    padding: 8px 14px;
    white-space: nowrap;
    border-radius: 2px;
    transition: all 0.15s ease;
  }
  nav.main a:hover {
    color: var(--red);
    background: rgba(200, 16, 46, 0.04);
  }
  nav.main a.has-sub::after {
    content: "▾";
    font-size: 9px;
    margin-left: 5px;
    color: var(--muted);
  }
  .header-cta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    transition: all 0.18s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
  }
  .btn-ghost { color: var(--ink); border-color: var(--line); background: transparent; }
  .btn-ghost:hover { border-color: var(--ink); }
  .btn-primary { background: var(--ink); color: var(--paper); }
  .btn-primary:hover { background: var(--red); }
  .btn-red { background: var(--red); color: #fff; }
  .btn-red:hover { background: var(--red-dark); }
  .btn-lg { padding: 16px 32px; font-size: 14px; }
  .btn-arrow::after { content: "→"; transition: transform 0.2s ease; }
  .btn-arrow:hover::after { transform: translateX(4px); }

  /* ---------- Hero ---------- */
  .hero {
    position: relative;
    padding: 96px 0 120px;
    overflow: hidden;
    border-bottom: 1px solid var(--line-soft);
  }
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(var(--line-soft) 1px, transparent 1px),
      linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
    background-size: 56px 56px;
    background-position: -1px -1px;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at top right, #000 0%, transparent 70%);
    pointer-events: none;
  }
  .hero .container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
    position: relative;
  }
  .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 28px;
  }
  .eyebrow::before {
    content: "";
    width: 28px; height: 1px;
    background: var(--red);
  }
  h1.hero-title {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    margin-bottom: 32px;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
  h1.hero-title em {
    font-style: normal;
    color: var(--red);
    position: relative;
  }
  h1.hero-title em::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 4px;
    background: var(--red);
    opacity: 0.18;
  }
  .hero p.lead {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 540px;
    margin-bottom: 40px;
    line-height: 1.85;
  }
  .hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
  .hero-actions .note {
    font-size: 12px;
    color: var(--muted);
    margin-left: 8px;
  }

  /* Hero side — technical card */
  .hero-card {
    background: var(--ink);
    color: var(--paper);
    border-radius: 4px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 80px -30px rgba(10, 22, 40, 0.4);
    transform: rotate(-0.3deg);
  }
  .hero-card::before {
    content: "";
    position: absolute;
    top: -8px; left: -8px;
    right: 12px; bottom: 12px;
    border: 1px solid var(--ink);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.15;
  }
  .hero-card .card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px dashed rgba(255,255,255,0.18);
    margin-bottom: 20px;
  }
  .hero-card .card-head .label {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.1em;
  }
  .status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: #6ee7b7;
  }
  .status::before {
    content: "";
    width: 7px; height: 7px;
    background: #6ee7b7;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.18);
    animation: pulse 2s ease-in-out infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
  }
  .timeline {
    list-style: none;
    margin: 0; padding: 0;
  }
  .timeline li {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: center;
    font-size: 13px;
  }
  .timeline li:last-child { border-bottom: none; }
  .timeline .day {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.05em;
  }
  .timeline .event { color: #fff; font-weight: 500; }
  .timeline .badge {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    border-radius: 2px;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.7);
  }
  .timeline .badge.auto {
    background: rgba(110, 231, 183, 0.12);
    border-color: rgba(110, 231, 183, 0.3);
    color: #6ee7b7;
  }
  .hero-card .footer-note {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255,255,255,0.18);
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-family: 'JetBrains Mono', monospace;
  }

  /* ---------- Trust band ---------- */
  .trust {
    background: var(--paper-2);
    padding: 40px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .trust .container {
    display: grid;
    grid-template-columns: auto repeat(3, 1fr);
    gap: 48px;
    align-items: center;
  }
  .trust .lead-num {
    font-family: 'Shippori Mincho', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
  }
  .trust .lead-num strong {
    display: block;
    font-size: 32px;
    color: var(--red);
    letter-spacing: 0.02em;
  }
  .trust-stat {
    border-left: 1px solid var(--line);
    padding-left: 32px;
  }
  .trust-stat .v {
    font-family: 'JetBrains Mono', monospace;
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .trust-stat .l {
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.1em;
    margin-top: 4px;
  }

  /* ---------- Section base ---------- */
  section.s {
    padding: 120px 0;
    position: relative;
  }
  .section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    margin-bottom: 64px;
    align-items: end;
  }
  .section-head h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(32px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.005em;
  }
  .section-head .desc {
    font-size: 15px;
    color: var(--ink-2);
    line-height: 1.9;
    max-width: 460px;
  }

  /* ---------- Pricing cards ---------- */
  #pricing { background: var(--paper); }
  .price-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
  }
  .price-card {
    padding: 36px 28px 32px;
    border-right: 1px solid var(--line);
    position: relative;
    transition: background 0.25s ease;
  }
  .price-card:last-child { border-right: none; }
  .price-card:hover { background: var(--paper-2); }
  .price-card .tier {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
  }
  .price-card .tier-name {
    font-family: 'Shippori Mincho', serif;
    font-size: 22px;
    font-weight: 700;
  }
  .price-card .tier-tag {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 4px 10px;
    background: var(--ink);
    color: var(--paper);
    letter-spacing: 0.08em;
  }
  .price-card .tier-tag.ov { background: var(--red); }
  .price-card .audience {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 28px;
    min-height: 40px;
  }
  .price-card .price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 4px;
  }
  .price-card .price .yen {
    font-size: 18px;
    font-weight: 400;
    margin-right: 2px;
  }
  .price-card .price-unit {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .price-card ul.features {
    list-style: none;
    margin-bottom: 32px;
    border-top: 1px dashed var(--line);
    padding-top: 20px;
  }
  .price-card ul.features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--ink-2);
    padding: 6px 0;
  }
  .price-card ul.features li::before {
    content: "+";
    color: var(--red);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 1px;
  }
  .price-card .pick {
    display: block;
    text-align: center;
    padding: 12px;
    border: 1px solid var(--ink);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
  }
  .price-card .pick:hover {
    background: var(--ink);
    color: var(--paper);
  }
  .price-card.featured {
    background: var(--ink);
    color: var(--paper);
  }
  .price-card.featured:hover { background: var(--ink); }
  .price-card.featured .audience { color: rgba(255,255,255,0.65); }
  .price-card.featured ul.features { border-top-color: rgba(255,255,255,0.15); }
  .price-card.featured ul.features li { color: rgba(255,255,255,0.85); }
  .price-card.featured .pick {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
  }
  .price-card.featured .pick:hover { background: var(--red-dark); border-color: var(--red-dark); }
  .price-card .ribbon {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.1em;
    padding: 4px 12px;
  }
  .price-foot {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: var(--muted);
  }
  .price-foot a { color: var(--red); border-bottom: 1px solid var(--red); }

  /* ---------- Features grid ---------- */
  #features { background: var(--paper-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--paper-2);
  }
  .feat {
    padding: 48px 36px;
    border-right: 1px solid var(--line);
    position: relative;
  }
  .feat:last-child { border-right: none; }
  .feat .num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--red);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
  }
  .feat h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .feat h3 span {
    color: var(--red);
    font-style: italic;
  }
  .feat p {
    font-size: 14px;
    color: var(--ink-2);
    line-height: 1.85;
  }
  .feat .icon {
    width: 44px; height: 44px;
    border: 1.5px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
  }

  /* ---------- Other products ---------- */
  #products { background: var(--paper); }
  .product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
  }
  .product-card {
    background: var(--paper-2);
    padding: 40px 32px;
    border-radius: 4px;
    border: 1px solid var(--line-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
  }
  .product-card:hover {
    transform: translateY(-3px);
    border-color: var(--ink);
  }
  .product-card .product-tag {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--red);
    letter-spacing: 0.1em;
    margin-bottom: 16px;
  }
  .product-card h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .product-card .product-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.7;
  }
  .product-card .product-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .product-card .product-price-unit {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 24px;
  }
  .product-card .product-link {
    margin-top: auto;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .product-card .product-link span {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 2px;
  }

  /* ---------- BIMI feature row ---------- */
  .bimi {
    margin-top: 48px;
    background: var(--ink);
    color: var(--paper);
    padding: 56px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
  }
  .bimi::before {
    content: "BIMI";
    position: absolute;
    bottom: -40px;
    right: -10px;
    font-family: 'Shippori Mincho', serif;
    font-size: 220px;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    letter-spacing: -0.05em;
    line-height: 1;
  }
  .bimi h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
    position: relative;
  }
  .bimi p {
    font-size: 14px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 24px;
    line-height: 1.8;
    position: relative;
  }
  .bimi .price-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 28px;
    position: relative;
  }
  .bimi .price-line strong {
    color: #fff;
    font-size: 22px;
    margin-right: 8px;
  }
  .bimi .demo-mailbox {
    background: var(--paper);
    color: var(--ink);
    padding: 20px;
    border-radius: 4px;
    position: relative;
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.4);
  }
  .bimi .mail-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 8px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 13px;
  }
  .bimi .mail-row:last-child { border-bottom: none; }
  .bimi .avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--paper-3);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: var(--muted);
  }
  .bimi .avatar.bimi-on {
    background: var(--red);
    color: #fff;
    position: relative;
  }
  .bimi .avatar.bimi-on:has(img) {
    background: #fff;
    border: 1px solid var(--line, #e6e8ec);
  }
  .bimi .avatar.bimi-on img {
    width: 26px; height: 26px;
    object-fit: contain;
    border-radius: 50%;
  }
  .bimi .avatar.bimi-on::after {
    content: "✓";
    position: absolute;
    bottom: -2px; right: -2px;
    width: 14px; height: 14px;
    background: var(--green);
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    border: 2px solid var(--paper);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .bimi .mail-info { flex: 1; min-width: 0; }
  .bimi .mail-from { font-weight: 700; font-size: 12px; }
  .bimi .mail-sub { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bimi .mail-tag {
    font-size: 9px;
    font-family: 'JetBrains Mono', monospace;
    padding: 2px 6px;
    border-radius: 2px;
    flex-shrink: 0;
  }
  .bimi .mail-tag.on { background: rgba(45, 106, 79, 0.12); color: var(--green); }
  .bimi .mail-tag.off { background: var(--paper-3); color: var(--muted); }

  /* ---------- News + Blog ---------- */
  #news { background: var(--paper-2); border-top: 1px solid var(--line-soft); }
  .news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .news-col h3 {
    font-family: 'Shippori Mincho', serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ink);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .news-col h3 a {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
  }
  .news-col h3 a:hover { color: var(--red); }
  .news-list { list-style: none; }
  .news-item {
    display: grid;
    grid-template-columns: 90px auto 1fr;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
    font-size: 14px;
    transition: padding 0.2s ease;
  }
  .news-item:hover { padding-left: 8px; }
  .news-item .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  .news-item .cat {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    letter-spacing: 0.08em;
    align-self: center;
  }
  .news-item .cat.imp {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
  }
  .news-item .title {
    color: var(--ink);
    font-weight: 500;
    line-height: 1.55;
  }
  .news-item:hover .title { color: var(--red); }

  /* ---------- Bottom CTA ---------- */
  #cta {
    background: var(--ink);
    color: var(--paper);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
  }
  #cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
    pointer-events: none;
  }
  #cta .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 64px;
    position: relative;
    align-items: center;
  }
  #cta h2 {
    font-family: 'Shippori Mincho', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
  }
  #cta h2 em {
    font-style: normal;
    color: #ff8a9a;
  }
  #cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    margin-bottom: 36px;
    line-height: 1.85;
  }
  #cta .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
  .btn-light { background: var(--paper); color: var(--ink); }
  .btn-light:hover { background: #fff; }
  .btn-outline-light { border: 1px solid rgba(255,255,255,0.3); color: var(--paper); }
  .btn-outline-light:hover { border-color: var(--paper); }

  #cta .cta-side {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 4px;
    padding: 32px;
    background: rgba(255,255,255,0.025);
  }
  #cta .cta-side .label {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.12em;
    margin-bottom: 8px;
  }
  #cta .cta-side .phone {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 6px;
    color: #fff;
  }
  #cta .cta-side .hours {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    padding-bottom: 24px;
    border-bottom: 1px dashed rgba(255,255,255,0.18);
    margin-bottom: 24px;
  }
  #cta .cta-side ul { list-style: none; }
  #cta .cta-side ul li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
  }
  #cta .cta-side ul li:last-child { border-bottom: none; }
  #cta .cta-side ul li a { color: rgba(255,255,255,0.85); }
  #cta .cta-side ul li a:hover { color: #fff; }
  #cta .cta-side ul li::after { content: "→"; color: rgba(255,255,255,0.35); }

  /* ---------- Footer ---------- */
  footer {
    background: var(--paper);
    padding: 80px 0 32px;
    border-top: 1px solid var(--line-soft);
  }
  .foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 64px;
  }
  .foot-brand .logo { margin-bottom: 20px; }
  .foot-brand p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.85;
    max-width: 320px;
  }
  footer h4 {
    font-family: 'Shippori Mincho', serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--ink);
  }
  footer ul { list-style: none; }
  footer ul li { margin-bottom: 11px; }
  footer ul li a {
    font-size: 13px;
    color: var(--muted);
  }
  footer ul li a:hover { color: var(--red); }
  .foot-bot {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
  }
  .foot-bot .legal { display: flex; gap: 24px; }

  /* ---------- Responsive ---------- */
  @media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .price-grid { grid-template-columns: repeat(2, 1fr); }
    .price-card:nth-child(2n) { border-right: none; }
    .price-card { border-bottom: 1px solid var(--line); }
    .features-grid { grid-template-columns: 1fr; }
    .feat { border-right: none; border-bottom: 1px solid var(--line); }
    .product-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; gap: 48px; }
    .bimi { grid-template-columns: 1fr; padding: 36px; }
    #cta .container { grid-template-columns: 1fr; }
    .section-head { grid-template-columns: 1fr; gap: 24px; }
    .trust .container { grid-template-columns: 1fr 1fr; gap: 24px; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
    nav.main { display: none; }
  }

  @media (max-width: 640px) {
    section.s { padding: 80px 0; }
    .hero { padding: 64px 0 80px; }
    .price-grid { grid-template-columns: 1fr; }
    .price-card { border-right: none; }
    .news-item { grid-template-columns: 80px auto; }
    .news-item .title { grid-column: 1 / -1; padding-left: 0; }
    .foot-grid { grid-template-columns: 1fr; }
    .topbar .meta span:not(:first-child) { display: none; }
  }

/* WordPress デフォルトクラス対応 */
.alignnone { margin: 5px 20px 20px 0; }
.aligncenter,
div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { background: var(--paper-2); border: 1px solid var(--line); max-width: 100%; padding: 5px; text-align: center; }
.wp-caption-text { font-size: 12px; color: var(--muted); margin: 8px 0; }
.screen-reader-text { position: absolute; left: -9999px; }
.sticky { display: block; }
.bypostauthor { display: block; }
.gallery-caption { font-size: 12px; }

/* 投稿本文の汎用スタイル - Tech docs風 */
.entry-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-2);
  font-feature-settings: "palt";
}

/* 見出し階層 - 番号付き、洗練された区切り */
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
  font-family: 'Shippori Mincho', serif;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: 0.005em;
  font-weight: 700;
  position: relative;
}
.entry-content h2 {
  font-size: 24px;
  margin: 2.6em 0 1em;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.entry-content h2::before {
  content: "//";
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--red);
  font-weight: 500;
  margin-right: 12px;
  letter-spacing: -0.05em;
}
.entry-content h3 {
  font-size: 18px;
  margin: 2em 0 0.8em;
  padding: 4px 0 4px 16px;
  border-left: 3px solid var(--red);
}
.entry-content h4 {
  font-size: 15px;
  margin: 1.6em 0 0.6em;
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  letter-spacing: 0.02em;
}
.entry-content h4::before {
  content: "▸";
  color: var(--red);
  margin-right: 8px;
  font-size: 13px;
}

.entry-content p {
  margin-bottom: 1.4em;
}
.entry-content > p:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child {
  margin-top: 0;
}

/* リスト - 黒丸じゃなく赤バー (Tech docs風) */
.entry-content ul, .entry-content ol {
  margin: 0 0 1.5em 0;
  padding-left: 0;
  list-style: none;
}
.entry-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 0.6em;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 10px;
  height: 1px;
  background: var(--red);
}
.entry-content ul li ul {
  margin-top: 0.4em;
  margin-bottom: 0.4em;
}
.entry-content ul li ul li::before {
  background: var(--muted);
  width: 6px;
}

/* 番号付きリスト - ステッパー風 */
.entry-content ol {
  counter-reset: ol-counter;
}
.entry-content ol > li {
  position: relative;
  padding-left: 38px;
  margin-bottom: 0.8em;
  counter-increment: ol-counter;
}
.entry-content ol > li::before {
  content: counter(ol-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  background: rgba(200, 16, 46, 0.08);
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

/* リンク - 控えめな下線 */
.entry-content a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 16, 46, 0.25);
  transition: border-color 0.15s ease, color 0.15s ease;
  font-weight: 500;
}
.entry-content a:hover {
  color: var(--red-dark);
  border-bottom-color: var(--red);
}

.entry-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 2px;
  border: 1px solid var(--line-soft);
}

/* blockquote - callout box風 (情報ボックス) */
.entry-content blockquote {
  background: var(--paper-2);
  border-left: 3px solid var(--red);
  padding: 18px 22px 18px 50px;
  margin: 1.6em 0;
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.75;
  border-radius: 2px;
}
.entry-content blockquote::before {
  content: "INFO";
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.15em;
  position: absolute;
  left: 22px;
  top: 22px;
}
.entry-content blockquote p {
  margin-bottom: 0.6em;
  margin-top: 1.6em;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }

/* インラインコード */
.entry-content code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(10, 22, 40, 0.06);
  padding: 2px 7px;
  font-size: 0.86em;
  border-radius: 2px;
  color: var(--ink);
  border: 1px solid var(--line-soft);
}

/* コードブロック - Tech docs定番 */
.entry-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  line-height: 1.75;
  margin: 1.6em 0;
  position: relative;
}
.entry-content pre::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 16px 0 0 rgba(255, 255, 255, 0.18), 32px 0 0 rgba(255, 255, 255, 0.18);
}
.entry-content pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: inherit;
  border: none;
  display: block;
  padding-top: 16px;
}

/* テーブル - Stripe / Vercel風 */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.entry-content th, .entry-content td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border: none;
  border-bottom: 1px solid var(--line-soft);
}
.entry-content th {
  background: transparent;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-top: 12px;
  padding-bottom: 12px;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: rgba(241, 237, 228, 0.25); }
.entry-content td a { font-weight: 500; }

.entry-content hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.4em 0;
  position: relative;
}
.entry-content hr::after {
  content: "//";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  padding: 0 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.entry-content strong {
  font-weight: 700;
  color: var(--ink);
}
.entry-content em {
  font-style: normal;
  color: var(--red);
  font-weight: 500;
}

/* セクション見出しのアンカーリンク (#ジャンプ用) */
.entry-content h2:hover::after,
.entry-content h3:hover::after {
  content: "#";
  color: var(--red);
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  opacity: 0.5;
}

/* 投稿ページ用ヘッダー - Tech docs風 (左寄せ) */
.post-header {
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 56px 28px 0;
}
.post-header .meta {
  display: flex;
  gap: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  align-items: center;
}
.post-header .meta .date {
  color: var(--muted);
}
.post-header .meta .date::before {
  content: "PUBLISHED // ";
  color: var(--red);
  font-weight: 700;
}
.post-header .meta .cat {
  padding: 3px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.1em;
  border-radius: 2px;
}
.post-header .meta .cat.imp {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.post-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.005em;
  margin-bottom: 0;
  color: var(--ink);
  text-align: left;
}
.post-header .lead-thumb {
  margin-top: 28px;
}
/* 区切り線 */
.post-header::after {
  content: "";
  display: block;
  margin-top: 32px;
  height: 1px;
  background: linear-gradient(to right, var(--line) 0%, var(--line) 60%, transparent 100%);
}

/* アーカイブ・一覧ページ */
.archive-header {
  text-align: center;
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--line-soft);
}
.archive-header .eyebrow { margin: 0 auto 20px; }
.archive-header h1 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
}
.archive-list {
  max-width: 880px;
  margin: 60px auto;
  list-style: none;
  padding: 0 28px;
}
.archive-list li {
  display: grid;
  grid-template-columns: 110px 70px 1fr;
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  transition: padding 0.18s ease;
}
.archive-list li:hover { padding-left: 12px; }
.archive-list .date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.archive-list .cat {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.08em;
  text-align: center;
}
.archive-list .title {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.archive-list li:hover .title { color: var(--red); }

/* ページネーション */
.nav-pagination {
  text-align: center;
  margin: 60px 0;
}
.nav-pagination .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 4px;
  border: 1px solid var(--line);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink);
  text-decoration: none;
}
.nav-pagination .page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.nav-pagination .page-numbers:hover:not(.current) { border-color: var(--red); color: var(--red); }

/* コメント */
.comments-area {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 28px;
}
.comments-area h3 {
  font-family: 'Shippori Mincho', serif;
  font-size: 22px;
  margin-bottom: 24px;
}
.comment-list { list-style: none; padding: 0; }
.comment-list .comment {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
}

/* 検索結果 */
.search-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
}
.search-form input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
  border-radius: 2px;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--red); }
.search-form button {
  padding: 12px 24px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
}
.search-form button:hover { background: var(--red); }

/* 404ページ */
.error-404 {
  text-align: center;
  padding: 120px 28px;
}
.error-404 .big {
  font-family: 'Shippori Mincho', serif;
  font-size: 120px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 20px;
}

/* レスポンシブ */
@media (max-width: 980px) {
  .topbar { display: none; }
  header.site .container { height: 64px; }
  nav.main { display: none; }
  .header-cta .btn-ghost { display: none; }

  .hero { padding: 60px 0 80px; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; }

  .trust .container { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust .lead-num { grid-column: 1 / -1; }
  .trust-stat { padding-left: 16px; }

  section.s { padding: 64px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }

  .price-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr !important; }
  .product-grid { grid-template-columns: 1fr; }
  .bimi { grid-template-columns: 1fr !important; }

  #cta .container { grid-template-columns: 1fr; gap: 40px; }
  .news-grid { grid-template-columns: 1fr !important; gap: 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .archive-list li { grid-template-columns: 1fr; gap: 8px; padding: 16px 0; }
}
@media (max-width: 600px) {
  .price-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===== ナビメニュー サブメニュー制御 (重要) ===== */
nav.main {
  position: relative;
}
nav.main ul,
nav.main li {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav.main > .menu-item,
nav.main > li {
  position: relative;
  display: inline-block;
}
nav.main > .menu-item > a,
nav.main > li > a {
  display: inline-block;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  border-radius: 2px;
  transition: all 0.15s ease;
}
nav.main > .menu-item > a:hover,
nav.main > li > a:hover {
  color: var(--red);
  background: rgba(200, 16, 46, 0.04);
}

/* サブメニュー: デフォルトで完全非表示 */
nav.main .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: 0 12px 32px -10px rgba(10, 22, 40, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 100;
  padding: 8px 0;
  margin: 0;
  display: block;
  pointer-events: none;
}

/* ホバー時のみ表示 */
nav.main .menu-item:hover > .sub-menu,
nav.main li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

nav.main .sub-menu li {
  display: block;
  position: relative;
}
nav.main .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
  background: none;
}
nav.main .sub-menu li:last-child > a { border-bottom: none; }
nav.main .sub-menu a:hover {
  background: var(--paper-2);
  color: var(--red);
}

/* 第3階層 (孫メニュー) - ホバー時に右側に展開 */
nav.main .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  margin-left: 1px;
}

/* メニュー項目数が多い時のレスポンシブ */
@media (max-width: 1280px) {
  nav.main > .menu-item > a,
  nav.main > li > a {
    padding: 8px 10px;
    font-size: 13px;
  }
}

/* =========================================================================
 *  ロゴSVG化・「//」全廃に伴う調整・セパレータ（リニューアル）
 * ========================================================================= */
/* ロゴをSVG画像に。元のCSS円＋三角形は不要に */
.logo-mark {
  width: 40px; height: 40px;
  background: none !important;     /* 元の深紅円を無効化 */
  border-radius: 0;
  display: block;
}
.logo-mark::before { content: none !important; }  /* 元のCSS三角形を無効化 */

/* 「//」を廃した英字ラベル＋日本語のセパレータ（中黒で上品に） */
.tag-sep::before,
.label-sep::before {
  content: "・";
  margin: 0 6px;
  opacity: 0.5;
}

/* 黒帯を1項目にしたので、先頭の点は出さない */
.topbar .meta span:first-child::before { content: none; }
