/* パンくずリスト全体のスタイル */
.p-breadcrumb {
  font-family: Arial, sans-serif;
  padding: 10px 20px;
  border-radius: 5px;
}

.p-breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  overflow-x: scroll;
}

.p-breadcrumb__item {
  display: flex;
  align-items: center;
}

.p-breadcrumb__item:not(:last-child):after {
  content: '>';
  margin: 0 10px;
  color: #bbb;
}

.p-breadcrumb__txt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
  font-size: 12px;
}

.p-breadcrumb__txt:hover {
  text-decoration: underline;
}

/* SVGアイコンのスタイル */
.p-breadcrumb svg {
  fill: #333;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  /* テキストの前のスペース */
}

/* 現在地（リンクなし）のテキストスタイル */
.p-breadcrumb__item:last-child .p-breadcrumb__txt {
  color: #333;
  cursor: default;
}

/* ブログレイアウト */

.p-index-blog__column {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  list-style: none;
  padding: 0;
}

.p-index-blog__item {
  width: calc(33.333% - 20px);
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.p-index-blog__item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.p-index-blog__link {
  color: #333;
  text-decoration: none;
}

.p-index-blog__img {
  width: 100%;
  overflow: hidden;
  padding: 10px;
}

.p-index-blog__img img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.p-index-blog__item {
  width: calc(33.333% - 20px);
  margin-bottom: 30px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
  border-radius: 8px;
}

.p-index-blog__img img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.p-index-blog__content {
  padding: 15px;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.p-index-blog__title {
  font-size: 20px;
  margin: 0 0 10px;
}

.p-index-blog__meta {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .p-index-blog__item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .p-index-blog__item {
    width: 100%;
  }
}

.p-index-blog {
  padding: 40px 0;
}

@media (max-width: 768px) {
  .p-index-blog {
    padding: 20px 0;
  }
}

/* 記事タイトル */
.p-single-blog__date {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.p-single-blog__date::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  content: '\f073';
  margin-right: 0.4em;
}

/* 記事の画像 */
.p-single-blog__img {
  margin-bottom: 20px;
}

.p-single-blog__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 記事の本文 */
.p-single-blog__content {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* SNSシェアボタン */
.p-single-blog__sns {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.p-single-blog__sns li {
  margin: 0 10px;
}

.p-single-blog__sns svg {
  width: 24px;
  height: 24px;
}

/* 前後の投稿へのリンク */
.p-single-blog__pagination {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* 日付 */
.p-single-news__date {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

.p-single-news__date::before {
  font-family: 'Font Awesome 5 Free';
  font-weight: 400;
  content: '\f073';
  margin-right: 0.4em;
}

/* 記事の画像 */
.p-single-news__img {
  margin-bottom: 20px;
}

.p-single-news__img img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 記事の本文 */
.p-single-news__content {
  margin-bottom: 20px;
  line-height: 1.6;
}

/* SNSシェアボタン */
.p-single-news__sns {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.p-single-news__sns li {
  margin: 0 10px;
}

.p-single-news__sns svg {
  width: 24px;
  height: 24px;
}

/* 前後の投稿へのリンク */
.p-single-news__pagination {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ブログレイアウト */

.l-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.c-heading-container {
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.c-heading-container-front {
  margin-bottom: 0px;
}

.c-heading-s {
  position: relative;
  display: inline-block;
  font-size: 20px;
}

.c-heading-container h2 {
  text-align: center;
  margin: 40px 0 10px 0;
  font-weight: bold;
  font-size: 2rem;
}

@media (max-width: 768px) {
  .c-heading-container h2 {
    margin: 30px 0 40px 0;
  }
}

.policy-items {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-around;
}

.policy-item {
  width: calc(33.333% - 30px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.policy-icon,
.policy-content {
  width: 100%;
  /* アイコンとコンテンツの幅を同じに */
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.policy-icon img {
  width: auto;
  max-width: 100%;
  /* 画像がコンテナを超えないように */
  height: auto;
}

.policy-content {
  padding: 10px 20px 30px 20px;
}

.policy-title {
  margin: 10px 0 15px 0;
  font-size: 20px;
  text-align: center;
  font-weight: bold;
}

.policy-title .next {
  color: #e0f7fa;
}

.policy-text {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .policy-item {
    width: calc(50% - 30px);
  }
}

@media (max-width: 768px) {
  .policy-item {
    width: 100%;
  }

  .policy-content {
    margin-bottom: 20px;
  }
}

.p-index-vision {
  padding: 40px 0;
}

.l-inner--mini {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.vision-content {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 50px;
}

.vision-image img {
  width: 100%;
  max-width: 100%;
  /* Allow image to fill the container */
  height: auto;
  object-fit: cover;
  /* Ensure the aspect ratio is maintained */
}

.vision-text {
  flex-grow: 1;
  max-width: 60%;
  /* Adjust the text section width */
}

.vision-title {
  display: inline-block;
  padding: 5px 10px;
  font-size: 20px;
  color: #e0f7fa;
}

.vision-description {
  font-size: 16px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .vision-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vision-text {
    max-width: 100%;
  }
}

.page-header {
  color: #323232;
  background-color: transparent;
}

.page-header-inner {
  margin: 3em auto 1.5em;
  max-width: 800px;
}

.page-header-title {
  font-size: 40px;
  font-weight: 900;
  line-height: var(--vk-line-height-low);
  margin: 0;
  padding-bottom: 0.8em;
  position: relative;
  text-align: center;
}

.page-header-title::after {
  content: '';
  width: 80px;
  height: 8px;
  background-color: #3b566c;
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.c-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e0f7fa;
}

.c-button {
  text-align: center;
  margin: 40px 0;
}

.c-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 20px;
  background-color: #3b566c;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
}

.c-button a::before {
  content: '';
  display: inline-block;
  margin-right: 10px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #fff;
}

.archive-inner {
  margin: 0 auto 1.5em;
  max-width: 800px;
}

.p-archive-blog {
  margin-top: 20px;
}

.p-archive-blog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.p-archive-blog__item {
  width: calc(33.333% - 20px);
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
}

@media (max-width: 768px) {
  .p-archive-blog__item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 480px) {
  .p-archive-blog__item {
    width: 100%;
  }
}

.p-archive-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.p-archive-news__item {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 5px;
  margin-top: 20px;
}

.c-article__link {
  display: flex;
  align-items: center;
  width: 100%;
  text-decoration: none;
  color: #333;
}

.c-article-blog__link {
  display: flex;
  width: 100%;
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
}

.c-article__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.c-article__content {
  padding: 15px;
}

.c-article-blog__content {
  padding: 15px;
  flex: 1;
}

.c-article__date {
  font-size: 0.9em;
  color: #666;
  margin-right: 25px;
  white-space: nowrap;
}

.c-article-blog__date {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.c-article__title {
  font-size: 1.2em;
  color: #333;
  margin: 0;
}

.c-pagination {
  text-align: center;
  padding: 20px 0;
}

.c-pagination .page-numbers {
  margin: 0 5px;
  padding: 5px 10px;
  background-color: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
}

.c-pagination .current {
  background-color: #3b566c;
  color: #fff;
}

.p-notfound {
  text-align: center;
  padding: 40px 20px;
  background-color: #f4f4f4;
  border-radius: 5px;
}

.p-notfound__ttl {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 20px;
}

.c-text-l {
  font-size: 1.2em;
  margin-bottom: 20px;
}

.c-text-m {
  font-size: 1em;
  margin-bottom: 20px;
}

.c-text-s {
  font-size: 0.9em;
  margin-bottom: 20px;
}

.p-notfound__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  display: inline-block;
  text-align: left;
}

.p-notfound__list li {
  margin-bottom: 10px;
}

.c-button__arrow {
  margin-left: 10px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .p-notfound__ttl {
    font-size: 1.5em;
  }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  padding: 20px;
}

.grid-item {
  border: 2px solid #3b566c;
  padding: 20px;
  border-radius: 10px;
}

.grid-item h2 {
  border-bottom: 2px solid #3b566c;
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.grid-item p {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.link-container {
  text-align: right;
  margin-top: auto;
}

.grid-item a {
  color: #666;
  text-decoration: none;
  font-weight: bold;
}

.table-contactform7 {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}

.table-contactform7 th,
.table-contactform7 td {
  border: 1px solid #eee;
  padding: 15px;
  text-align: left;
}

.required-contactform7 {
  padding: 2px 5px;
  background-color: #3b566c;
  color: #fff;
  border-radius: 5px;
  margin-left: 10px;
  display: inline-block;
  line-height: 1.5;
}

.table-contactform7 th {
  background-color: #f9f9f9;
  vertical-align: middle;
}

.table-contactform7 input,
.table-contactform7 textarea,
.table-contactform7 select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.btn-cf7 {
  background-color: #333;
  color: #fff;
  margin: 30px 0;
  padding: 10px 20px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  width: 50%;
}

.btn-cf7:hover {
  background-color: #666;
}

.center {
  text-align: center;
}

.wpcf7-spinner {
  display: none;
}

.wpcf7 form .wpcf7-response-output {
  margin: 1em 0.5em 1em;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* レイアウトルール 共通 */

.p-wp-content h2:not(.c-heading-s) {
  background-color: #3b566c;
  color: #fff;
  font-size: 1.5rem;
  padding: 0 16px;
  font-weight: 600;
  border-radius: 5px;
  margin-top: 1.2em;
  margin-bottom: 1.5em;
}

.p-wp-content h3 {
  border-left: 8px solid #3b566c;
  padding-left: 14px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #7b605c;
  margin-top: 1.2em;
  margin-bottom: 1.5em;
  line-height: 1.4;
}

.p-wp-content h4 {
  font-size: 1.125rem;
  line-height: 1.78;
  padding-bottom: 0.2em;
  letter-spacing: 0.02em;
  margin-top: 1.2em;
  margin-bottom: 1.5em;
  font-weight: 600;
  border-bottom: 1px solid #ccc;
}

@media (max-width: 767px) {
  .p-wp-content h4 {
    font-size: 1rem;
  }
}

.p-wp-content p {
  font-size: 1.125rem;
  line-height: 1.78;
  letter-spacing: 0.02em;
  margin-bottom: 1.5em;
}

@media (max-width: 767px) {
  .p-wp-content p {
    font-size: 1rem;
  }
}

.p-wp-content a {
  color: #e0f7fa;
  text-decoration: underline;
}

.p-wp-content blockquote {
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  padding: 28px;
}

.p-wp-content blockquote p {
  margin-bottom: 0.5em;
}

.p-wp-content blockquote cite {
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0.02em;
  font-style: inherit;
}

.p-wp-content ol,
.p-wp-content ul {
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0.02em;
  font-style: inherit;
  font-weight: 500;
  margin-top: 1em;
  margin-bottom: 1em;
}

.p-wp-content ol {
  counter-reset: item;
}

.p-wp-content ol li:before {
  counter-increment: item;
  content: counter(item) '.';
  font-weight: 500;
  color: #3b566c;
  margin-right: 8px;
}

.p-wp-content ul li {
  padding-left: 22px;
  position: relative;
}

.p-wp-content ul li::before {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  left: 2px;
  top: 12px;
  position: absolute;
  content: '';
  background-color: #ccc;
}

.p-wp-content img {
  margin-top: 2em;
  margin-bottom: 3em;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.p-wp-content table {
  margin-bottom: 32px;
  font-size: 1rem;
  line-height: 1.625;
  letter-spacing: 0.02em;
  border: solid 1px #ccc;
  border-collapse: separate;
  background-color: #fff;
}

.p-wp-content table th,
.p-wp-content table td {
  font-weight: 500;
  padding: 8px;
}

.p-wp-content table th p,
.p-wp-content table td p {
  font-size: 1rem;
}

.p-wp-content table th p:last-of-type,
.p-wp-content table td p:last-of-type {
  margin-bottom: 0;
}

.p-wp-content table thead {
  color: #fff;
  border-bottom: #ccc;
}

.p-wp-content table thead th,
.p-wp-content table thead td {
  background-color: #3b566c;
  color: #fff;
  border-right: solid 1px #ccc;
}

.p-wp-content table thead th:last-of-type,
.p-wp-content table thead td:last-of-type {
  border-right: none;
}

.p-wp-content table tbody th {
  background-color: #faf3f1;
  color: #3b566c;
  vertical-align: middle;
}

.p-wp-content table tbody tr > * {
  border-top: solid 1px #ccc;
  border-right: solid 1px #ccc;
}

.p-wp-content table tbody tr > *:last-of-type {
  border-bottom: none;
}

.p-wp-content table p {
  font-size: 1rem;
}

.p-wp-content figcaption {
  text-align: right;
  margin-top: 8px;
}

.p-wp-content .button {
  position: relative;
  z-index: 1;
  height: 48px;
  min-width: 300px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background-color: #faf3f1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b566c;
  border-radius: 100px;
  position: relative;
  transition: opacity 0.4s;
  transition: 0.4s ease;
  text-decoration: none;
  padding-bottom: 8px;
  padding-right: 8px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .p-wp-content .button:hover {
    opacity: 0.6;
  }
}

.p-wp-content .button::after {
  content: '';
  transition: 0.4s ease;
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: -6px;
  left: -6px;
  border-radius: 100px;
  border: 2px solid #3b566c;
}

.p-wp-content .button::before {
  content: '';
  transition: 0.4s ease;
  display: block;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8.408 12.816"><path fill="none" stroke="%233b566c" stroke-linecap="round" stroke-linejoin="round" stroke-miterlimit="10" stroke-width="2" d="m1.408 11.408 6-5-6-5"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  width: 10px;
  height: 12px;
  position: absolute;
  right: 20px;
}

@media (min-width: 768px) {
  .p-wp-content .button:hover {
    padding: 0;
  }

  .p-wp-content .button:hover::before {
    right: 15px;
  }

  .p-wp-content .button:hover::after {
    -webkit-transform: translate(5px, 5px);
    transform: translate(5px, 5px);
  }
}
