/*
Theme Name: innovel
Theme URI: https://innovel.jp/
Author: innovel inc.
Description: 株式会社イノベル コーポレートサイト公式テーマ。SEO・Core Web Vitals・アクセシビリティ最適化済み。
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: innovel
*/

  :root {
    --bg: #FFFFFF;
    --bg-alt: #F7F6F4;
    --ink: #0A0807;
    --ink-soft: #2D2A28;
    --muted: #8B8680;
    --line: #E8E5E0;
    --accent: #F08437;
    --accent-deep: #C66C28;
    --accent-light: #FFE5D2;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
  html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
  body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    overflow-x: hidden;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
  }
  img, svg { max-width: 100%; height: auto; display: block; }
  button { font-family: inherit; cursor: pointer; }
  button.btn { border: 1px solid transparent; }
  button.btn-secondary { border-color: var(--line); }
  button.btn-outline-light { border-color: rgba(255, 255, 255, 0.3); }
  a { color: inherit; text-decoration: none; }
  ::selection { background: var(--accent); color: var(--bg); }

  /* ============ NAV ============ */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 22px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  /* Logo - now uses image */
  .logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    height: 32px;
  }
  .logo img {
    height: 100%;
    width: auto;
    display: block;
  }
  .logo .logo-color { display: block; }
  .logo .logo-white { display: none; }
  .nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
    list-style: none;
  }
  /* Mobile-only items hidden on desktop */
  .nav-mobile-top, .nav-mobile-bottom { display: none; }
  .nav-links a span.sub,
  .nav-link-text { display: contents; }
  .nav-links a span.sub { display: none; }
  .nav-link-text > span:first-child { display: inline; }
  .nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--accent); }
  .nav-cta {
    background: var(--ink);
    color: var(--bg) !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: 500 !important;
    transition: background 0.2s;
  }
  .nav-cta:hover { background: var(--accent) !important; }

  .nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px; height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 1.5px;
    background: var(--ink);
    transition: all 0.3s;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  /* ============ Pages ============ */

  /* ============ Clients Marquee (NEW) ============ */
  .clients {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 56px 0;
    overflow: hidden;
    position: relative;
  }
  .clients-label {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 36px;
  }
  .clients-marquee {
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 100px, black calc(100% - 100px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, black 100px, black calc(100% - 100px), transparent 100%);
  }
  .clients-track {
    display: flex;
    gap: 80px;
    animation: marqueeRight 40s linear infinite;
    width: max-content;
    align-items: center;
  }
  @keyframes marqueeRight {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
  }
  .clients:hover .clients-track {
    animation-play-state: paused;
  }
  .client-name {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    white-space: nowrap;
    opacity: 0.55;
    transition: opacity 0.3s, color 0.3s;
    flex-shrink: 0;
  }
  .client-name:hover { opacity: 1; color: var(--accent); }
  .client-name.style-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .client-name.style-italic {
    font-style: italic;
    font-weight: 600;
  }
  .client-name.style-bold { font-weight: 700; letter-spacing: -0.02em; }
  .client-name.style-mono {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 18px;
    letter-spacing: 0.08em;
  }
  .client-divider {
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
  }

  /* ============ Hero (refined background) ============ */
  .hero {
    padding: 180px 48px 120px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
      linear-gradient(135deg, rgba(240, 132, 55, 0.025) 0%, transparent 50%),
      linear-gradient(to bottom, var(--bg) 0%, #FDFBF8 100%);
  }
  /* Subtle dotted grid pattern - ambient texture */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(10, 8, 7, 0.07) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: 0 0;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 75% 25%, black 0%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 75% 25%, black 0%, transparent 75%);
    pointer-events: none;
    z-index: 0;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
  }
  .hero-bg svg {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }
  .hero-bg .line-flow {
    fill: none;
    stroke-linecap: round;
    animation: flowDraw 3.5s cubic-bezier(0.25, 0.1, 0.25, 1) backwards;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
  }
  .hero-bg .line-flow:nth-child(1) { animation-delay: 0.3s; }
  .hero-bg .line-flow:nth-child(2) { animation-delay: 0.5s; }
  .hero-bg .line-flow:nth-child(3) { animation-delay: 0.7s; }
  .hero-bg .line-flow:nth-child(4) { animation-delay: 0.9s; }
  @keyframes flowDraw {
    to { stroke-dashoffset: 0; }
  }
  .hero-bg .blob {
    animation: floatBlob 20s ease-in-out infinite alternate;
    transform-origin: center;
  }
  .hero-bg .blob-2 {
    animation: floatBlob2 24s ease-in-out infinite alternate;
  }
  @keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-15px, 20px) scale(1.05); }
  }
  @keyframes floatBlob2 {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(20px, -15px) scale(0.95); }
  }
  .hero-bg .pulse-ring {
    animation: pulseRing 4s ease-in-out infinite;
    transform-origin: center;
  }
  @keyframes pulseRing {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.15; transform: scale(1.08); }
  }
  .hero-bg .arrow-mark {
    animation: arrowFloat 3s ease-in-out infinite alternate;
  }
  @keyframes arrowFloat {
    from { transform: translate(0, 0); }
    to { transform: translate(8px, -8px); }
  }

  /* Shooting stars */
  .hero-bg .shooting-star {
    transform-origin: 0 0;
    animation: shootingStar 4s ease-out infinite;
    opacity: 0;
  }
  .hero-bg .shooting-star:nth-child(1) { animation-delay: 0s; }
  .hero-bg .shooting-star:nth-child(2) { animation-delay: 1.2s; }
  .hero-bg .shooting-star:nth-child(3) { animation-delay: 2.5s; }
  .hero-bg .shooting-star:nth-child(4) { animation-delay: 0.6s; }
  .hero-bg .shooting-star:nth-child(5) { animation-delay: 3.2s; }
  .hero-bg .shooting-star:nth-child(6) { animation-delay: 1.8s; }
  @keyframes shootingStar {
    0% {
      opacity: 0;
      transform: translate(0, 0) scale(0.4);
    }
    8% {
      opacity: 1;
    }
    50% {
      opacity: 1;
      transform: translate(var(--star-x, 220px), var(--star-y, -180px)) scale(1);
    }
    80% {
      opacity: 0.6;
    }
    100% {
      opacity: 0;
      transform: translate(calc(var(--star-x, 220px) * 1.6), calc(var(--star-y, -180px) * 1.6)) scale(0.6);
    }
  }
  .hero-bg .star-twinkle {
    animation: twinkle 3s ease-in-out infinite;
  }
  .hero-bg .star-twinkle:nth-child(odd) { animation-delay: 1.5s; }
  @keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
  }

  .hero-content { position: relative; z-index: 1; }

  .hero-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .hero-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--accent);
  }
  .hero-title {
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 40px;
    max-width: 1100px;
  }
  .hero-title .line { display: block; overflow: hidden; }
  .hero-title .line span {
    display: inline-block;
    animation: slideUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  }
  .hero-title .line:nth-child(1) span { animation-delay: 0.1s; }
  .hero-title .line:nth-child(2) span { animation-delay: 0.25s; }
  @keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  .hero-title em { color: var(--accent); font-style: normal; }
  .hero-desc {
    font-size: 17px;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 580px;
    margin-bottom: 48px;
    animation: fadeIn 1s ease 0.5s backwards;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero-actions {
    display: flex;
    gap: 16px;
    animation: fadeIn 1s ease 0.7s backwards;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
  }
  .btn-primary { background: var(--ink); color: var(--bg); }
  .btn-primary:hover { background: var(--accent); }
  .btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
  }
  .btn-secondary:hover { border-color: var(--ink); }
  .btn::after { content: "→"; font-family: 'Inter'; transition: transform 0.2s; }
  .btn:hover::after { transform: translateX(4px); }

  /* ============ Section base ============ */
  section { padding: 100px 48px; }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 24px;
  }
  .section-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .section-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--ink);
  }
  .section-title {
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 720px;
  }
  .section-title em { color: var(--accent); font-style: normal; }
  .services-lead {
    font-size: 16px;
    line-height: 1.95;
    color: var(--ink-soft);
    margin-top: 24px;
    max-width: 680px;
  }
  .section-link {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition: border-color 0.2s, color 0.2s;
    cursor: pointer;
  }
  .section-link:hover { color: var(--accent); border-color: var(--accent); }
  .section-link::after { content: " →"; }

  /* ============ Services ============ */
  .services {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .service-item {
    padding: 48px 40px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 0.3s;
    position: relative;
    cursor: pointer;
  }
  .service-item:hover { background: var(--bg-alt); }
  .service-num {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    display: block;
  }
  .service-item h3 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
  }
  .service-item h3 .en {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
  }
  .service-item p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-soft);
  }
  .service-arrow {
    position: absolute;
    top: 48px;
    right: 40px;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: var(--muted);
    transition: transform 0.3s, color 0.3s;
  }
  .service-item:hover .service-arrow {
    transform: translate(4px, -4px);
    color: var(--accent);
  }

  /* ============ Service Detail Pages ============ */
  .service-detail-hero {
    padding: 160px 48px 80px;
    border-bottom: 1px solid var(--line);
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
  }
  .service-detail-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.6;
    pointer-events: none;
  }
  .service-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    margin-bottom: 32px;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
  }
  .service-detail-back:hover { color: var(--accent); }
  .service-detail-num {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }
  .service-detail-title {
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
  }
  .service-detail-title em { color: var(--accent); font-style: normal; }
  .service-detail-en {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
  }
  .service-detail-lead {
    font-size: 18px;
    line-height: 1.95;
    color: var(--ink-soft);
    max-width: 720px;
    position: relative;
    z-index: 1;
  }

  .service-detail-body {
    padding: 100px 48px;
  }
  .detail-block {
    max-width: 1100px;
    margin: 0 auto 100px;
  }
  .detail-block:last-child { margin-bottom: 0; }
  .detail-block-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .detail-block-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
  }
  .detail-block h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    font-weight: 900;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
    max-width: 720px;
  }
  .detail-block h2 em { color: var(--accent); font-style: normal; }

  .detail-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }
  .detail-feature {
    padding: 36px 32px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .detail-feature .num {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    display: block;
  }
  .detail-feature h3 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
  }
  .detail-feature p {
    font-size: 14px;
    line-height: 1.85;
    color: var(--ink-soft);
  }

  .detail-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  .detail-flow-step {
    position: relative;
    padding: 28px 24px;
    background: var(--bg-alt);
    border: 1px solid var(--line);
  }
  .detail-flow-step::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -18px;
    transform: translateY(-50%);
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: var(--accent);
    z-index: 1;
  }
  .detail-flow-step:last-child::after { display: none; }
  .detail-flow-step .step-num {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
  }
  .detail-flow-step h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  .detail-flow-step p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink-soft);
  }

  .detail-pricing {
    background: var(--bg-alt);
    padding: 48px 40px;
    border-left: 4px solid var(--accent);
  }
  .detail-pricing-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
  }
  .detail-pricing-price {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
  }
  .detail-pricing-price .unit {
    font-size: 16px;
    color: var(--muted);
    margin-left: 6px;
    font-weight: 500;
  }
  .detail-pricing-note {
    font-size: 13px;
    color: var(--ink-soft);
  }

  /* ============ Media ============ */
  .media {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .media-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .media-row {
    display: grid;
    grid-template-columns: 100px 120px 1fr 80px;
    gap: 32px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    align-items: center;
    cursor: pointer;
    transition: padding 0.3s;
  }
  .media-row:hover { padding-left: 16px; }
  .media-date {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.05em;
  }
  .media-cat {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--accent);
    text-transform: uppercase;
  }
  .media-title {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s;
  }
  .media-row:hover .media-title { color: var(--accent); }
  .media-arrow {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: var(--muted);
    text-align: right;
    transition: transform 0.3s, color 0.3s;
  }
  .media-row:hover .media-arrow {
    transform: translateX(6px);
    color: var(--accent);
  }

  /* ============ Company ============ */
  .company {
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
  }
  .company-info {
    border-top: 1px solid var(--ink);
    max-width: 880px;
  }
  .company-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
    font-size: 14px;
  }
  .company-row dt {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 3px;
  }
  .company-row dd { color: var(--ink); }

  /* ============ Sponsor section (NEW) ============ */
  .sponsor {
    background: var(--bg);
    padding: 80px 48px;
    border-bottom: 1px solid var(--line);
  }
  .sponsor-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
  }
  .sponsor-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
  }
  .sponsor-msg {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink-soft);
    margin-bottom: 40px;
    font-weight: 500;
  }
  .sponsor-logos {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  .sponsor-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
  }
  .sponsor-logo img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    transition: transform 0.3s;
  }
  .sponsor-logo:hover img { transform: scale(1.05); }
  .sponsor-logo .name {
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em;
    font-weight: 500;
  }

  /* ============ CTA / Footer ============ */
  .cta {
    background: var(--ink);
    color: var(--bg);
    padding: 120px 48px 60px;
    position: relative;
    overflow: hidden;
  }
  .cta-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
    padding-bottom: 80px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 60px;
  }
  .cta-title {
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .cta-title em { color: var(--accent); font-style: normal; }
  .cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .btn-light { background: var(--bg); color: var(--ink); }
  .btn-light:hover { background: var(--accent); color: var(--bg); }
  .btn-outline-light {
    background: transparent;
    color: var(--bg);
    border-color: rgba(255, 255, 255, 0.3);
  }
  .btn-outline-light:hover { border-color: var(--bg); }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
  }
  .footer-brand .logo .logo-color { display: none; }
  .footer-brand .logo .logo-white { display: block; }
  .footer-brand .logo { height: 36px; margin-bottom: 4px; }
  .footer-tag {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 280px;
  }
  .footer-col h5 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
  }
  .footer-col ul { list-style: none; }
  .footer-col li { margin-bottom: 10px; }
  .footer-col a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--accent); }
  .footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
  }

  /* ============ Form Pages (NEW) ============ */
  .form-hero {
    padding: 160px 48px 60px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
  }
  .form-hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
  }
  .form-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    margin-bottom: 32px;
    transition: color 0.2s;
    position: relative;
    z-index: 1;
  }
  .form-back:hover { color: var(--accent); }
  .form-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
  }
  .form-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
  }
  .form-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  .form-title em { color: var(--accent); font-style: normal; }
  .form-lead {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ink-soft);
    max-width: 640px;
    position: relative;
    z-index: 1;
  }

  .form-section {
    padding: 80px 48px 100px;
    background: var(--bg);
  }
  .form-wrap {
    max-width: 720px;
    margin: 0 auto;
  }
  .form-group {
    margin-bottom: 32px;
  }
  .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 10px;
  }
  .form-label .required {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--bg);
    background: var(--accent);
    padding: 3px 8px;
    border-radius: 3px;
  }
  .form-label .optional {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--muted);
    background: var(--bg-alt);
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid var(--line);
  }
  .form-input,
  .form-select,
  .form-textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
  }
  .form-input:hover,
  .form-select:hover,
  .form-textarea:hover {
    border-color: var(--muted);
  }
  .form-input:focus,
  .form-select:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: #FFFCF9;
  }
  .form-input::placeholder,
  .form-textarea::placeholder { color: #C0BBB3; }
  .form-textarea {
    resize: vertical;
    min-height: 140px;
    font-family: inherit;
  }
  .form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238B8680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    cursor: pointer;
  }
  .form-help {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
  }

  /* Checkbox group for service selection */
  .checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .checkbox-item {
    position: relative;
    cursor: pointer;
  }
  .checkbox-item input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }
  .checkbox-item .check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--bg);
  }
  .checkbox-item .check-label::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line);
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.2s;
    background: var(--bg);
  }
  .checkbox-item:hover .check-label {
    border-color: var(--muted);
  }
  .checkbox-item input:checked + .check-label {
    border-color: var(--accent);
    background: #FFFCF9;
    color: var(--accent-deep);
  }
  .checkbox-item input:checked + .check-label::before {
    background: var(--accent);
    border-color: var(--accent);
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 5l3.5 3.5L11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }

  /* Privacy agreement */
  .form-agree {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 20px 24px;
    border-radius: 4px;
    margin-bottom: 32px;
  }
  .form-agree label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.7;
  }
  .form-agree input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
  }
  .form-agree a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .form-submit {
    width: 100%;
    padding: 20px 32px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }
  .form-submit:hover { background: var(--accent); }
  .form-submit::after {
    content: "→";
    font-family: 'Inter', sans-serif;
    transition: transform 0.2s;
  }
  .form-submit:hover::after { transform: translateX(4px); }

  /* Form info side panel */
  .form-info {
    background: var(--bg-alt);
    padding: 28px 32px;
    border-left: 3px solid var(--accent);
    margin-bottom: 48px;
    border-radius: 0 4px 4px 0;
  }
  .form-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--ink);
  }
  .form-info ul {
    list-style: none;
    font-size: 13px;
    line-height: 1.95;
    color: var(--ink-soft);
  }
  .form-info li {
    padding-left: 18px;
    position: relative;
  }
  .form-info li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
  }

  /* Success message (hidden by default) */
  .form-success {
    display: none;
    text-align: center;
    padding: 60px 32px;
    background: var(--bg-alt);
    border-radius: 4px;
    border: 1px solid var(--line);
  }
  .form-success.active { display: block; }
  .form-success-icon {
    width: 64px;
    height: 64px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--bg);
    font-size: 28px;
  }
  .form-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .form-success p {
    font-size: 15px;
    color: var(--ink-soft);
    line-height: 1.85;
    margin-bottom: 32px;
  }

  @media (max-width: 900px) {
    .form-hero { padding: 130px 24px 50px; }
    .form-section { padding: 60px 24px 80px; }
    .checkbox-grid { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .form-hero { padding: 110px 20px 40px; }
    .form-section { padding: 50px 20px 70px; }
    .form-info { padding: 24px; }
    .form-input, .form-select, .form-textarea {
      padding: 13px 16px;
      font-size: 16px; /* Prevent iOS zoom */
    }
  }

  /* ============ Document stack visual (NEW) ============ */
  .doc-stack-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px 20px;
    margin-bottom: 32px;
    perspective: 1200px;
    min-height: 380px;
    position: relative;
  }
  .doc-stack {
    position: relative;
    width: 280px;
    height: 320px;
  }
  .doc-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    height: 310px;
    background: var(--bg);
    border-radius: 4px;
    box-shadow:
      0 1px 2px rgba(10, 8, 7, 0.06),
      0 8px 24px -8px rgba(10, 8, 7, 0.18),
      0 24px 48px -16px rgba(10, 8, 7, 0.12);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    overflow: hidden;
    transform-origin: center bottom;
  }
  .doc-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
  }

  /* Top color band (cover header) */
  .doc-band {
    height: 70px;
    padding: 16px 20px;
    color: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
  }
  .doc-band::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    transform: translate(30%, 50%);
  }
  .doc-band .brand {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .doc-band .brand::before {
    content: "";
    width: 5px;
    height: 5px;
    background: currentColor;
    border-radius: 50%;
  }
  .doc-band .doc-num {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    letter-spacing: 0.05em;
  }
  .doc-band h4 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  .doc-body {
    padding: 16px 20px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg);
  }
  .doc-section-label {
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .doc-section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
  }
  .doc-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }
  .doc-bar {
    height: 3px;
    background: var(--line);
    border-radius: 2px;
  }
  .doc-bar.short { width: 65%; }
  .doc-bar.med { width: 85%; }

  /* Bar chart */
  .doc-chart {
    margin-top: auto;
    height: 60px;
    display: flex;
    align-items: end;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .doc-chart .col {
    flex: 1;
    background: var(--accent-light);
    border-radius: 2px 2px 0 0;
    position: relative;
  }
  .doc-chart .col.fill { background: var(--accent); }

  /* Pie chart */
  .doc-pie {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin: 0 auto 6px;
    background: conic-gradient(
      var(--accent) 0deg 130deg,
      var(--accent-deep) 130deg 220deg,
      var(--accent-light) 220deg 360deg
    );
    position: relative;
  }
  .doc-pie::after {
    content: "";
    position: absolute;
    inset: 14px;
    background: var(--bg);
    border-radius: 50%;
  }

  /* Line chart */
  .doc-line-chart {
    margin-top: auto;
    height: 56px;
    border-top: 1px solid var(--line);
    padding-top: 6px;
    position: relative;
  }
  .doc-line-chart svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  /* Stat box */
  .doc-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 10px;
  }
  .doc-stat {
    background: var(--bg-alt);
    padding: 6px 8px;
    border-radius: 3px;
  }
  .doc-stat .stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--accent-deep);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .doc-stat .stat-label {
    font-size: 7px;
    color: var(--muted);
    margin-top: 2px;
    letter-spacing: 0.05em;
  }

  /* Pricing table */
  .doc-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px dotted var(--line);
    font-size: 9px;
  }
  .doc-pricing-row:last-child { border-bottom: none; }
  .doc-pricing-row .label { color: var(--ink-soft); }
  .doc-pricing-row .price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: var(--accent-deep);
    font-size: 10px;
  }
  .doc-pricing-row.featured {
    background: #FFFCF9;
    margin: 2px -8px;
    padding: 6px 8px;
    border-radius: 3px;
    border-bottom: none;
  }
  .doc-pricing-row.featured .price { color: var(--accent); font-size: 11px; }

  /* Process flow */
  .doc-flow {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
  }
  .doc-flow-step {
    flex: 1;
    height: 14px;
    background: var(--bg-alt);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 7px;
    font-weight: 600;
    color: var(--muted);
  }
  .doc-flow-step.active {
    background: var(--accent);
    color: var(--bg);
  }
  .doc-flow-arrow {
    color: var(--muted);
    font-size: 8px;
  }

  /* Card-specific theme (header band colors) */
  .doc-card.theme-overview .doc-band { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%); }
  .doc-card.theme-pricing .doc-band { background: var(--ink); }
  .doc-card.theme-cases .doc-band { background: linear-gradient(135deg, #2D2A28 0%, #5C4938 100%); }
  .doc-card.theme-roadmap .doc-band { background: linear-gradient(135deg, #C66C28 0%, #8B4A1F 100%); }
  .doc-card.theme-company .doc-band { background: linear-gradient(135deg, #4A4541 0%, #2D2A28 100%); }

  /* Stack positioning: 5 cards fanning out from center */
  .doc-card.pos-1 { transform: translateX(-50%) translateX(-130px) translateY(8px) rotate(-12deg) scale(0.92); z-index: 1; }
  .doc-card.pos-2 { transform: translateX(-50%) translateX(-65px) translateY(4px) rotate(-6deg) scale(0.96); z-index: 2; }
  .doc-card.pos-3 { transform: translateX(-50%) rotate(0deg) scale(1); z-index: 5; }
  .doc-card.pos-4 { transform: translateX(-50%) translateX(65px) translateY(4px) rotate(6deg) scale(0.96); z-index: 2; }
  .doc-card.pos-5 { transform: translateX(-50%) translateX(130px) translateY(8px) rotate(12deg) scale(0.92); z-index: 1; }

  .doc-stack:hover .doc-card.pos-1 { transform: translateX(-50%) translateX(-185px) translateY(0) rotate(-15deg) scale(0.94); }
  .doc-stack:hover .doc-card.pos-2 { transform: translateX(-50%) translateX(-95px) translateY(0) rotate(-7deg) scale(0.98); }
  .doc-stack:hover .doc-card.pos-3 { transform: translateX(-50%) rotate(0deg) scale(1.04); }
  .doc-stack:hover .doc-card.pos-4 { transform: translateX(-50%) translateX(95px) translateY(0) rotate(7deg) scale(0.98); }
  .doc-stack:hover .doc-card.pos-5 { transform: translateX(-50%) translateX(185px) translateY(0) rotate(15deg) scale(0.94); }

  @media (max-width: 640px) {
    .doc-stack-wrap { min-height: 320px; padding: 30px 10px 10px; }
    .doc-stack { width: 220px; height: 280px; }
    .doc-card { width: 180px; height: 270px; }
    .doc-band { height: 60px; padding: 12px 16px; }
    .doc-band h4 { font-size: 14px; }
    .doc-body { padding: 12px 16px 10px; }
    .doc-card.pos-1 { transform: translateX(-50%) translateX(-90px) translateY(6px) rotate(-10deg) scale(0.92); }
    .doc-card.pos-2 { transform: translateX(-50%) translateX(-45px) translateY(3px) rotate(-5deg) scale(0.96); }
    .doc-card.pos-4 { transform: translateX(-50%) translateX(45px) translateY(3px) rotate(5deg) scale(0.96); }
    .doc-card.pos-5 { transform: translateX(-50%) translateX(90px) translateY(6px) rotate(10deg) scale(0.92); }
    .doc-stack:hover .doc-card.pos-1 { transform: translateX(-50%) translateX(-125px) rotate(-12deg) scale(0.94); }
    .doc-stack:hover .doc-card.pos-2 { transform: translateX(-50%) translateX(-62px) rotate(-6deg) scale(0.98); }
    .doc-stack:hover .doc-card.pos-4 { transform: translateX(-50%) translateX(62px) rotate(6deg) scale(0.98); }
    .doc-stack:hover .doc-card.pos-5 { transform: translateX(-50%) translateX(125px) rotate(12deg) scale(0.94); }
    .doc-chart, .doc-line-chart { height: 44px; }
  }

  /* ============ Privacy Policy Page (NEW) ============ */
  .privacy {
    padding: 160px 48px 100px;
    max-width: 880px;
    margin: 0 auto;
  }
  .privacy-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    margin-bottom: 32px;
    transition: color 0.2s;
  }
  .privacy-back:hover { color: var(--accent); }
  .privacy-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }
  .privacy-eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--accent);
  }
  .privacy h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .privacy-updated {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--muted);
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
  }
  .privacy-intro {
    font-size: 15px;
    line-height: 2;
    color: var(--ink-soft);
    margin-bottom: 56px;
  }
  .privacy-section {
    margin-bottom: 48px;
  }
  .privacy-section h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    color: var(--ink);
  }
  .privacy-section h3 {
    font-size: 15px;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--ink);
  }
  .privacy-section p {
    font-size: 14.5px;
    line-height: 2;
    color: var(--ink-soft);
    margin-bottom: 14px;
  }
  .privacy-section ul, .privacy-section ol {
    padding-left: 24px;
    margin-bottom: 18px;
    font-size: 14.5px;
    line-height: 2;
    color: var(--ink-soft);
  }
  .privacy-section li { margin-bottom: 6px; }
  .privacy-contact-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 28px 32px;
    border-radius: 4px;
    margin-top: 32px;
  }
  .privacy-contact-box dt {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
  }
  .privacy-contact-box dd {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--ink);
  }
  .privacy-contact-box dd:last-child { margin-bottom: 0; }

  @media (max-width: 640px) {
    .privacy { padding: 120px 20px 70px; }
    .privacy-section h2 { font-size: 18px; }
    .privacy-section p, .privacy-section ul, .privacy-section ol { font-size: 14px; }
    .privacy-contact-box { padding: 22px 24px; }
  }

  /* ============ Language Switcher (JA/EN) ============ */
  [data-ja], [data-en] { display: none; }
  body:not([data-lang="en"]) [data-ja] { display: inline; }
  body:not([data-lang="en"]) [data-ja].block { display: block; }
  body:not([data-lang="en"]) [data-ja].flex { display: flex; }
  body[data-lang="en"] [data-en] { display: inline; }
  body[data-lang="en"] [data-en].block { display: block; }
  body[data-lang="en"] [data-en].flex { display: flex; }

  /* ============ Article ============ */
  .article {
    padding: 160px 48px 80px;
    max-width: 760px;
    margin: 0 auto;
  }
  .article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    margin-bottom: 32px;
    transition: color 0.2s;
  }
  .article-back:hover { color: var(--accent); }
  .article-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .article-meta .cat { color: var(--accent); font-weight: 600; }
  .article-title {
    font-size: clamp(30px, 4.5vw, 48px);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 40px;
  }
  .article-body { font-size: 16px; line-height: 2; color: var(--ink-soft); }
  .article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.4;
  }
  .article-body p { margin-bottom: 22px; }
  .article-body ul { padding-left: 22px; margin-bottom: 22px; }
  .article-body li { margin-bottom: 6px; }

  /* ============ Responsive ============
     Breakpoints:
     - 1440px+  : Large desktop
     - 1200px   : Standard desktop
     - 1024px   : Small desktop / iPad landscape
     - 900px    : Tablet portrait → Mobile menu
     - 640px    : Large mobile
     - 480px    : Standard mobile
     - 380px    : Small mobile (iPhone SE)
     ================================== */

  @media (min-width: 1440px) {
    .nav { padding: 22px 64px; }
    .hero, section { padding-left: 64px; padding-right: 64px; }
    .cta { padding-left: 64px; padding-right: 64px; }
  }

  @media (max-width: 1200px) {
    .nav-links { gap: 32px; }
  }

  @media (max-width: 1024px) {
    .nav { padding: 18px 32px; }
    .nav-links { gap: 24px; }
    .hero { padding: 140px 32px 100px; }
    section { padding: 80px 32px; }
    .cta { padding: 100px 32px 50px; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
    .service-detail-hero { padding: 140px 32px 70px; }
    .service-detail-body { padding: 80px 32px; }
    .detail-features { grid-template-columns: repeat(2, 1fr); }
    .detail-flow { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .detail-flow-step:nth-child(2)::after { display: none; }
    .sponsor { padding: 70px 32px; }
    .form-hero { padding: 140px 32px 60px; }
    .form-section { padding: 70px 32px 90px; }
    .privacy { padding: 140px 32px 80px; }
  }

  @media (max-width: 900px) {
    .nav-toggle { display: flex; }

    /* Mobile Menu Overlay */
    .nav-links {
      position: fixed;
      top: 0; right: 0;
      width: 100%;
      max-width: 420px;
      height: 100vh;
      height: 100dvh;
      background: linear-gradient(165deg, #1A1612 0%, #0A0807 100%);
      flex-direction: column;
      justify-content: flex-start;
      align-items: stretch;
      gap: 0;
      transform: translateX(100%);
      transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
      z-index: 99;
      padding: 24px 28px 32px;
      overflow-y: auto;
      box-shadow: -20px 0 60px -20px rgba(0, 0, 0, 0.4);
    }
    .nav-links::before {
      content: "";
      position: absolute;
      top: -120px;
      right: -120px;
      width: 380px;
      height: 380px;
      background: radial-gradient(circle, rgba(240, 132, 55, 0.18) 0%, transparent 70%);
      pointer-events: none;
      animation: menuBlobFloat 8s ease-in-out infinite alternate;
    }
    .nav-links::after {
      content: "";
      position: absolute;
      bottom: -100px;
      left: -100px;
      width: 280px;
      height: 280px;
      background: radial-gradient(circle, rgba(240, 132, 55, 0.08) 0%, transparent 70%);
      pointer-events: none;
      animation: menuBlobFloat 10s ease-in-out infinite alternate-reverse;
    }
    @keyframes menuBlobFloat {
      from { transform: translate(0, 0); }
      to { transform: translate(-20px, 30px); }
    }
    .nav-links.active { transform: translateX(0); }

    /* Top section: CTA buttons & language */
    .nav-mobile-top {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 56px 0 28px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      margin-bottom: 28px;
      position: relative;
      z-index: 1;
    }
    .nav-mobile-cta {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 16px 24px;
      border-radius: 100px;
      font-size: 14px !important;
      font-weight: 600;
      letter-spacing: 0.02em;
      transition: all 0.2s;
      text-align: center;
      width: 100%;
      cursor: pointer;
      border: none;
    }
    .nav-mobile-cta.primary {
      background: var(--accent);
      color: #FFF !important;
      box-shadow: 0 4px 20px -6px rgba(240, 132, 55, 0.5);
    }
    .nav-mobile-cta.primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
    .nav-mobile-cta.secondary {
      background: transparent;
      color: #FFF !important;
      border: 1px solid rgba(255, 255, 255, 0.3);
    }
    .nav-mobile-cta.secondary:hover { border-color: var(--accent); color: var(--accent) !important; }
    .nav-mobile-cta::after { content: "→"; font-family: 'Inter'; transition: transform 0.2s; }
    .nav-mobile-cta:hover::after { transform: translateX(3px); }

    /* Lang switch */
    .nav-mobile-lang {
      display: flex;
      gap: 4px;
      align-self: flex-end;
      font-family: 'Inter', sans-serif;
      font-size: 11px;
      font-weight: 500;
      color: rgba(255, 255, 255, 0.6);
      letter-spacing: 0.1em;
      margin-top: 4px;
    }
    .nav-mobile-lang span { padding: 2px 6px; cursor: pointer; transition: color 0.2s; }
    .nav-mobile-lang span.active {
      color: var(--accent);
      border-bottom: 1px solid var(--accent);
    }
    .nav-mobile-lang span:hover { color: #FFF; }

    /* Menu items - rich style */
    .nav-links li {
      list-style: none;
      position: relative;
      z-index: 1;
      opacity: 0;
      transform: translateX(20px);
      animation: menuItemSlide 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    }
    .nav-links.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { animation-delay: 0.20s; }
    .nav-links.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { animation-delay: 0.30s; }
    .nav-links.active li:nth-child(6) { animation-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { animation-delay: 0.40s; }
    @keyframes menuItemSlide {
      to { opacity: 1; transform: translateX(0); }
    }
    .nav-links li:not(.nav-mobile-top):not(.nav-mobile-bottom) {
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang) {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 4px;
      font-size: 17px !important;
      font-weight: 500;
      color: #FFF !important;
      transition: color 0.25s, padding 0.25s;
      position: relative;
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang)::before {
      content: attr(data-num);
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 500;
      color: var(--accent);
      letter-spacing: 0.15em;
      margin-right: 14px;
      opacity: 0.7;
      transition: opacity 0.25s, transform 0.25s;
      flex-shrink: 0;
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang)::after {
      content: "→";
      font-family: 'Inter', sans-serif;
      font-size: 16px;
      color: rgba(255, 255, 255, 0.3);
      transition: transform 0.25s, color 0.25s;
      margin-left: auto;
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang):hover {
      color: var(--accent) !important;
      padding-left: 8px;
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang):hover::before {
      opacity: 1;
    }
    .nav-links a:not(.nav-mobile-cta):not(.nav-mobile-lang):hover::after {
      color: var(--accent);
      transform: translateX(4px);
    }
    .nav-link-text {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .nav-link-text .sub {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 400;
      color: rgba(255, 255, 255, 0.4);
      letter-spacing: 0.1em;
      text-transform: uppercase;
    }

    /* Bottom section: Follow + Brand */
    .nav-mobile-bottom {
      margin-top: auto;
      padding-top: 28px;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      flex-direction: column;
      gap: 16px;
      list-style: none !important;
      border-bottom: none !important;
      position: relative;
      z-index: 1;
    }
    .nav-mobile-follow {
      display: flex;
      align-items: center;
      gap: 16px;
    }
    .nav-mobile-follow-label {
      font-family: 'Inter', sans-serif;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.5);
    }
    .nav-mobile-social {
      display: flex;
      gap: 8px;
    }
    .nav-mobile-social a {
      width: 38px !important;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.18);
      display: flex !important;
      align-items: center;
      justify-content: center;
      padding: 0 !important;
      color: rgba(255, 255, 255, 0.75) !important;
      transition: all 0.2s;
      background: rgba(255, 255, 255, 0.03);
    }
    .nav-mobile-social a::before, .nav-mobile-social a::after { display: none !important; }
    .nav-mobile-social a svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
      display: block;
    }
    .nav-mobile-social a:hover {
      background: var(--accent) !important;
      border-color: var(--accent);
      color: #FFF !important;
      transform: translateY(-2px);
    }
    .nav-mobile-brand {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 8px;
    }
    .nav-mobile-brand .brand-mark {
      display: flex;
      align-items: center;
      gap: 8px;
      font-family: 'Inter', sans-serif;
      font-weight: 700;
      font-size: 16px;
      color: #FFF;
      letter-spacing: -0.02em;
    }
    .nav-mobile-brand .brand-mark .dot {
      width: 7px; height: 7px;
      background: var(--accent);
      border-radius: 50%;
    }
    .nav-mobile-brand .copyright {
      font-family: 'Inter', sans-serif;
      font-size: 9px;
      color: rgba(255, 255, 255, 0.35);
      letter-spacing: 0.05em;
    }

    /* Hamburger toggle - elevated */
    .nav-toggle {
      width: 44px; height: 44px;
      background: var(--ink);
      border-radius: 50%;
      transition: background 0.3s, transform 0.3s;
      z-index: 110;
      position: relative;
    }
    .nav-toggle:hover { background: var(--accent); }
    .nav-toggle.active {
      background: var(--accent);
      transform: rotate(90deg);
    }
    .nav-toggle span { background: #FFF; width: 18px; }

    /* Show mobile-only items */
    .nav-mobile-top, .nav-mobile-bottom { display: flex !important; }
    .nav-links a span.sub { display: block !important; }

    .hero { padding: 120px 24px 80px; }
    section { padding: 70px 24px; }
    .cta { padding: 80px 24px 40px; }
    .section-head { flex-direction: column; align-items: start; }

    .services-grid { grid-template-columns: 1fr; }
    .company-row { grid-template-columns: 130px 1fr; }
    .cta-inner {
      grid-template-columns: 1fr;
      gap: 32px;
      padding-bottom: 50px;
      margin-bottom: 40px;
    }
    .cta-actions { flex-direction: row; flex-wrap: wrap; }

    .media-row {
      grid-template-columns: 1fr;
      gap: 8px;
      padding: 24px 0;
    }
    .media-row:hover { padding-left: 0; }
    .media-arrow { display: none; }

    .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 32px;
    }
    .footer-brand { grid-column: 1 / -1; }

    .service-detail-body { padding: 60px 24px; }
    .detail-block { margin-bottom: 70px; }
    .detail-flow-step::after { display: none !important; }
    .sponsor { padding: 60px 24px; }
    .sponsor-logos { gap: 40px; }

    .form-hero { padding: 120px 24px 50px; }
    .form-section { padding: 60px 24px 80px; }
    .checkbox-grid { grid-template-columns: 1fr; }
    .privacy { padding: 120px 24px 70px; }
  }

  @media (max-width: 640px) {
    .nav { padding: 16px 20px; }
    .logo { font-size: 18px; }

    .hero { padding: 110px 20px 70px; }
    section { padding: 60px 20px; }
    .cta { padding: 70px 20px 36px; }

    .hero-desc { font-size: 15px; margin-bottom: 36px; }
    .hero-actions { flex-direction: column; gap: 12px; align-items: stretch; }
    .btn { justify-content: center; padding: 16px 28px; }

    .service-item { padding: 36px 24px; }
    .service-arrow { top: 36px; right: 24px; }
    .service-item h3 { font-size: 20px; }
    .services-lead { font-size: 14px; }

    .company-row {
      grid-template-columns: 110px 1fr;
      font-size: 13px;
      padding: 14px 0;
    }

    .cta-actions { flex-direction: column; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .article { padding: 120px 20px 60px; }
    .article-body { font-size: 15px; }
    .article-body h2 { font-size: 20px; margin-top: 36px; }

    /* Service detail */
    .service-detail-hero { padding: 110px 20px 60px; }
    .service-detail-body { padding: 50px 20px; }
    .detail-features { grid-template-columns: 1fr; }
    .detail-feature { padding: 28px 24px; }
    .detail-flow { grid-template-columns: 1fr; }
    .detail-pricing { padding: 32px 24px; }
    .detail-pricing-price { font-size: 32px; }

    .sponsor { padding: 50px 20px; }
    .sponsor-msg { font-size: 14px; line-height: 1.85; }
    .sponsor-logos { gap: 32px; }
    .sponsor-logo img { width: 90px; height: 90px; }

    /* Form */
    .form-hero { padding: 110px 20px 40px; }
    .form-section { padding: 50px 20px 70px; }
    .form-input, .form-select, .form-textarea {
      padding: 13px 16px;
      font-size: 16px; /* Prevent iOS zoom */
    }
    .form-info { padding: 24px; }

    /* Privacy */
    .privacy { padding: 110px 20px 70px; }
    .privacy-section h2 { font-size: 18px; }
    .privacy-section p, .privacy-section ul, .privacy-section ol { font-size: 14px; }
    .privacy-contact-box { padding: 22px 24px; }
  }

  /* Standard mobile */
  @media (max-width: 480px) {
    .hero { padding: 100px 18px 60px; }
    section { padding: 56px 18px; }
    .cta { padding: 60px 18px 32px; }
    .nav { padding: 14px 18px; }

    .hero-stat .num { font-size: 36px; }
    .service-item h3 { font-size: 18px; }
    .case-card { padding: 24px 20px; }

    .form-info { padding: 20px; }
    .form-info ul { font-size: 12.5px; }
  }

  /* Small mobile (iPhone SE etc) */
  @media (max-width: 380px) {
    .nav { padding: 12px 16px; }
    .logo { font-size: 16px; }
    .logo .dot { width: 6px; height: 6px; }

    .hero { padding: 96px 16px 50px; }
    section { padding: 50px 16px; }
    .cta { padding: 56px 16px 28px; }

    .service-item { padding: 32px 20px; }
    .service-item h3 { font-size: 17px; }
    .service-arrow { top: 32px; right: 20px; }

    .form-section { padding: 40px 16px 60px; }
    .privacy { padding: 100px 16px 60px; }
  }

  /* Landscape orientation on mobile */
  @media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding-top: 90px; padding-bottom: 50px; }
    .nav-links {
      padding: 60px 32px 24px;
      justify-content: flex-start;
      gap: 16px;
      overflow-y: auto;
    }
    .nav-links a { font-size: 15px !important; }
  }

  /* Touch device adjustments */
  @media (hover: none) and (pointer: coarse) {
    .service-item:hover { background: transparent; }
    .media-row:hover { padding-left: 0; }
    .service-item:active { background: var(--bg-alt); }
    .case-card:hover { transform: none; border-color: var(--line); }
    .case-card:active { border-color: var(--ink); }
    .doc-stack:hover .doc-card.pos-1,
    .doc-stack:hover .doc-card.pos-2,
    .doc-stack:hover .doc-card.pos-3,
    .doc-stack:hover .doc-card.pos-4,
    .doc-stack:hover .doc-card.pos-5 {
      /* Disable hover-only fan animation on touch */
      transform: initial;
    }
    /* Increase tap target sizes */
    .nav-links a { padding: 10px 0; min-height: 44px; }
    .checkbox-item .check-label { min-height: 48px; }
    .form-submit { min-height: 52px; }
    .btn { min-height: 48px; }
  }

  /* Reduced motion accessibility */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    .marquee-track, .clients-track { animation: none !important; }
  }

  /* Print styles */
  @media print {
    .nav, .nav-toggle, .marquee, .clients, .cta, .hero-bg { display: none !important; }
    body { background: white; color: black; }
  }

/* ================================================================
   WordPress Theme Additions (v2.0)
   SEO / UX / A11y / Core Web Vitals 強化パート
   ================================================================ */

/* ---------- Accessibility: skip link & focus ---------- */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 999;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav a:focus-visible,
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Header scroll state ---------- */
.nav { transition: box-shadow 0.3s ease, padding 0.3s ease; }
.nav.is-scrolled {
  box-shadow: 0 4px 24px -12px rgba(10, 8, 7, 0.12);
}

/* ---------- Scroll reveal (IntersectionObserver) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: 96px 48px 0;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--line); }
.breadcrumbs a { color: var(--muted); transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current="page"] { color: var(--ink-soft); }
@media (max-width: 900px) { .breadcrumbs { padding: 88px 24px 0; } }
@media (max-width: 640px) { .breadcrumbs { padding: 84px 20px 0; font-size: 11px; } }

/* ---------- FAQ (details/summary + FAQPage schema) ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 4px;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  transition: color 0.2s;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform 0.3s, color 0.2s;
}
.faq-item[open] summary { color: var(--accent-deep); }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); color: var(--accent); }
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 4px 26px 30px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .faq-item summary { font-size: 15px; padding: 20px 36px 20px 2px; }
  .faq-answer { font-size: 14px; padding-left: 26px; }
}

/* ---------- Media archive: category filter ---------- */
.media-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.media-filter {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.media-filter:hover { border-color: var(--accent); color: var(--accent); }
.media-filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 64px;
  font-family: 'Inter', sans-serif;
}
.pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.pagination .page-numbers.dots { border: none; }

/* ---------- Single article: WP content prose ---------- */
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2.4em;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
  line-height: 1.45;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 2em;
}
.article-body a {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s;
}
.article-body a:hover { color: var(--accent); }
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin-bottom: 8px; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote {
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 22px;
  color: var(--muted);
  font-style: normal;
}
.article-body img { border-radius: 6px; }
.article-body figure { margin: 2em 0; }
.article-body figcaption {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.article-body th, .article-body td {
  border: 1px solid var(--line);
  padding: 12px 16px;
  text-align: left;
}
.article-body th { background: var(--bg-alt); font-weight: 700; }
.article-body pre {
  background: var(--ink);
  color: #E8E5E0;
  padding: 20px 24px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
.article-body code {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 0.9em;
}
.article-body :not(pre) > code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--accent-deep);
}

/* ---------- Single article: header & share ---------- */
.article-eyecatch {
  margin: 0 0 44px;
  border-radius: 8px;
  overflow: hidden;
}
.article-eyecatch img { width: 100%; height: auto; }
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.article-share-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-share a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: all 0.2s;
}
.article-share a svg { width: 15px; height: 15px; fill: currentColor; }
.article-share a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
  transform: translateY(-2px);
}

/* ---------- Related posts ---------- */
.related {
  padding: 80px 48px;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}
.related-inner { max-width: 1080px; margin: 0 auto; }
.related-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.related-title::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 8, 7, 0.2);
}
.related-card .meta {
  display: flex;
  gap: 12px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 11px;
  color: var(--muted);
}
.related-card .meta .cat { color: var(--accent); font-weight: 600; }
.related-card h3 { font-size: 15px; font-weight: 700; line-height: 1.6; }
@media (max-width: 900px) {
  .related { padding: 60px 24px; }
  .related-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.error404-hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.error404-code {
  font-family: 'Inter', sans-serif;
  font-size: clamp(90px, 18vw, 180px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.error404-code em { color: var(--accent); font-style: normal; }
.error404-hero p { color: var(--ink-soft); margin: 20px 0 36px; }

/* ---------- CF7 form adjustments ---------- */
.form-wrap .wpcf7 .form-input,
.form-wrap .wpcf7 .form-select,
.form-wrap .wpcf7 .form-textarea { width: 100%; }
.wpcf7-not-valid-tip {
  display: block;
  color: #C0392B;
  font-size: 12px;
  margin-top: 6px;
}
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0;
  padding: 16px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-size: 14px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #2E8B57; color: #2E8B57; }
.wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ---------- WP core compat ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden;
  padding: 0; position: absolute; word-wrap: normal !important;
}
.alignwide { margin-left: auto; margin-right: auto; max-width: 1100px; }
.alignfull { width: 100%; }
img.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Print ---------- */
@media print {
  .breadcrumbs, .related, .article-share { display: none !important; }
}

/* ---------- リンク化した要素のdisplay補正 ---------- */
a.service-item { display: block; color: inherit; }
a.media-row { color: inherit; }

/* ---------- サービス相互リンク（内部リンク強化） ---------- */
.service-cross {
  padding: 80px 48px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.service-cross-inner { max-width: 1080px; margin: 0 auto; }
.service-cross-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.service-cross-title::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.service-cross-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service-cross-card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 30px 30px 26px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  color: inherit;
}
.service-cross-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -20px rgba(10, 8, 7, 0.2);
}
.service-cross-card .num {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 14px;
}
.service-cross-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.service-cross-card p { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.service-cross-card .arrow {
  position: absolute;
  top: 28px;
  right: 26px;
  font-family: 'Inter', sans-serif;
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}
.service-cross-card:hover .arrow { color: var(--accent); transform: translate(3px, -3px); }
@media (max-width: 900px) {
  .service-cross { padding: 60px 24px; }
  .service-cross-grid { grid-template-columns: 1fr; }
}
