/* 8ec.jp 共通デザインシステム（トップページのデザインから抽出） */
:root {
      --ink: #17335c;
      --ink-soft: #647b99;
      --teal: #2479e9;
      --teal-dark: #0c5dce;
      --teal-pale: #eaf4ff;
      --cyan-pale: #f6faff;
      --coral: #f2994a;
      --pink: #2b7fe0;
      --paper: #ffffff;
      --white: #fff;
      --line: #dce9f7;
      --shadow: 0 18px 45px rgba(32, 78, 132, .11);
      --radius: 22px;
      --radius-sm: 14px;
      --max: 1180px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: var(--paper);
      font-family: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
      line-height: 1.75;
      -webkit-font-smoothing: antialiased;
    }
    img, svg { display: block; max-width: 100%; }
    a { color: inherit; }
    button, input { font: inherit; }
    button { color: inherit; }
    .container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
    .section { padding: 92px 0; }
    .section-soft { background: var(--cyan-pale); }
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin: 0 0 15px;
      color: var(--teal-dark);
      font-size: 13px;
      font-weight: 800;
      letter-spacing: .12em;
      text-transform: uppercase;
    }
    .eyebrow::before {
      width: 24px;
      height: 3px;
      content: "";
      border-radius: 99px;
      background: linear-gradient(90deg, var(--teal), var(--coral));
    }
    h1, h2, h3, p { margin-top: 0; }
    h1 {
      margin-bottom: 24px;
      font-size: clamp(40px, 5.1vw, 70px);
      line-height: 1.18;
      letter-spacing: -.045em;
    }
    h2 {
      margin-bottom: 18px;
      font-size: clamp(31px, 3.4vw, 46px);
      line-height: 1.32;
      letter-spacing: -.035em;
    }
    h3 {
      margin-bottom: 9px;
      font-size: 21px;
      line-height: 1.45;
    }
    .lead {
      max-width: 760px;
      color: var(--ink-soft);
      font-size: clamp(16px, 1.8vw, 18px);
    }
    .center { text-align: center; }
    .center .lead { margin-inline: auto; }
    .accent { color: var(--teal); }
    .only-pc { display: inline; }
    .btn {
      display: inline-flex;
      min-height: 54px;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 13px 24px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      text-decoration: none;
      transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    }
    .btn:hover { transform: translateY(-2px); }
    .btn-primary {
      color: var(--white);
      background: linear-gradient(135deg, var(--teal), #0c5dce);
      box-shadow: 0 12px 28px rgba(36, 121, 233, .25);
    }
    .btn-primary:hover { box-shadow: 0 16px 32px rgba(36, 121, 233, .32); }
    .btn-outline { border-color: #bdd5ed; background: rgba(255,255,255,.8); }
    .btn-outline:hover { background: var(--teal-pale); }
    .btn-small { min-height: 44px; padding: 10px 18px; font-size: 14px; }
    .arrow { font-size: 1.1em; }
    .site-header {
      position: sticky;
      z-index: 50;
      top: 0;
      border-bottom: 1px solid rgba(207, 225, 244, .8);
      background: rgba(255, 255, 255, .91);
      backdrop-filter: blur(14px);
    }
    .nav {
      display: flex;
      min-height: 72px;
      align-items: center;
      gap: 26px;
    }
    .brand {
      margin-right: auto;
      font-size: 19px;
      font-weight: 900;
      letter-spacing: .02em;
      text-decoration: none;
    }
    .brand small {
      display: block;
      margin-top: -5px;
      color: var(--ink-soft);
      font-size: 9px;
      font-weight: 700;
      letter-spacing: .15em;
    }
    .nav-links { display: flex; align-items: center; gap: 22px; }
    .nav-links > a:not(.btn) {
      color: #34506f;
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
    }
    .nav-links > a:not(.btn):hover { color: var(--teal); }

    .hero {
      position: relative;
      overflow: hidden;
      padding: 64px 0 46px;
    }
    .hero::before, .hero::after {
      position: absolute;
      z-index: -1;
      content: "";
      border-radius: 50%;
      filter: blur(2px);
    }
    .hero::before {
      width: 420px; height: 420px;
      top: -180px; left: -170px;
      background: rgba(70, 153, 250, .12);
    }
    .hero::after {
      width: 360px; height: 360px;
      right: -160px; bottom: -210px;
      background: rgba(242, 153, 74, .10);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: 1.02fr .98fr;
      align-items: center;
      gap: clamp(34px, 5vw, 72px);
    }
    .hero-copy { padding: 28px 0; }
    .hero-copy .lead { max-width: 610px; }
    .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
    .micro-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 17px;
      margin-top: 20px;
      color: var(--ink-soft);
      font-size: 13px;
      font-weight: 700;
    }
    .micro-list span::before {
      margin-right: 6px;
      color: var(--teal);
      content: "✓";
      font-weight: 900;
    }
    .hero-visual {
      position: relative;
      padding: 18px;
      border: 1px solid #d8e6f5;
      border-radius: 34px;
      background: #f6faff;
      box-shadow: var(--shadow);
    }
    .hero-visual img {
      width: 100%;
      aspect-ratio: 4 / 3;
      border-radius: 22px;
      object-fit: cover;
    }
    .visual-note {
      position: absolute;
      right: -14px;
      bottom: 24px;
      max-width: 215px;
      padding: 13px 15px;
      border: 1px solid #d5e3f4;
      border-radius: 15px;
      background: rgba(255,255,255,.95);
      box-shadow: 0 10px 24px rgba(32, 78, 132, .12);
      font-size: 12px;
      font-weight: 800;
      line-height: 1.55;
    }
    .visual-note b { color: var(--teal-dark); }

    .stats {
      padding: 25px 0;
      border-block: 1px solid var(--line);
      background: #fff;
    }
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
    }
    .stat {
      padding: 7px 26px;
      border-right: 1px solid var(--line);
      text-align: center;
    }
    .stat:last-child { border-right: 0; }
    .stat strong {
      display: block;
      color: var(--ink);
      font-size: clamp(25px, 3vw, 38px);
      line-height: 1.15;
      letter-spacing: -.03em;
    }
    .stat span { color: var(--ink-soft); font-size: 12px; font-weight: 700; }
    .stat-source {
      margin: 13px 0 0;
      color: #69809a;
      font-size: 10px;
      text-align: center;
    }
    .stat-source a { text-underline-offset: 3px; }

    .pain-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 18px;
      margin-top: 40px;
    }
    .pain-card, .service-card, .why-card {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--white);
      box-shadow: 0 8px 22px rgba(32, 78, 132, .055);
    }
    .pain-card { padding: 25px; }
    .icon {
      display: grid;
      width: 52px; height: 52px;
      margin-bottom: 17px;
      place-items: center;
      border-radius: 16px;
      background: var(--teal-pale);
      color: var(--teal-dark);
    }
    .icon.coral { color: #c67c1a; background: #fdf1e4; }
    .icon.pink { color: #2b7fe0; background: #e9f2fd; }
    .icon svg { width: 28px; height: 28px; }
    .pain-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }

    .one-window {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      align-items: center;
      gap: 52px;
      margin-top: 72px;
      padding: clamp(28px, 5vw, 58px);
      overflow: hidden;
      border-radius: 32px;
      background: var(--ink);
      color: var(--white);
    }
    .one-window .eyebrow { color: #82bdff; }
    .one-window p { color: #c7d9f1; }
    .solution-map {
      display: grid;
      grid-template-columns: 1fr 64px 1fr;
      align-items: center;
      gap: 12px;
    }
    .map-side { display: grid; gap: 9px; }
    .map-pill {
      display: flex;
      min-height: 48px;
      align-items: center;
      gap: 10px;
      padding: 10px 13px;
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 13px;
      background: rgba(255,255,255,.075);
      font-size: 13px;
      font-weight: 700;
    }
    .map-pill span { color: #82bdff; font-size: 18px; }
    .map-arrow {
      display: grid;
      width: 54px; height: 54px;
      place-items: center;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--teal), var(--coral));
      font-size: 23px;
      font-weight: 900;
    }
    .map-result {
      padding: 25px 20px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 18px;
      background: rgba(255,255,255,.11);
      text-align: center;
    }
    .map-result .result-icon {
      display: grid;
      width: 66px; height: 66px;
      margin: 0 auto 13px;
      place-items: center;
      border-radius: 20px;
      background: rgba(130, 189, 255, .17);
      font-size: 29px;
    }
    .map-result strong { display: block; font-size: 20px; }
    .map-result small { color: #c7d9f1; }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      margin-top: 42px;
    }
    .service-card {
      display: grid;
      grid-template-columns: 72px 1fr;
      gap: 17px;
      padding: 28px;
    }
    .service-card:last-child {
      grid-column: 1 / -1;
      grid-template-columns: 72px 1fr auto;
      align-items: center;
    }
    .service-no {
      color: #aebfd8;
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .1em;
    }
    .service-card .icon { margin: 5px 0 0; }
    .service-card p { margin: 0 0 12px; color: var(--ink-soft); font-size: 14px; }
    .service-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
    }
    .tag {
      display: inline-flex;
      padding: 5px 10px;
      border-radius: 999px;
      background: #eef4fb;
      color: #4a6285;
      font-size: 11px;
      font-weight: 800;
    }
    .price-note {
      margin-top: 20px;
      color: #61799a;
      font-size: 11px;
      text-align: right;
    }

    .diagnosis-wrap {
      display: grid;
      grid-template-columns: .85fr 1.15fr;
      align-items: start;
      gap: 54px;
    }
    .diagnosis-copy { position: sticky; top: 112px; }
    .diagnosis {
      padding: clamp(24px, 4vw, 38px);
      border: 1px solid var(--line);
      border-radius: 28px;
      background: var(--white);
      box-shadow: var(--shadow);
    }
    .diag-progress {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 22px;
    }
    .diag-progress span {
      height: 5px;
      flex: 1;
      border-radius: 99px;
      background: #e3ecf6;
    }
    .diag-progress .active { background: var(--teal); }
    .diag-label {
      margin-bottom: 12px;
      color: var(--teal-dark);
      font-size: 12px;
      font-weight: 900;
      letter-spacing: .08em;
    }
    .diag-title { margin-bottom: 17px; font-size: 24px; line-height: 1.5; }
    .choices { display: grid; gap: 9px; }
    .choice {
      width: 100%;
      padding: 14px 16px;
      border: 1px solid #cdddf1;
      border-radius: 13px;
      background: #fff;
      cursor: pointer;
      font-size: 14px;
      font-weight: 700;
      text-align: left;
      transition: border .15s, background .15s, transform .15s;
    }
    .choice:hover, .choice:focus-visible {
      border-color: var(--teal);
      outline: none;
      background: var(--teal-pale);
      transform: translateX(3px);
    }
    .diag-result {
      display: none;
      padding: 22px;
      border: 1px solid #bcd8f5;
      border-radius: 17px;
      background: var(--teal-pale);
    }
    .diag-result.show { display: block; }
    .diag-result h3 { color: var(--teal-dark); font-size: 26px; }
    .diag-result p { color: var(--ink-soft); font-size: 14px; }
    .reset {
      margin-top: 15px;
      padding: 4px;
      border: 0;
      background: none;
      color: var(--teal-dark);
      cursor: pointer;
      font-size: 13px;
      font-weight: 800;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .why-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 19px;
      margin-top: 40px;
    }
    .why-card { padding: 28px; }
    .why-card .big-no {
      display: block;
      margin-bottom: 11px;
      color: var(--teal);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .12em;
    }
    .why-card p { margin-bottom: 0; color: var(--ink-soft); font-size: 14px; }

    .flow {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0;
      margin-top: 46px;
    }
    .flow-step {
      position: relative;
      padding: 0 26px 0 0;
    }
    .flow-step:not(:last-child)::after {
      position: absolute;
      top: 24px;
      right: 8px;
      color: #9ec0e0;
      content: "→";
      font-size: 23px;
      font-weight: 900;
    }
    .step-no {
      display: grid;
      width: 49px; height: 49px;
      margin-bottom: 15px;
      place-items: center;
      border-radius: 16px;
      background: var(--teal-pale);
      color: var(--teal-dark);
      font-weight: 900;
    }
    .flow-step p { margin: 0; color: var(--ink-soft); font-size: 13px; }

    .contact {
      padding: 82px 0;
      color: var(--white);
      background:
        radial-gradient(circle at 8% 20%, rgba(74, 151, 240, .22), transparent 32%),
        radial-gradient(circle at 92% 85%, rgba(242, 153, 74, .16), transparent 30%),
        var(--ink);
    }
    .contact-box {
      display: grid;
      grid-template-columns: 1.2fr .8fr;
      align-items: center;
      gap: 50px;
    }
    .contact .eyebrow { color: #82bdff; }
    .contact p { color: #c9d9f1; }
    .contact-actions { display: grid; gap: 11px; }
    .contact-actions .btn-outline {
      color: var(--white);
      border-color: rgba(255,255,255,.28);
      background: rgba(255,255,255,.06);
    }
    .contact-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 18px;
      margin-top: 20px;
      color: #bdd0e5;
      font-size: 12px;
    }
    .lead-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 480px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow); }
    .lead-form .lf-row { display: flex; gap: 12px; flex-wrap: wrap; }
    .lead-form .lf-row > label { flex: 1 1 45%; }
    .lead-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
    .lead-form input, .lead-form select, .lead-form textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; font-family: inherit; background: var(--paper); color: var(--ink); }
    .lead-form textarea { resize: vertical; }
    .lead-form .req { color: var(--coral); font-size: 11px; margin-left: 5px; font-weight: 800; }
    .lead-form button { margin-top: 2px; border: none; cursor: pointer; }
    .lead-form .lf-msg { font-size: 13px; margin: 0; min-height: 18px; }
    .lead-form .lf-msg.err { color: var(--coral); font-weight: 700; }
    .lead-form .lf-msg.ok { color: var(--teal-dark); font-weight: 700; }
    .lf-alt { font-size: 12.5px; color: var(--ink-soft); margin: 11px 0 0; }
    .lf-alt a { color: var(--teal-dark); font-weight: 700; }
    /* 自動投稿よけ。人には見えず、読み上げ・タブ移動の対象にもしない */
    .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
    .site-footer { padding: 29px 0; border-top: 1px solid #dce9f7; }
    .footer-inner {
      display: flex;
      align-items: center;
      gap: 18px;
      color: var(--ink-soft);
      font-size: 12px;
    }
    .footer-inner strong { margin-right: auto; color: var(--ink); font-size: 15px; }
    .footer-inner a { text-underline-offset: 3px; }
    .mobile-cta { display: none; }

    @media (max-width: 940px) {
      .nav-links > a:not(.btn) { display: none; }
      .hero-grid, .one-window, .diagnosis-wrap, .contact-box { grid-template-columns: 1fr; }
      .hero { padding-top: 30px; }
      .hero-copy { padding-bottom: 0; }
      .hero-visual { width: min(100%, 680px); margin-inline: auto; }
      .pain-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
      .diagnosis-copy { position: static; }
      .service-card:last-child { grid-template-columns: 72px 1fr; }
      .service-card:last-child .btn { grid-column: 2; justify-self: start; }
      .flow { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
      .flow-step:nth-child(2)::after { display: none; }
      .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 640px) {
      .container { width: min(calc(100% - 28px), var(--max)); }
      .section { padding: 67px 0; }
      .nav { min-height: 62px; }
      .nav-links .btn { padding: 10px 15px; min-height: 42px; }
      h1 { font-size: 39px; }
      h2 { font-size: 31px; }
      .only-pc { display: none; }
      .hero-actions { display: grid; }
      .btn { width: 100%; }
      .hero-visual { padding: 10px; border-radius: 24px; }
      .hero-visual img { border-radius: 17px; }
      .visual-note { right: 4px; bottom: 12px; max-width: 180px; }
      .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
      .stat:nth-child(2) { border-right: 0; }
      .pain-grid, .service-grid, .why-grid { grid-template-columns: 1fr; }
      .pain-card { padding: 22px; }
      .one-window { gap: 34px; margin-top: 50px; }
      .solution-map { grid-template-columns: 1fr; }
      .map-arrow { margin: 0 auto; transform: rotate(90deg); }
      .service-card, .service-card:last-child { grid-template-columns: 58px 1fr; padding: 22px; }
      .service-card:last-child { grid-column: auto; }
      .service-card .icon { width: 48px; height: 48px; }
      .service-card:last-child .btn { grid-column: 1 / -1; width: 100%; }
      .flow { grid-template-columns: 1fr; gap: 27px; }
      .flow-step { display: grid; grid-template-columns: 55px 1fr; column-gap: 13px; padding: 0; }
      .flow-step::after { display: none !important; }
      .flow-step .step-no { grid-row: span 2; }
      .flow-step h3 { margin: 3px 0 5px; }
      .contact-actions { grid-template-columns: 1fr; }
      .footer-inner { align-items: flex-start; flex-direction: column; gap: 7px; }
      .mobile-cta {
        position: fixed;
        z-index: 60;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: block;
      }
      .mobile-cta .btn { min-height: 50px; box-shadow: 0 12px 30px rgba(32, 78, 132, .34); }
      body { padding-bottom: 68px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; animation: none !important; }
    }
