/* ============================================
   株式会社TERA 共通スタイル（全ページで読み込み）
   ============================================ */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

:root {
      --ink: #16181d;
      --ink2: #23272e;
      --muted: #5b646e;
      --faint: #8b949e;
      --line: #e7ecef;
      --line2: #d3dcdf;
      --paper: #ffffff;
      --soft: #f4f8f8;
      --teal: #159a9c;
      --teal-dark: #0e7f81;
      --teal-deep: #0a5f61;
      --grad: linear-gradient(110deg, #159a9c 0%, #52c5c0 100%);
      --grad-deep: linear-gradient(115deg, #0e7f81, #159a9c 55%, #52c5c0);
      --shadow-sm: 0 1px 3px rgba(10, 60, 62, 0.06), 0 4px 14px rgba(10, 60, 62, 0.06);
      --shadow-md: 0 10px 34px rgba(10, 60, 62, 0.12);
      --shadow-lg: 0 22px 60px rgba(10, 60, 62, 0.16);
      --en: "Poppins", "Zen Kaku Gothic New", sans-serif;
    }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
      margin: 0;
      color: var(--ink2);
      font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
      line-height: 1.9;
      background: var(--paper);
    }

h1, h2, h3, p, b, span, li, label, a, button { overflow-wrap: anywhere; }

img { display: block; max-width: 100%; }

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

::selection { background: rgba(21, 154, 156, 0.22); }

@keyframes fadeUp {
      from { opacity: 0; transform: translateY(22px); }
      to { opacity: 1; transform: translateY(0); }
    }

.site-header {
      position: fixed;
      inset: 0 0 auto;
      z-index: 30;
      background: rgba(255, 255, 255, 0.82);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid rgba(10, 60, 62, 0.06);
    }

.nav {
      width: min(1240px, calc(100% - 48px));
      min-height: 76px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

.brand {
      display: flex;
      align-items: center;
      gap: 12px;
      white-space: nowrap;
    }

.brand-mark { width: 34px; height: auto; }

.brand-name {
      font-family: var(--en);
      font-size: 21px;
      font-weight: 600;
      letter-spacing: 0.32em;
      color: var(--ink);
    }

.nav-links {
      display: flex;
      align-items: center;
      gap: 6px;
      color: var(--ink2);
      font-size: 14px;
      font-weight: 700;
    }

.nav-links a {
      padding: 9px 11px;
      border-radius: 999px;
      transition: background 0.2s ease, color 0.2s ease;
    }

.nav-links a:hover { background: rgba(21, 154, 156, 0.09); color: var(--teal-dark); }

.nav-links .nav-cta {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-left: 12px;
      padding: 11px 22px;
      color: #fff;
      background: var(--ink);
    }

.nav-links .nav-cta:hover { background: #000; color: #fff; }

.nav-cta svg { flex-shrink: 0; }

.btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 14px;
      min-height: 56px;
      padding: 0 30px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-weight: 700;
      font-size: 15px;
      line-height: 1.2;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    }

.btn:hover { transform: translateY(-2px); }

.btn-teal {
      color: #fff;
      background: var(--teal);
      box-shadow: 0 10px 28px rgba(21, 154, 156, 0.32);
    }

.btn-teal:hover { background: var(--teal-dark); box-shadow: 0 14px 34px rgba(21, 154, 156, 0.4); }

.btn-circle-arrow {
      display: inline-grid;
      place-items: center;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: #fff;
      color: var(--teal);
      font-family: var(--en);
      font-size: 15px;
      font-weight: 700;
      flex-shrink: 0;
    }

.container {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
    }

.section-label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 16px;
      color: var(--teal);
      font-family: var(--en);
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.22em;
    }

.section-label::before,
    .section-label::after {
      content: "";
      width: 26px;
      height: 1.5px;
      background: var(--teal);
      opacity: 0.55;
    }

h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(25px, 3.6vw, 36px);
      font-weight: 700;
      line-height: 1.55;
      letter-spacing: 0.05em;
    }

.lead {
      margin: 18px 0 0;
      color: var(--muted);
      font-size: 15.5px;
      text-wrap: balance;
    }

@media (max-width: 620px) {
      .lead br { display: none; }
    }

.cta-band { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: center; }

.cta-band .panel-label {
      display: inline-block;
      margin: 0 0 16px;
      padding: 5px 14px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.45);
      color: #fff;
      font-family: var(--en);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: 0.16em;
    }

.cta-steps {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      margin: 26px 0 0;
      padding: 0;
      list-style: none;
      font-size: 13.5px;
      font-weight: 700;
    }

.cta-steps li:not(.step-arrow) {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px 8px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.16);
      border: 1px solid rgba(255, 255, 255, 0.3);
    }

.cta-steps li span {
      display: inline-grid;
      place-items: center;
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: #fff;
      color: var(--teal-dark);
      font-family: var(--en);
      font-size: 12px;
      font-weight: 700;
    }

.step-arrow { color: rgba(255, 255, 255, 0.65); font-family: var(--en); }

.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.btn-line {
      color: #fff;
      background: #06c755;
      box-shadow: 0 10px 28px rgba(6, 199, 85, 0.35);
      min-height: 60px;
      padding: 0 32px;
      font-size: 16px;
    }

.btn-line:hover { background: #05b04c; box-shadow: 0 14px 34px rgba(6, 199, 85, 0.42); }

.cta-band .cta-note { margin: 18px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 12.5px; }

.cta-band .cta-note a { text-decoration: underline; font-weight: 700; }

.cta-visual { position: relative; justify-self: center; padding: 6px 0 30px 0; }

.phone {
      position: relative;
      width: 290px;
      border-radius: 38px;
      background: #10181d;
      padding: 10px;
      box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
      transform: rotate(2.5deg);
    }

.phone-notch {
      position: absolute;
      top: 10px;
      left: 50%;
      transform: translateX(-50%);
      width: 110px;
      height: 22px;
      border-radius: 0 0 14px 14px;
      background: #10181d;
      z-index: 2;
    }

.phone-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 30px 16px 12px;
      border-radius: 28px 28px 0 0;
      background: #223744;
      color: #fff;
    }

.phone-header img { width: 30px; height: 30px; padding: 4px; border-radius: 50%; background: #fff; }

.phone-header b { display: block; font-size: 13.5px; line-height: 1.3; }

.phone-header i { display: block; font-style: normal; font-size: 10.5px; color: rgba(255, 255, 255, 0.6); }

.phone-chat {
      display: grid;
      gap: 10px;
      padding: 16px 12px 20px;
      border-radius: 0 0 28px 28px;
      background: #cfdde8;
      min-height: 250px;
      align-content: start;
    }

.chat-msg {
      max-width: 82%;
      padding: 10px 13px;
      font-size: 12px;
      line-height: 1.65;
      font-weight: 500;
      opacity: 0;
      transform: translateY(10px);
    }

.chat-msg.in { justify-self: start; background: #fff; color: var(--ink2); border-radius: 4px 14px 14px 14px; }

.chat-msg.out { justify-self: end; background: #8de055; color: #14320a; border-radius: 14px 4px 14px 14px; }

.cta-band.is-visible .chat-msg { animation: fadeUp 0.5s ease forwards; }

.cta-band.is-visible .chat-msg:nth-child(1) { animation-delay: 0.3s; }

.cta-band.is-visible .chat-msg:nth-child(2) { animation-delay: 0.9s; }

.cta-band.is-visible .chat-msg:nth-child(3) { animation-delay: 1.5s; }

.cta-band.is-visible .chat-msg:nth-child(4) { animation-delay: 2.1s; }

.chat-msg.typing { display: inline-flex; gap: 4px; background: #fff; border-radius: 4px 14px 14px 14px; padding: 12px 14px; }

.chat-msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: #9db2c0; animation: typingDot 1.2s ease-in-out infinite; }

.chat-msg.typing span:nth-child(2) { animation-delay: 0.2s; }

.chat-msg.typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
      0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
      30% { transform: translateY(-4px); opacity: 1; }
    }

.qr-card {
      position: absolute;
      left: -74px;
      bottom: 0;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 16px 12px 12px;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
      transform: rotate(-2deg);
    }

.qr-card img { border-radius: 8px; }

.qr-card b { display: block; color: var(--ink); font-size: 13px; line-height: 1.4; }

.qr-card i { display: block; font-style: normal; color: var(--muted); font-size: 11px; }

@media (max-width: 960px) {
      .cta-visual { padding-bottom: 0; margin-top: 8px; }
      .qr-card { display: none; }
      .phone { transform: none; }
    }

.site-footer {
      padding: 44px 0 36px;
      color: var(--muted);
      background: var(--soft);
      border-top: 1px solid var(--line);
      font-size: 13px;
    }

.footer-inner {
      width: min(1180px, calc(100% - 40px));
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
    }

.footer-brand { display: flex; align-items: center; gap: 10px; }

.footer-brand img { width: 26px; }

.footer-brand span { font-family: var(--en); font-size: 16px; font-weight: 600; letter-spacing: 0.3em; color: var(--ink); }

.footer-inner a:hover { color: var(--teal-dark); }

.company-info {
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
      display: grid;
      gap: 6px;
      align-items: start;
      color: var(--faint);
    }

.copyright {
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid var(--line);
      font-size: 12px;
      color: var(--faint);
    }

.hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      background: none;
      border: none;
      cursor: pointer;
      padding: 8px;
      z-index: 31;
    }

.hamburger span {
      display: block;
      width: 24px;
      height: 2px;
      background: var(--ink);
      border-radius: 2px;
      transition: transform 0.28s ease, opacity 0.28s ease;
    }

.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }

.hamburger.is-open span:nth-child(2) { opacity: 0; }

.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

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

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

@media (max-width: 1150px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .nav-links.is-open {
        display: flex;
        position: fixed;
        inset: 76px 0 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 24px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        font-size: 17px;
        z-index: 29;
      }
      .nav-links.is-open .nav-cta { margin-left: 0; }
    }

/* ── モバイル仕上げ ── */
body { overflow-x: clip; }

@media (max-width: 620px) {
  /* 見出し内の強制改行を解除し、行のバランスを自動調整 */
  h2 { text-wrap: balance; }
  h2 br { display: none; }
  /* ステップチップの矢印は縦に折り返すと不自然なので非表示 */
  .step-arrow { display: none; }
  .cta-steps { gap: 8px; }
  /* CTAのスマホモックアップを少しコンパクトに */
  .phone { width: 265px; }
  .cta-band .cta-actions .btn { width: 100%; }
}
