/* 共通のヘッダーセクション */
.page-hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  background: none;
}

.page-hero__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
}

.page-hero__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 共通のサブページタイトルセクション */
.subpage-title {
  padding: 60px 0;
}

.subpage-title .inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 4rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
  font-style: italic;
}

.subheading {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 40px;
}

.description {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: center;
}

/* PHILOSOPHYセクション */
.philosophy .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.ceo-voice {
  padding: 60px 0; /* 上下の余白 */
  background-color: #fff;
}

.ceo-voice .inner {
  max-width: 1300px; /* 最大幅 */
  margin: 0 auto; /* センターに配置 */
  display: flex; /* Flexboxで横並び */
  justify-content: space-between; /* 左右にスペース */
  align-items: center; /* 上下中央揃え */
}

.ceo-voice__image {
  width: 45%; /* 画像の幅を指定 */
}

.ceo-voice__image img {
  width: 100%; /* 画像をコンテナに収める */
  height: auto; /* アスペクト比を維持 */
  display: block;
}

.ceo-voice__content {
  width: 50%; /* テキストエリアの幅を指定 */
  text-align: left; /* テキストを左揃え */
  margin-left: 20px; /* 必要に応じて左の余白を追加 */
}

.ceo-voice__content .section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  text-align: left; /* タイトルも左揃え */
}

.ceo-voice__content .subheading {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 20px;
  text-align: left; /* サブタイトルも左揃え */
}

.ceo-voice__content .description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #666;
  text-align: left; /* 説明文も左揃え */
}

/* サービスセクションのスタイル */
.service-list {
  padding: 60px 0;
}

.service-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

/* 奇数番号用のスタイル（画像が左） */
.service-item.odd {
  flex-direction: row;
}

.service-item.odd .service-image {
  flex: 1;
}

.service-item.odd .service-text {
  flex: 1;
  padding-left: 40px;
}

.service-item.even {
  flex-direction: row-reverse; /* 画像が右側に配置される */
}

.service-item.even .service-image {
  flex: 1;
}

.service-item.even .service-text {
  flex: 1;
  padding-right: 40px;
}

.service-image img {
  width: 100%;
  height: auto;
}

.service-text {
  flex: 1;
}

.service-number {
  font-size: 3rem;
  color: #1c3f95; /* 番号の色 */
  display: block;
  margin-bottom: 10px;
}

.service-text h3 {
  font-size: 2rem;
  font-weight: bold;
}

.service-text p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.6;
}

.service-item.odd {
  background-color: #ffffff;
}

.service-item.even {
  background-color: #f4f9ff; /* 背景色を薄いブルーに */
}

.inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ナビゲーション全体のスタイル */
.navigation {
  display: flex;
  justify-content: center; /* 中央揃え */
  gap: 50px; /* 前後のリンク間のスペース */
  margin-top: 40px;
  padding: 20px 0;
}

.nav-previous,
.nav-next {
  font-size: 1.2rem;
  color: #333; /* テキストの色 */
  text-decoration: none;
}

.nav-previous a,
.nav-next a {
  text-decoration: none; /* アンダーラインを消す */
  color: #333;
}

.nav-previous a:hover,
.nav-next a:hover {
  text-decoration: underline; /* ホバー時にアンダーライン */
}

.nav-previous a:before,
.nav-next a:after {
  content: ''; /* 矢印はすでにテキストに含まれているため、追加しない */
}

/* リンクの中央揃え */
.nav-previous,
.nav-next {
  text-align: center;
}

/* h2見出しのスタイル */
.single .content h2 {
  font-size: 2.4rem;
  font-weight: bold;
  border-bottom: 2px solid #e6e6e6; /* 下線を追加 */
  padding-bottom: 10px;
  margin-bottom: 30px;
}

/* h3見出しのスタイル */
.single .content h3 {
  font-size: 1.8rem;
  font-weight: bold;
  border-bottom: 1px solid #e6e6e6; /* 下線を追加 */
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ニュースラベルと日付 */
.single .news-date {
  font-size: 1rem;
  color: #666;
}

.single .news-label {
  background-color: #f2f2f2;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #333;
  margin-left: 10px;
}

/* 本文のスタイル */
.single .content p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

/* 段落間の余白 */
.single .content {
  max-width: 100%; /* 最大幅を画面幅いっぱいに設定 */
  word-wrap: break-word; /* 長い単語を強制的に折り返す */
  overflow-wrap: break-word; /* 同様に長い単語を折り返す */
}

/* h2とh3の間の余白調整 */
.single .content h2,
.single .content h3 {
  font-size: 1.2rem;
  max-width: 100%; /* 見出しも画面幅に収まるようにする */
  word-wrap: break-word; /* 長い単語を折り返す */
  overflow-wrap: break-word;
}

/* ボーダーで区切る */
.single .content hr {
  border: 0;
  border-top: 1px solid #e6e6e6;
  margin: 30px 0;
}

/* テキスト全体に余白を追加して左右に隙間を作る */
.single .inner {
  padding: 0 15px; /* 左右に15pxの余白を追加 */
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px; /* 日付とカテゴリの間の余白 */
}

.news-date {
  font-size: 1rem;
  color: #333;
}

.news-label {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #333;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
}

/* 見出しのスタイル */
.page-content h1,
.page-content h2,
.page-content h3 {
  font-family: 'futura-pt', sans-serif; /* フォントを指定 */
  font-weight: 700; /* 太字 */
  margin-bottom: 20px; /* 下に余白 */
  border-bottom: 2px solid #ddd; /* 下線を追加 */
  padding-bottom: 10px; /* 下線までの距離 */
}

/* リストのスタイル */
.page-content ul {
  list-style: disc inside; /* ディスクスタイルのリスト */
  margin-left: 20px; /* 左の余白 */
}

.page-content ul li {
  margin-bottom: 10px; /* 各リストアイテムに下余白 */
  font-size: 1.2rem; /* リストアイテムのフォントサイズ */
}

.contact-form .inner {
  max-width: 800px;
}

.cf7__list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.cf7__list dt:nth-of-type(n + 2),
.cf7__list dd:nth-of-type(n + 2) {
  margin-top: 30px;
}

.cf7__list dt {
  width: 35%;
  padding-top: 15px;
}

.cf7__list dd {
  width: 65%;
}

/* 必須・任意 */
.cf7__required,
.cf7__optional {
  margin-right: 15px;
  padding: 6px 14px;
  color: #fff;
  font-size: 12px;
  vertical-align: 1px;
}

.cf7__required {
  background: #be1d1d;
}

.cf7__optional {
  background: #878d8e;
}

/* input・textarea */
.cf7__list dd input[type='text'],
.cf7__list dd input[type='tel'],
.cf7__list dd input[type='email'],
.cf7__list dd textarea {
  width: 100%;
  padding: 15px 20px;
  background: #f4f4f4;
  border: none;
}

/* ドロップダウンメニュー */
.cf7__select {
  position: relative;
}

.cf7__select:before {
  position: absolute;
  top: 50%;
  right: 20px;
  z-index: 10;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  /* border-top: 8px solid #000;
  border-right: 6px solid transparent;
  border-left: 6px solid transparent; */
  pointer-events: none;
  content: '';
}

.cf7__select select {
  width: 100%;
  padding: 19px 20px;
  background: #f4f4f4;
  color: #a5a5a5;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* チェックボックス・ラジオボタン */
.cf7__list dd .wpcf7-checkbox,
.cf7__list dd .wpcf7-radio {
  display: block;
  padding: 15px 0 10px;
}

/* 縦並び（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item {
  display: block;
  margin: 0;
}

.cf7__list dd .wpcf7-list-item:nth-child(n + 2) {
  margin-top: 18px;
}

/* マウスカーソル（チェックボックス・ラジオボタン） */
.cf7__list dd .wpcf7-list-item label {
  cursor: pointer;
}

/* チェックボックス・ラジオボタン */
input[type='checkbox'],
input[type='radio'] {
  position: relative;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border: 1px solid #bcbcbc;
  vertical-align: -3px;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* チェックボックス */
input[type='checkbox']:checked {
  border: 1px solid #000;
  background: #000;
}

input[type='checkbox']:checked:before {
  position: absolute;
  top: 2px;
  left: 5px;
  transform: rotate(50deg);
  width: 6px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  content: '';
}

/* ラジオボタン */
input[type='radio'] {
  border-radius: 50%;
}

input[type='radio']:checked:before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #007aff;
  content: '';
}

/* プレースホルダー */
/* Google Chrome / Safari / Mozilla Firefox / Opera */
.cf7__list dd input[type='text']::placeholder,
.cf7__list dd input[type='tel']::placeholder,
.cf7__list dd input[type='email']::placeholder,
.cf7__list dd textarea::placeholder {
  color: #a5a5a5;
}

/* Microsoft Edge */
.cf7__list dd input[type='text']::-ms-input-placeholder,
.cf7__list dd input[type='tel']::-ms-input-placeholder,
.cf7__list dd input[type='email']::-ms-input-placeholder,
.cf7__list dd textarea::-ms-input-placeholder {
  color: #a5a5a5;
}

/* Internet Explorer */
.cf7__list dd input[type='text']:-ms-input-placeholder,
.cf7__list dd input[type='tel']:-ms-input-placeholder,
.cf7__list dd input[type='email']:-ms-input-placeholder,
.cf7__list dd textarea:-ms-input-placeholder {
  color: #a5a5a5;
}

/* 送信ボタン */
.cf7__button {
  padding-left: 72px;
  text-align: center;
  margin-bottom: 50px;
}

input[type='submit'] {
  width: 260px;
  height: 60px;
  background: #007aff;
  color: #fff;
  transition: opacity 0.6s;
  border: none;
}

input[type='submit']:hover {
  opacity: 0.6;
}

/* ajax-loader */
.wpcf7-spinner {
  vertical-align: middle;
}

@media screen and (max-width: 767px) {
  .cf7__list dt {
    width: 100%;
    margin-bottom: 15px;
    padding-top: 0;
  }

  .cf7__list dd {
    width: 100%;
  }

  .cf7__list dd:nth-of-type(n + 2) {
    margin-top: 0;
  }

  .cf7__list dd .wpcf7-checkbox,
  .cf7__list dd .wpcf7-radio {
    padding: 15px 0 0;
  }

  /* 送信ボタン */
  input[type='submit'] {
    width: 180px;
    height: 56px;
  }
  .page-hero {
    height: 10vh;
  }
}

.news-label {
  background-color: #f2f2f2;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.9rem;
  color: #333;
  margin-left: 10px;
  width: 50px;
}
