/*
Theme Name: Cloud Dial Theme
Theme URI:  https://clouddial.jp/
Description: クラウドダイアル公式ランディングページテーマ
Author: StreamWorks LLC
Version: 1.0
*/

/*======================================================
  1. 変数＆基本設定
======================================================*/
:root {
  --main-blue: #0077A9;
  --accent-cyan: #00B4D8;
  --orange: #F26B1D;
  --light-bg: #f9f9f9;
  --font-color: #333;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  color: var(--font-color);
  line-height: 1.7;
  background: #fff;
  overflow-x: hidden; /* 横はみ出し防止 */
}

img { max-width: 100%; height: auto; display: block; }

h1,h2,h3,h4,h5,h6,p { margin: 0 0 0.6em; }


section {
  padding: 20px 10% 20px;
  text-align: center;
}


/*======================================================
  2. ヘッダー／フッター
======================================================*/
.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2em;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}
header {
  position: fixed; top: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex; justify-content: space-around; align-items: center;
  padding: 18px 6%;
  z-index: 1000;
  flex-wrap: wrap; /* ← 折り返し許可（重要！） */
}

header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

header .logo img {
  height: 45px;
}

header .logo a {
  font-size: 1.2em;
  font-weight: bold;
  color: var(--orange);
  text-decoration: none;
}


/* ナビゲーション */
header .main-nav {
  display: flex;
  flex-wrap: wrap;        /* ← 狭い時に折り返し */
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

header .main-nav a {
  text-decoration: none;
  color: var(--font-color);
  transition: 0.3s;
  font-size: 1em;
  padding: 6px 8px;
}

header .main-nav a:hover { color: var(--accent-cyan); }

header .main-nav a.cta {
  background: var(--orange);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  margin-right: 20px;
}

header .main-nav a.cta:hover {
  background: #ff8c3a;
}


footer {
  background: #0a2339;
  color: #ccc;
  text-align: center;
  padding: 10px 10px;
  font-size: 0.9em;
}

footer img {
  height: 40px;
  margin-bottom: 10px;
}

footer a {
  color: #cccccc;
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/*
======================================================
  3. HERO SECTION
======================================================*/
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--main-blue), var(--accent-cyan));
  color: #fff;
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 8% 30px;
}

.hero h1 {
  font-size: 2.4em;
  margin-bottom: 0.5em;
}

.hero p {
  font-size: 1.2em;
  max-width: 700px;
  margin-bottom: 2em;
}

.hero-nav {
  position: absolute;
  bottom: 20px;         /* 右下余白 */
  right: 30px;
  background: rgba(255, 255, 255, 0.2); /* 半透明背景で視認性UP */
  backdrop-filter: blur(5px);
  border-radius: 8px;
  padding: 8px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.hero-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95em;
  font-weight: 500;
  transition: 0.3s;
  padding: 4px 8px;
  border-radius: 4px;
}

.hero-nav a:hover {
  background: rgba(255,255,255,0.3);
  color: #fff;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}
.btn-primary:hover {
  background: #ff933d;
  transform: translateY(-2px);
}

/* ========= Section Default ========= */
section h2 {
  font-size: 1.9em;
  margin-bottom: 1.2em;
  position: relative;
}
section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--main-blue);
  margin: 0.6em auto 0;
  border-radius: 2px;
}


/*======================================================
  4. FEATURES SECTION
======================================================*/
.features h2 {
  text-align: center;
  font-size: 1.8em;
  margin-bottom: 1.2em;
}

.features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.features .feature {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
  max-width: 320px;
  padding: 40px 25px;
  text-align: left;
  transition: transform 0.3s;
}

.features .feature:hover {
  transform: translateY(-4px);
}

.features .feature h3 {
  color: var(--main-blue);
  margin-bottom: 10px;
}

/* ================================================
   AI自動応答の仕組みセクション（#ai-response）
================================================= */

/* タイトル＆本文整形 */
#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);  /* 矢印を下向き化 */
  }
}

/*======================================================
  5. ARCHITECTURE SECTION
======================================================*/
.architecture {
  background: var(--light-bg);
}
.arch-container {
  max-width: 1100px;
  margin: 0 auto;
}
.arch-text h2 {
  text-align: center;
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 20px;
}
.arch-text {
  text-align: left;
  line-height: 1.9;
}
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 20px;
}
.arch-diagram .layer {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 25px 20px;
  width: 90%;
  max-width: 800px;
  text-align: center;
}
.arrow-down {
  font-size: 1.5em;
  color: var(--accent-cyan);
}
.arch-caption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 20px;
}

/*======================================================
  6. PRICING SECTION
======================================================*/
.pricing {
  background: var(--light-bg);
  padding: 100px 8%;
}
.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;
}

/*======================================================
  7. SIMULATOR SECTION
======================================================*/
.simulator {
  background: #fff;
  padding: 100px 8%;
}
.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;
  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;
}

/*======================================================
  8. 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;
}

/*======================================================
  9. FOOTER & LINK AREA
======================================================*/
.footer-links {
  margin-top: 10px;
}
.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9em;
  margin: 0 6px;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/*======================================================
  10. RESPONSIVE（スマホ対応）
======================================================*/
@media (max-width: 768px) {
  header nav {
    display: none;
  }

  .hero {
    min-height: 45vh;
    padding: 100px 5% 80px;
  }

  .hero h1 {
    font-size: 1.9em;
  }

  .feature,
  .metric,
  .step,
  .pricing-item {
    width: 100%;
    max-width: 95%;
  }

  .pricing .lead,
  .pricing-footer,
  .features .feature,
  .arch-text,
  .faq,
  .sim-form {
    text-align: left;
    margin: 0 auto;
    padding: 0 5%;
  }

  .arch-diagram .layer {
    width: 100%;
    max-width: 95%;
  }

  .sim-result {
    font-size: 1.1em;
    padding: 12px 24px;
  }

  footer {
    font-size: 0.85em;
  }
}

/*======================================================
  導入効果（Metrics Section）
======================================================*/
.metrics {
  background: var(--light-bg);
  text-align: center;
  padding: 100px 8%;
}

.metrics h2 {
  color: var(--main-blue);
  font-size: 1.8em;
  margin-bottom: 40px;
  position: relative;
}

.metrics h2::after {
  content: "";
  width: 60px;
  height: 3px;
  background: var(--main-blue);
  display: block;
  margin: 0.5em auto 0;
  border-radius: 2px;
}

.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;
}

.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;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .metrics {
    padding: 80px 6%;
  }

  .metrics-grid {
    flex-direction: column;
    align-items: center;
  }

  .metric {
    width: 90%;
    max-width: 300px;
  }
}

/* ======================================================
   AIデモ体験用ブロック：横方向センター配置
====================================================== */
.demo-call {
  background: var(--light-bg);
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;        /* 文字・内容を中央寄せ */
  margin: 60px auto;         /* ← これがポイント：左右autoでブロック自体を中央に */
  max-width: 700px;          /* 横幅を限定して中央バランス取り */
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: block;            /* ブロック要素として中央化 */
}

.demo-call h3 {
  color: var(--main-blue);
  font-size: 1.6em;
  margin-bottom: 10px;
}

.demo-call p {
  margin: 0.4em 0;
  line-height: 1.8;
}

.demo-call .demo-number {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--main-blue);
  margin: 15px 0;
}

.demo-call .demo-note {
  font-size: 0.9em;
  color: #666;
}

/*======================================================
  11. WORDPRESS 固定ページタイトル（自動出力抑制）
======================================================*/
/* サイト説明（キャッチフレーズ）を非表示 */
.description,
.site-description {
  display: none !important;
  visibility: hidden;
  height: 0;
  margin: 0;
  padding: 0;
}



.page-content.privacy-policy {
  max-width: 960px;
  margin: 0 auto;
  padding: 0px 20px;
  line-height: 1.8;
  font-size: 16px;
  text-align: left; /* 全体を左寄せ */
}

.privacy-policy h1,
.privacy-policy h2,
.privacy-policy h3,
.privacy-policy h4,
.privacy-policy p,
.privacy-policy li {
  text-align: left !important; /* ← 強制的に左寄せ */
}

.privacy-policy h1 {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #0077A9;
  font-weight: bold;
}

.privacy-policy h2 {
  font-size: 1.2em;
  margin-top: 30px;
  color: #0077A9;
  border: none;        /* 縦線なし */
  padding-left: 0;     /* 不要な余白除去 */
  font-weight: bold;
}

.privacy-policy ul {
  padding-left: 20px;
  margin-top: 8px;
}

.privacy-policy p {
  margin-bottom: 1.2em;
}

.contact-box {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  margin-top: 10px;
  font-size: 0.95em;
  line-height: 1.6;
  text-align: left; /* 念のため明示 */
}

/* =========================================
   利用規約ページ用（個人情報保護方針と同じレイアウト）
   ========================================= */
.page-content.terms-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.8;
  font-size: 16px;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
  background-color: #fff;
  text-align: left;
}

/* タイトル部分 */
.terms-page h1 {
  font-size: 1.8em;
  margin-bottom: 40px;
  color: #0077A9;
  font-weight: bold;
  text-align: center; /* タイトルは中央 */
}

/* サブタイトル（発行年月） */
.terms-page h2 {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #333;
  text-align: center; /* 中央揃え */
}

/* 本文プレーンテキスト部（改行保持） */
.terms-page pre {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 15px;
  line-height: 1.8;
  text-align: left;
}

/* h3 や中見出し用 */
.terms-page h3 {
  font-size: 1.2em;
  color: #0077A9;
  font-weight: bold;
  margin-top: 40px;
  text-align: left;
}

/* 固定ページタイトル非表示 */
.page.terms .page-title,
.page-id-XX .page-title {
  display: none;
}

/* =========================================
   特定商取引法ページ（law-page）
   ========================================= */
.page-content.law-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 60px 20px;
  line-height: 1.8;
  font-size: 16px;
  text-align: left;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  color: #333;
}

.law-page h1 {
  font-size: 1.8em;
  text-align: center;
  color: #0077A9;
  margin-bottom: 40px;
}

.law-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.law-table th {
  width: 220px;
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.law-table td {
  border: 1px solid #ccc;
  padding: 10px;
  background: #fff;
  text-align: left;
}

.law-table a {
  color: #0077A9;
  text-decoration: none;
}

.law-table a:hover {
  text-decoration: underline;
}


.competitor-table {
  padding: 60px 20px;
  background: #f9fafb;
}
.competitor-table h2 {
  text-align: center;
  color: #0077A9;
  margin-bottom: 10px;
}
.competitor-table .lead {
  text-align: center;
  color: #555;
  margin-bottom: 30px;
}
.competitor-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}
.competitor-table th,
.competitor-table td {
  border: 1px solid #ddd;
  padding: 10px 8px;
  text-align: center;
}
.competitor-table th {
  background: #0077A9;
  color: #fff;
  font-weight: bold;
}
.competitor-table tr:nth-child(even) td {
  background: #f4f8fb;
}
.competitor-table strong {
  color: #0077A9;
}

