/* =========================================
   Design Tokens
   ========================================= */
:root {
  /* colors */
  --c-text: #274673;
  --c-accent: #1965b0;
  --c-accent-2: #115fad;
  --c-brand: #d54357;
  --c-muted: #56616f;
  --c-line: #d3d3d3;
  --c-bg-soft: #f3f5f8;
  --c-bg-grad-1: #f9fcff;
  --c-bg-grad-2: #dbedff;
  --c-white: #fff;
  --c-black: #000;

  /* typography */
  --ff-sans: "Zen Kaku Gothic New", "ヒラギノ角ゴ Pro W3",
    "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
  --lh-base: 1.6;

  /* radius / shadow / motion */
  --r-4: 4px;
  --r-6: 6px;
  --r-8: 8px;
  --r-10: 10px;
  --r-12: 12px;
  --r-16: 16px;
  --shadow-1: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-2: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-3: 0 10px 30px rgba(0, 0, 0, 0.1);
  --ease: 0.3s ease;

  /* layout */
  --container: 940px;
  --container-wide: 1200px;
  --gap-8: 8px;
  --gap-12: 12px;
  --gap-16: 16px;
  --gap-20: 20px;
  --gap-24: 24px;
  --gap-30: 30px;
  --gap-36: 36px;
  --gap-40: 40px;
  --gap-42: 42px;
  --gap-50: 50px;
  --gap-60: 60px;
  --pad-72: 72px;
}

/* =========================================
   Reset & Base
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  line-height: var(--lh-base);
  color: var(--c-text);
}
section,
nav {
  font-family: var(--ff-sans);
}
h2 {
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
} /* 全リンクの下線を無効 */

/* 共通エリアのみsolution/index.htmlと同じフォントに戻す */
#js-header,
#TopicPath,
#js-footer {
  font-family: "CI", Meiryo, "qMmpS Pro W3", "Hiragino Kaku Gothic Pro",
    "lroSVbN", sans-serif !important;
}

/* #js-header内の要素も確実にフォントを適用 */
#js-header * {
  font-family: "CI", Meiryo, "qMmpS Pro W3", "Hiragino Kaku Gothic Pro",
    "lroSVbN", sans-serif !important;
}

/* #TopicPath内の要素も確実にフォントを適用 */
#TopicPath * {
  font-family: "CI", Meiryo, "qMmpS Pro W3", "Hiragino Kaku Gothic Pro",
    "lroSVbN", sans-serif !important;
}

/* #js-footer内の要素も確実にフォントを適用 */
#js-footer * {
  font-family: "CI", Meiryo, "qMmpS Pro W3", "Hiragino Kaku Gothic Pro",
    "lroSVbN", sans-serif !important;
}

/* =========================================
   Common: Container & Section Headers
   ========================================= */
.section-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.section-header {
  text-align: center;
  margin-bottom: var(--gap-42);
}
.section-subtitle {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 20px;
  line-height: 36px;
  margin-bottom: var(--gap-8);
}
.section-title {
  font-weight: 700;
  color: var(--c-text);
  font-size: 36px;
  line-height: 46.8px;
  margin-bottom: var(--gap-8);
}
.section-description {
  font-weight: 400;
  color: var(--c-text);
  font-size: 16px;
  line-height: 28.8px;
}

/* =========================================
   Main Visual
   ========================================= */
.mv-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  padding: 20px;
  background: url(/image/solution/autonmate/mv_bg.png) center/cover no-repeat;
}
.mv-background {
  position: absolute;
  top: 0;
  right: 0;
  width: 540px;
  height: 440px;
  opacity: 0.3;
}
.mv-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-60);
  align-items: center;
}
.mv-text {
  color: var(--c-white);
}
.automate-logo {
  background: var(--c-white);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 20px;
  display: inline-block;
}
.main-title {
  font-weight: 700;
  color: var(--c-white);
  font-size: 48px;
  line-height: 64px;
  margin-bottom: 24px;
}
.main-description {
  font-weight: 400;
  color: var(--c-white);
  font-size: 16px;
  line-height: 28.8px;
  max-width: 517px;
}
.robot-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.logo-image {
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.robot-image {
  width: 100%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text);
  font-weight: 700;
  text-align: center;
}

/* CTA buttons in MV */
.mv-cta-buttons a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--r-8);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--ease);
  border: 2px solid transparent;
  text-decoration: none; /* ここで確実に無効 */
}
.mv-btn-primary {
  width: 200px;
  text-align: center;
  background: var(--c-brand);
  color: var(--c-white) !important;
  border-color: var(--c-brand)!important;
}
.mv-btn-primary:hover {
  background: var(--c-white);
  color: var(--c-brand) !important;
}
.mv-btn-secondary {
  background: var(--c-white);
  color: var(--c-brand) !important;
  border-color: var(--c-brand);
}
.mv-btn-secondary:hover {
  background: var(--c-brand);
  color: var(--c-white) !important;
}

/* =========================================
   Top Navigation
   ========================================= */
.navigation {
  background: linear-gradient(90deg, var(--c-bg-grad-1) 0%, #dbedff 100%);
  padding: 20px 0;
  box-shadow: var(--shadow-1);
}
.nav-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 48px;
  justify-content: center;
  padding: 0 20px;
}
.nav-container a {
  padding: 10px 15px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 16px;
  line-height: 20.8px;
  transition: color var(--ease), background var(--ease);
  color: var(--c-text);
  text-decoration: none;
}
.nav-container a:hover {
  color: var(--c-accent);
  background: rgba(25, 101, 176, 0.1);
}

/* =========================================
   About
   ========================================= */
#about-autonmate {
  background: var(--c-white);
  padding: var(--pad-72) 20px;
}
.about-card {
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 40px;
  max-width: var(--container);
  margin: 0 auto;
}
.about-card div {
  text-align: center;
  margin-bottom: 16px;
}
.about-text-1 {
  font-size: 24px;
  text-align: center;
  font-weight: 700;
  margin-bottom: 24px;
}

/* =========================================
   Problems
   ========================================= */
.problems-section {
  background: url(/image/solution/autonmate/problems_bg.png) center/cover
    no-repeat;
  padding: var(--pad-72) 20px;
}
.problems-cards {
  display: flex;
  gap: var(--gap-24);
  max-width: 740px;
  margin: 0 auto;
}
.problem-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 24px;
  width: 252px;
}
.problem-card.wide {
  width: 463px;
}
.problem-card h3 {
  font-weight: 700;
  color: var(--c-text);
  font-size: 24px;
  line-height: 31.2px;
  margin-bottom: 16px;
}
.problem-card ul {
  list-style: none;
}
.problem-card li {
  font-weight: 400;
  color: var(--c-text);
  font-size: 16px;
  line-height: 28.8px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}
.problem-card li img {
  vertical-align: middle;
  margin-right: 5px;
}
.problem-image {
  display: block;
  margin: 50px auto;
  max-width: 100%;
}

/* =========================================
   Solutions (Tabs + Cards)
   ========================================= */
.solutions-section {
  background-image: url(/image/solution/autonmate/solutions_bg.png);
  padding: var(--pad-72) 20px;
  color: var(--c-white);
}
.solutions-section .section-subtitle,
.solutions-section .section-title,
.solutions-section .section-description {
  color: var(--c-white);
}

/* Tabs */
.solution-tabs {
  display: flex;
  justify-content: center;
  gap: var(--gap-12);
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.tab-button {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--ease);
  color: var(--c-white) !important;
  text-decoration: none !important;
}
.tab-button:hover,
.tab-button.active {
  background: var(--c-white);
  color: var(--c-accent) !important;
}

/* Cards layout */
.solution-cards {
  display: flex;
  flex-direction: column;
  gap: var(--gap-36);
}
.solution-card {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) 40px 440px;
  grid-template-rows: auto auto;
  align-items: start;
  margin: 40px 0;
  padding: 0 10px;
}
.solution-card.reverse {
  grid-template-columns: 440px 40px minmax(360px, 1fr);
}
.solution-number {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  align-self: start;
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
  color: var(--c-white);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--c-white);
}
.solution-card.reverse .solution-number {
  grid-column: 3;
  grid-row: 1;
}
.solution-content {
  grid-column: 1;
  grid-row: 2;
  max-width: 405px;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: var(--gap-12);
}
.solution-card.reverse .solution-content {
  grid-column: 3;
  grid-row: 2;
}
.solution-badge {
  width: fit-content;
  background: var(--c-white);
  color: var(--c-accent);
  padding: 6px 10px;
  border-radius: var(--r-6);
  font-weight: 700;
  font-size: 20px;
  display: inline-block;
}
.solution-content h3 {
  font-weight: 700;
  color: var(--c-white);
  font-size: 24px;
  line-height: 31.2px;
}
.solution-content ul {
  list-style: none;
}
.solution-content li {
  font-weight: 400;
  color: var(--c-white);
  font-size: 16px;
  line-height: 28.8px;
  margin-bottom: 8px;
  position: relative;
  padding-left: 15px;
}
.solution-content li:before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: 700;
}
.solution-image {
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 440px;
  height: 314px;
  border-radius: var(--r-16);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--c-text);
  font-weight: 700;
  text-align: center;
}
.solution-card.reverse .solution-image {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--r-16);
  display: block;
}

/* =========================================
   Reason (Comparison Table)
   ========================================= */
.reason-section {
  background: linear-gradient(
    90deg,
    var(--c-bg-grad-1) 0%,
    var(--c-bg-grad-2) 100%
  );
  padding: var(--pad-72) 20px;
}
.comparison-table {
  /* max-width: var(--container); */
  background: var(--c-white);
  border-radius: var(--r-16);
  border: 1px solid var(--c-line);
  overflow: hidden;
  margin: 0 auto;
  padding: 30px;
}
.comparison-table table {
  width: 100%;
  margin: auto;
  border-collapse: collapse;
}
.comparison-table th {
  height: 48px;
  font-weight: 700;
  color: var(--c-white);
  font-size: 18px;
  line-height: 23.4px;
  text-align: center;
  padding: 15px;
}
.category-header {
  background: var(--c-text);
  text-align: center;
}
.competitor-header {
  background: #56616f;
}
.autonmate-header {
  background: var(--c-accent);
}
.comparison-table td {
  vertical-align: middle;
}
.category-cell {
  background: var(--c-white);
  padding: 25px 10px;
  text-align: center;
  font-weight: 700;
  color: var(--c-text);
  font-size: 16px;
  line-height: 20.8px;
}
.competitor-cell {
  background: var(--c-bg-soft);
}
.competitor-cell h4 {
  font-weight: 700;
  color: var(--c-brand);
  font-size: 16px;
  line-height: 20.8px;
  margin-bottom: 10px;
}
.competitor-cell ul {
  list-style: none;
}
.competitor-cell li {
  font-weight: 400;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 25.2px;
  margin-bottom: 5px;
}
.autonmate-cell {
  background: #dbedff;
  padding: 25px;
}
.autonmate-cell h4 {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 16px;
  line-height: 20.8px;
  margin-bottom: 10px;
}
.autonmate-cell ul {
  list-style: none;
  margin-bottom: 10px;
}
.autonmate-cell li {
  font-weight: 400;
  color: var(--c-text);
  font-size: 14px;
  line-height: 25.2px;
  margin-bottom: 5px;
}
.autonmate-cell .badge {
  background: var(--c-text);
  color: var(--c-white);
  padding: 4px 8px;
  border-radius: var(--r-4);
  font-weight: 700;
  font-size: 14px;
  line-height: 20.8px;
  display: inline-block;
  margin-top: 10px;
}

/* =========================================
   CTA (mid / bottom section)
   ========================================= */
.cta-section {
  background-image: url(/image/solution/autonmate/CTA_bg.png);
  padding: var(--pad-72) 20px;
  text-align: center;
}
.cta-section h2 {
  font-weight: 700;
  color: var(--c-white);
  font-size: 36px;
  line-height: 46.8px;
  margin-bottom: var(--gap-8);
}
.cta-section p {
  font-weight: 400;
  color: var(--c-white);
  font-size: 16px;
  line-height: 28.8px;
  margin-bottom: 36px;
}
.cta-section::before,
.final-cta-section::before {
  display: none;
}
.cta-buttons {
  display: flex;
  gap: var(--gap-16);
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.contact-btn-primary {
  display: inline-block;
  font-weight: 700;
  font-size: 18px;
  border-radius: var(--r-8);
  transition: all var(--ease);
  cursor: pointer;
  text-decoration: none; /* 全ボタンの下線を無効 */
}
.btn-primary {
  background: var(--c-white);
  color: var(--c-accent-2) !important;
  border: none;
  padding: 12px 24px;
  text-decoration: none !important;
}
.btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--c-white) !important;
  border: 2px solid var(--c-white);
  padding: 10px 22px;
  text-decoration: none !important;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* =========================================
   Case Studies
   ========================================= */
.case-studies-section {
  background: var(--c-white);
  padding: var(--pad-72) 20px;
}
.case-study-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 40px;
  margin-top: 40px;
}
.case-study-main {
  display: flex;
  gap: var(--gap-40);
  margin-bottom: 40px;
  align-items: flex-start;
}
.case-study-image-large {
  width: 320px;
  height: 240px;
  flex-shrink: 0;
}
.placeholder-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: flex;
  font-weight: 700;
  text-align: center;
}
.case-study-content {
  text-align: left;
  flex: 1;
}
.case-study-text p {
  font-weight: 400;
  color: var(--c-text);
  font-size: 16px;
  line-height: 28.8px;
  margin-bottom: 15px;
}
.company-name {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 16px;
  margin-top: 20px;
}
.effects-section {
  margin-bottom: 40px;
}
.effects-title {
  font-weight: 700;
  color: var(--c-text);
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}
.effects-title:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: var(--c-text);
}
.effects-grid {
  display: flex;
  gap: var(--gap-24);
  justify-content: center;
}
.effect-item {
  width: 180px;
  height: 96px;
  background: #eff5fa;
  border: 1px solid var(--c-line);
  border-radius: var(--r-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
}
.effect-title {
  font-weight: 700;
  color: var(--c-text);
  font-size: 24px;
  line-height: 31.2px;
}
.effect-desc {
  font-weight: 400;
  color: var(--c-text);
  font-size: 12px;
  line-height: 16.8px;
  text-align: center;
}
.additional-content {
  display: flex;
  gap: var(--gap-40);
  margin-bottom: 40px;
}
.customer-voices {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.customer-voice {
  width: 48%;
  display: flex;
  gap: 10px;
}
.customer-photo,
.customer-quote {
  padding-bottom: 10px;
}
.customer-quote {
  font-weight: 700;
}

/* =========================================
   Functions
   ========================================= */
.functions-section {
  background: linear-gradient(
    90deg,
    var(--c-bg-grad-1) 0%,
    var(--c-bg-grad-2) 100%
  );
  padding: var(--pad-72) 20px;
}
.function-content {
  flex: 1;
}
.function-content h3 {
  font-weight: 700;
  color: var(--c-text);
  font-size: 24px;
  line-height: 31.2px;
  margin-bottom: 20px;
}
.function-details p {
  font-weight: 400;
  color: var(--c-text);
  font-size: 16px;
  line-height: 28.8px;
  margin-bottom: 12px;
}
.function-details strong {
  font-weight: 700;
}
.function-icon {
  width: 120px;
  height: 120px;
  background: #e8f2ff;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-placeholder {
  font-size: 48px;
  color: var(--c-accent);
}


.specifications-frame {
  margin: 20px 0;
  background-color: white;
  border: 1px solid #d3d3d3;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.specifications-table {
    border-collapse: collapse;
    font-size: 14px;
    color: #274673;
    margin: 0;
}

.specifications-table tr {
    border-bottom: 1px solid #d3d3d3;
}

.specifications-table tr:last-child {
    border-bottom: none;
}

.label-cell {
    width: 297px;
    height: 46px;
    background-color: #eff5fa;
    border-right: 1px solid #d3d3d3;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
    font-weight: normal;
    line-height: 25.2px;
    white-space: nowrap;
}

.label-cell.multiline {
    height: 95px;
}

.value-cell {
    width: 563px;
    height: 46px;
    background-color: white;
    text-align: center;
    vertical-align: middle;
    padding: 8px;
    font-weight: normal;
    line-height: 25.2px;
    white-space: nowrap;
}

.value-cell.multiline {
    height: 95px;
    white-space: normal;
}

.multiline-content {
    width: 561px;
    line-height: 22.4px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}


.other-uses,
.usage-scenarios {
  margin-top: 50px;
  text-align: center;
}
.specifications-frame h3,
.other-uses h3,
.usage-scenarios h3 {
  font-weight: 700;
  color: var(--c-text);
  font-size: 24px;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}
.specifications-frame h3:after,
.other-uses h3:after,
.usage-scenarios h3:after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--c-text);
}
.usage-scenarios h3:after {
  width: 100px;
}
.use-cards,
.scenario-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}
.use-card,
.scenario-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 20px;
  width: 280px;
  text-align: center;
}
.scenario-card.wide {
  width: 400px;
}
.scenario-cards {
  display: block;
}
.scenario-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
}
.scenario-row:last-child {
  margin-bottom: 0;
}
.use-placeholder,
.scenario-placeholder {
  width: 100%;
  height: 150px;
  display: block;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  color: #666;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.use-placeholder img,
.scenario-placeholder img {
  max-width: 100%;
  border-radius: 10px;
}
.use-card h4,
.scenario-card h4 {
  font-weight: 700;
  color: var(--c-text);
  font-size: 18px;
  margin: 0;
}

/* =========================================
   Workflow
   ========================================= */
#workflow {
  padding: 40px 0;
  background: var(--c-white);
}
.workflow-container {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 40px;
  max-width: var(--container);
  margin: 0 auto;
}
.workflow-flow {
  width: 90%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  margin-bottom: 0;
}
.flow-step:last-child {
  margin-bottom: 0;
}
.flow-box {
  background: #7fb3eb;
  color: var(--c-white);
  padding: 60px 0;
  font-weight: 700;
  font-size: 20px;
  text-align: center;
  position: relative;
  width: 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
}
.flow-step:nth-child(1) .flow-box {
  background: #a1c4e8;
  clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%);
}
.flow-step:nth-child(2) .flow-box {
  background: #7fb3eb;
  clip-path: polygon(0 0, 0 68%, 50% 100%, 100% 68%, 100% 0, 50% 32%);
}
.flow-step:nth-child(3) .flow-box {
  background: #5a9ae0;
  clip-path: polygon(0 0, 0 68%, 50% 100%, 100% 68%, 100% 0, 50% 32%);
}
.flow-step:nth-child(4) .flow-box {
  background: #2d5aa0;
  clip-path: polygon(0 0, 0 68%, 50% 100%, 100% 68%, 100% 0, 50% 32%);
}
.detail-item {
  flex: 1;
  padding: 0 0 30px 10px;
  display: block;
  align-items: center;
}
.detail-item ul {
  list-style: none;
}
.detail-item li {
  font-weight: 700;
  color: var(--c-text);
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 2px;
}
.detail-item li:last-child {
  margin-bottom: 0;
}

/* =========================================
   FAQ
   ========================================= */
.faq-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}

/* =========================================
   ROI
   ========================================= */
.roi-section {
  background: linear-gradient(
    90deg,
    var(--c-bg-grad-1) 0%,
    var(--c-bg-grad-2) 100%
  );
  padding: var(--pad-72) 20px;
}
.roi-card {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-16);
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-2);
}
.inputs {
  display: flex;
  gap: var(--gap-16);
}
label {
  font-size: 14px;
  color: var(--c-muted);
  display: block;
}
input[type="number"],
select {
  margin-top: 6px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
  outline: none;
  border: 1px solid var(--c-line);
  transition: border-color var(--ease), box-shadow var(--ease);
}
input[type="number"]:focus,
select:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
details {
  margin-top: 12px;
  display: none;
}
summary {
  cursor: pointer;
  color: var(--c-accent);
  font-weight: 600;
}
.msg {
  text-align: center;
  font-weight: 700;
  color: #1e293b;
}
#headline {
  margin: 8px 0 0 0;
}
#headline2 {
  margin: 0 0 8px 0;
}
.chartWrap {
  padding: 8px 0;
}
canvas {
  border: 1px solid var(--c-line);
  border-radius: var(--r-12);
}
.legend {
  font-size: 12px;
  color: var(--c-muted);
  text-align: center;
  margin-top: 8px;
}
#roi table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}
#roi th,
#roi td {
  border-top: 1px solid var(--c-line);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
}
#roi th:first-child,
#roi td:first-child {
  text-align: left;
}
#roi th {
  color: var(--c-muted);
  font-weight: 600;
}
.notes {
  margin-top: 24px;
}
.notes h3 {
  font-size: 18px;
  color: #1e293b;
  text-align: center;
  margin: 0 0 8px;
}
.notes ul {
  color: var(--c-muted);
  line-height: 1.9;
  font-size: 14px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-16);
}
#result {
  display: none;
}

/* =========================================
   Contact
   ========================================= */
#contact {
  position: relative;
  margin-top: 0;
  background: linear-gradient(135deg, var(--c-accent) 0%, var(--c-text) 100%);
  background-size: cover;
  padding: var(--pad-72) 20px;
  color: var(--c-white);
}
.contact-section .section-subtitle,
.contact-section .section-title {
  color: var(--c-white);
}
.contact-card {
  background: var(--c-white);
  border-radius: var(--r-16);
  padding: 40px;
  margin-top: 40px;
  box-shadow: var(--shadow-3);
}
.autoConfirm {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field label {
  font-weight: 700;
  color: var(--c-text);
  font-size: 16px;
}
span.required {
  background: var(--c-accent);
  color: var(--c-white);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-8);
  font-size: 16px;
  background: var(--c-white);
  color: var(--c-black);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 2px rgba(25, 101, 176, 0.1);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field select {
  cursor: pointer;
}
.privacy-scroll-box {
  height: 200px;
  overflow-y: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--r-8);
  padding: 15px;
  margin: 15px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}
.privacy-scroll-box::-webkit-scrollbar {
  width: 8px;
}
.privacy-scroll-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}
.privacy-scroll-box::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}
.contact-btn-primary {
  background: var(--c-accent);
  color: var(--c-white);
  border: none;
  border-radius: var(--r-8);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--ease);
  display: inline-block;
  text-align: center;
  min-width: 300px;
  text-decoration: none;
}
.contact-btn-primary:hover {
  background: var(--c-text);
  transform: translateY(-2px);
}
.error-message {
  color: var(--c-brand);
  font-size: 14px;
  margin-top: 5px;
  display: none;
}
.error-message.show {
  display: block;
}
.form-field input.error,
.form-field select.error,
.form-field textarea.error {
  border-color: var(--c-brand);
}
.note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
}

/* =========================================
   Fade-in Animation
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   AutonMate (autoConfirm.js 対応 + 最小限)
   ========================================= */
.autoConfirm ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.autoConfirm li {
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 24px;
}
.form-label {
  font-weight: 700;
  color: var(--c-text);
  font-size: 16px;
  margin-bottom: 8px;
  display: block;
}
.form-input {
  margin: 0;
}
.required {
  background: var(--c-accent);
  color: var(--c-white);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-8);
  font-size: 16px;
  background: var(--c-white);
  font-family: inherit;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-control:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(25, 101, 176, 0.2);
}
.form-textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.name-field {
  display: flex;
  flex-direction: column;
}
.form-control.error,
.errorArea.error2 .form-control {
  border-color: var(--c-brand) !important;
  background-color: rgba(213, 67, 87, 0.05);
  box-shadow: 0 0 0 2px rgba(213, 67, 87, 0.1);
}
.error-message {
  color: var(--c-brand);
  font-size: 14px;
  margin-top: 8px;
  display: none;
  font-weight: 600;
  line-height: 1.4;
}
.error-message.show,
.errorArea.error2 .error-message {
  display: block;
}
.note {
  font-size: 12px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}

/* radios / checkboxes */
.chklist {
  list-style: none;
  margin: 12px 0;
  padding: 0;
}
.chklist li {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.chklist input[type="radio"],
.chklist input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.chklist label {
  font-weight: 400;
  color: var(--c-text);
  cursor: pointer;
  line-height: 1.5;
  flex: 1;
}

/* region picker */
.country {
  margin: 12px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: var(--r-8);
  border: 1px solid #e9ecef;
  transition: border-color var(--ease);
}
.country.has-selection {
  border-color: var(--c-accent);
  background: rgba(25, 101, 176, 0.05);
}
.region-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.region-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.region-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}
.region-list label {
  font-weight: 400;
  color: var(--c-text);
  cursor: pointer;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--r-4);
  transition: background-color 0.2s ease;
}
.region-list label:hover {
  background-color: rgba(25, 101, 176, 0.1);
}

/* buttons (confirm) */
.buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 30px;
}
.btn-confirm,
.btn-submit,
.btn-back {
  border: none;
  border-radius: var(--r-8);
  padding: 15px 30px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
}
.btn-confirm,
.btn-submit {
  background: var(--c-accent);
  color: var(--c-white);
  min-width: 200px;
}
.btn-confirm:hover,
.btn-submit:hover {
  background: var(--c-text);
  transform: translateY(-2px);
}
.btn-back {
  background: #6c757d;
  color: var(--c-white);
  min-width: 150px;
}
.btn-back:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

/* messages / preview */
.autoConfirm .hint-message {
  display: block;
}
.autoConfirm .confirm-message {
  display: none;
}
.autoConfirm.confirm .hint-message {
  display: none;
}
.autoConfirm.confirm .confirm-message {
  display: block;
}
.autoConfirmVal {
  font-weight: 600;
  color: var(--c-text);
  background: rgba(25, 101, 176, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 8px;
  border-left: 3px solid var(--c-accent);
  min-height: 20px;
  line-height: 1.4;
  word-break: break-word;
}
.mail-preview {
  font-size: 14px;
  color: #666;
  margin-top: 5px;
  font-style: italic;
}
.TextStyle1 {
  color: var(--c-text);
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.5;
}

/* JS disabled (visually hidden) */
#JSNG,
#JSOK,
#JSNG2,
#JSOK2,
#JSOK3 {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
}

.related-solution-item {
  text-decoration: none !important;
}

/* debug (dev only) */
.debug-mode .autoConfirm.confirm {
  outline: 2px solid #28a745;
}
.debug-mode .autoConfirm:not(.confirm) {
  outline: 2px solid #007bff;
}

/* =========================================
   Responsive (≤768px)
   ========================================= */
@media (max-width: 768px) {
  .section-container {
    padding: 0;
  }
  .nav-container {
    text-align: center;
    flex-direction: column;
    gap: 10px;
  }

  .mv-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .main-title {
    font-size: 32px;
    line-height: 44px;
  }

  .about-card {
    padding: 15px;
  }
  .about-text-1 {
    font-size: 20px;
  }

  .problems-cards {
    flex-direction: column;
    align-items: center;
  }
  .problem-card,
  .problem-card.wide {
    width: 100%;
    max-width: 400px;
  }

  /* solutions: stack */
  .solution-card,
  .solution-card.reverse {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .solution-number {
    position: static;
    margin-bottom: 8px;
  }
  .solution-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  .comparison-table {
    overflow-x: auto;
    padding: 10px;
  }

  .effect-title {
    font-size: 20px;
    line-height: 28px;
  }
  .effect-desc {
    font-size: 14px;
    line-height: 20px;
  }

  .cta-section h2 {
    font-size: 28px;
    line-height: 36px;
  }

  .placeholder-image img {
    width: 100%;
    height: fit-content;
  }
  .case-study-card {
    padding: 40px 20px;
    border-radius: 0;
  }
  .case-study-main {
    flex-direction: column;
    gap: 24px;
  }
  .case-study-image-large {
    width: 100%;
    height: 200px;
  }

  .additional-content {
    flex-direction: column;
    gap: 24px;
  }
  .amr-image {
    width: 100%;
  }
  .customer-voices {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .customer-voice {
    width: 100%;
    gap: 12px;
  }

  .functions-list {
    padding: 0 10px;
  }
  .use-placeholder,
  .scenario-placeholder {
    height: 100%;
    margin-bottom: 20px;
  }
  .use-cards {
    flex-direction: column;
    align-items: center;
  }
  .scenario-row {
    flex-direction: column;
    align-items: center;
  }
  .scenario-card.wide {
    width: 280px;
  }

  .roi-card {
    padding: 40px 10px;
  }
  .roi-chart {
    height: 200px;
    margin: 20px 20px;
    padding: 15px;
  }
  .chart-y-axis {
    left: -30px;
  }
  .y-label {
    font-size: 10px;
  }
  .chart-bars {
    gap: 15px;
  }
  .bar {
    width: 25px;
  }
  .bar-label {
    font-size: 10px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
  .roi-form,
  .roi-grid {
    grid-template-columns: 1fr;
    gap: var(--gap-16);
  }

  .workflow-container {
    padding: 40px 10px;
  }
  .workflow-flow {
    width: 100%;
  }
  .flow-box {
    width: 40%;
    min-width: auto;
    padding: 15px;
    font-size: 15px;
    height: 150px;
  }
  .detail-item {
    padding: 0;
    height: auto;
  }
  .detail-item li {
    font-size: 14px;
    line-height: 20px;
  }

  .contact-card {
    padding: 40px 10px;
  }
  .name-fields {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .region-list {
    flex-direction: column;
    gap: 8px;
  }
  .buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn-confirm,
  .btn-submit,
  .btn-back {
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
  }
  .form-control,
  .form-textarea {
    font-size: 16px;
  } /* iOS zoom防止 */
  .privacy-scroll-box {
    height: 150px;
    font-size: 13px;
  }
}

/* =========================================
   Accessibility & Preferences
   ========================================= */
@media (prefers-contrast: high) {
  .form-control {
    border-width: 2px;
  }
  .error-message {
    font-weight: 700;
  }
  .form-control.error {
    border-width: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .form-control,
  .btn-confirm,
  .btn-submit,
  .btn-back,
  .country {
    transition: none;
  }
}

/* =========================================
   Floating Page Top (above fixed contact CTA)
   ========================================= */
.fixed-page-top-button {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 1001;
  display: block;
  transition: transform 0.2s ease;
}

.fixed-page-top-button img {
  display: block;
  width: 56px;
  height: auto;
}

.fixed-page-top-button:focus-visible {
  outline: 2px solid #1965b0;
  outline-offset: 3px;
}

.fixed-page-top-button:hover {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .fixed-page-top-button {
    right: auto;
    left: 50%;
    bottom: 92px;
    transform: translateX(-50%);
  }

  .fixed-page-top-button:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}

/* ===== Confirm Modal (AutonMate contact) ===== */
#contactConfirmOverlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: saturate(120%) blur(2px);
}
#contactConfirmModal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 94vw);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  padding: 24px;
  z-index: 10000;
}
.ccm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.ccm-head h3 {
  margin: 0;
  font-size: 20px;
  color: #0f172a;
}
.ccm-note {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}
.ccm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #1f2937;
}
.ccm-table th,
.ccm-table td {
  border-top: 1px solid #e5e7eb;
  padding: 10px 8px;
  vertical-align: top;
}
.ccm-table th {
  width: 32%;
  text-align: left;
  color: #475569;
  background: #f8fafc;
}
.ccm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
.ccm-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.ccm-btn:active {
  transform: translateY(1px);
}
.ccm-cancel {
  background: #e2e8f0;
  color: #0f172a;
}
.ccm-confirm {
  background: var(--c-accent, #1965b0);
  color: #fff;
}
.ccm-confirm[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
@media (max-width: 768px) {
  #contactConfirmModal {
    padding: 18px;
  }
  .ccm-table th {
    width: 40%;
  }
}
