﻿:root {
  --ink: #182333;
  --muted: #5d6a78;
  --line: #d9e1e8;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --green: #1d7b68;
  --green-dark: #105244;
  --blue: #22577a;
  --coral: #d06b4f;
  --gold: #b88935;
  --shadow: 0 20px 50px rgba(24, 35, 51, 0.12);
}

/* 単語途中の不自然な改行・折り返しを100%防止する指定 */
h1, h2, h3, h4, h5, h6, .lp-section-heading h2 {
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.nobreak, .keep-phrase {
  display: inline-block;
  white-space: nowrap;
}

/* 電話番号・時刻などは途中で改行しない */
.jp-nowrap { white-space: nowrap; }

/* スマホでは、文節の切れ目（main.js が入れた位置）でだけ改行する。
   1行に収まらないほど長い語句だけは、はみ出さないよう途中で折り返す。 */
@media (max-width: 860px) {
  .jp-phrase {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
  }
  /* 長い説明文は通常の折り返し */
  .jp-normal {
    word-break: normal;
    overflow-wrap: break-word;
  }
}

/* Inquiry conversion additions */
.conversion-voice-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  max-width: 1080px; margin: 0 auto; overflow: hidden;
  border: 1px solid var(--line); border-radius: 24px; background: #fff;
  box-shadow: 0 20px 50px rgba(4, 31, 70, .12);
}
.conversion-voice-card img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }
.conversion-voice-card > div { align-self: center; padding: clamp(28px, 5vw, 56px); }
.conversion-sample-badge {
  display: inline-block; margin-bottom: 18px; padding: 6px 11px;
  border-radius: 999px; background: #fff3d8; color: #7b5710;
  font-size: 12px; font-weight: 800;
}
.conversion-voice-card blockquote {
  margin: 0 0 18px; color: var(--ink); font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700; line-height: 1.75;
}
.conversion-voice-source { color: var(--green-dark); font-weight: 700; }
.conversion-sample-note, .conversion-form-note { color: var(--muted); font-size: 12px; line-height: 1.7; }
.conversion-form-note { margin: 14px 0 0; text-align: center; }
.conversion-faq-list { max-width: 880px; margin: 0 auto; }
.conversion-faq-list details {
  margin-bottom: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.conversion-faq-list summary {
  position: relative; padding: 20px 58px 20px 24px;
  color: var(--ink); font-weight: 800; cursor: pointer; list-style: none;
}
.conversion-faq-list summary::-webkit-details-marker { display: none; }
.conversion-faq-list summary::after {
  position: absolute; top: 50%; right: 22px; content: "＋";
  color: var(--green); font-size: 24px; transform: translateY(-50%);
}
.conversion-faq-list details[open] summary::after { content: "−"; }
.conversion-faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--muted); line-height: 1.9; }
.conversion-phone-bar { display: none; }
.conversion-thanks-panel {
  max-width: 720px; margin: 0 auto; padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--line); border-radius: 20px; background: #fff;
  text-align: center; box-shadow: 0 20px 50px rgba(4, 31, 70, .12);
}
.conversion-thanks-icon {
  display: grid; width: 68px; height: 68px; margin: 0 auto 20px;
  border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; place-items: center;
}
@media (max-width: 720px) {
  body { padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .conversion-voice-card { grid-template-columns: 1fr; }
  .conversion-voice-card img { min-height: 230px; aspect-ratio: 16 / 10; }
  .lp-mobile-cta { display: none; }
  .conversion-phone-bar {
    position: fixed; z-index: 2100; right: 10px; bottom: max(10px, env(safe-area-inset-bottom, 0px)); left: 10px;
    display: grid; grid-template-columns: auto auto 1fr; align-items: center;
    gap: 8px; min-height: 62px; padding: 9px 16px; border-radius: 14px;
    background: #e85b49; box-shadow: 0 8px 28px rgba(67, 25, 20, .34);
    color: #fff; text-decoration: none;
  }
  .conversion-phone-bar > span { font-size: 24px; }
  .conversion-phone-bar strong { font-size: 16px; }
  .conversion-phone-bar small { justify-self: end; font-size: 10px; line-height: 1.35; text-align: right; }
  .conversion-phone-bar small b { font-weight: inherit; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
  line-height: 1.75;
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(217, 225, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 18px rgba(24, 35, 51, 0.035);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 15px;
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--green);
}

.site-nav > a {
  position: relative;
}

.site-nav > a:not(.header-user)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-nav > a:not(.header-user):hover::after {
  transform: scaleX(1);
}

.header-contact {
  min-width: max-content;
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 700;
}

.header-user {
  min-width: max-content;
  padding: 10px 16px;
  background-color: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
  border-radius: 8px;
  font-weight: 700;
  margin-left: 14px;
}
.header-user:hover {
  background-color: var(--green-dark);
  border-color: var(--green-dark);
}

.header-user,
.button,
.download-btn {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.header-user:hover,
.button:hover,
.download-btn:hover {
  transform: translateY(-2px);
}

.button.primary:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 24px rgba(16, 82, 68, 0.18);
}

.button.secondary:hover {
  border-color: var(--green);
  color: var(--green-dark);
  box-shadow: 0 9px 22px rgba(24, 35, 51, 0.08);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: min(740px, calc(100vh - 77px));
  padding: clamp(46px, 7vw, 88px) clamp(18px, 5vw, 72px) 54px;
  background:
    #f3f7f8,
    #f7faf9;
}

.hero-copy {
  max-width: 740px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.18;
}

.hero h1 {
  max-width: 16em;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.28;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--green);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--blue);
  background: #fff;
}

.button.light {
  color: var(--green-dark);
  background: #fff;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-facts div {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-facts dt,
.company-data dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-facts dd,
.company-data dd {
  margin: 3px 0 0;
  font-weight: 800;
}

.hero-visual {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #eaf2f3;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.notice-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  color: #fff;
  background: var(--blue);
}

.notice-band p {
  margin: 0;
}

.notice-band a {
  min-width: max-content;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.value-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1240px;
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
  box-shadow: 0 12px 34px rgba(24, 35, 51, 0.06);
}

.value-banner div {
  padding: 20px 24px;
  background: #fff;
}

.value-banner span {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.value-banner strong {
  display: block;
  line-height: 1.55;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.capability-grid--wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capability-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(24, 35, 51, 0.055);
}

.capability-grid article > span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.capability-grid article p {
  margin-bottom: 0;
  color: var(--muted);
}

.section,
.split-section,
.contact-section {
  padding: clamp(54px, 8vw, 98px) clamp(18px, 5vw, 72px);
}

.section > *,
.detail-grid > *,
.split-section > *,
.contact-section > *,
.site-footer > * {
  min-width: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading p:last-child,
.split-section p,
.company-panel p,
.contact-section p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid--four .product-card {
  display: flex;
  flex-direction: column;
}

.product-grid--four .product-card > div:last-child {
  margin-top: auto !important;
  padding-top: 20px;
}

.sales-band strong {
  margin-right: 10px;
  color: #d9fff4;
}

.product-card {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(24, 35, 51, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(29, 123, 104, 0.42);
  box-shadow: 0 18px 40px rgba(24, 35, 51, 0.1);
}

.product-card.featured {
  border-color: rgba(29, 123, 104, 0.55);
  box-shadow: 0 18px 44px rgba(29, 123, 104, 0.12);
}

.product-label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.product-card ul {
  display: grid;
  gap: 8px;
  padding-left: 1.1em;
  margin: 20px 0 0;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: #fbfcfb;
}

.strength-list {
  display: grid;
  gap: 14px;
}

.strength-list div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 6px 18px;
  padding: 22px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(24, 35, 51, 0.08);
}

.strength-list span {
  grid-row: span 2;
  color: var(--coral);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.strength-list p,
.strength-list h3 {
  margin-bottom: 0;
}

.muted {
  background: var(--soft);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.support-grid a {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(24, 35, 51, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.support-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 123, 104, 0.45);
  box-shadow: 0 14px 32px rgba(24, 35, 51, 0.09);
}

.support-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.support-grid strong {
  display: block;
  font-size: 19px;
  line-height: 1.45;
}

.company-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 32px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(24, 35, 51, 0.09);
}

.company-data {
  display: grid;
  gap: 14px;
  margin: 0;
}

.company-data div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: #fff;
  background: var(--green-dark);
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

.contact-section h2 {
  max-width: 720px;
}

.contact-section p {
  margin-bottom: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
    flex-wrap: wrap;
  }

  .hero,
  .split-section,
  .company-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    height: auto;
  }

  .product-grid,
  .product-grid--four,
  .support-grid,
  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-text {
    font-size: 16px;
  }

  .header-contact {
    width: 100%;
    text-align: center;
  }

  .hero-facts,
  .product-grid,
  .support-grid,
  .capability-grid,
  .value-banner {
    grid-template-columns: 1fr;
  }

  .value-banner {
    margin: 24px 18px 0;
  }

  .notice-band,
  .contact-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-visual img {
    height: auto;
  }

  .strength-list div {
    grid-template-columns: 1fr;
  }

  .button,
  .contact-actions {
    width: 100%;
  }
}

/* ==========================================================================
   Sub-page Layouts (Added for Subpages)
   ========================================================================== */

/* Breadcrumb Navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px clamp(18px, 5vw, 72px) 0;
  color: var(--muted);
  font-size: 13px;
  max-width: 1280px;
  margin: 0 auto;
}
.breadcrumb a {
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--green);
  text-decoration: underline;
}
.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

/* Page Header (Subpage Hero) */
.page-header {
  padding: clamp(38px, 6vw, 64px) clamp(18px, 5vw, 72px);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(29, 123, 104, 0.13), transparent 28%),
    #f3f7f8;
  border-bottom: 1px solid var(--line);
}

.page-header::after {
  content: "";
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  bottom: -44px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(34, 87, 122, 0.12);
  border-radius: 50%;
}

.page-header > * {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}
.page-header h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--ink);
}
.page-header .eyebrow {
  color: var(--green);
}
.page-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Feature Details & Grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 6vw, 64px);
  padding: clamp(40px, 6vw, 80px) clamp(18px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
}
.detail-block {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(217, 225, 232, 0.86);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(24, 35, 51, 0.065);
}
.detail-block:nth-child(even) {
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.2fr);
}
.detail-block:nth-child(even) .detail-content {
  grid-column: 2;
  grid-row: 1;
}
.detail-block:nth-child(even) .detail-image {
  grid-column: 1;
  grid-row: 1;
}
/* スマホでは「文章 → 画像」の縦並びにする（横並びのままだと文章の幅がなくなる） */
@media (max-width: 860px) {
  .detail-block,
  .detail-block:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-block:nth-child(even) .detail-content,
  .detail-block:nth-child(even) .detail-image {
    grid-column: auto;
    grid-row: auto;
  }
}
.detail-content h2 {
  font-size: clamp(21px, 2.4vw, 28px);
  margin-bottom: 14px;
}
.detail-content p:last-child {
  margin-bottom: 0;
}
.detail-image img {
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(24, 35, 51, 0.1);
  width: 100%;
}

.product-screenshot {
  margin: 0;
}

.product-screenshot img {
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f5f7f8;
}

.product-screenshot figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.feature-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  padding: 34px;
  border-radius: 12px;
  color: #fff;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 800;
  line-height: 1.7;
  text-align: center;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  box-shadow: 0 15px 34px rgba(24, 35, 51, 0.15);
}

.feature-visual::before,
.feature-visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 28px;
  transform: rotate(24deg);
}

.feature-visual::before {
  top: -86px;
  right: -54px;
}

.feature-visual::after {
  bottom: -104px;
  left: -50px;
}

.feature-visual--blue {
  background: var(--green);
}

.feature-visual--gold {
  background: var(--gold);
}

.feature-visual--coral {
  background: var(--coral);
}

/* Comparison / Price Section */
.price-box {
  margin-top: 32px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f3f7f8;
  box-shadow: inset 4px 0 0 var(--green);
}
.price-box h3 {
  font-size: 20px;
  color: var(--green-dark);
}
.price-box ul {
  padding-left: 20px;
  margin-bottom: 24px;
}
.price-box li {
  margin-bottom: 8px;
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
  width: clamp(120px, 25vw, 200px);
}

/* Download Section styles */
.support-updates {
  overflow: hidden;
  margin: 0 0 32px;
  border: 1px solid #c9dce6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(4,31,70,.08);
}

.support-updates-heading {
  position: relative;
  margin: 0;
  padding: 12px 22px 12px 42px;
  color: #fff;
  background:
    var(--green);
  box-shadow: 0 7px 17px rgba(4,31,70,.18), inset 0 1px rgba(255,255,255,.2);
}

.site-nav > a.is-active::before,
.nav-dropdown.is-active .dropdown-toggle::before,
.site-nav > a.is-active::after {
  display: none !important;
  content: none !important;
}

.site-nav > a.is-active {
  color: var(--green) !important;
  font-weight: 700;
  border-bottom: 2px solid var(--green) !important;
  background: transparent !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.site-nav > a.is-active:hover,
.nav-dropdown.is-active .dropdown-toggle:hover {
  color: var(--green-dark);
}

.nav-dropdown.is-active .dropdown-toggle .arrow {
  position: relative;
  color: var(--green);
}

.dropdown-menu a.is-current {
  color: #073f67 !important;
  background: #e8f5f8 !important;
  box-shadow: inset 4px 0 #ed1524;
}

.trial-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(760px, 100%);
  margin: 22px auto 0;
  padding: 14px 18px;
  border: 1px solid rgba(8,124,173,.28);
  border-left: 5px solid #ed1524;
  border-radius: 8px;
  color: #063f64;
  background: rgba(232,245,248,.96);
  box-shadow: 0 8px 20px rgba(4,31,70,.08);
}

.trial-offer strong {
  min-width: max-content;
  color: #cf1827;
  font-size: 13px;
}

.trial-offer span {
  font-weight: 800;
}

@media (max-width: 768px) {
  .site-nav > a,
  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 12px;
  }

  .site-nav > a.is-active,
  .nav-dropdown.is-active .dropdown-toggle {
    padding-right: 34px;
    padding-left: 20px;
  }

  .dropdown-menu a.is-current {
    border-left-color: #ed1524;
  }

  .trial-offer {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    text-align: left;
  }
}

/* ==========================================================================
   Navigation Dropdown Menu (PC)
   ========================================================================== */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.dropdown-toggle {
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.dropdown-toggle:hover {
  background: #e4ecee;
  border-color: var(--green);
  color: var(--green-dark);
}

.dropdown-toggle .arrow {
  font-size: 10px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  background: #ffffff !important;
  border: 2px solid var(--green) !important;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22) !important;
  padding: 6px 0;
  display: none;
  z-index: 9999 !important;
}

:focus-visible {
  outline: 3px solid rgba(29, 123, 104, 0.35);
  outline-offset: 3px;
}

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

/* PSB system-style action buttons */
.button,
.download-btn,
.header-user {
  --sys-start: #08b9df;
  --sys-end: #061f46;
  --sys-text: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-right: 46px;
  padding-left: 38px;
  border: 1px solid rgba(0, 177, 218, .78);
  border-radius: 8px;
  color: var(--sys-text);
  background:
    var(--green);
  box-shadow: 0 9px 22px rgba(4,31,70,.2), inset 0 1px rgba(255,255,255,.2);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.button::before, .download-btn::before, .header-user::before, .lp-button::before { display: none !important; content: none !important; }

.button::after,
.download-btn::after,
.header-user::after {
  position: absolute;
  right: 13px;
  content: "›";
  color: #8eeaff;
  font-family: Consolas, monospace;
  font-size: 20px;
  line-height: 1;
}

.button.secondary,
.button.light,
.download-btn.secondary {
  --sys-start: #fff;
  --sys-end: #e7f3f7;
  --sys-text: #07577f;
  border-color: #9dc8d8;
  color: var(--sys-text);
  box-shadow: 0 8px 18px rgba(4,31,70,.1);
}

.button.secondary::after,
.button.light::after,
.download-btn.secondary::after {
  color: #087cad;
}

.header-user {
  min-height: 42px;
  margin-left: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.button.primary:hover,
.button.secondary:hover,
.button.light:hover,
.download-btn:hover,
.download-btn.secondary:hover,
.header-user:hover {
  border-color: rgba(0,177,218,.9);
  color: var(--sys-text);
  background:
    var(--green);
  filter: brightness(1.08);
  box-shadow: 0 13px 28px rgba(4,31,70,.25), inset 0 1px rgba(255,255,255,.24);
}

.button:focus-visible,
.download-btn:focus-visible,
.header-user:focus-visible {
  outline: 3px solid rgba(8,185,223,.34);
  outline-offset: 3px;
}

.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--green);
}

.dropdown-menu a {
  display: block;
  padding: 12px 18px;
  color: #182333 !important;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid #f0f4f6;
  text-decoration: none;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #eaf3f1 !important;
  color: var(--green-dark) !important;
}

/* Hover Show & JS Show */
.nav-dropdown:hover .dropdown-menu,
.dropdown-menu.show {
  display: block !important;
}

.nav-dropdown:hover .dropdown-toggle .arrow {
  transform: rotate(180deg);
}

/* Mobile Dropdown styles (in Media Query) */
@media (max-width: 768px) {
  .nav-dropdown {
    width: 100%;
  }
  .nav-dropdown::after {
    display: none;
  }
  .dropdown-toggle {
    width: 100%;
    padding: 10px 0;
    justify-content: space-between;
    background: none;
    border: none;
  }
  .dropdown-menu {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    border: none !important;
    background: var(--soft) !important;
    padding: 0;
    margin-top: 5px;
    display: block !important;
    min-width: 100%;
  }
  .dropdown-menu::before {
    display: none;
  }
  .dropdown-menu a {
    padding: 10px 20px;
    font-size: 14px;
    border-left: 3px solid var(--green);
    border-bottom: none;
    margin-bottom: 2px;
  }
}

/* ==========================================================================
   Chat Support Widget Styles
   ========================================================================== */
.chat-widget-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999 !important;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(29, 123, 104, 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.chat-widget-trigger[aria-expanded="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
}

.chat-widget-trigger:hover {
  background: var(--green-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(24, 35, 51, 0.3);
}

.chat-widget-badge {
  background: #ff5252;
  color: #fff;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  display: inline-block;
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(24, 35, 51, 0.22);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  background: var(--green-dark);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.chat-title-text {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.chat-status-text {
  font-size: 11px;
  opacity: 0.85;
  margin: 2px 0 0 0;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  opacity: 0.8;
  padding: 4px;
  transition: opacity 0.2s;
}

.chat-close-btn:hover {
  opacity: 1;
}

.chat-body {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  background: #f7faf9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Chat Messages */
.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: fadeInMsg 0.3s ease;
}

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

.chat-msg.bot {
  align-self: flex-start;
}

.chat-msg.user {
  align-self: flex-end;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
  word-break: break-word;
}

.chat-msg.bot .chat-bubble {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top-left-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.chat-msg.user .chat-bubble {
  background: var(--green);
  color: #ffffff;
  border-top-right-radius: 4px;
}

.chat-thinking {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 56px;
  min-height: 42px;
}

.chat-thinking span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.35;
  animation: chatThinking 1.1s infinite ease-in-out;
}

.chat-thinking span:nth-child(2) {
  animation-delay: 0.16s;
}

.chat-thinking span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes chatThinking {
  0%, 70%, 100% { transform: translateY(0); opacity: 0.3; }
  35% { transform: translateY(-4px); opacity: 0.9; }
}

.chat-typing-text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -0.12em;
  background: var(--green);
  animation: chatCursor 0.75s steps(1) infinite;
}

.chat-skip-btn {
  align-self: flex-start;
  margin-top: 5px;
  padding: 3px 8px;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 11.5px;
  text-decoration: underline;
  cursor: pointer;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 92%;
  margin-top: -3px;
}

.chat-action-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--green);
  border-radius: 7px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  transition: background 0.18s ease, transform 0.18s ease;
  opacity: 0;
  transform: translateY(7px);
  animation: chatOptionReveal 0.32s ease forwards;
  animation-delay: calc(var(--chat-item-index, 0) * 170ms);
}

.chat-action-btn:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

@keyframes chatCursor {
  50% { opacity: 0; }
}

/* Quick Question Options */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.chat-opt-btn {
  background: #ffffff;
  border: 1px solid var(--green);
  color: var(--green-dark);
  padding: 7px 11px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(7px);
  animation: chatOptionReveal 0.32s ease forwards;
  animation-delay: calc(var(--chat-item-index, 0) * 170ms);
}

.chat-opt-btn:hover {
  background: var(--soft);
  transform: translateX(3px);
}

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

.chat-opt-btn::after {
  content: "→";
  font-size: 14px;
  opacity: 0.6;
}

.chat-back-btn::after,
.chat-home-btn::after {
  content: "";
}

.chat-back-btn,
.chat-home-btn {
  padding-block: 6px;
  font-size: 11.5px;
  font-weight: 600;
}

.chat-opt-btn:disabled,
.chat-input:disabled,
.chat-send-btn:disabled {
  cursor: wait;
  opacity: 0.58;
}

@media (prefers-reduced-motion: reduce) {
  .chat-thinking span,
  .chat-typing-text::after,
  .chat-opt-btn,
  .chat-action-btn {
    animation: none;
  }

  .chat-opt-btn,
  .chat-action-btn {
    opacity: 1;
    transform: none;
  }
}

.chat-footer {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}

.chat-input:focus {
  border-color: var(--green);
}

.chat-send-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.chat-send-btn:hover {
  background: var(--green-dark);
}

.chat-label-short { display: none; }

/* ----- スマホ：画面下の「電話」と「チャット」を1本のバーにそろえる ----- */
@media (max-width: 720px) {
  .conversion-phone-bar,
  .chat-widget-trigger {
    transition: transform .28s ease, opacity .28s ease, visibility .28s;
  }
  /* チャットがあるページ：左に電話、右にチャットを同じ高さで並べる */
  .has-chat .conversion-phone-bar {
    right: 116px;
    grid-template-columns: auto 1fr;
    column-gap: 10px; row-gap: 0;
    padding: 8px 14px;
  }
  .has-chat .conversion-phone-bar > span { grid-row: 1 / span 2; }
  .has-chat .conversion-phone-bar strong { align-self: end; line-height: 1.3; }
  .has-chat .conversion-phone-bar small { justify-self: start; align-self: start; text-align: left; white-space: nowrap; }
  .has-chat .conversion-phone-bar small br { display: none; }
  .has-chat .conversion-phone-bar small b { margin-right: 8px; }
  .chat-widget-trigger {
    right: 10px !important;
    bottom: max(10px, env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2100 !important;
    width: 98px; min-height: 62px;
    flex-direction: column; justify-content: center; gap: 2px;
    padding: 6px 8px !important;
    border-radius: 14px;
    font-size: 12px !important;
    box-shadow: 0 8px 28px rgba(16, 82, 68, .3);
  }
  .chat-widget-trigger:hover { transform: none; }
  .chat-widget-trigger .chat-trigger-icon { margin: 0; }
  .chat-widget-trigger .chat-widget-badge { position: absolute; top: 8px; right: 10px; }
  .chat-label-long { display: none; }
  .chat-label-short { display: inline; }

  /* ページ内の相談ボタンが見えている間は、下のバーを隠す */
  .floating-cta-hidden .conversion-phone-bar,
  .floating-cta-hidden .chat-widget-trigger {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(calc(100% + 24px));
  }
}

@media (max-width: 600px) {

  .chat-window {
    top: 70px;
    right: 10px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    left: 10px;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    border-radius: 14px;
  }

  .chat-header {
    padding: 13px 14px;
  }

  .chat-body {
    padding: 13px;
  }

  .chat-footer {
    padding: 10px 12px;
  }
}

/* 赤点マーク（赤四角）の完全全廃ルール */
.button::before,
.download-btn::before,
.header-user::before,
.lp-button::before,
a.lp-button::before,
.home-product-actions a::before {
  display: none !important;
  content: none !important;
}

/* ボタン可読性・コントラスト最適化（視認性向上） */
.lp-button,
.download-btn,
.button,
a.lp-button,
button.lp-button,
.btn-brutal,
.home-product-actions .lp-button {
  background-color: var(--green) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 28px !important;
  border-radius: 8px !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(29, 123, 104, 0.25) !important;
  text-shadow: none !important;
}

.lp-button:hover,
.download-btn:hover,
.button:hover,
a.lp-button:hover {
  background-color: var(--green-dark) !important;
  color: #ffffff !important;
}

/* ゴースト・枠線ボタン（白背景・緑枠） */
.lp-button--ghost,
.lp-button--outline,
a.lp-button--ghost,
a.lp-button--outline {
  background-color: #ffffff !important;
  color: var(--green-dark) !important;
  border: 2px solid var(--green) !important;
  box-shadow: none !important;
}

.lp-button--ghost:hover,
.lp-button--outline:hover {
  background-color: var(--soft) !important;
  color: var(--green-dark) !important;
}

/* 全ボタンから赤点マーク（::before）を完全に消滅させる */
.lp-button::before,
.download-btn::before,
.button::before,
a::before,
button::before {
  display: none !important;
  content: none !important;
}

/* お問い合わせページの女性スタッフ画像の20%縮小ルール */
.contact-guide-photo {
  max-width: 220px !important;
  width: 22% !important;
  margin: 0 auto !important;
  text-align: center !important;
}
.contact-guide-photo img {
  width: 100% !important;
  height: auto !important;
  max-height: 240px !important;
  object-fit: cover !important;
  border-radius: 12px !important;
}

/* お問い合わせページのガイド（new-hp-care と同等の美しい2列横並びレイアウト） */
.contact-guide {
  display: grid !important;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr) !important;
  align-items: center !important;
  gap: 32px !important;
  background: var(--soft) !important;
  padding: 36px 40px !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  margin-bottom: 40px !important;
}

.contact-guide-copy h2 {
  font-size: 24px !important;
  color: var(--green-dark) !important;
  margin-bottom: 12px !important;
  font-weight: 700 !important;
}

.contact-guide-photo {
  max-width: 220px !important;
  width: 100% !important;
  margin: 0 0 0 auto !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}

.contact-guide-photo img {
  width: 100% !important;
  height: 180px !important;
  object-fit: cover !important;
  display: block !important;
}

@media (max-width: 768px) {
  .contact-guide {
    grid-template-columns: 1fr !important;
    padding: 24px !important;
  }
  .contact-guide-photo {
    margin: 16px auto 0 !important;
  }
}

/* スマホ用メニュー：開閉ボタン（三本線）と、閉じた状態を初期表示に */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--green-dark);
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-dropdown { display: block; }
}
