/*
Theme Name: Cloud Dial Theme
Theme URI:  https://clouddial.jp/
Description: クラウドダイアル公式ランディングページテーマ（Heroナビ背景復元版）
Author: StreamWorks LLC
Version: 1.2
*/

/* ======================================================
   1. 基本設定・変数
====================================================== */
:root {
  --main-blue: #0077A9;
  --accent-cyan: #00B4D8;
  --orange: #FF9430;
  --light-bg: #f9f9f9;
  --font-color: #333;
}

/* 強調テキスト：黄色系 */
.highlight-yellow {
  color: #ffd54f !important;        /* 柔らか系黄色 */
  font-weight: 700;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--font-color);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden;
}

body li a {
  text-decoration: none;
  color: var(--main-blue);
  transition: 0.3s;
}

body p a:hover,
body li a:hover {
  text-decoration: none;
  color: var(--accent-cyan);
}


img {
  max-width: 100%;
  height: auto;
  display: block;
}


section {
  padding: 20px 6%;
  margin: 0 auto;
}

section + section {
  margin-top: 0px;
  margin-bottom: 0px;
}


main,
#content,
.site-main {
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

main section:not([class*="hero"]):not([class*="corporate"]):not([class*="content"]):nth-of-type(even) {
  background: var(--light-bg);
}

main section:not([class*="hero"]):not([class*="corporate"]):nth-of-type(even) {
  background: #fff;
}

/*
h1, h2, h3, h4, h5, h6, p {
  margin: 0 0 0.6em;
}
*/

/* 固定ページタイトルを非表示 */
.page .page-title,
.entry-title,
.page h1.page-title {
  display: none !important;
}

.page-id-21 .entry-title,
.page-id-21 .page-title,
.page-id-21 h1.page-title {
  display: block !important;
}
.page-id-36 .entry-title,
.page-id-36 .page-title,
.page-id-36 h1.page-title {
  display: block !important;
}
.page-id-73 .entry-title,
.page-id-73 .page-title,
.page-id-73 h1.page-title {
  display: block !important;
}

body.page-id-135 main {
  padding-top: 80px;
}
body.page-id-139 main {
  padding-top: 80px;
}

.page-id-135 .entry-title,
.page-id-135 .page-title,
.page-id-135 h1.page-title {
  display: block !important;
}

.page-id-139 .entry-title,
.page-id-139 .page-title,
.page-id-139 h1.page-title {
  display: block !important;
}

/* ======================================================
   共通ルール：.no-hover が付いた要素はホバー無効
====================================================== */
.no-hover:hover {
  transform: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
}


/* ======================================================
   リンクカード（pbx-cardをa要素化したとき）
====================================================== */
.link-card {
  display: block;
  color: inherit;
  text-decoration: none;              /* 下線なし */
  transition: transform 0.3s, box-shadow 0.3s;
}
.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}
.link-card h3,
.link-card p {
  color: inherit;
  text-decoration: none;              /* 内部要素にも明示 */
}



/* ======================================================
   2. 固定ヘッダー
====================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;             /* ← ヘッダーの実際の高さ */
  z-index: 9999;                 /* 他要素より前面に出す */
  background: rgba(255,255,255,1.0);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 6%;
  flex-wrap: wrap;
}

header .main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.5em;
}

header .main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.8em;
  margin: 0;
  padding: 0;
  align-items: center;
}

header .main-nav a {
  color: var(--font-color);
  text-decoration: none;
  font-size: 1em;
  font-weight: 500;
  transition: 0.3s;
  padding: 6px 8px;
}

header .main-nav a:hover {
  color: var(--accent-cyan);
}

/* ====== Headerドロップダウン（機能詳細） ====== */

header .main-nav ul li.dropdown {
  position: relative;
}

/* 下層メニュー：初期は非表示 */
header .main-nav ul li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0;
  min-width: 210px;
  z-index: 1000;
}

/* メニュー項目 */
header .main-nav ul li.dropdown .dropdown-menu li {
  margin: 0;
  padding: 0;
}

/* 下層メニューリンク */
header .main-nav ul li.dropdown .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--font-color);
  text-decoration: none; /* ← 下線なし */
  font-size: 0.95em;
  transition: background 0.25s;
}

header .main-nav ul li.dropdown .dropdown-menu a:hover {
  background: var(--accent-cyan);
  color: #fff;
}

/* hover時に開く */
header .main-nav ul li.dropdown:hover > .dropdown-menu {
  display: block;
}

/* 親メニューテキスト */
header .main-nav ul li.dropdown > a {
  text-decoration: none;
  position: relative;
}

/* ▾アイコン */
header .main-nav ul li.dropdown > a::after {
  content: "▾";
  font-size: 0.7em;
  margin-left: 4px;
}


/* 検索フォーム */
.search-form {
  display: flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 3px 6px;
}
.search-form input[type="search"] {
  border: none;
  outline: none;
  font-size: 0.9em;
  color: var(--font-color);
}
.search-form button {
  background: #fff;
  border: none;
  color: var(--main-blue);
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 0.9em;
  transition: 0.3s;
}
.search-form button:hover {
  background: var(--orange);
  color: #fff;
}

/* CTAボタン */
.main-nav a.cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s;
}
.main-nav a.cta:hover {
  background: #ff8c3a;
}

/* ======================================================
   3. HEROセクション
====================================================== */
.hero {
  position: relative;
  color: #fff;
  min-height: 40vh;
  padding: 120px 8% 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ===== Hero 背景を LCP から切り離す ===== */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    315deg,
    #a6e6f5 0%,
    #0098c7 40%,
    #0077a9 100%
  );
  z-index: -1;
}

/* ---------------------------------------------
   通常ページ（固定ページなど）Heroリセット
--------------------------------------------- */
body:not(.home) .hero {
  padding: 50px 8% 50px;
  min-height: 30vh;   /* 従来の高さに戻す */
}


/* ロゴ＋製品名 */
.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff; /* ほんのりオレンジ寄り */
  padding: 6px 12px;
  border-radius: 8px;
}

.hero-brand img {
  height: 36px;
  width: auto;
}
.hero-brand .product-name {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

/* ナビ（右側） */
.hero-nav {
  display: flex;
  gap: 1.2em;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin-right: 80px !important; /* ←右に30px余白 */
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 8px 14px;
}
.hero-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  padding: 4px 8px;
  border-radius: 4px;
  transition: 0.3s;
}
.hero-nav a:hover {
  background: rgba(255,255,255,0.3);
}

/* ヒーロー中央コピー */
.hero-content {
  margin-top: 16px;
}
.hero-content h1 {
  font-size: 2.4em;
  margin-bottom: 0.4em;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.2em;
  line-height: 1.8;
  margin-bottom: 2em;
}

/* ======================================================
   Hero追加要素（信頼補強＋デモ案内）
====================================================== */
.hero-content h1 {
  font-size: 2.4em;
  font-weight: 700;
  line-height: 1.4;
}

.hero-content .trust-info {
  margin-top: 25px;
  color: #fff;
  font-size: 0.95em;
  text-align: center;
  line-height: 1.6;
  opacity: 0.95;
}

.trust-info p {
  margin: 6px 0;
}

.trust-info .demo-link {
  margin-top: 10px;
  font-weight: 600;
}

.trust-info .demo-link .phone-icon {
  margin-right: 4px;
}

/* スマホ時レイアウト調整 */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.8em;
  }
  .hero-content .trust-info {
    font-size: 0.9em;
    line-height: 1.7;
  }
}

/* CTAボタン */
.btn-primary {
  background: var(--orange);
  color: #fff;
  font-weight: bold;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s;
}
.btn-primary:hover {
  background: #ff9f45;
  transform: translateY(-2px);
}

/* ======================================================
   Hero 導入効果ミドルコピー
====================================================== */
.sub-benefit {
  color: #fff;
  font-size: 1.1em;
  font-weight: 500;
  margin: -10px auto 2em;  /* CTAと自然に馴染むマージン */
  opacity: 0.95;
  line-height: 1.7;
}

.sub-benefit strong {
  color: #fff;
  font-weight: 700;
}

/* スマホ調整 */
@media (max-width: 768px) {
  .sub-benefit {
    font-size: 0.95em;
    margin: 0 auto 1.6em;
    line-height: 1.6;
  }
}

/* ====== 活用シーン「詳しく見る」リンク ====== */
.usage-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--main-blue);
  font-size: 0.95em;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.usage-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* ==============================
   CTAボタン並列配置
============================== */
.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
 padding-bottom: 0px;
}

.hero-cta a {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
}

/* ボタン色 */
.hero-cta .btn-primary {
  background: var(--orange);
  color: #fff;
}
.hero-cta .btn-primary:hover {
  background: #ff9f45;
  transform: translateY(-2px);
}
.hero-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.hero-cta .btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

/* ==============================
   フェードアニメーション定義
============================== */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-cta a {
  opacity: 0;
  animation-name: fadeUp;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  animation-timing-function: ease-out;
}

/* それぞれディレイタイミング */
.fade-cta .delay-1 {
  animation-delay: 0.3s; /* 無料トライアル */
}
.fade-cta .delay-2 {
  animation-delay: 0.6s; /* お問い合わせ */
}

/* ======================================================
   4. FEATURES
====================================================== */
.features {
  background: #fff;
  text-align: center; /* ← セクション内の基準を中央に */
}

/* 見出し */
.features h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 1.4em;
  text-align: center;
  position: relative;
}

/* feature カード全体を中央揃え */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ← 横方向中央寄せ */
  align-items: flex-start;
  gap: 24px;
  max-width: 1200px; /* ← 全体幅を中央に制限 */
  margin: 0 auto;     /* ← 左右中央 */
}

/* feature カード */
.feature {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  width: 320px;
  padding: 40px 25px;
  text-align: left;
  transition: transform 0.3s;
}


.feature:hover {
  transform: translateY(-4px);
}

.feature h3 {
  color: var(--main-blue);
  font-size: 1.2em;
  margin-bottom: 10px;
  text-align: left;
}

.feature p {
  font-size: 0.95em;
  line-height: 1.8;
  color: #333;
}


/* ======================================================
   5. DEMO CALL
====================================================== */
.demo-call {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 10px 20px;
  text-align: center;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.demo-call h3 {
  color: var(--main-blue);
  font-size: 1.6em;
  margin-bottom: 10px;
}

/* ======================================================
   6. FOOTER
====================================================== */
footer {
  background: #0a2339;
  color: #ccc;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
}
footer a {
  color: #ccc;
  text-decoration: none;
}
footer a:hover {
  color: #fff;
  text-decoration: underline;
}


/* ================================================
  7. ai-response
================================================= */

/* タイトル＆本文整形 */
.ai-response .ai-illustration {
  text-align: center; /* 図とキャプションを中央に */
  margin-top: 20px;
}

.ai-response .caption {
  font-size: 0.9em;
  color: #666;
  margin-top: 12px;
  text-align: center; /* ← 確実に中央揃え */
}

#ai-response h2 {
  text-align: center;  /* タイトルは中央 */
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
}

#ai-response .ai-text p,
#ai-response .ai-text ul {
  text-align: left;    /* 本文やリストは左寄せ */
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 1.6em;   /* 左右中央に寄せつつ本文範囲を限定 */
}

/* 図解エリア：一列横並び */
#ai-response .diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;  /* 一行で表示 */
  gap: 20px;
  text-align: center;
}

#ai-response .node {
  background: #fff;
  border-radius: 10px;
  padding: 20px 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 160px;
}
#ai-response .node small {
  display: block;
  font-size: 0.85em;
  color: #666;
  margin-top: 5px;
}

#ai-response .arrow {
  font-size: 1.6em;
  color: var(--main-blue);
}

/* スマホ時は段組みに切り替え */
@media (max-width: 768px) {
  #ai-response .diagram {
    flex-direction: column;
    gap: 10px;
  }
  #ai-response .arrow {
    transform: rotate(90deg);  /* 矢印を下向き化 */
  }
}

/*======================================================
  8. ARCHITECTURE SECTION
======================================================*/
.architecture {
  text-align: center;
  padding: 80px 6%;
}

.architecture h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 25px;
}

.architecture .arch-lead {
  max-width: 850px;
  margin: 0 auto 40px;
  font-size: 1em;
  color: #333;
  line-height: 1.9;
  text-align: left;
}

.arch-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 30px;
}

.arch-points .point {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  padding: 20px 26px;
  flex: 1 1 380px;
  max-width: 400px;
  text-align: left;
  color: #333;
  font-size: 0.95em;
  line-height: 1.7;
  transition: 0.3s;
}

.arch-points .point:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.arch-caption {
  font-size: 0.85em;
  color: #666;
  margin-top: 20px;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .architecture {
    padding: 60px 5%;
  }

  .architecture .arch-lead {
    font-size: 0.95em;
    text-align: left;
  }

  .arch-points {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .arch-points .point {
    width: 90%;
    max-width: 340px;
    text-align: center;
    font-size: 0.95em;
  }
}

/*======================================================
  9. PRICING SECTION
======================================================*/
.pricing h2 {
  text-align: center;
  color: var(--main-blue);
  font-size: 1.9em;
  margin-bottom: 15px;
}
.pricing .lead {
  text-align: left;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.8;
}
.pricing-table {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-bottom: 40px;
}
.pricing-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex: 1 1 280px;
  max-width: 330px;
  padding: 30px 25px;
  text-align: left;
}
.pricing-item h3 {
  color: var(--main-blue);
  font-size: 1.2em;
  margin-bottom: 10px;
}
.pricing-item .price {
  font-size: 1.6em;
  font-weight: bold;
  color: var(--orange);
  margin-bottom: 10px;
}
.pricing-item .price span {
  font-size: 0.6em;
  color: #666;
}
.pricing-item .desc {
  font-size: 0.95em;
  color: #444;
  line-height: 1.8;
}
.charge-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  border-top: 1px dotted #ddd;
}
.charge-list li {
  font-size: 0.95em;
  color: #333;
  padding: 6px 0;
  border-bottom: 1px dotted #ddd;
}
.charge-list li strong {
  color: var(--orange);
}
.pricing-footer {
  text-align: left;
  font-size: 1em;
  color: #333;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/*======================================================
  10. SIMULATOR SECTION
======================================================*/
.simulator h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  text-align: center;
  margin-bottom: 20px;
}
.simulator .lead {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.sim-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: inline-block;
  width: 220px;
  font-weight: bold;
}
.form-group input {
  width: 120px;
  padding: 5px;
  font-size: 1em;
}
.form-group small {
  color: #666;
  display: block;
  margin-top: 5px;
  font-size: 0.85em;
}
#calcBtn {
  background: var(--main-blue);
  color: #fff;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: 0.3s;
}

#calcBtn:hover {
  background: var(--accent-cyan);
}

.sim-result {
  margin-top: 40px;
  margin-left: 40px;
  font-size: 1.3em;
  background: var(--light-bg);
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#totalPrice {
  color: var(--orange);
  font-weight: bold;
}

/* ======================================================
   簡易競合比較表
====================================================== */
.competitor-table h2 {
  text-align: center;
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 10px;
}

.competitor-table .lead {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
  font-size: 1em;
  line-height: 1.7;
}

.competitor-table .table-wrapper {
  max-width: 100%;
  overflow-x: auto;
}

.competitor-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
}

.competitor-table th,
.competitor-table td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  text-align: center;
}

.competitor-table th {
  background: var(--main-blue);
  color: #fff;
  font-weight: bold;
}

.competitor-table tr:nth-child(even) td {
  background: #f4f8fb;
}

.competitor-table strong {
  color: var(--main-blue);
}


/* ======================================================
   導入効果をデータで実感
====================================================== */
.metrics {
  text-align: center;
}

.metrics h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 40px;
  position: relative;
}

.metrics-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.metric {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 200px;
  padding: 40px 20px;
  transition: 0.3s;
}

.metrics-note {
  font-size: 0.85em;
  color: #666;
  margin-top: 20px;
  text-align: center;
  line-height: 1.6;
}

.metric:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}

.metric .number {
  font-size: 2.4em;
  font-weight: bold;
  color: var(--main-blue);
  margin-bottom: 10px;
}

.metric p {
  font-size: 1em;
  color: #333;
  margin: 0;
}


/* ======================================================
   活用シーン
====================================================== */
.usage {
  background: #fff;
  text-align: center;
}

.usage h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 40px;
  position: relative;
}

.usage-item {
  margin-bottom: 40px;
}

.usage-item h3 {
  font-size: 1.3em;
  color: var(--orange);
  margin-bottom: 6px;
}

.usage-item p {
  font-size: 1em;
  color: #333;
  line-height: 1.7;
}

/* カードを並べるグリッド */
.usage-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 各カード */
.usage-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 30px 25px;
  width: 320px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.usage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.usage-card h3 {
  font-size: 1.2em;
  color: var(--orange);
  margin-bottom: 10px;
}

.usage-card p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.8;
}


/*======================================================
  11. FAQ SECTION
======================================================*/
.faq {
  background: #fff;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  line-height: 1.9;
}
.faq h2 {
  text-align: center;
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
}
.faq dt {
  font-weight: bold;
  color: var(--main-blue);
  margin-top: 25px;
}
.faq dd {
  margin-left: 0;
  margin-bottom: 10px;
}


/* ======================================================
   導入はたった3ステップ
====================================================== */
.steps {
  text-align: center;
}

.steps h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 50px;
  position: relative;
}


/* 3ステップを並べるグリッド */
.steps-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* 各ステップカード */
.step {
  background: #f9fafb;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  width: 260px;
  padding: 40px 25px;
  text-align: center;
  transition: 0.3s;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* タイトル（①～③） */
.step h3 {
  color: var(--orange);
  font-size: 1.3em;
  margin-bottom: 10px;
}

/* 説明テキスト */
.step p {
  color: #333;
  font-size: 0.95em;
  line-height: 1.7;
}

/* ======================================================
   IVR BUILDER セクション
====================================================== */
.ivr-builder {
  text-align: center;
}
.ivr-builder h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
}
.ivr-builder .lead {
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.8;
  color: #333;
}
.ivr-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}
.ivr-text {
  flex: 1 1 450px;
  text-align: left;
}
.ivr-text ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.ivr-text li {
  line-height: 1.9;
  margin-bottom: 6px;
}
.ivr-text li::before {
  content: "✔";
  color: var(--orange);
  margin-right: 6px;
}
.ivr-image {
  flex: 1 1 400px;
  text-align: center;
}
.ivr-image img {
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.ivr-image .caption {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
}
.ivr-highlight {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 30px 20px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}
.ivr-highlight strong {
  color: var(--main-blue);
}

@media (max-width: 768px) {
  .ivr-builder {
    padding: 60px 5%;
  }
  .ivr-flex {
    flex-direction: column;
    gap: 25px;
  }
  .ivr-text {
    text-align: left;
  }
  .ivr-image img {
    max-width: 100%;
  }
}


/* ======================================================
   追加セクション用スタイル（おすすめ企業・導入変化・業種活用・チェックリスト）
====================================================== */

/* --- fit-for（おすすめ企業） --- */
.fit-for {
  text-align: center;
  padding: 80px 6%;
}
.fit-for h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 30px;
}
.fit-for .fit-grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 850px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fit-for .fit-grid li {
  background: #fff;
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 1em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: left;
  transition: 0.2s;
}
.fit-for .fit-grid li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- before-after（導入前・導入後比較） --- */
.before-after {
  text-align: center;
  padding: 80px 6%;
}
.before-after h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 30px;
}
.before-after .compare-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.before-after th,
.before-after td {
  border: 1px solid #ddd;
  padding: 14px 12px;
  font-size: 0.95em;
}
.before-after th {
  background: var(--main-blue);
  color: #fff;
}
.before-after tr:nth-child(even) td {
  background: #f8fbfd;
}

/* --- usecase（業種別活用例） --- */
.usecase {
  text-align: center;
  padding: 80px 6%;
}
.usecase h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 40px;
}
.usecase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.usecase .case {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 30px 25px;
  width: 260px;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}
.usecase .case:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.usecase .case h3 {
  color: var(--orange);
  font-size: 1.15em;
  margin-bottom: 10px;
}
.usecase .case p {
  font-size: 0.95em;
  color: #333;
  line-height: 1.7;
}

/* --- checklist（適合診断） --- */
.diagnose {
  text-align: center;
  padding: 80px 6%;
}
.diagnose h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
}
.diagnose p {
  color: #333;
  margin-bottom: 15px;
  line-height: 1.8;
}
.diagnose .checklist {
  list-style: none;
  max-width: 680px;
  margin: 0 auto 20px;
  padding: 0;
  text-align: left;
}
.diagnose .checklist li {
  background: var(--light-bg);
  border-left: 5px solid var(--orange);
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: 0.2s;
}
.diagnose .checklist li:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.diagnose .result-note {
  font-weight: bold;
  color: var(--orange);
  margin-top: 20px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .fit-for,
  .before-after,
  .usecase,
  .diagnose {
    padding: 60px 4%;
  }

  .before-after .compare-table th,
  .before-after .compare-table td {
    font-size: 0.85em;
    padding: 10px 8px;
  }

  .usecase .case {
    width: 90%;
    max-width: 320px;
    text-align: center;
  }

  .diagnose .checklist li {
    font-size: 0.95em;
  }
}

/* ======================================================
   CTAセクション
====================================================== */
.cta {
  background: linear-gradient(135deg, var(--main-blue), var(--accent-cyan)) !important;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5em;
  margin-top: 20px;
}

.cta h2 {
  font-size: 1.9em;
  margin: 0;
  color: #fff !important;
}

.cta p {
  font-size: 1.1em;
  margin: 0;
}

.cta .btn-primary {
  background: #fff;
  color: var(--main-blue);
  font-weight: bold;
  border-radius: 6px;
  padding: 14px 28px;
  text-decoration: none;
  transition: 0.3s;
}

.cta .btn-primary:hover {
  background: var(--orange);
  color: #fff;
}


/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 768px) {
  /* ======= Headerエリア ======= */
   header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    
    /* スマホ用もう少し省スペース */
    padding: 10px 4%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1000;

    overflow: visible !important; /* ← 隠れ防止 */
    height: auto !important;       /* ← 高さ固定を解除 */
  }

  header .main-nav {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
  }

  header .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1em;
    margin: 0;
    padding: 0;
  }

header .main-nav ul li.dropdown {
  position: relative;
}

/* 下層メニュー：初期は非表示 */
header .main-nav ul li.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  list-style: none;
  margin: 6px 0 0;
  padding: 8px 0;
  min-width: 210px;
  z-index: 1000;
}

/* メニュー項目 */
  header .main-nav ul li.dropdown .dropdown-menu {
    position: static;
    display: none;
    background: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
  }

  header .main-nav ul li.dropdown.open .dropdown-menu {
    display: block;
  }

  header .main-nav ul li.dropdown .dropdown-menu a {
    padding: 8px 12px;
  }



  /* ======= HERO  ======= */
  .hero {
    padding: 160px 8% 60px; /* 固定ヘッダー分の余白確保 */
    min-height: auto;
  }

  .hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .hero-brand img {
    height: 32px;
    width: auto;
  }
  .hero-brand .product-name {
    font-size: 1.1em;
  }

  /* スマホ時はHeroナビの背景削除してシンプルに */
  .hero-nav {
    background: none;
    backdrop-filter: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6em;
    margin-top: 0.5em;
  }

  .hero-nav a {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    color: #fff;
    font-size: 0.9em;
    padding: 4px 6px;
    text-decoration: none;
  }

  /* ====== CTAボタン並列 → 縦積み ====== */
  .hero-cta {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-cta a {
    width: 90%;
    max-width: 300px;
    text-align: center;
  }

  /* ===== Hero本文 ===== */
  .hero-content { margin-top: 40px; }
  .hero-content h1 { font-size: 1.9em; }
  .hero-content p { font-size: 1em; }

  .features {
    padding: 50px 5%;
  }

  .feature-grid {
    flex-direction: column; /* → 縦並び */
    align-items: center;
  }

  .feature {
    width: 90%;
    max-width: 340px;
    margin: 0 auto;
    text-align: left;
  }

  .usage {
    padding: 60px 5%;
  }

  .usage-item h3 {
    font-size: 1.15em;
  }

  .metrics {
    padding: 80px 6%;
  }

  .usage-grid {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .usage-card {
    width: 90%;
    max-width: 340px;
  }

  .metrics-grid {
    flex-direction: column;
    align-items: center;
  }

  .metric {
    width: 90%;
    max-width: 300px;
  }

  .steps {
    padding: 80px 6%;
  }

  .steps-grid {
    flex-direction: column;
    align-items: center;
  }

  .step {
    width: 90%;
    max-width: 340px;
  }

  .step h3 {
    font-size: 1.1em;
  }

  .cta-section {
    padding: 80px 6%;
  }
  .cta-section h2 {
    font-size: 1.5em;
  }
  .cta-section p {
    font-size: 1em;
  }

}


/* ストアバッジの横並び調整 */
.store-badges {
  display: flex;               /* Flexで横並び */
  justify-content: center;     /* 中央寄せ */
  align-items: center;
  gap: 12px;                   /* ← ここがポイント！ 両者の間隔 */
  flex-wrap: wrap;             /* スマホ時折り返しOK */
}

.store-badges img {
  height: 40px;
  display: block;
}

/* ======================================================
   ✅ 差分修正（修正前CSSを壊さない）
====================================================== */

/* 2. HERO 内メニューが本文に被らないように */
.hero-top {
  position: relative;
  width: 100%;
  margin: 0 auto 0px;
  padding: 0 2%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5em;
  z-index: 10;
  text-align: left;
}


/* 3. HERO の上下余白を適正化（最小限） */
.hero {
  position: relative;
  background: linear-gradient(
    315deg,
    #a6e6f5 0%,
    #0098c7 40%,
    #0077a9 100%
  );
  color: #fff;
  min-height: 40vh;
  padding: 8px 8% 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 4. WordPress 自動ページタイトルを非表示 */
.page .entry-title,
.page .page-title,
.single .entry-title,
.archive .page-title {
  display: none !important;
}


body:not(.home) .hero {
  padding: 50px 8%;
  min-height: 30vh;
}

/* ===== ナビ2行対応：最小・安全 ===== */
header .main-nav ul {
  align-items: center;
}

header .main-nav ul li a {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

header .main-nav .nav-product {
  flex-direction: column;
}

header .main-nav .nav-sub {
  font-size: 0.7em;
  color: #888;
  margin-top: 1px;
  white-space: nowrap;
}


/* ===============================
   ナビ主役：AIオートコール
=============================== */

/* メイン文字を強調 */
.main-nav .is-primary {
  color: var(--main-blue);
  font-weight: 700;
}

/* サブタイトルを強調（でも主張しすぎない） */
.main-nav .is-primary .nav-sub {
  color: var(--orange);
  font-weight: 600;
}

/* ホバー時も主役感を維持 */
.main-nav .is-primary:hover {
  color: var(--accent-cyan);
}


.hero *,
.hero *::before,
.hero *::after {
  animation: none !important;
  transition: none !important;
}


/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  background: #fff;
}

.lightbox-overlay.active {
  display: flex;
  cursor: zoom-out;
}