
/* 数字フォント */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

.font-number {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
}


/*-------- 全体幅設定（PC） --------*/

.l-article {
max-width: 1200px;
}
#main_content .l-mainContent__inner {
  text-align: center;
}
.top #content {
  padding-top: 5.5em;
}

.wp-block-columns,.wp-block-latest-posts__list,.wpforms-container {
  text-align: left;
}

@media (max-width: 767px) {
  .top #content {
    padding-top: 3.5em;
  }
}


/*------ タイトル関連の設定 ------*/
#main_content .l-mainContent__inner h2.wp-block-heading {
    display: inline-block;
    color: #000;
    background: none;
    padding: 0;
    margin: 3rem auto 2rem;
    font-size: 2.2rem;
}
#main_content .l-mainContent__inner h2.wp-block-heading:before {
  display: none;
}

#main_content .l-mainContent__inner .subtitle {
  position: relative;
  display: block;
  margin-top: 4px;
  padding: 0.3rem 0;
  font-size: 1rem;
}
#main_content .l-mainContent__inner .subtitle:before {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #ca062a;
  position: absolute;
  display: block;
  top: 0;
}
#main_content .l-mainContent__inner .subtitle:after {
  content: "";
  height: 4px;
  width: 100%;
  background-color: #006fb4;
  position: absolute;
  display: block;
  bottom: 0;
}

/*------- メインビジュアル -------*/

.hero-contents {
  position: relative;
  display: flex;
  align-items: center;
}

.hero-swiper {
  position: relative; /* テキストを絶対配置するための基準 */
  width: 88%;
  height: auto;
  margin-left: 12%;
  --swiper-theme-color: #ffffff; /* 矢印や点々の色 */
  --swiper-navigation-size: 30px;
}
/* スライド内の画像 */
.hero-swiper .swiper-slide img {
  width: 100%;
  height: auto;
}
.hero-swiper .swiper-slide {
  max-height: 685px;
}

/* プログレスバー自体の位置とサイズを調整 */
.hero-swiper .swiper-pagination-progressbar {
  /* 位置を右下に固定 */
  position: absolute;
  right: 20px;
  bottom: 20px;
  top: auto;
  left: auto;
  width: 18%;   /* 画面幅の25%（お好みで調整） */
  max-width: 200px; /* 横幅が広がりすぎないように */
  height: 3px;
  background: #ccc;
  border-radius: 4px;
}

/* プログレスバーの進捗部分のスタイル */
.hero-swiper .swiper-pagination-progressbar .swiper-pagination-progressbar-fill {
  background: #006fb4;
  border-radius: 4px;
}

/* 上に重ねるテキストのスタイル */
.hero-caption {
  width: 60%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  text-align: left;
  z-index: 10;
}

.hero-caption h2 {
  padding-top: 0.8rem;
  margin-bottom: 3.2rem;
  font-size: 3.5rem;
  line-height: 1.6;
  white-space: nowrap;
  text-shadow:
      -1px -1px 0 #fff,  /* 左上 */
        1px -1px 0 #fff,  /* 右上 */
      -1px  1px 0 #fff,  /* 左下 */
        1px  1px 0 #fff;  /* 右下 */  
}

.hero-caption p {
  width: 52%;
  margin-top: 0.3rem;
  line-height: 1.5;
  text-shadow:
    -1px -1px 0 #fff,  /* 左上 */
    1px -1px 0 #fff,  /* 右上 */
    -1px  1px 0 #fff,  /* 左下 */
    1px  1px 0 #fff;  /* 右下 */
}

@media (max-width: 959px) {
  
  .hero-contents {
    flex-direction: column-reverse;
  }
  
  .hero-swiper {
    width: 100%;
    margin-left: 0;
  }
  .hero-swiper .swiper-slide {
    max-height: 61vw;
  }

  .post_content .hero-contents .hero-caption {
    width: 100%;
    position: inherit;
    top: auto;
    transform: none;
    z-index: 10;
    margin-top: -4rem !important;
  }

  .hero-caption h2 {
    padding-top: 0;
    font-size: 3rem;
    margin-bottom: 1.6rem;
  }
  
  .hero-caption p {
    width: 100%;
    margin-top: 0;
  }
  
}

@media (max-width: 767px) {
  .hero-swiper .swiper-pagination-progressbar {
    position: absolute;
    right: 0.5rem;
    bottom: 1.5rem;
  }    
  .post_content .hero-contents .hero-caption {
    margin-top: -2.5rem !important
  }
  .hero-caption h2 {
    padding-top: 0;
    font-size: 2rem;
    margin-bottom: 1.3rem;
  }
}


/*------事業紹介-------*/
/* カードセクション全体 */
.card-section {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    width: 94%;
    margin: 0 auto;
    
}
@media (max-width: 959px) {
  .card-section {
    width: 100%;
    gap: 1rem;
  }
}
@media (max-width: 767px) {
  .card-section {
  flex-direction: column;
  gap: 1.5rem;
  }
}

/* カードを囲むリンクのスタイル */
.card-link-wrapper {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s;
    border: 10px solid #006fb4; /* 青色 */
    flex: 1;
}

.card-link-wrapper:hover {
  filter: brightness(1.1);

}

/* 各カードのスタイル */
.card-item {
    height: 100%; /* 高さを親のaタグに合わせる */
    background-color: #ca062a; /* 赤色 */
    border: 2px solid #fff;
    padding: 2em 1em 0.8em 1em;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

/* アイコン */
.card-item__icon {
    text-align: center;
    height: 90px;
    margin-bottom: 1.8em;
}
.card-item__icon img {
    height: 100%;
    width: auto;
}

/* タイトルエリア */
.card-item__title {
    font-weight: bold;
    color: #fff;
    line-height: 1.4;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

/* 番号 */
.card-item__number {
    margin-right: 10px;
    padding-right: 10px;
    font-size: 2.6rem;
    border-right: 1px solid #fff;
    line-height: 0.7;
    font-family: "Bebas Neue",sans-serif;
    white-space: nowrap;
}


/* 説明文 */
.card-item__text {
    line-height: 1.7;
    margin: 0;
    flex-grow: 1; /* 高さを揃えるための設定 */
}

@media (max-width: 959px) and (min-width: 768px) {
  .card-item__text {
    font-size: 0.9rem;    
  }
 
}
@media (max-width: 767px) {
  .card-item {
    padding: 1.5em 1em;
  }
 
}


/*------新着記事-------*/

/* カードの親(li)を、リンクを広げる基準にする */
.post-card-item {
    position: relative;
}

/* タイトルリンクを、カード全体に広がる透明な膜にする */
.post-card-item .wp-block-latest-posts__post-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1; /* 他の要素の邪魔をしないように */
}


/* 各投稿アイテムの画像コンテナ */
.wp-block-latest-posts__featured-image {
    position: relative;
    margin-bottom: 0 !important;
    overflow: hidden;
}

/* 画像に重ねるカテゴリの頭文字 */
.post-cat-char {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.2rem;
    height: 2.2rem;
    background-color: #fff;
    color: #006fb4;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.post-cat-char.cat-local {
  color: #FF9730;
}
.post-cat-char.cat-community {
  color: #199800;
}

/* PHPで追加した、タイトルと抜粋を囲むラッパー */
.post-text-wrapper {
    border: 2px solid #ca062a;
    padding: 0.7em 1em;
    min-height: 12rem;
    height: calc(100% - 180px);
}

/* タイトル（2行で省略記号「...」を表示） */
.wp-block-latest-posts__post-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 表示する行数を2行に制限 */
    overflow: hidden;
    line-height: 1.5;
    height: 3em; /* line-height * 2行分 の高さ */
    margin-bottom: 0.8rem;
    font-weight: bold;
    color: #000;
}

@media (max-width: 767px) {
  .post-text-wrapper {
    height: auto;
    min-height: inherit;
    line-height: 1.6;
    padding: 1.5em 1.1em;
  }
  .wp-block-latest-posts__post-title {
    line-height: 1.6;
    height: auto;
  }
}


/* more部分 */
.read-more {
  color: #006fb4;
}
.wp-block-latest-posts__featured-image.aligncenter a {
  width: 100%;
}
.wp-block-latest-posts__featured-image.aligncenter img {
  vertical-align: bottom;
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: all 0.4s;
}
.post-card-item:hover .wp-block-latest-posts__featured-image.aligncenter img {
  transform: scale(1.05);
}
@media (max-width: 959px) {
  .top-news {
    gap: 1.5rem;
  }
  .wp-block-latest-posts.is-grid.top-news li {
    margin: 0 auto;
    width: calc((100% - 1.5rem) / 2);
  }
}
@media (max-width: 440px) {
  .wp-block-latest-posts.is-grid.top-news li {
    margin: 0 auto;
    width: 90%;
  }
}


/*------メンバー紹介------*/

/* 各メンバーのスライド（アイテム） */

/* スライダー全体のコンテナ */
.swiper-wrapper {
  transition-timing-function: linear !important;
  flex-wrap: nowrap !important;
}

.infinite-slider {
  overflow: hidden; /* はみ出した部分を隠す */
}
.member.container {
  margin-bottom: 0;
}

.member .swiper-slide.member-item {
    position: relative;
    width: 320px; /* 指定の幅 */
    height: 280px;
    flex-shrink: 0; /* Swiperで縮まないようにする */
    transition: all 0.4s ease;
    margin-left: -80px;
}

/* 画像を斜めに切り抜く */
.member .member-item img {
    clip-path: polygon(15% 0%, 100% 0%, 85% 100%, 0% 100%);
    transition: all 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* 余計な余白を防ぐ */
}

/* ホバー */
.member .member-item:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 左上の番号 */
.member .number {
    position: absolute;
    top: 10px;
    left: 50px;
    font-size: 4rem;
    font-weight: bold;
    color: #000;
    line-height: 1;
    z-index: 3;
    text-shadow: 0px 0px 4px rgba(255,255,255,0.5);
    font-family: "Bebas Neue",sans-serif;
}

/* 名前のテキストエリア */
.member .member-text {
    position: absolute;
    bottom: 8px;
    left: 3.5%;
    width: 70%;
    padding: 6px 0 6px 20px;
    background-color: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.05rem;
    text-align: left;
    clip-path: polygon(2.5% 0%, 100% 0%, 97.5% 100%, 0% 100%);
    z-index: 2;
    box-sizing: border-box;
}

@media (max-width: 959px) and (min-width: 768px) {
    .member .swiper-slide.member-item {
        width: 450px;
        height: 440px;
    }
    .member .number {
      left: 80px;
    }
    .member .member-text {
      width: 76.5%;
      clip-path: polygon(2% 0%, 100% 0%, 98% 100%, 0% 100%);
      font-size: 1rem;
    }
    .staff-all img {
      object-fit: cover;
      max-height: 680px;
      width:100%;
      height: 100%;
    }
}


@media (max-width: 767px) {
    /* スライドの幅を画面に合わせる */
    .member .swiper-slide.member-item {
        width: 69%;
        height: auto;
        max-height: 270px;
        max-width: 300px;
    }
    /* 左上の番号 */
    .member .number {
      zoom: 78%;
      left: 50px;
      top: 5px;
    }
    .member .member-text {
      bottom: 5px;
      width: 72%;
      padding: 3px 5px 5px 10px;
      left: 3.5%;
    clip-path: polygon(2.2% 0%, 100% 0%, 97.8% 100%, 0% 100%);
    }

    /* ネガティブマージンを少し緩やかに */
    .member .swiper-slide.member-item + .swiper-slide.member-item {
        margin-left: -60px; /* スマホ用に調整 */
    }
}

.sp-img {
  z-index: 0;
}


/* -----歴史----- */

/* アコーディオンラベルを中央寄せ */
.my-accordion01-01 .swell-block-accordion__item{
  text-align: center;
}
/* アコーディオンラベルボタン */
.swell-block-accordion__title {
    /* ボックスモデル */
    max-width: 400px;
    height: auto;
    padding: 0.8em 1em;
    margin: -40px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
    background: var(--color_main);
    border-radius: 30px;
    border: 15px solid #fff;
}
.swell-block-accordion__title .history-txt {
  font-size: 0.6rem;
  display: block;
  font-weight: normal;
  margin-top: 0.3em;
}

@media screen and (max-width: 959px) {
    .swell-block-accordion__title {
      width: auto !important;/*　ボタンの幅 */
      margin: -5rem auto 0;
    }
}
@media (max-width: 767px) {
    .swell-block-accordion__title {
      font-size: 1rem;
      padding: 0.8em 1em;
      margin: -4rem auto 0;
      border-radius: 20px;
      border: 10px solid #fff;
    }
    .swell-block-accordion__title .history-txt {
      font-size: 0.9rem;
    }
}

.swell-block-accordion.is-style-main .swell-block-accordion__body {
  border: 0;
}

/* ボタンの文字位置 */
.swell-block-accordion__title .swell-block-accordion__label {
    position: relative;
    right: -16px;
}

/* 展開した時の表示範囲の調整 */
.swell-block-accordion__body {
    padding: 1em 0;
}


/* 歴史 */
/* 全体のコンテナ */
.vertical-timeline {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    text-align: left;
}

/* タイムラインの各行（カラムブロック） */
.vertical-timeline .wp-block-columns {
    margin-bottom: 0;
    padding: 1em 3em;
    align-items: center;
    border-top: 1px solid #eee;
}

/* 最初の行の上の線は不要なので消す */
.vertical-timeline .wp-block-columns:last-child {
    border-bottom: 1px solid #eee;
}

/* 奇数行の背景色を薄いグレーに（ストライプ模様） */
.vertical-timeline .wp-block-columns:nth-child(odd) {
    background-color: #F9F9F9;
}

/* 年を表示する左カラム */
.vertical-timeline .wp-block-column:first-child {
    flex-basis: 9em !important;
    flex-grow: 0 !important;
    font-weight: bold;
    color: #555;
}

/* 出来事を表示する右カラム */
.vertical-timeline .wp-block-column:last-child {
    line-height: 1.6;
}

@media (max-width: 767px) {
.vertical-timeline .wp-block-columns {
    padding: 1em 1.5em;
    gap: 1rem !important;
}
}

/* 歴史ここまで */


/* -----　お問い合わせ　----- */

.wpforms-container-full .wpforms-field-container {
  border-top: 1px solid #000;
  border-left:1px solid #000;
  border-right:1px solid #000;
  padding: 1.5em 10em;
}
@media (max-width: 959px) {
  .wpforms-container-full .wpforms-field-container {
    padding: 1.5em 5em;
  }
}
@media (max-width: 767px) {
  .wpforms-container-full .wpforms-field-container {
  padding: 1.5em 1.5em;
}
}

/* wpform送信ボタン */
.wpforms-container-full .wpforms-form .wpforms-submit-container {
  margin: 0 auto !important;
  padding: 0 0 3rem;
  text-align: center;
  border-left:1px solid #000;
  border-right:1px solid #000;
  border-bottom:1px solid #000;
}

div.wpforms-container-full input[type=submit]:not(:hover):not(:active), div.wpforms-container-full button[type=submit]:not(:hover):not(:active), div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full input[type=submit]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full button[type=submit]:not(:hover):not(:active), .wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active) {
  max-width: 400px;
  height: 100%;
  width: 70%;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2em 0;
}
div.wpforms-container-full input[type=submit]:hover, div.wpforms-container-full input[type=submit]:active, div.wpforms-container-full button[type=submit]:hover, div.wpforms-container-full button[type=submit]:active, div.wpforms-container-full .wpforms-page-button:hover, div.wpforms-container-full .wpforms-page-button:active, .wp-core-ui div.wpforms-container-full input[type=submit]:hover, .wp-core-ui div.wpforms-container-full input[type=submit]:active, .wp-core-ui div.wpforms-container-full button[type=submit]:hover, .wp-core-ui div.wpforms-container-full button[type=submit]:active, .wp-core-ui div.wpforms-container-full .wpforms-page-button:hover, .wp-core-ui div.wpforms-container-full .wpforms-page-button:active {
  max-width: 400px;
  height: 100%;
  width: 70%;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 1.2em 0;
}
