/* =========================
   common.css
========================= */

/* カラー設定 */
:root {
  --brand-color: #00AEEF; /* 水色 */
}

/* =========================
   ベーススタイル
========================= */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  color: #333;
}

header {
  background: linear-gradient(90deg, var(--brand-color), #0078A0);
  color: #fff;
  text-align: center;
  padding: 50px 20px;
}

header h1 {
  font-size: 2.5em;
  margin: 0;
}

header p {
  font-size: 1.2em;
  margin-top: 10px;
}

section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2em;
  color: #00AEEF;
}

#chatbot-section .basic-functions-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2列 */
  gap: 10px;                           /* 必要に応じて調整 */
  justify-items: center;               /* 各カードを中央揃え */
}

/* 構成要素セクションのトップ画像 */
.section-image {
  max-width: 500px;        /* 画像の最大幅を500pxに設定 */
  width: 100%;             /* コンテナの幅に応じて縮小 */
  height: auto;            /* 高さを自動調整 */
  margin: 20px auto;       /* 上下に20pxのマージン、左右は自動で中央寄せ */
  display: block;          /* ブロック要素として表示 */
}

.text-center {
  text-align: center;
}

.marker {
  background-color: #e0f7ff; /* 薄い水色 */
  padding: 0 4px;
}

/* =========================
   グリッド・レイアウト関連
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-content: center;
}

.voc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-content: center;
}

.voc-grid .card .card-header {
  margin: 0;
  padding: 0;
}

.voc-grid .card .card-header h3 {
  margin: 0;
  padding: 20px 0;  /* 上下は20px、左右は0 */
  border-radius: 0; /* ここでは内部の余白が不要な場合 */
}

/* 透明なブロック（セクション専用）の設定 */
.functions-block {
  /* background-color: pink; */ /* テスト視認用 */
  width: 60%;  /* 必要に応じて変更 */
  margin: 0 auto; /* 中央寄せ */
}


/* -------------------------
   Flexレイアウト
------------------------- */
.grid-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* =========================
   カード関連 (ベース)
========================= */

/* -------------------------
   汎用.card デザイン（hoverアニメーション・影など）
------------------------- */
/* --- カード全体 ---
   汎用カードの背景、ボーダー、シャドウ、パディング設定
*/
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px; /* デフォルトの内側余白 */
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 必要に応じて設定 */
    border-bottom: 1px solid #ddd; /* 画像とテキストを視覚的に分けたい場合 */
}


/* VOC専用のカードに対して、角丸と overflow: hidden を強制的に適用 */
.voc-card {
  border-radius: 5px !important;
  overflow: hidden !important;
  padding: 0;   /* 内部余白をゼロにする場合 */
  margin: 0;    /* 外部余白をゼロにする場合 */
}


/* --- チャットボット用カードタイトル背景 ---
   カード内のタイトル（h3）の背景色、テキスト色、パディング設定
*/
.card h3 {
  background-color: #00AEEF;
  color: white;
  padding: 10px;
  border-radius: 5px; /*!important;*/ /* 重要度を高める */
  margin-top: 0;
  overflow: hidden; /* 内部コンテンツを切り取る */
}

/* -------------------------
   VOCページ独自: .card-header
------------------------- */
/* --- VOCカードヘッダー ---
   VOCページ専用カードヘッダーのスタイル設定
*/
.card-header {
  background-color: #00AEEF;
  color: white;
  padding: 20px;
  text-align: center;
}
.card-header h3 {
  margin: 0;
}

.components .card-header {
  margin: 0;                /* 上下左右のマージンをゼロに */
  padding: 20px 0;          /* 上下は20px、左右は0に設定 */
  background-color: #00AEEF;
  color: white;
  text-align: center;
}


/* -------------------------
   VOCページ用カードサイズ指定 (高さ・幅)
------------------------- */
/* --- VOCカード全体 ---
   VOCページ専用カードのサイズとレイアウト設定
*/
.card-voc {
  padding: 0;
  overflow: hidden;
  height: 320px;
  width: 300px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

/* --- (オプション) 下半分に画像を配置する例 ---
   VOCカード内の画像表示設定
*/
.card-img {
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* 画像がはみ出ても隠す */
}
.card-img img {
  width: auto;
  height: 100%;
  object-fit: cover; 
}

/* --- .card-body ---
   モーダル表示用などで非表示にする例
*/
.card-body {
  display: none;
}

/* =========================
   フッター
========================= */
footer {
  background: #00AEEF;
  color: #fff;
  text-align: center; 
  padding: 20px; 
}

/* =========================
   処理機能一覧 (処理リスト)
========================= */

/* -------------------------
   処理機能一覧ボックス
------------------------- */
/* --- 処理機能ボックス ---
   処理機能一覧のボックスデザイン設定
*/
/*
.processing-functions {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  max-width: 500px;
  margin: 20px auto;
  text-align: left;
  background: #f9f9f9;
}
*/

/* --- 処理機能リスト ---
   処理機能のリストスタイル設定
*/
/*
.processing-functions ul {
  column-count: 2;
  column-gap: 20px;
  list-style: none;
  padding: 0;
}

.processing-functions li {
  break-inside: avoid;
  margin: 10px 0;
  display: flex;
  align-items: center;
}

.processing-functions li span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #00AEEF;
  border-radius: 50%;
  margin-right: 10px;
}
*/

/* -------------------------
   箇条書き・カスタムリスト
------------------------- */

/* すべてのリストを水色●にする場合の例 */
ul {
  list-style: none;        /* デフォルトのマーカーを無効化 */
  margin-left: 1.5em;      /* 箇条書きのインデントを確保（お好みで） */
  padding: 0;
}

ul li::marker {
  content: "\25CF  ";  /* U+25CF の黒丸 */
  color: var(--brand-color);
  font-size: 1.8em;        /* 好みで拡大・縮小可 */
}

.custom-list {
  list-style: none;
  padding: 0;
}

.custom-list li {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.custom-list li span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #00AEEF;
  border-radius: 50%;
  margin-right: 10px;
}

/* ナビゲーションバーでは無効 */
.navbar-menu li::marker {
  content: none !important;
  display: none !important;
}

/* =========================
   モーダル関連 (統一スタイル)
========================= */

/* -------------------------
   モーダル全体
------------------------- */
/* --- モーダル全体 ---
   モーダルの基本スタイル設定
*/
.modal {
  display: none; 
  position: fixed; 
  z-index: 1000; 
  left: 0; 
  top: 0;
  width: 100%; 
  height: 100%;
  overflow: auto; 
  background-color: rgba(0, 0, 0, 0.5);
}

/* --- モーダルコンテンツ ---
   モーダル内コンテンツのスタイル設定
*/
.modal-content {
  background-color: #fff;
  margin: 5% auto; 
  padding: 20px;
  border-radius: 10px;
  max-width: 800px;
  text-align: center;
  position: relative; /* 閉じるボタン(.close, .close-btn)用 */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-content img {
  max-width: 200px; /* モーダルの幅に対する最大幅 */
  height: auto;   /* 縦横比を維持 */
  display: block;
  margin: 0 auto; /* 画像を中央揃え */
}

.modal-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.modal-flex img {
  max-width: 40%;
  height: auto;
  border-radius: 5px;
}

.modal-text {
  flex: 1;
  min-width: 200px;
}

/* --- ×ボタン (closeボタン) ---
   モーダル内の閉じるボタンのスタイル設定
*/
.close, .close-btn {
  color: #aaa;
  font-size: 1.5em;
  font-weight: bold;
  cursor: pointer;
  position: absolute; 
  top: 10px; 
  right: 15px;
  /* もし float: right; が良ければ、下記を使う:
     float: right;
     position: static;
     margin-top: -10px;
  */
}

.close:hover,
.close:focus,
.close-btn:hover,
.close-btn:focus {
  color: black;
  text-decoration: none;
}

/* =========================
   モーダル内リスト・見出しの装飾
========================= */

/* モーダル内 <h3> の装飾 */
.modal-content h3 {
  background: #00AEEF;
  color: #fff;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-size: 1.2em;
  display: inline-block;
  margin-bottom: 0.5em;
}

/* 箇条書き: モーダル内の <ul> 全てを水色の ● で表示する */
.modal-content ul {
  /* まずはデフォルトのマーカーを無効化しつつ、インデント確保 */
  list-style: none;       
  margin-left: 1.5em;     /* 適度なインデント(好みに応じて調整) */
  margin-bottom: 1em;
  padding-left: 0;        
}

/* 各 <li> の行頭記号を “水色の ●” にする */
.modal-content ul li::marker {
  content: "● ";
  color: #00AEEF;       /* 水色 */
  font-size: 1.4em;     /* 必要に応じて大きさ調整 */
  /* line-height: などは必要に応じて追加 */
}


/* =========================
   円形カード
========================= */

/* -------------------------
   円形カード全体
------------------------- */
/* --- 円形カード全体 ---
   円形カードの基本スタイル設定
*/
.circle-card {
  width: 250px;              /* 円の直径 */
  height: 250px;             
  border-radius: 50%;        /* 正円に */
  border: 5px solid #00AEEF; /* 枠線: 3px + 好みの水色 (#00AEEF等) */
  
  background: #fff;          /* 円の中身は白 */
  box-shadow: none;          /* 必要なら影を消す/追加する可 */
  
  display: flex;             /* 中央寄せにするためのflex */
  flex-direction: column;
  justify-content: center;   /* 縦方向の中央寄せ */
  align-items: center;       /* 横方向の中央寄せ */
  text-align: center;        /* 文字を中央揃え */

  margin: 0 auto;            /* 配置場所に応じて微調整 */
  padding: 10px;             /* 円内の余白 */
  transition: none;          /* ホバーアニメ等を無効化（不要なら削除） 
                                既存`.card:hover`を上書きする場合は
                                .circle-card:hover { transform: none; ... }
                             */
}

.circle-card:hover {
  /* もしホバー時にアニメーションを完全オフにしたいなら、ここで明示する */
  transform: none;
  box-shadow: none;
}

/* --- 円形カードタイトル ---
   円形カード内のタイトル（h3）のスタイル設定
*/
.circle-card h3 {
  margin: 0;
  font-size: 1.1em; /* 好みで */
  color: #333;      /* 文字色 */
}

/* --- 円形カードテキスト ---
   円形カード内のテキスト（p）のスタイル設定
*/
.circle-card p {
  margin: 5px 0 0 0;
  font-size: 0.9em;
  color: #333;
}

/* =========================
   カード
========================= */

/* -------------------------
   card + half-image layout
------------------------- */
/* --- half-image-card ---
   card + half-image layout のスタイル設定
*/
.half-image-card {
  height: 400px;           /* お好みの固定高さ (例: 320px) */
  display: flex;
  flex-direction: column;  /* 縦に並べる */
  padding: 0;              /* 既存の .card { padding: 20px; } を上書きしてもOK */
  overflow: hidden;        /* はみ出しを隠す */
}

.half-image-card .card-img {
  flex: 1;                 /* 上半分 */
  position: relative;
}

.half-image-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* 枠に収め、溢れた部分は見切れる */
  display: block;
}

.half-image-card .card-content {
  flex: 1;                 /* 下半分 */
  padding: 20px;           /* テキスト部に内側余白 */
  overflow-y: auto;        /* 長い場合スクロール（不要なら削除） */
}

/* テキストの見出しh3スタイル: 既存の .card h3 などがあれば活かす */
.half-image-card h3 {
  background: #00AEEF;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  margin: 0 0 10px 0; /* 上を0, 下に余白 */
  font-size: 1.1em;
}

/* hoverアニメーションを残す/消すいずれも可 */
.half-image-card:hover {
  /* 既存の .card:hover の影響があるなら上書き可 */
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* =========================
   構成要素セクション専用スタイル
========================= */

/* -------------------------
   ホバー効果を無効化
------------------------- */
/* --- ホバー効果無効化 ---
   構成要素セクション内のカードに対するホバー効果を無効化
*/
.components .card {
  /* ホバー効果を無効化 */
  transition: none;
}

.components .card:hover {
  transform: none;
  box-shadow: none;
}

/* -------------------------
   見出しの背景を横いっぱいに広げ、マージンを調整
------------------------- */
/* --- 見出しの背景とマージン ---
   見出しの背景色を横いっぱいに広げ、マージンを調整
*/
.components .half-image-card .card-content h3 {
  background-color: #00AEEF;
  color: white;
  padding: 10px;
  border-radius: 0 0 5px 5px; /* 下部分のみ丸める */
  margin: 0; /* 上下のマージンをゼロ */
  width: 100%; /* 横いっぱいに広げる */
  text-align: center;
}

/* -------------------------
   画像と見出しの間のマージンをゼロ
------------------------- */
/* --- 画像と見出しのマージン ---
   画像と見出しの間のマージンをゼロに設定
*/
.components .half-image-card .card-img {
  margin-bottom: 0;
}

/* -------------------------
   テキストのマージンを維持
------------------------- */
/* --- テキストマージン ---
   テキスト部分のマージンを維持
*/
.components .half-image-card .card-content p {
  margin-top: 10px; /* 必要に応じて調整 */
}

/* =========================
   構成要素セクション専用スタイル
========================= */

/* -------------------------
   構成要素セクション内のhalf-image-card
------------------------- */
/* --- 構成要素セクション内half-image-card ---
   構成要素セクション専用のhalf-image-cardのスタイル設定
*/
.components .half-image-card {
    height: 400px; /* 必要に応じて調整 */
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.components .half-image-card .card-img {
    flex: 1;
    position: relative;
    margin-bottom: 0; /* 画像と見出しの間の隙間をゼロに */
}

.components .half-image-card .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をカードの上半分いっぱいに表示 */
    display: block;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.components .half-image-card .card-content {
    flex: 1;
    padding: 0; /* 見出し部分の横余白をゼロに */
    overflow-y: auto;
}

.components .half-image-card .card-content h3 {
    background-color: #00AEEF;
    color: white;
    padding: 10px;
    border-radius: 0 0 0 0; /* 角丸解除 */
    margin: 0; /* 上下のマージンをゼロに */
    width: 100%; /* 横いっぱいに広げる */
    text-align: center;
    box-sizing: border-box; /* パディングを含めて幅を計算 */
}

.components .half-image-card .card-content p {
    margin-top: 10px; /* テキストとの適度な余白を維持 */
}

.components .half-image-card:hover {
    transform: none; /* ホバー時のアニメーションを無効化 */
    box-shadow: none;
}

/* =========================
   レスポンシブ調整（必要に応じて）
========================= */
@media (max-width: 768px) {
  .half-image-card {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .section-image {
    width: 80%;
  }

  .half-image-card {
    height: 240px;
  }

  .half-image-card .card-img img {
    height: 50%;
  }

  .half-image-card p {
    font-size: 0.8em;
  }
}

/* =========================
   ナビゲーションバーのスタイル
========================= */

/* ナビゲーションバー全体 */
/* ナビゲーションバー全体 */
.navbar {
  background-color: #00AEEF; /* 水色背景 */
  padding: 10px 20px;
}

/* ナビゲーションコンテナ */
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* 最大幅を設定 */
  margin: 0 auto; /* 中央揃え */
}

/* ブランド名 */
.navbar-brand {
  display: flex;
  align-items: center; /* 上下中央揃え */
  text-decoration: none;
}

/* ロゴ画像のスタイル */
.navbar-logo {
  height: 40px; /* ロゴ画像の縦幅を40pxに設定 */
  /* 不要なvertical-alignを削除 */
}

/* AI Platformテキストのスタイル */
.ai-platform-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 100; /* Thinフォント */
  color: #ffffff; /* テキスト色を白に設定 */
  font-size: 1.6em;
  margin-left: 10px; /* ロゴとテキストの間にスペースを追加 */
  line-height: 1; /* テキストの行間を調整 */
}

/* ナビゲーションリンク */
.navbar-menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  z-index: 9999; /* 高い値を指定 */
  position: relative; /* 親要素として位置指定を有効にする */
}

.navbar-item {
  margin-left: 20px;
}

.navbar-link {
  color: #ffffff; /* 白色テキスト */
  text-decoration: none;
  font-size: 1em;
  transition: color 0.3s;
}

.navbar-link:hover,
.navbar-link:focus {
  color: #ffffffcc; /* ホバー時に若干透明度を下げて強調 */
}

/* アクティブリンクのスタイル */
.navbar-link.active {
  text-decoration: underline; /* 下線を追加 */
  font-weight: bold;          /* 太字を維持 */
}

/* ハンバーガーメニューボタン */
.navbar-toggler {
  display: none; /* デフォルトでは非表示 */
  font-size: 1.5em;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  /* ハンバーガーメニューを表示 */
  .navbar-toggler {
    display: block;
  }


  /* ナビゲーションメニューを非表示 */
  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #00AEEF; /* 同じ水色背景 */
    position: absolute;
    top: 60px; /* ナビゲーションバーの高さに合わせて調整 */
    left: 0;
  }

  /* ナビゲーションメニューがアクティブなときに表示 */
  .navbar-menu.active {
    display: flex;
  }

  .navbar-item {
    margin: 10px 0;
    text-align: center;
  }
}

.voc-grid .card {
  padding: 0 !important;
  border-radius: 10px !important;
}

/* 導入事例セクション内の <b> タグに薄い水色の背景と横パディングを適用 */
#case-study b {
  background-color: #e0f7ff; /* 薄い水色 */
  padding: 0 4px;
}

.basic-functions-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;           /* gap を 10px に調整 */
  justify-content: center; /* グリッド自体を中央に揃える */
  justify-items: center;   /* 各カードを中央に配置 */
}

/* =========================
   フッターのスタイル
========================= */

/* フッター内部コンテナ */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* 左パート：社名ロゴ */
.footer-left {
  flex: 1;
  text-align: left;
  min-width: 150px;
  padding: 0 20px;
}

/* 中央パート：会社情報 */
.footer-center {
  flex: 1;
  text-align: center;
  min-width: 400px;
  padding: 0 20px;
}

.footer-center a {
  color: #fff;
  text-decoration: none;
}

/* 右パート：各種リンク */
.footer-right {
  flex: 1;
  text-align: right;
  min-width: 200px;
  padding: 0 20px;
}

.footer-right a {
  color: #fff;
  text-decoration: none;
  display: block;
}

.footer-right a:hover,
.footer-right a:focus {
  text-decoration: underline;
}

.footer-right span {
  display: block;
  font-size: 0.9em;
  margin-top: 10px;
}


/* 背景画像つきカード(ホバーなし)  */

.card-pic {
  position: relative;
  display: block;
  width: 100%;
  height: 300px; /* 必要に応じて調整 */
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}


.card-pic .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 15px;
  text-align: left;
}

.card-pic .overlay h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
}

.card-pic .overlay p {
  margin: 5px 0 0;
  font-size: 1em;
}

/* 塗りつぶし円形テキストボックス */


.circle-fill {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 200px; /* 円の直径 */
  height: 200px;
  background-color: #00AEEF; /* 水色 */
  color: #fff; /* 白色 */
  border-radius: 50%; /* 完全な円形 */
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
  margin: 10px; /* 間隔 */
  vertical-align: middle;
}

/* チェックマーク付きリストアイテム */
.checked-list {
  list-style: none; /* デフォルトの箇条書きを無効化 */
  padding: 0;
  /* text-align: center; */ /* 全体の中央揃え */
}

.checked-list li {
  display: flex; /* フレックスボックスで要素を整列 */
  align-items: center; /* チェックマークとテキストを垂直方向に中央揃え */
  /* justify-content: center; */ /* テキストを中央揃え */
  position: relative; /* 擬似要素の位置を設定する基準 */
  margin-bottom: 10px; /* 項目間の余白 */
}

.checked-list li::before {
  content: '✔︎'; /* チェックマーク */
  margin-right: 10px; /* テキストとの間隔 */
  font-size: 1.2em; /* フォントサイズを調整 */
  color: #00AEEF; /* 水色 */
}

/* =========================
   業務効率化サイクル用 円形カード (背景画像)
========================= */
.circle-bg-card {
  position: relative;  /* 擬似要素配置のために必要 */
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}

/* ★ 擬似要素で暗いレイヤーを重ねる */
.circle-bg-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.2); /* 好みの濃さに */
  border-radius: 50%;
  z-index: 1; /* テキストより背面になるように、テキストをさらに上に */
}

.circle-bg-card h3 {
  position: relative; /* z-index指定のため */
  z-index: 2;         /* 擬似要素の上に表示 */
  margin: 0;
  font-size: 1em;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.circle-bg-card:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
}


/* PC時は4列に並べる例。レスポンシブ化も可能 */
.cycle-grid {
  display: grid;
  gap: 30px; /* もともと20pxだったのを10pxに */
  grid-template-columns: repeat(4, auto); /* 4つのカードを必要幅で配置 */
  justify-content: center; /* 中央寄せ */
  max-width: 1200px;
  margin: 0 auto;
}


/* 小画面で折り返す場合 (例) */
@media (max-width: 768px) {
  .cycle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cycle-grid {
    grid-template-columns: 1fr;
  }
  .circle-bg-card {
    width: 140px;
    height: 140px;
  }
}


.cycle-cards-box {
  background-color: #f9f9f9; /* 薄い灰色背景 */
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 0 auto;           /* ページ中央寄せ */
  width: fit-content;       /* コンテンツ幅だけに広がる (モダンブラウザ対応) */
  box-sizing: border-box;   /* パディングやボーダーを含めてwidthを計算 */
}

.box-panel {
  background-color: #f9f9f9; /* 薄い灰色背景 */
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin: 0 auto;           /* ページ中央寄せ */
  width: fit-content;       /* コンテンツ幅だけに広がる (モダンブラウザ対応) */
  box-sizing: border-box;   /* パディングやボーダーを含めてwidthを計算 */
}

.w60-center {
  width: 60%;
  margin: 0 auto;
}
.w40-center {
  width: 40%;
  margin: 0 auto;
}

/* ボタン用スタイル(お問い合わせ等) */
.cta-button {
  display: inline-block;
  background-color: #00AEEF;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
}


/* コンサルティングボタン */

#consultation-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  z-index: 1000;
  cursor: default;
}

#consultation-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  background-color: var(--brand-color);  /* ブランドカラーを利用 */
  opacity: 0.8;  /* 背景を半透明に */
}


#consultation-close {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 16px;
  line-height: 1;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
}

#consultation-move {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  z-index: 2;
}

