:root {
      --ink: #161616;
      --paper: #FFFFFF;
      --warm: #F6F3EF;
      --accent: #C8312B;
      --body: #2B2B2B;
      --note: #6F6A65;
      --line: rgba(22, 22, 22, 0.16);
      --max: 1120px;
      --hero-max: 1360px;
      --serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
      --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--body);
      background: var(--warm);
      font-family: var(--sans);
      font-size: 16px;
      line-height: 1.85;
    }
    img {
      display: block;
      max-width: 100%;
      height: auto;
    }
    a {
      color: inherit;
      text-decoration: none;
    }
    h1, h2, h3, .lead, .btn, summary {
      word-break: auto-phrase;
      text-wrap: balance;
    }
    h1, h2, h3, p { margin-top: 0; }
    h1, h2, h3 {
      color: var(--ink);
      font-family: var(--serif);
      font-weight: 500;
      letter-spacing: 0;
      line-height: 1.22;
    }
    h1 { font-size: 58px; margin-bottom: 28px; }
    h2 { font-size: 38px; margin-bottom: 24px; }
    h3 { font-size: 24px; margin-bottom: 12px; }
    p { margin-bottom: 18px; }
    .wrap {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
    }
    .section {
      position: relative;
      padding: 96px 0;
      overflow: hidden;
    }
    .section .wrap {
      position: relative;
      z-index: 1;
    }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 18px;
      color: var(--accent);
      font-size: 13px;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    .eyebrow::before {
      content: "";
      width: 46px;
      height: 1px;
      background: var(--accent);
    }
    .lead {
      max-width: 650px;
      color: var(--note);
      font-size: 18px;
    }
    .btn-row {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      margin-top: 30px;
    }
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 52px;
      padding: 13px 22px;
      border: 1px solid var(--ink);
      background: var(--ink);
      color: var(--paper);
      font-weight: 700;
      line-height: 1.3;
      transition: transform 180ms ease, background 180ms ease, color 180ms ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn.secondary {
      background: transparent;
      color: var(--ink);
    }
    .btn.accent {
      border-color: var(--accent);
      background: var(--accent);
    }
    .film-rule {
      position: relative;
      min-height: 18px;
      background-image:
        linear-gradient(90deg, var(--ink) 0 1px, transparent 1px),
        linear-gradient(90deg, var(--ink) 0 1px, transparent 1px);
      background-size: 30px 11px;
      background-position: 0 0, 0 12px;
      opacity: 0.26;
    }
    .deco {
      position: absolute;
      z-index: 0;
      pointer-events: none;
      mix-blend-mode: multiply;
      opacity: 0.18;
    }

    .site-header {
      position: absolute;
      inset: 0 0 auto 0;
      z-index: 5;
      padding: 24px 0;
    }
    .header-inner {
      width: min(var(--hero-max), calc(100% - 48px));
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .logo {
      width: 206px;
      height: auto;
    }
    .nav {
      display: flex;
      align-items: center;
      gap: 24px;
      color: var(--ink);
      font-size: 14px;
    }
    .nav-cta {
      padding: 9px 15px;
      border: 1px solid var(--ink);
    }

    .hero {
      width: 100%;
      min-height: 760px;
      padding: 116px 0 70px;
      background: var(--paper);
    }
    .hero-inner {
      width: min(var(--hero-max), calc(100% - 48px));
      min-height: 660px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: 0.45fr 0.55fr;
      gap: 56px;
      align-items: center;
      position: relative;
    }
    .hero-copy {
      position: relative;
      z-index: 2;
      padding-top: 52px;
    }
    .hero-copy .lead {
      font-size: 18px;
      color: var(--body);
    }
    .hero-note {
      margin-top: 28px;
      padding-left: 18px;
      border-left: 3px solid var(--accent);
      color: var(--note);
      font-size: 14px;
    }
    .hero-visual {
      position: relative;
      min-height: 590px;
    }
    .hero-visual img {
      width: 100%;
      height: 590px;
      object-fit: cover;
      object-position: center;
    }
    /* 07.SlitScan ＝ 写真を縦スリットに割り、位相差で上下に揺らす残像（純CSS／静止時は通常写真） */
    .slit { position: absolute; inset: 0; z-index: 1; display: flex; overflow: hidden; }
    .slit .s {
      flex: 1 1 0; background-image: url("src/fv.jpg"); background-repeat: no-repeat;
      background-size: 1400% 100%; will-change: transform;
      animation: slitScan 3.4s ease-in-out infinite;
    }
    @keyframes slitScan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4%); } }
    @media (prefers-reduced-motion: reduce) { .slit .s { animation: none; } }
    .hero-visual::before {
      content: "";
      position: absolute;
      inset: 32px auto auto -38px;
      width: 160px;
      height: calc(100% - 64px);
      background: repeating-linear-gradient(
        to bottom,
        transparent 0 18px,
        rgba(22,22,22,0.18) 18px 29px,
        transparent 29px 46px
      );
      z-index: -1;
    }
    .hero-count {
      position: absolute;
      z-index: 2;
      right: 22px;
      bottom: 22px;
      min-width: 210px;
      padding: 18px 20px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(22, 22, 22, 0.15);
      backdrop-filter: blur(8px);
    }
    .hero-count strong {
      display: block;
      color: var(--accent);
      font-family: var(--serif);
      font-size: 34px;
      line-height: 1.1;
    }

    .worries {
      background: var(--warm);
    }
    .worry-list {
      margin-top: 0;
      border-top: 1px solid var(--line);
    }
    .worry-layout {
      display: grid;
      grid-template-columns: 0.42fr 0.58fr;
      gap: 44px;
      align-items: start;
      margin-top: 44px;
    }
    .worry-item {
      display: grid;
      grid-template-columns: 140px 1fr;
      gap: 36px;
      padding: 30px 0;
      border-bottom: 1px solid var(--line);
    }
    .worry-num {
      color: rgba(22, 22, 22, 0.28);
      font-family: var(--serif);
      font-size: 54px;
      line-height: 1;
    }
    .editorial-figure {
      margin: 0;
    }
    .editorial-figure img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
    .editorial-figure.wide img {
      aspect-ratio: 16 / 9;
    }
    .editorial-figure figcaption {
      margin-top: 12px;
      padding-left: 14px;
      border-left: 2px solid var(--accent);
      color: var(--note);
      font-size: 13px;
    }

    .promise {
      background: var(--ink);
      color: rgba(255,255,255,0.78);
    }
    .promise h2 {
      max-width: 780px;
      color: var(--paper);
      font-size: 44px;
    }
    .promise .lead {
      color: rgba(255,255,255,0.72);
    }
    .promise .film-rule {
      margin-top: 44px;
      background-image:
        linear-gradient(90deg, var(--paper) 0 1px, transparent 1px),
        linear-gradient(90deg, var(--paper) 0 1px, transparent 1px);
      opacity: 0.3;
    }

    .proof-grid {
      display: grid;
      grid-template-columns: 0.36fr 0.64fr;
      gap: 56px;
      align-items: center;
    }
    .profile {
      position: relative;
    }
    .profile img {
      aspect-ratio: 1 / 1;
      object-fit: cover;
      border-radius: 50%;
      border: 1px solid var(--line);
    }
    .profile-caption {
      margin-top: 18px;
      color: var(--note);
      font-size: 14px;
    }
    .badge-row {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-top: 32px;
    }
    .badge-row img {
      width: 100%;
      background: var(--paper);
      border: 1px solid var(--line);
    }

    .policy {
      background: var(--warm);
    }
    .policy-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 26px;
      margin-top: 40px;
    }
    .policy-feature {
      display: grid;
      grid-template-columns: 0.48fr 0.52fr;
      gap: 38px;
      align-items: end;
      margin-top: 42px;
    }
    .policy-item {
      padding-top: 24px;
      border-top: 1px solid var(--ink);
    }
    .policy-item img {
      width: 54px;
      height: 54px;
      object-fit: contain;
      margin-bottom: 20px;
    }

    .cases {
      background: var(--paper);
    }
    .case-feature {
      display: grid;
      grid-template-columns: 0.64fr 0.36fr;
      gap: 36px;
      align-items: end;
      margin-top: 42px;
    }
    .case-photo img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
    .case-caption {
      padding: 26px 0 0;
      border-top: 1px solid var(--ink);
    }
    .case-strip {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      margin-top: 28px;
    }
    .case-strip figure,
    .voice-list figure {
      margin: 0;
    }
    .case-strip img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
    }
    figcaption {
      margin-top: 10px;
      color: var(--note);
      font-size: 13px;
    }
    .voice-list {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 22px;
      margin-top: 42px;
    }
    .voice-card {
      padding-top: 22px;
      border-top: 1px solid var(--line);
    }
    .voice-card img {
      width: 76px;
      height: 76px;
      border-radius: 50%;
      object-fit: cover;
      margin-bottom: 16px;
    }
    .voice-card p {
      font-size: 15px;
    }

    .services {
      background: var(--warm);
    }
    .service-photo {
      margin-top: 42px;
      max-width: 860px;
    }
    .service-table {
      margin-top: 42px;
      border-top: 1px solid var(--ink);
    }
    .service-row {
      display: grid;
      grid-template-columns: 0.34fr 1fr 0.22fr;
      gap: 24px;
      padding: 26px 0;
      border-bottom: 1px solid var(--line);
      align-items: start;
    }
    .service-row strong {
      color: var(--ink);
      font-family: var(--serif);
      font-size: 22px;
      font-weight: 500;
    }
    .price {
      color: var(--accent);
      text-align: right;
      white-space: nowrap;
    }

    .steps {
      background: var(--paper);
    }
    .step-list {
      max-width: 860px;
      margin: 44px 0 0 auto;
      border-top: 1px solid var(--line);
    }
    .flow-photo {
      max-width: 760px;
      margin: 36px 0 0;
    }
    .step-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 28px;
      padding: 28px 0;
      border-bottom: 1px solid var(--line);
    }
    .step-num {
      color: var(--accent);
      font-family: var(--serif);
      font-size: 46px;
      line-height: 1;
    }

    .faq {
      background: var(--warm);
    }
    .faq-list {
      margin-top: 40px;
      border-top: 1px solid var(--ink);
    }
    .faq-item {
      display: grid;
      grid-template-columns: 0.36fr 1fr;
      gap: 30px;
      padding: 26px 0;
      border-bottom: 1px solid var(--line);
    }
    .faq-item h3 {
      margin-bottom: 0;
      font-size: 22px;
    }

    .final-cta {
      background: var(--paper);
      text-align: left;
    }
    .cta-panel {
      position: relative;
      padding: 70px 0 0;
      border-top: 1px solid var(--ink);
      display: grid;
      grid-template-columns: 0.52fr 0.48fr;
      gap: 42px;
      align-items: end;
    }
    .cta-panel h2 {
      max-width: 760px;
      font-size: 46px;
    }
    .cta-panel .lead {
      max-width: 720px;
    }
    .cta-panel .film-rule {
      margin-top: 54px;
    }
    .cta-image img {
      width: 100%;
      aspect-ratio: 16 / 9;
      object-fit: cover;
    }

    .site-footer {
      background: var(--ink);
      color: rgba(255,255,255,0.72);
      padding: 56px 0;
    }
    .footer-grid {
      width: min(var(--max), calc(100% - 48px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 0.42fr 0.58fr;
      gap: 44px;
      align-items: start;
    }
    .footer-logo {
      width: 210px;
      margin-bottom: 24px;
      filter: invert(1);
    }
    .footer-info {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 18px 28px;
      border-top: 1px solid rgba(255,255,255,0.18);
      padding-top: 24px;
      font-size: 14px;
    }
    .footer-info span {
      display: block;
      color: rgba(255,255,255,0.42);
      font-size: 12px;
    }
    .copyright {
      width: min(var(--max), calc(100% - 48px));
      margin: 36px auto 0;
      color: rgba(255,255,255,0.36);
      font-size: 12px;
    }

    @media (max-width: 900px) {
      .nav a:not(.nav-cta) { display: none; }
      .hero-inner,
      .worry-layout,
      .proof-grid,
      .policy-feature,
      .case-feature,
      .cta-panel,
      .footer-grid {
        grid-template-columns: 1fr;
      }
      .hero {
        min-height: auto;
        padding-top: 104px;
      }
      .hero-inner {
        min-height: auto;
        gap: 36px;
      }
      .hero-copy {
        padding-top: 0;
      }
      .hero-visual,
      .hero-visual img {
        min-height: 0;
        height: auto;
      }
      .hero-visual img {
        aspect-ratio: 4 / 3;
      }
    }

    @media (max-width: 768px) {
      h1 { font-size: 36px; }
      h2 { font-size: 29px; }
      h3 { font-size: 21px; }
      body { font-size: 15px; }
      .wrap,
      .header-inner,
      .hero-inner,
      .footer-grid,
      .copyright {
        width: min(100% - 32px, var(--max));
      }
      .section { padding: 66px 0; }
      .logo { width: 178px; }
      .nav-cta { padding: 8px 12px; font-size: 13px; }
      .btn-row { flex-direction: column; align-items: stretch; }
      .btn { width: 100%; }
      .hero-count {
        position: static;
        margin-top: 14px;
      }
      .worry-item,
      .service-row,
      .step-item,
      .faq-item {
        grid-template-columns: 1fr;
        gap: 12px;
      }
      .worry-num,
      .step-num {
        font-size: 38px;
      }
      .badge-row,
      .policy-grid,
      .case-strip,
      .voice-list,
      .footer-info {
        grid-template-columns: 1fr;
      }
      .price {
        text-align: left;
      }
      .promise h2,
      .cta-panel h2 {
        font-size: 31px;
      }
    }
  
/* ZOROYA fixed pages / WordPress migration support */
.zoroya-sub-nav{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.zoroya-sub-nav a,.wp-page-links a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line,rgba(0,0,0,.14));border-radius:999px;padding:.55em 1em;font-weight:700;font-size:13px;background:rgba(255,255,255,.72)}
.zoroya-sub-nav a[aria-current="page"]{background:var(--ink,#222);color:#fff;border-color:var(--ink,#222)}
.wp-page-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.page-main{background:var(--bg,#f7f3ed);color:var(--body,#333);min-height:60vh}
.page-hero{padding:clamp(76px,10vw,132px) 0 clamp(44px,7vw,82px);border-bottom:1px solid var(--line,rgba(0,0,0,.12));background:linear-gradient(135deg,rgba(255,255,255,.75),rgba(255,255,255,.28))}
.page-hero .section-inner,.page-section .section-inner,.zoroya-final .section-inner{width:min(1120px,calc(100% - 44px));margin:0 auto}
.page-hero h1{font-size:clamp(32px,5vw,56px);margin:.18em 0 .28em}
.page-hero p{max-width:42em;color:var(--muted,var(--body,#555));font-size:clamp(15px,1.8vw,18px)}
.page-section{padding:clamp(58px,8vw,100px) 0;border-bottom:1px solid var(--line-soft,var(--line,rgba(0,0,0,.08)))}
.page-section h2{font-size:clamp(25px,3.4vw,40px);margin-bottom:24px}
.zoroya-sub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.zoroya-sub-card{background:var(--paper,#fff);border:1px solid var(--line,rgba(0,0,0,.12));border-radius:12px;padding:24px;box-shadow:0 18px 44px -34px rgba(0,0,0,.34)}
.zoroya-sub-card h3{font-size:clamp(19px,2vw,24px);margin-bottom:10px}
.zoroya-sub-card p,.zoroya-sub-card li{color:var(--muted,var(--body,#555));font-size:15px}
.zoroya-sub-card ul{margin:12px 0 0;padding-left:1.25em}
.zoroya-flow{display:grid;gap:14px;counter-reset:flow}
.zoroya-flow li{list-style:none;display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:start;background:rgba(255,255,255,.58);border:1px solid var(--line,rgba(0,0,0,.12));padding:18px;border-radius:10px}
.zoroya-flow li::before{counter-increment:flow;content:counter(flow,decimal-leading-zero);font-weight:800;color:var(--accent,#9a6a33);font-family:inherit}
.zoroya-info{display:grid;grid-template-columns:180px 1fr;gap:0;border-top:1px solid var(--line,rgba(0,0,0,.12));background:rgba(255,255,255,.5)}
.zoroya-info dt,.zoroya-info dd{margin:0;padding:14px 16px;border-bottom:1px solid var(--line,rgba(0,0,0,.12))}
.zoroya-info dt{font-weight:800;color:var(--ink,#222)}
.zoroya-faq{display:grid;gap:14px}
.zoroya-faq details{background:var(--paper,#fff);border:1px solid var(--line,rgba(0,0,0,.12));border-radius:10px;padding:18px 20px}
.zoroya-faq summary{cursor:pointer;font-weight:800;color:var(--ink,#222)}
.zoroya-faq p{margin-top:12px;color:var(--muted,var(--body,#555))}
.zoroya-form-slot{background:var(--paper,#fff);border:1px dashed var(--accent,#9a6a33);border-radius:12px;padding:26px}
.zoroya-final{padding:clamp(56px,8vw,94px) 0;background:var(--ink,#222);color:#fff}
.zoroya-final h2{color:#fff}
.zoroya-final p{color:rgba(255,255,255,.78);max-width:40em}
.zoroya-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
@media (max-width:768px){
  .zoroya-sub-grid,.zoroya-info{grid-template-columns:1fr}
  .zoroya-info dt{padding-bottom:4px;border-bottom:0}
  .zoroya-info dd{padding-top:4px}
  .page-hero .section-inner,.page-section .section-inner,.zoroya-final .section-inner{width:min(100% - 28px,1120px)}
}
