/* background.css */
@media only screen and (min-width: 769px) {
  .p-home-fv__top {
      background: url(../images/main_bg.webp) no-repeat;
      padding: 15px 0;
      background-size: 50% auto;
      background-position: top right;
  }
}

@media only screen and (min-width: 1200px) {
  .p-home-fv__top {
      background-size: 809px 500px;
      background-position: top right;
  }
}

@media only screen and (max-width: 768px) {
  .p-home-fv__top {
      display: flex;
      align-items: center;
      flex-direction: column;
  }
}

/* スマホで見た時に\/がずれるのを修正 */
@media only screen and (max-width:768px) {
  .p-home-fv__btn-txt img {
    width:calc(100% - 100px);
  }
}

/* h2見出しの文字サイズを大きく */
.p-home-section__ttl-area {
  font-size: 2.4rem; /* 見出しの文字サイズを大きく */
  font-weight: bold; /* 太字で目立たせる */
  text-align: center; /* 中央揃え（必要に応じて） */
  margin-bottom: 1.5rem; /* 下部に余白を追加 */
  color: #000; /* 必要に応じて色を設定 */
}

/* 余白を削除 */
#about.l-stack-lg {
  padding-top: 20px;
}

.p-home-section__ttl-area {
  margin-bottom: 0; /* h2の下の余白を削除 */
}
.p-home-section__txt-area {
  margin-top: 0; /* 下部コンテンツの上余白を削除 */
}

/* 背景色 */
.bg-gray {
  background: #F3F3F3;
  padding: 100px 0;
}

/* 背景色 */
.c-bg-green {
  background: #e0f2ec;
  padding-top: 20px;
  padding-bottom: 20px;
}

 /* nayami----------------------------------------------------- */
   
  /* セクション全体のスタイル */
  #nayami {
    position: relative;
    padding-top: 82px;
    padding-bottom: 0; /* 全体の下部余白を削除 */
  }
  
  @media only screen and (max-width: 768px) {
    #nayami {
      padding: 2em 0;
    }
  }
  
  /* タイトルのスタイル */
  .c-heading-left-border {
    font-size: 3rem;
    letter-spacing: 0.05em;
    padding-top: 2.5em;
    margin-top: 1.8rem;
    margin-bottom: 1.8rem;
    text-indent: -0.5em;
    padding-left: 0.5em;
  }
  
  @media only screen and (max-width: 768px) {
    .c-heading-left-border {
      font-size: 1.8rem;
      margin-bottom: 1em;
      padding-top: 1em;
    }
  }
  
  .c-heading-left-border::before {
    content: "";
    background: url(../images/icon-heading-left-border.png) no-repeat;
    width: 3px;
    height: 40px;
    margin-right: 0.5em;
    background-size: 100%;
    display: inline-block;
    vertical-align: -9px;
  }
  
  /* タイトル内の大きな文字 */
  .ttl .-lg {
    font-size: 4rem;
  }
  
  /* グリッドのスタイル */
  .grid {
    display: flex;
    gap: 20px;
  }
  
  @media only screen and (max-width: 768px) {
    .grid {
      flex-direction: column;
    }
  }
  
  /* 各アイテムのスタイル */
  .item {
    background: #fff;
    border-radius: 18px;
    border: 2px solid #2E3239;
    padding: 36px 12px 45px 12px;
    line-height: 1.73em;
    position: relative;
  }
  
  @media only screen and (min-width: 768px) {
    .item {
      width: 25%;
    }
  }
  
  @media only screen and (max-width: 768px) {
    .item {
      width: 100%;
      padding: 20px 50px 40px 20px;
    }
  }
  
  /* アイコン画像の設定 */
  .item::after {
    content: "";
    background-size: 100%;
    display: inline-block;
    vertical-align: middle;
    position: absolute;
    bottom: -21px;
    right: -5px;
  }
  
/* 各アイコン画像のスタイル */
.item::after {
    content: "";
    background-size: contain; /* 画像全体を要素内に収める */
    background-repeat: no-repeat; /* 繰り返し表示を防ぐ */
    background-position: center; /* 画像を中央に配置 */
    display: inline-block;
    position: absolute;
    bottom: -21px;
    right: -5px;
  }
  
  /* アイコン1 */
  .item.-icon01::after {
    background-image: url(../images/icon-nayami01.png);
    width: 81px; /* アイコンの幅 */
    height: 81px; /* アイコンの高さ */
  }
  
  /* アイコン2 */
  .item.-icon02::after {
    background-image: url(../images/icon-nayami02.png);
    width: 80px;
    height: 85px;
  }
  
  /* アイコン3 */
  .item.-icon03::after {
    background-image: url(../images/icon-nayami03.png);
    width: 80px;
    height: 80px;
  }
  
  /* アイコン4 */
  .item.-icon04::after {
    background-image: url(../images/icon-nayami04.png);
    width: 80px;
    height: 81px;
  }
    
  /* テキストのスタイル */
  .txt {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  #nayami .item {
    z-index: auto;
  }
  /* 矢印の画像 */
  .down {
    position: absolute;
    bottom: -38px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  @media only screen and (max-width: 768px) {
    .down img {
      width: 80px;
    }
 /* ----------------------------------------------------- */
  }
  .grid .item {
    background: #fff;
    border-radius: 18px;
    border: 2px solid #2E3239;
    padding: 36px 12px 45px 12px;
    line-height: 1.73em;
    position: relative;
    z-index: 100;  /*追加*/
}
/* ----------------------------------------------------- */
    /* ----------------------------------------------------- */
/* 親要素 */
.container {
    position: relative; /* 子要素を基準に配置 */
    width: 100%; /* 必要に応じて全体幅を指定 */
    height: 200px; /* 必要に応じて全体高さを指定 */
    display: flex; /* フレックスボックスで中央揃え */
    justify-content: center; /* 水平方向中央揃え */
    align-items: center; /* 垂直方向中央揃え */
    background-color: #f3f3f3; /* 背景色（必要なら削除） */
    overflow: hidden; /* 子要素がはみ出ないように */
  }
  
  /* 背景画像 */
  .background-image {
    position: absolute; /* 親要素内で絶対位置 */
    width: 134px; /* 固定幅 */
    height: 73px; /* 固定高さ */
    background-image: url("../images/icon-down.png"); /* 背景画像を指定 */
    background-size: contain; /* 画像を要素内に収める */
    background-repeat: no-repeat; /* 繰り返しを防ぐ */
    background-position: center; /* 背景画像を中央に配置 */
    top: 50%; /* 親要素の高さの50% */
    left: 50%; /* 親要素の幅の50% */
    transform: translate(-50%, -50%); /* 完全な中央揃え */
    z-index: 1; /* 背景レイヤー */
  }
  
  /* テキスト */
  .text-overlay {
    position: relative; /* 背景画像の上に配置 */
    z-index: 2; /* 背景画像より前に表示 */
    font-size: 2.8rem; /* テキストサイズ */
    font-weight: bold; /* 太字 */
    color: #000; /* テキストの色 */
    text-align: center; /* テキストを中央揃え */
    pointer-events: none; /* クリックを透過（必要に応じて） */
    font-family: "Noto Sans JP", sans-serif;
  }
      
  .p-home-section__txt-area {
    max-width: 1000px; /* 最大幅 */
    margin: 0 auto; /* 中央揃え */
    padding: 20px; /* 内側の余白 */
}

.p-home-section__txt {
    line-height: 1.8; /* 行間 */
    font-size: 1.6rem; /* フォントサイズ */
    color: #333; /* テキスト色 */
    text-align: justify; /* 必要に応じて両端揃え */
}

/* about------------------------------------------------------------ */
#about .reason {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding-bottom: 20px;
}

/* PC時の設定 */
#about .reason li {
  width: 23%; /* 4つ均等に配置 */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#about .reason li img {
  width: 100%;
  height: auto;
  max-width: 215px; /* 画像サイズを統一 */
}

/* スマホ用のレスポンシブ設定 */
@media (max-width: 768px) {
  #about .reason {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
  }

  #about .reason li {
    width: 100%; /* 幅いっぱい */
    max-width: 300px; /* 最大幅を設定（適宜調整） */
    margin-bottom: 20px; /* 下に余白を追加 */
  }
}

.content-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
}
.image-container {
  flex-shrink: 0;
}

/* 画像の背景を白にし、黒枠を追加し、上下に余白を追加 */
.special-image {
  background-color: #ffffff;
  border: 1px solid #000;
  border-radius: 10px; /* 角丸10px */
  padding: 10px;
  margin: 10px 0; /* 上下の余白を追加 */
}

.text-container {
  text-align: left;
}
.title {
  font-size: 2rem;
  font-weight: bold;
}
.description {
  font-size: 1.5rem;
  color: #333;
  line-height: 1.6;
}
/* 続きを読む------------------------------------------------------------ */

.readmore {
  position: relative;
}

.readmore input {
  display: none; /* チェックボックスを非表示 */
}

.readmore-content {
  position: relative;
}

.readmore-content .readmore-hidden {
  display: none; /* 初期状態で非表示 */
}

/* チェックが入ったら続きを表示 */
.readmore input:checked + .readmore-content .readmore-hidden {
  display: inline;
}

/* 「続きを読む」ボタンのスタイル */
.readmore-label {
  display: block;
  text-align: center;
  background-color: #ffffff; /* 背景色を白に変更 */
  color: #000; /* 黒文字 */
  padding: 10px 20px;
  border-radius: 10px; /* 角丸 */
  border: 1px solid #000; /* 黒の枠線を追加 */
  cursor: pointer;
  width: fit-content;
  margin: 10px auto; /* 中央配置 */
  font-size: 14px;
}

/* ホバー時のスタイル */
.readmore-label:hover {
  background-color: #bdbdbd; /* すこし濃いグレー */
}

/* 「続きを読む」→「閉じる」の切り替え */
.readmore input:checked + .readmore-content + .readmore-label::after {
  content: " 閉じる";
}
.readmore input:not(:checked) + .readmore-content + .readmore-label::after {
  content: " 続きを読む";
}

/* end　続きを読む------------------------------------------------------------ */

/* end　about------------------------------------------------------------ */

/* 業種別おすすめ------------------------------------------------------------ */

 /* セクション全体のスタイル */
 #osusume {
  padding: 20px;
}
/* カードコンテナのグリッド設定 */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}
/* 各カードのスタイル */
.card-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.card {
  border: 2px solid #d5d5d5;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
.card:hover {
  transform: scale(1.05);
}
@media (max-width: 1024px) {
  .card-container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .card-container {
    grid-template-columns: repeat(1, 1fr);
  }
}
.card header {
  text-align: center;
  margin-bottom: 15px;
}
.card header img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.card header h3 {
  margin: 10px 0;
  font-size: 1.5em;
  color: #000;
}
/* 箇条書きリスト */
.card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.card ul li {
  font-weight: bold;
  color: #f93580ff;
  list-style: none;
  position: relative;
  padding-left: 25px;
}
.card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #f93580ff;
  font-size: 1.4rem;
}

/* 詳細コンテンツ */
.card .card-content {
  margin-top: 15px;
  font-size: 0.95em;
  line-height: 1.6;
  color: #000000;
}

/* end------------------------------------------------------------ */


/* ivrrei------------------------------------------------------------ */
.ivr-image-container {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
}
.ivr-image {
  width: 100%;
  height: auto;
  display: block;
}
.ivr-note {
  margin-top: 10px;
  font-size: 1.5rem;
  color: #666;
  text-align: left;
  line-height: 1.8;
}
.ivr-demo {
  margin-top: 20px;
  padding: 20px;
  border: 2px solid #333;
  border-radius: 10px;
  text-align: center;
  background-color: #f9f9f9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.ivr-demo-title {
  font-size: 2rem;
  font-weight: bold;
}
.ivr-demo-number {
  font-size: 2.4rem;
  font-weight: bold;
  color: #01f2a7;
  letter-spacing: 0.1em;
}
.ivr-tel-link {
  color: #000;
  text-decoration: none;
}
.ivr-tel-link:hover {
  text-decoration: underline;
  color: #01f2a7;
}
.ivr-demo-note {
  font-size: 1.7rem;
  color: #666;
}
/* ivr-demo-note 内のリンク色を上書き */
.ivr-demo-note a {
  color: #006cff;
  text-decoration: none;      /* 下線を消したい場合 */
}

.ivr-demo-note a:hover {
  text-decoration: underline; /* ホバー時に下線を入れたい場合 */
}
.ivr-guide {
  margin-top: 10px;
  padding: 15px;
}
/* ivr-demo の強調テキスト */
.ivr-demo-emphasis {
  color: #f93580;       /* ピンク */
  font-weight: bold;    /* 太字で目立たせる */
  font-size: 1.7rem;    /* お好みで調整 */
}

/* end　ivrrei------------------------------------------------------------ */

/* price------------------------------------------------------------ */
.price-heading {
  font-size: 1.6rem;
  font-weight: bold;
  margin-top: 20px;
  border-left: 5px solid #2BF9B5;
  padding-left: 10px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #d5d5d5;
}
.price-table th, .price-table td {
  padding: 12px;
  border: 1px solid #d5d5d5;
  text-align: left;
}
.price-table th {
  background-color: #f3f3f3;
  font-weight: bold;
  width: 30%;
}
.small-text {
  font-size: 1.5rem;
  color: #000000;
  display: block;
  margin-top: 5px;
}

.option-set {
  margin-top: 20px;
}
.option-set-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: row;
}
.option-set-image {
  width: 50%;
  height: auto;
  max-width: 400px;
}
.option-set-text {
  flex-grow: 1;
  text-align: left;
}
.option-title {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.price-bold {
  font-size: 2.5rem;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
  .option-set-content {
      flex-direction: column;
      text-align: left;
  }
  .option-set-image {
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
  }
}

/* end　price------------------------------------------------------------ */
/* scroll------------------------------------------------------------ */

@keyframes scrollAnimation {
  0% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 1; }
}

.p-home-center {
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scroll-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: scrollAnimation 1.5s infinite ease-in-out;
}

.scroll-down__text {
  font-size: 14px;
  color: #a8a8a8;
  font-family: 'Arial', sans-serif;
  letter-spacing: 1px;
  animation: scrollAnimation 1.5s infinite ease-in-out;
}

.scroll-down__icon {
  width: 30px;
  height: auto;
}

.p-home-ttl__main.page-specific {
  margin-bottom: 10px; /* このページだけ margin-bottom を小さくする */
}
/* end scroll------------------------------------------------------------ */

/* demo-white クラス専用の上書き */
.ivr-demo.demo-white {
  background-color: #ffffff;  /* 白背景 */
  margin-bottom: 20px;        /* 下の余白 */
}
/* ── 0円スタートプラン セクション（ivr-demoとバランスを合わせる） ── */
.p-home-trial {
  margin: 20px auto 20px;      /* 上20px・左右中央寄せ・下20px */
  padding: 20px;                /* ivr-demoと同じ内側余白 */
  max-width: 700px;             /* ivr-demoと同じ幅 */
  background-color: #ffffff;    /* 白背景 */
  border: 2px solid #333;       /* ivr-demoと同じ枠線 */
  border-radius: 10px;          /* ivr-demoと同じ角丸 */
  text-align: center;
}

.p-home-trial__heading {
  font-size: 2rem;              /* ivr-demo-title と同じサイズ */
  font-weight: bold;
  color: #000;                  /* 濃い文字色 */
  margin-bottom: 10px;
}

.p-home-trial__subheading {
  font-size: 2.4rem;            /* ivr-demo-number と同じサイズ */
  font-weight: bold;
  color: #01f2a7;               /* ivr-demo-number と同じリンク色 */
  margin-bottom: 16px;
}

/* デフォルト: 横並び */
.p-home-trial__list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.p-home-trial__list li {
  display: inline-block;
  margin: 0 8px;
  padding: 8px 16px;
  background-color: #f93580;
  color: #fff;
  font-size: 1.7rem;
  font-weight: bold;
}

/* 横幅600px以下で縦並びに切り替え */
@media (max-width: 769px) {
  .p-home-trial__list li {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
}


/* 詳細リンク（aタグ）のスタイル調整 */
.p-home-trial__link a {
  font-size: 1.7rem;              /* 他テキストリンクと合わせる */
  color: #006cff;               /* 通常リンク色 */
  text-decoration: none;
}
.p-home-trial__link a:hover {
  text-decoration: underline;
}

.p-home-trial__note,
.p-home-trial__lead {
  font-size: 1.4rem;              /* 説明文は通常の本文サイズ */
  color: #666;
  line-height: 1.8;             /* ivr-demo の行間に合わせる */
  margin-bottom: 16px;
}

.p-home-trial .wp-block-button .p-basic-btn a {
  display: inline-block;
  padding: 20px 32px;           /* ivr-demo ボタン相当のサイズ感 */
  font-size: 1.7rem;            /* ivr-demo-number に近い読みやすさ */
  background-color: #2BF9B5;    /* リンクホバー色と合わせても◎*/
}

/* p-home-trial の注釈内、ハイライト用 */
.p-home-trial__note .p-home-trial__highlight {
  color: #f93580ff;    /* 目立つピンク */
  font-weight: bold; /* 強調したい場合は太字に */
}

/* .p-home-trial__lead を左寄せに */
.p-home-trial__lead {
  text-align: left;     /* 左寄せ */
  white-space: normal;  /* 自動改行に戻す */
  margin: 0 auto 16px;  /* 中央寄せ幅はそのまま、下余白だけ確保 */
  max-width: 640px;     /* 読みやすい横幅に制限（お好みで調整） */
}
/* アンカーリンクがずれるので. */
section#zero-start {
  position: relative;
  padding-top: 120px;   /* ヘッダ高さに合わせて調整 */
  margin-top: -60px;
}

/* 動画セクション全体 */
.ivr-video {
  margin: 2rem 0;              /* 上下マージン */
  padding: 1rem;               /* 内側余白 */
}

/* iframeをレスポンシブにするラッパー */
.ivr-video-wrapper {
  position: relative;
  width: 100%;
  /* 16:9 のアスペクト比を維持 */
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}

/* YouTube iframe */
.ivr-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* 小画面対応 */
@media (max-width: 600px) {
  .ivr-video {
    padding: 0.5rem;
  }
  .ivr-video-heading {
    font-size: 1.25rem;
  }
}
