@charset "UTF-8";
/* 1. ボックスモデルの定義：paddingやborderを幅に含める */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. デフォルトの余白をリセット */
* {
  margin: 0;
  padding: 0;
}

/* 3. 本文のセットアップ：スクロールを滑らかにし、ベースの行間を整える */
html {
  color-scheme: light dark; /* ダークモード対応 */
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased; /* フォントを綺麗に見せる（mac/iOS用） */
  text-rendering: optimizeSpeed;
}

/* 4. 画像やメディア要素の扱い：親要素からはみ出さないようにする */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. フォーム要素のフォント継承：inputやbuttonが独自のフォントにならないように */
input, button, textarea, select {
  font: inherit;
}

/* 6. テキストエリアのサイズ調整を縦方向のみに制限 */
textarea {
  resize: vertical;
}

/* 7. リストの記号を消す（必要に応じて） */
ul, ol {
  list-style: none;
}

/* 8. アニメーションを好まないユーザーへの配慮（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:root {
  /* フォントスタック：欧文を先に書くのが鉄則 */
  --font-family-base: "Inter", "Zen Kaku Gothic New", sans-serif;
  /* ウェイトの定義 */
  --weight-normal: 400;
  --weight-bold: 700;
  --color-primary: #009944; /* 共愛会ブランドグリーン */
  --color-bg-footer: #F1F3EF; /* フッター背景 */
  --color-text: #2B2B2B;
  --color-text-sub: #666666;
  /* Fluid Typography: 16px */
  --fz-base: 1rem;
  --inner-width: 1200px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeSpeed;
  font-family: var(--font-family-base);
  color: var(--color-text);
  font-size: var(--fz-base);
  /* [効率的なサイズ調整の核心]
      font-size-adjust: ex-height 0.5;
      フォントのx-heightを基準に、見た目の大きさを正規化します。
      これによりInter（欧文）の小ささが補正され、和文とのバランスが整います。
  */
  font-size-adjust: 0.51;
}

a {
  text-decoration: none;
}

/*
使い方
.main-visual {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/bg.jpg");
}*/
.is-block {
  display: block !important;
}

.is-inline {
  display: inline !important;
}

.is-inline-block {
  display: inline-block !important;
}

.is-none {
  display: none !important;
}

@media screen and (max-width: 767px) {
  .is-mobile-block {
    display: block !important;
  }
  .is-mobile-inline {
    display: inline !important;
  }
  .is-mobile-inline-block {
    display: inline-block !important;
  }
  .is-mobile-none {
    display: none !important;
  }
}
@media screen and (min-width: 576px) {
  .is-fablet-block {
    display: block !important;
  }
  .is-fablet-inline {
    display: inline !important;
  }
  .is-fablet-inline-block {
    display: inline-block !important;
  }
  .is-fablet-none {
    display: none !important;
  }
}
@media screen and (min-width: 768px) {
  .is-tablet-block {
    display: block !important;
  }
  .is-tablet-inline {
    display: inline !important;
  }
  .is-tablet-inline-block {
    display: inline-block !important;
  }
  .is-tablet-none {
    display: none !important;
  }
}
@media screen and (min-width: 1000px) {
  .is-desktop-block {
    display: block !important;
  }
  .is-desktop-inline {
    display: inline !important;
  }
  .is-desktop-inline-block {
    display: inline-block !important;
  }
  .is-desktop-none {
    display: none !important;
  }
}
@media screen and (min-width: 1200px) {
  .is-wide-block {
    display: block !important;
  }
  .is-wide-inline {
    display: inline !important;
  }
  .is-wide-inline-block {
    display: inline-block !important;
  }
  .is-wide-none {
    display: none !important;
  }
}
.loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

/* 読み込み完了後の状態 */
.loading.is-loaded {
  opacity: 0;
  visibility: hidden;
}

.loading-logo {
  width: 80px;
  height: auto;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.7;
  }
}
.header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 117px;
  padding: 0 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: background-color 0.4s ease, height 0.4s ease, box-shadow 0.4s ease;
  background-color: transparent;
}

/* スクロール時の状態（背景を白にする） */
.header.is-white {
  background-color: #fff;
  height: 60px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.is-text-black .logo a .logo-text,
.header.is-text-black .gnav a {
  color: var(--color-text) !important;
}

/* --- Logo Area (Modified) --- */
.logo {
  transition: transform 0.4s ease;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 12px; /* マークとテキストの間隔 */
}

.logo-mark {
  width: 65px; /* マークの幅 */
  flex-shrink: 0;
  transition: width 0.4s ease;
}

.header.is-white .logo-mark {
  width: 40px; /* スクロール時に少し小さくする */
}

.logo-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  /* ナビ同様、背景に応じて色を反転させる設定 */
  color: #fff;
  color: #2B2B2B;
  mix-blend-mode: difference;
  transition: font-size 0.4s ease;
  font-feature-settings: "palt" 1;
}

.header.is-white .logo-text {
  font-size: 18px; /* スクロール時に少し小さくする */
  color: #2B2B2B;
  mix-blend-mode: normal;
}

/* Nav Area */
.header-right {
  display: flex;
  align-items: center;
}

.gnav {
  font-size: 16px;
}

.gnav ul {
  display: flex;
  align-items: center;
  gap: 48px; /* メニュー間の余白を調整 */
}

.gnav li a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: 0.3s ease;
  color: #fff;
  mix-blend-mode: difference;
  color: #2B2B2B;
}

.gnav li a:hover,
.header.is-white .gnav li a:hover,
.gnav li a.is-active,
.header.is-text-black .gnav a.is-active {
  color: var(--color-primary) !important;
}

.header.is-white .gnav li a {
  color: var(--text-color);
  mix-blend-mode: normal;
}

.gnav li.is-search a::before {
  position: absolute;
  display: block;
  content: "";
  width: 1px;
  height: 25px;
  left: -15px;
  background-color: #fff;
  mix-blend-mode: difference; /* 背景との差分で色を決定 */
  transition: 0.3s ease;
}

/* Search Icon Style */
.nav-search-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-search-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff; /* mix-blend-modeが効くように白に設定 */
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover Animation (Text Links Only) */
.gnav li:not(.is-search) a::before {
  position: absolute;
  left: 0; /* 起点を左端に設定 */
  bottom: -8px;
  width: 0;
  height: 3px;
  content: "";
  background-color: var(--color-primary);
  transition: width 0.3s ease; /* widthの変化のみでアニメーション */
  transform: none; /* 中央寄せの解除 */
}
@media screen and (max-width: 767px) {
  .gnav li:not(.is-search) a::before {
    bottom: -1px;
  }
}

.gnav li:not(.is-search) a:hover::before,
.gnav li:not(.is-search) a.is-active::before {
  width: 100%;
}

/* Hamburger Menu (SP) */
.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  padding: 10px;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
  margin: 6px 0;
  transition: 0.3s;
}

@media screen and (max-width: 999px) {
  .gnav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .header {
    height: 80px;
  }
  .header.is-white {
    height: 70px;
  }
  .logo-text {
    font-size: 16px;
  }
  .header.is-white .logo-text {
    font-size: 15px;
  }
  .mv-copy {
    left: 5%;
    bottom: 10%;
    width: 90%;
  }
}
/* --- Mobile Menu Styles --- */
@media screen and (max-width: 999px) {
  /* ハンバーガーボタンの視認性確保 */
  .menu-btn {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    z-index: 1000;
    top: -7px;
  }
  .menu-btn span {
    position: absolute;
    left: 7px;
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    transition: transform 0.3s, opacity 0.3s, top 0.3s;
  }
  .menu-btn span:nth-child(1) {
    top: 14px;
  }
  .menu-btn span:nth-child(2) {
    top: 22px;
  }
  .menu-btn span:nth-child(3) {
    top: 30px;
  }
  /* アクティブ時の「×」アニメーション */
  .nav-open .menu-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-open .menu-btn span:nth-child(2) {
    opacity: 0;
  }
  .nav-open .menu-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* ナビゲーションの展開 */
  .gnav {
    display: block; /* 非表示を解除 */
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面外 */
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: #fff;
    z-index: 999;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding-top: 70px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.05);
  }
  .nav-open .gnav {
    right: 0;
  }
  .gnav ul {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 40px;
    gap: 0;
  }
  .gnav li {
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .gnav li a {
    padding: 20px 0;
    color: var(--color-primary) !important;
    mix-blend-mode: normal !important;
    width: 100%;
  }
  /* 検索アイコンの仕切りをSPでは消す */
  .gnav li.is-search a::before {
    display: none;
  }
  /* オーバーレイ */
  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: 0.4s;
  }
  .nav-open .nav-overlay {
    opacity: 1;
    visibility: visible;
  }
}
/* --- 追加：スマホメニュー内のロゴスタイル --- */
/* PCでは非表示 */
.gnav-logo {
  display: none;
}

@media screen and (max-width: 767px) {
  .gnav-logo {
    display: block;
    position: absolute;
    top: 28px; /* ヘッダーの高さに合わせて微調整 */
    left: 20px; /* 左の余白 */
  }
  .gnav-logo .logo-text {
    font-size: 16px;
    font-weight: 700;
    color: #2B2B2B;
    mix-blend-mode: normal; /* 背景が白なのでノーマルに */
  }
  /* メニュー展開時のレイアウト調整 */
  .gnav-inner {
    position: relative;
    height: 100%;
  }
}
.is-search {
  display: none;
}

.page {
  padding: 117px 0 0;
}

.page-header {
  width: 100%;
  padding: 33px 0 53px 6.944vw;
  border-right: var(--color-primary) solid 20px;
  position: relative;
  margin-bottom: 15.278vw;
}
@media screen and (max-width: 767px) {
  .page-header {
    padding: 63px 0 0 6.944vw;
  }
}
.page-header h1 {
  font-size: 9.722vw;
  line-height: 1;
  color: var(--color-primary);
  font-feature-settings: "palt" 1;
}
@media screen and (max-width: 767px) {
  .page-header h1 {
    font-size: 44px;
  }
}
.page-header h1 span {
  display: block;
  font-size: 1.667vw;
  color: var(--color-text);
  padding-left: 0.5em;
}
@media screen and (max-width: 767px) {
  .page-header h1 span {
    font-size: 18px;
    padding-top: 5px;
    padding-left: 0;
  }
}

.ul-pankuzu {
  position: absolute;
  right: 6.944vw;
  bottom: 0;
  display: flex;
}
@media screen and (max-width: 767px) {
  .ul-pankuzu {
    top: 0;
    right: 0;
    left: 6.944vw;
  }
}
.ul-pankuzu li a {
  color: var(--color-primary);
}

.ul-pankuzu li a .arrow-right {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 10px;
  top: -1px;
  left: -4px;
}

.ul-pankuzu li a .arrow-right::before,
.ul-pankuzu li a .arrow-right::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  right: 0;
  width: 7px;
  height: 1px;
  border-radius: 9999px;
  background-color: var(--color-primary);
  transform-origin: calc(100% - 0.5px) 50%;
}

.ul-pankuzu li a .arrow-right::before {
  transform: rotate(45deg);
}

.ul-pankuzu li a .arrow-right::after {
  transform: rotate(-45deg);
}

@media screen and (max-width: 767px) {
  .ul-pankuzu li:nth-child(3) {
    width: 40vw;
    height: 25px;
    padding-right: 10px;
    overflow: hidden;
    position: relative;
  }
  .ul-pankuzu li:nth-child(3)::after {
    display: inline-block;
    content: "...";
    position: absolute;
    right: 0;
    top: 0;
  }
}

.page-contents {
  width: 100%;
}

.inner {
  padding: 0 6.944vw;
}

/* -------------------------------------
  見出し2-3
------------------------------------- */
.headline-ph {
  font-size: 9.722vw;
  line-height: 1;
  color: var(--color-primary);
  font-feature-settings: "palt" 1;
  margin-bottom: 4rem;
}
.headline-ph span {
  display: block;
  font-size: 1.667vw;
  color: var(--color-text);
  padding-left: 0.5em;
}
@media screen and (max-width: 767px) {
  .headline-ph {
    font-size: 44px;
    margin-bottom: 2rem;
  }
  .headline-ph span {
    font-size: 18px;
    padding-left: 0;
    padding-top: 10px;
  }
}

.headline2 {
  font-size: 42px;
  font-family: var(--font-family-base);
  position: relative;
  font-weight: 700;
  margin-bottom: 1.389vw;
}
@media screen and (max-width: 767px) {
  .headline2 {
    font-size: 26px;
  }
}
.headline2::before {
  display: inline-block;
  content: "";
  width: 45px;
  height: 45px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/ico_cross.png);
  background-size: contain;
  background-repeat: no-repeat;
  position: relative;
  margin-right: 10px;
  top: 5px;
}
@media screen and (max-width: 767px) {
  .headline2::before {
    width: 32.5px;
    height: 32.5px;
  }
}

.headline2.is-white {
  color: #Fff;
}
.headline2.is-white::before {
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/ico_cross_white.png);
}

.headline3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 3.125vw;
}

/* -------------------------------------
  カラム
------------------------------------- */
.contents-column {
  display: flex;
}
@media (max-width: 1024px) {
  .contents-column {
    display: block;
  }
}

.contents-column.__is-two {
  flex-direction: row-reverse;
  position: relative;
}
@media (max-width: 1024px) {
  .contents-column.__is-two {
    flex-direction: row;
  }
}
.contents-column.__is-two .contents-main {
  width: calc(100% - 300px);
}
@media (max-width: 1024px) {
  .contents-column.__is-two .contents-main {
    width: 100%;
  }
}
.contents-column.__is-two .contents-sub {
  width: 300px;
}
@media (max-width: 1024px) {
  .contents-column.__is-two .contents-sub {
    width: 100%;
    padding-top: 60px;
  }
}

.contents-column.__is-two .view-all-btn {
  position: absolute;
  bottom: 0;
}
@media (max-width: 1024px) {
  .contents-column.__is-two .view-all-btn {
    position: relative;
    bottom: 0;
    left: -23px;
    margin: 0 auto;
  }
}

/* -------------------------------------
  ボタン
------------------------------------- */
.view-all-btn {
  display: block;
  position: relative;
  font-weight: 600;
  width: fit-content;
}
.view-all-btn span {
  display: inline-block;
  padding: 12px 30px 10px;
  border-radius: 4px;
  background: #98C50B;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.view-all-btn span::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: var(--color-primary, #0052a4);
  transition: height 0.2s ease-out;
  z-index: -1;
}
.view-all-btn::before {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-color: var(--color-primary, #0052a4);
  border-radius: 4px;
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 2px;
}
.view-all-btn::after {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/arrow_white.svg);
  background-position: center center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  position: absolute;
  left: 100%;
  top: 0;
  overflow: hidden;
  margin-left: 2px;
}
.view-all-btn:hover span::before {
  height: 100%;
}
.view-all-btn:hover::after {
  animation: arrowLoop 0.5s forwards;
}

.btn-center-wrap {
  padding-top: 6.944vw;
  width: 100%;
  text-align: center;
  padding-right: 46px;
}
@media screen and (max-width: 767px) {
  .btn-center-wrap {
    padding-right: 46px;
  }
}
.btn-center-wrap .view-all-btn {
  margin: 0 auto;
}

.view-all-btn.is-arrow-under {
  cursor: pointer;
}

.view-all-btn.is-arrow-under::after {
  transform: rotate(90deg);
}

.view-details-btn {
  display: block;
  position: relative;
  font-weight: 600;
  width: fit-content;
}
.view-details-btn span {
  display: inline-block;
  padding: 12px 0 10px;
  margin-right: 20px;
  color: var(--color-primary);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.view-details-btn span::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 10px;
  height: 2px;
  background-color: var(--color-primary, #0052a4);
  transition: width 0.2s ease-out;
  z-index: -1;
}
.view-details-btn::before {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-color: var(--color-primary, #0052a4);
  border-radius: 23px;
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 2px;
}
.view-details-btn::after {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/arrow_white.svg);
  background-position: center center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  position: absolute;
  left: 100%;
  top: 0;
  overflow: hidden;
  margin-left: 2px;
}
.view-details-btn:hover span::before {
  width: 100%;
}
.view-details-btn:hover::after {
  animation: arrowLoop 0.5s forwards;
}

@keyframes arrowLoop {
  0% {
    background-position: center center;
  }
  49% {
    background-position: calc(100% + 12px) center;
    opacity: 1;
  }
  50% {
    background-position: calc(0% - 12px) center;
    opacity: 0;
  }
  51% {
    opacity: 1;
  }
  100% {
    background-position: center center;
  }
}
.facilities-section {
  padding: 6.944vw;
  background-color: #fff;
}

.facilities-container {
  display: flex;
  gap: 60px;
  max-width: 100%;
  margin: 0 auto;
  justify-content: center;
}
@media screen and (max-width: 767px) {
  .facilities-container {
    display: block;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

.facility-card {
  position: relative;
  flex: 1;
  aspect-ratio: 1/2;
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  outline-offset: -2px;
  outline: solid 10px;
  transition: var(--transition);
}
@media screen and (max-width: 767px) {
  .facility-card {
    display: block;
    flex: 1;
    aspect-ratio: 16/9;
    width: 100%;
    margin-bottom: 30px;
  }
}

.facility-card.__facilities01 {
  outline-color: var(--color-primary);
}

.facility-card.__facilities02 {
  outline-color: var(--color-primary);
}

.facility-card.__facilities03 {
  outline-color: #98C50B;
}

.facility-card.__facilities04 {
  outline-color: #01C19C;
}

.facility-card.__facilities05 {
  outline-color: #07B4B4;
}

/* 画像とオーバーレイ */
.card-image {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 0;
  overflow: hidden;
  transition: var(--transition);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* 暗いマスク */
  transition: var(--transition);
}

.facility-card:hover .card-image::after {
  background: rgba(0, 0, 0, 0.2);
}

/* 縦書きテキストの配置 */
.card-text {
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%); /* Safari用 */
  transform: translate(-50%, -50%);
  margin-left: 10px;
}
.card-text span {
  display: none;
}
.card-text p {
  display: none;
}
@media screen and (max-width: 767px) {
  .card-text {
    width: 100%;
    color: #fff;
    text-align: center;
    margin-left: 0;
  }
  .card-text span {
    display: block;
  }
  .card-text p {
    display: block;
    font-weight: 600;
    font-size: 18px;
  }
  .card-text img {
    display: none;
  }
}

.facility-card.__facilities03 .facility-card-btn::before {
  background-color: #98C50B;
}

.facility-card.__facilities04 .facility-card-btn::before {
  background-color: #01C19C;
}

.facility-card.__facilities05 .facility-card-btn::before {
  background-color: #07B4B4;
}

.facility-card-btn {
  display: block;
  width: 46px;
  height: 46px;
  font-weight: 600;
  position: absolute;
  right: -5px;
  bottom: -5px;
  border-radius: 20px 0 0 0;
  overflow: hidden;
}
.facility-card-btn::before {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  top: 0;
}
.facility-card-btn::after {
  display: block;
  content: "";
  width: 46px;
  height: 46px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/arrow_white.svg);
  background-position: center center;
  background-size: 12px 12px;
  background-repeat: no-repeat;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
}

.facility-card:hover,
.facility-card:hover .card-image {
  border-radius: 20px;
}

.facility-card:hover .facility-card-btn::before {
  width: 100%;
}
.facility-card:hover .facility-card-btn::after {
  animation: arrowLoop 0.5s forwards;
}

/* -----------------------
Footerエリア
-------------------------- */
.footer {
  background-color: var(--color-bg-footer);
  position: relative;
  padding: 6.944vw;
}
@media screen and (max-width: 767px) {
  .footer {
    padding: 25px;
  }
}

.footer-container {
  max-width: var(--inner-width);
  margin: 0 auto;
  padding: 0 40px;
}

/* --- SNS Section --- */
.footer-sns {
  margin-bottom: 80px;
}
@media screen and (max-width: 767px) {
  .footer-sns {
    margin-bottom: 40px;
  }
}

.sns-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.sns-title {
  font-size: var(--fz-h2);
  color: var(--color-primary);
  font-weight: 700;
  position: relative;
  padding-right: 24px;
}

.sns-title::after {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: #CCC;
}

.sns-lead {
  font-size: var(--fz-sm);
  color: var(--color-text-sub);
}

.sns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media screen and (max-width: 767px) {
  .sns-grid {
    display: block;
    grid-template-columns: auto;
  }
}

.sns-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
@media screen and (max-width: 767px) {
  .sns-card {
    display: block;
    margin-bottom: 15px;
  }
}

.sns-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  opacity: 1;
}

/* --- Main Footer Section --- */
.footer-main {
  border-top: 1px solid #E0E2D9;
  padding: 60px 0 40px;
}
@media screen and (max-width: 767px) {
  .footer-main {
    padding: 20px 0 20px;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 0.75fr 1fr;
  gap: 20px;
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
    border-bottom: 1px solid #E0E2D9;
    padding-bottom: 40px;
  }
}
@media screen and (max-width: 767px) {
  .footer-grid {
    grid-template-columns: auto;
  }
  .footer-brand {
    grid-column: span 2;
    border-bottom: 1px solid #E0E2D9;
    padding-bottom: 20px;
  }
}
/* --- Brand Column --- */
.footer-brand-logo {
  max-width: 190px;
}
.footer-brand-logo img {
  width: 100%;
  height: auto;
}

.footer-brand-txt {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  margin: 24px 0 5px;
  display: block;
}

.footer-brand dl {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
}

/* --- Navigation Columns --- */
.footer-nav-title {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.footer-nav {
  font-size: 1rem;
}
@media screen and (max-width: 767px) {
  .footer-nav {
    font-size: 14px;
  }
}
.footer-nav dt {
  font-weight: 600;
}
.footer-nav dd {
  margin: 0px 0 12px;
}
@media screen and (max-width: 767px) {
  .footer-nav dd {
    font-size: 13px;
  }
}
.footer-nav a {
  text-decoration: none;
  color: var(--color-text);
  transition: 0.3s;
  color: var(--color-text);
}
.footer-nav a:hover {
  color: var(--color-primary);
}

.footer-nav:nth-child(3) {
  border-right: #ddd solid 1px;
}
@media screen and (max-width: 767px) {
  .footer-nav:nth-child(3) {
    border-right: none;
  }
}

.footer-nav dd::before {
  display: inline-block;
  content: "-";
  margin: 0 5px;
}

.footer-sub-nav li {
  font-size: 12px;
  margin-bottom: 10px;
  font-weight: normal;
}

.footer-copyright {
  font-size: 0.75rem;
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
}

/* --- Back to Top --- */
.back-to-top {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  z-index: 100;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  transform: scale(1.1);
  opacity: 1;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

.section-mv {
  width: 100%;
  height: 100svh;
}

.mv-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.mv-slide::before {
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background: #000;
  opacity: 0.3;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  pointer-events: none;
}

.mv-slide li {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  overflow: hidden;
}

/* 表示用のクラス：透明度を1にする */
.mv-slide li.is-active {
  opacity: 1;
  z-index: 1;
}

.mv-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 10s linear;
}

/* 拡大用のクラス：ズームを開始する */
.mv-slide li.is-zoomed img {
  transform: scale(1.1);
}

.mv-copy {
  position: absolute;
  left: 5%;
  top: 50%;
  width: 90%;
  max-width: 508px;
  z-index: 998;
  margin-top: -60px;
}

.mv-copy img {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------
  section-activity
------------------------------------- */
.section-activity {
  padding: 6.944vw;
}

/* -------------------------------------
  section-feature
------------------------------------- */
.section-feature {
  padding: 6.944vw;
  background-color: var(--color-bg-footer);
}

.section-feature-list {
  /* リスト全体のスタイル */
}
.section-feature-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.section-feature-list ul li {
  margin-bottom: 60px;
}
.section-feature-list ul li .article-link {
  display: flex;
  align-items: stretch; /* 左右の高さを揃える */
  text-decoration: none;
  color: #333;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1023px) {
  .section-feature-list ul li .article-link {
    display: block;
    width: 100%;
  }
}
.section-feature-list {
  /* 画像エリア */
}
.section-feature-list ul li .img-wrapper {
  flex: 0 0 50%; /* 画像の幅を50%に設定 */
  line-height: 0;
}
.section-feature-list ul li .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 枠に合わせてトリミング */
  border-radius: 0;
  transition: var(--transition);
}
.section-feature-list {
  /* テキストコンテンツエリア */
}
.section-feature-list ul li .text-content {
  flex: 1;
  padding: 60px 40px 60px 0px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  left: -3rem;
}
@media (max-width: 1023px) {
  .section-feature-list ul li .text-content {
    padding: 20px 0;
    left: 0;
  }
}
.section-feature-list {
  /* カテゴリタイトル（緑色） */
}
.section-feature-list .sub-tit {
  color: #00a040;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
  .section-feature-list .sub-tit {
    font-size: 13px;
    margin-bottom: 5px;
  }
}
.section-feature-list {
  /* メイン見出し */
}
.section-feature-list h2 {
  margin: 0;
  line-height: 1.6;
  margin-bottom: 15px;
}
@media screen and (max-width: 767px) {
  .section-feature-list h2 {
    line-height: 1;
    margin-bottom: 10px;
  }
}
.section-feature-list h2 span {
  background-color: #fff;
  padding: 2px 3px;
  display: inline;
  box-decoration-break: clone; /* 改行時もパディングを適用 */
  -webkit-box-decoration-break: clone;
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.5;
  transition: 0.3s;
}
@media screen and (max-width: 767px) {
  .section-feature-list h2 span {
    font-size: 1rem;
    line-height: auto;
  }
}
.section-feature-list {
  /* 詳しく見るボタンエリア */
}
.section-feature-list .btn-wrapper {
  margin-top: auto;
  text-align: right;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}
@media (max-width: 1023px) {
  .section-feature-list .btn-wrapper {
    padding-right: 50px;
  }
}

.article-link:hover h2 span {
  background-color: var(--color-primary);
  color: #fff;
}

.article-link:hover .img-wrapper img {
  border-radius: 40px;
}

.article-link:hover .view-details-btn span::before {
  width: 100%;
}
.article-link:hover .view-details-btn::after {
  animation: arrowLoop 0.5s forwards;
}

/* -------------------------------------
  section-about
------------------------------------- */
.section-about {
  background-color: var(--color-bg-footer);
}

.about-list {
  display: flex;
  gap: 10px;
  padding: 20px;
}
@media screen and (max-width: 767px) {
  .about-list {
    display: block;
    gap: 0;
  }
}
.about-list li {
  border-radius: 20px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .about-list li {
    margin-bottom: 20px;
  }
}
.about-list li .txt {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}
.about-list li img {
  width: 100%;
  height: auto;
}

.about-list li a {
  display: block;
  position: relative;
}
.about-list li a::before {
  display: block;
  content: "";
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  position: absolute;
  left: 0;
  top: 0;
  transition: 0.3s;
}

.about-list li a:hover::before {
  background-color: rgba(0, 0, 0, 0);
}

/* -------------------------------------
  NEWS
------------------------------------- */
.section-news {
  padding: 6.944vw;
}

/* -------------------------------------
  test
------------------------------------- */
.section-mv-dummy {
  position: relative;
  overflow: hidden;
}

.test-copy {
  position: absolute;
  left: 10%;
  top: 200px;
  width: 501px;
  height: auto;
  z-index: 2;
}

/* 動かしたい要素（mv.png） */
.test-mv {
  position: absolute;
  top: -60px;
  height: 730px;
  display: inline-block;
  white-space: nowrap;
  /* 30秒かけて左へ。揺れながら移動 */
  animation: move-and-sway 80s linear infinite;
}

/* 画像自体のサイズ指定 */
.test-mv img {
  height: 730px !important;
  width: auto !important;
  max-width: none !important;
}

/* アニメーション：X軸0からスタートして左へ */
@keyframes move-and-sway {
  0% {
    /* スタート位置をX=0（現在の位置）に固定 */
    transform: translateX(0) translateY(0);
  }
  25% {
    /* 左へ進みつつ、下に大きく揺れる */
    transform: translateX(-25vw) translateY(20px);
  }
  50% {
    /* さらに左へ進みつつ、元の高さに戻る */
    transform: translateX(-50vw) translateY(0);
  }
  75% {
    /* さらに左へ進みつつ、下に大きく揺れる */
    transform: translateX(-75vw) translateY(20px);
  }
  100% {
    /* 完全に画面左外へ消える（画像の幅に合わせて調整） */
    transform: translateX(-1200px) translateY(0);
  }
}
/* ----------------------------------------------------------
アニメーション設定
------------------------------------------------------------- */
/* --- 基本レイアウト設定 --- */
/* --- CSS修正 --- */
/* ステージ全体の背景は画面いっぱい */
#stage {
  width: 100vw;
  height: 100svh;
  min-height: 600px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

/* 地面だけはウィンドウ幅に合わせて100%（1440px以上でも伸ばす） */
#photo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
  transition: transform 0.5s ease;
}

/* スマホ時（767px以下）に写真の位置を少しだけ下げたい場合 */
@media screen and (max-width: 767px) {
  #photo-container {
    /* 下げたい距離をここで指定（例：100px下げる） */
    transform: translateY(0);
  }
}
#ground-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%; /* ウィンドウ幅いっぱい */
  height: 200px;
  z-index: 5;
}

/* キャラクターや施設の「動き」を制限する概念上のインナー（計算用） */
.stage-inner {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  /* max-width: 1440px;  ここが演出の最大幅 */
  max-width: 1240px; /* 1440pxから変更 */
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#ground-wave {
  width: 100%;
  height: 100%;
  display: block;
}

#bg-layer {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.entity {
  position: absolute;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* キャラクターの基本スタイル（接地位置 bottom: 80px） */
.character {
  width: 120px;
  height: 180px;
  bottom: 20px;
}

.character .inner {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  /* 変形の基準を足元（接地目）にする */
  transform-origin: center bottom;
  transition: transform 0.3s ease; /* サイズ変更を滑らかにするなら */
  transform: scale(0.8);
}

.inner {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}

/* 重なり順：主人公Aが一番手前 */
#A {
  z-index: 130;
}

.character:not(#A) {
  z-index: 120;
}

/* 施設の基本スタイル（キャラクターと同じ高さに設置） */
.facility {
  z-index: 10;
  bottom: 60px;
  width: 310px;
  height: 120px;
}

.facility img {
  width: 310px;
  height: auto;
}

/* バトンタッチ時の「！」マーク */
#exclamation {
  position: absolute;
  width: 80px;
  height: 80px;
  background: url("/group/wp-content/themes/kyoaikai-group/images/animation/touch_plus.png") no-repeat center/contain;
  opacity: 0;
  z-index: 200;
  pointer-events: none;
  transform: translateX(-50%);
}

/* 救急車の基本スタイル */
#f_ambulance {
  bottom: 20px;
  width: 140px;
  height: 80px;
  background: url("/group/wp-content/themes/kyoaikai-group/images/animation/ambulance.png") no-repeat center/contain;
  z-index: 150;
}

/* キャラクターのポーズ切り替え（CSS変数で背景画像を指定） */
.character[data-step=wait] .inner {
  background-image: var(--img-wait);
}

.character[data-step=left] .inner {
  background-image: var(--img-left);
}

.character[data-step=right] .inner {
  background-image: var(--img-right);
}

.character[data-step=touch] .inner {
  background-image: var(--img-touch);
}

/* --- 各キャラクターの画像パス定義 --- */
#A {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/A_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/A_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/A_wait.png');
}

#B {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/B_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/B_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/B_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/B_touch.png');
}

#C {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/C_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/C_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/C_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/C_touch.png');
}

#D {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/D_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/D_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/D_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/D_touch.png');
}

#E {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/E_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/E_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/E_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/E_touch.png');
}

#F {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/F_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/F_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/F_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/F_touch.png');
}

#G {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/G_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/G_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/G_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/G_touch.png');
}

#H {
  --img-left: url('/group/wp-content/themes/kyoaikai-group/images/animation/H_left.png');
  --img-right: url('/group/wp-content/themes/kyoaikai-group/images/animation/H_right.png');
  --img-wait: url('/group/wp-content/themes/kyoaikai-group/images/animation/H_wait.png');
  --img-touch: url('/group/wp-content/themes/kyoaikai-group/images/animation/H_touch.png');
}

/* Eにバトンタッチした後の「歩き」用画像設定 */
#A.is-walking[data-step=left] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/A_walk_left.png");
}

#A.is-walking[data-step=right] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/A_walk_right.png");
}

#A.is-walking[data-step=wait] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/A_walk_wait.png");
}

#H.is-family[data-step=left] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/I_family_left.png");
}

#H.is-family[data-step=right] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/I_family_right.png");
}

#H.is-family[data-step=wait] .inner {
  background-image: url("/group/wp-content/themes/kyoaikai-group/images/animation/I_family_wait.png");
}

/* 左下基準で小さくするための設定 */
.character {
  transform-origin: left bottom;
}

/* 空演出 */
/* --- 空の背景 --- */
#sky-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 0%〜70%くらいまで水色を引っ張ることで、上が白くなるのを防ぎます */
  background: linear-gradient(to bottom, #add8e6 0%, #add8e6 70%, #ffffff 100%);
  z-index: 1;
}

/* --- 雲の共通スタイル --- */
.cloud {
  position: absolute;
  background: url("/group/wp-content/themes/kyoaikai-group/images/animation/cloud.png") no-repeat center/contain; /* 雲の画像があれば指定 */
  /* background: rgba(255,255,255,0.7); /* 画像がない場合の仮の白雲 */
  border-radius: 50%; /* もし仮の雲なら丸く */
  filter: blur(5px); /* 軽くぼかす */
  opacity: 0.9;
}

/* 雲のサイズと初期位置（奥行きを表現） */
.cloud-1 {
  width: 300px;
  height: 100px;
  top: 10%;
  left: -300px;
  opacity: 0.7;
}

.cloud-2 {
  width: 200px;
  height: 70px;
  top: 25%;
  left: -150px;
  opacity: 0.8;
}

.cloud-3 {
  width: 250px;
  height: 80px;
  top: 5%;
  left: -500px;
  opacity: 0.6;
}

.cloud-4 {
  width: 150px;
  height: 50px;
  top: 35%;
  left: -250px;
  opacity: 0.9;
}

#photo-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 500;
  transition: top 0.5s ease;
  z-index: 2;
}

/* スマホ時（767px以下）の photo-container を調整 */
@media screen and (max-width: 767px) {
  #photo-container {
    /* ここで全体の高さを調整します */
    top: 150px; /* 数値を大きくして位置を下げます */
  }
}
/* 高さのあるデバイス用の既存設定 */
#photo-container.is-tall {
  top: 100px;
}

.photo-item {
  position: absolute;
  width: 360px;
  height: 360px;
  will-change: transform;
}

/* スマホ用のCSS例 */
@media screen and (max-width: 767px) {
  .photo-item {
    width: 180px !important;
    height: 180px !important;
  }
}
/* --- photo-containerの微調整 --- */
#photo-container {
  transition: top 0.5s ease; /* リロード時やサイズ変更時の動きを滑らかに */
}

/* 高さ836px以上の時、位置を下げる */
#photo-container.is-tall {
  top: 100px; /* 下げたい分だけ数値を調整してください */
}

/* 幅1440px以上 且つ 高さ836px以上の時、アイテムを大きくする */
#photo-container.is-large-view .photo-item {
  width: 480px; /* 既存の360pxから1.3倍程度の例 */
  height: 480px;
}

.blob-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #eee;
  border-radius: 50%;
}

.blob-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.illust-item {
  position: absolute;
  width: 90px;
  pointer-events: none;
  will-change: transform;
}
@media screen and (max-width: 767px) {
  .illust-item {
    display: none;
  }
}

#f_home {
  position: absolute; /* 念のため追記 */
  z-index: 5;
  bottom: 100px;
  left: 80px; /* JSの座標計算を活かすため、基準を左端にする */
  transform: none; /* JSのx移動と競合するため解除 */
  width: 100px;
  height: auto;
  opacity: 0; /* 初期状態は透明 */
  pointer-events: none; /* アニメーションの邪魔にならないよう設定 */
}

/* -------------------------------------------------------------------------------------
コンセプト部分
--------------------------------------------------------------------------------------- */
.section-concept {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/top/concept_bg.jpg);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  padding-bottom: 60px;
}
@media screen and (max-width: 767px) {
  .section-concept {
    background-size: auto 100%;
  }
}

.top-concept-message {
  width: 90%;
  height: 100%;
  padding: 20.571vw 0 14.286vw;
  margin: 0 0 0 10%;
  display: block;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/top/area_map.png);
  background-repeat: no-repeat;
  background-position: right 70%;
  background-size: 60% auto;
}
@media screen and (max-width: 767px) {
  .top-concept-message {
    width: 100%;
    height: 100%;
    padding: 80.571vw 2.5% 30px;
    margin: 0;
    text-align: center;
    background-repeat: no-repeat;
    background-position: center 70px;
    background-size: 100% auto;
  }
}
.top-concept-message p {
  font-size: 2.286vw;
  line-height: 2;
  font-weight: 900;
  color: var(--color-primary);
}
@media screen and (max-width: 767px) {
  .top-concept-message p {
    font-size: 16px;
  }
}

.area-map {
  display: block;
  width: 100%;
  position: relative;
  left: 0;
  top: 0;
}
@media screen and (max-width: 767px) {
  .area-map {
    display: none;
  }
}

#toggle-story-btn {
  position: absolute;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
}
@media screen and (max-width: 767px) {
  #toggle-story-btn {
    position: relative;
    left: 50%;
    bottom: 10%;
    top: 0;
    transform: translateX(-50%);
    margin-left: -20px;
  }
}

/* 閉じるボタンのスタイル */
.story-close-btn {
  position: absolute;
  top: 90px;
  right: 60px;
  bottom: auto;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}

.story-close-btn:hover {
  transform: scale(1.1);
}

.close-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border: 1px solid var(--h-green);
  border-radius: 50%;
}

/* バツ印の作成 */
.close-icon::before,
.close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background-color: var(--h-green);
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-text {
  font-size: 10px;
  font-weight: bold;
  color: var(--h-green);
  letter-spacing: 0.1em;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .story-close-btn {
    top: auto;
    bottom: 27px;
    right: 50%;
    margin-right: -20px;
  }
}
/* -------------------------------------------------------------------------------------
スクロールアニメーション
--------------------------------------------------------------------------------------- */
html {
  scrollbar-gutter: stable;
}

body.is-locked {
  overflow: hidden !important;
}

/* --- Horizontal Slide Story Styles --- */
:root {
  --h-green: #16a34a;
  --h-bg: #EEF7FF;
  --h-text: #3f3f46;
  --h-border: #e5e7eb;
}

.section-slide-story {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--h-bg);
  z-index: 10;
}

/* 固定背景（空と丘） */
.story-fixed-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.story-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgb(238, 247, 255), #ffffff);
}

.story-hills {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 25vh;
}
@media screen and (max-width: 767px) {
  .story-hills {
    display: none;
  }
}

/* ナビゲーション（横並び・固定アンカー） */
.story-nav {
  position: absolute;
  top: 90px;
  left: 4.167vw;
  z-index: 50;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.story-nav-item {
  height: 32px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid var(--h-border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  cursor: pointer;
  transition: border 0.3s, box-shadow 0.3s;
  color: var(--h-green);
  padding: 0;
  width: 32px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  outline: none;
}

.story-nav-num {
  flex-shrink: 0;
  width: 32px;
  text-align: center;
  font-size: 11px;
  font-weight: bold;
}

.story-nav-text {
  font-size: 11px;
  font-weight: bold;
  white-space: nowrap;
  margin: 0 auto !important;
  max-width: 0;
  opacity: 0;
}

/* コンテンツパネル */
.story-panels {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.story-panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 40px;
  opacity: 0;
  visibility: hidden;
}
@media screen and (max-width: 767px) {
  .story-panel {
    padding: 0;
  }
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1220px;
  padding: 0 4.167vw;
  gap: 60px;
  position: absolute;
  bottom: 50%;
  transform: translateY(50%);
}
@media (max-width: 1023px) {
  .story-grid {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 1220px;
    gap: 0;
    position: relative;
    bottom: 0;
    transform: translateY(20px);
  }
}

@media (min-width: 1024px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* テキスト・見出し */
.story-text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-content: center;
}
@media (max-width: 1023px) {
  .story-text-content {
    margin-bottom: 30px;
  }
}

.story-label-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.story-main-title {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 900;
  color: var(--h-green);
  margin: 0 0 15px;
  line-height: 1.1;
}

.story-category {
  font-size: 1rem;
  font-weight: bold;
  color: var(--h-green);
  opacity: 0.8;
}

.story-sub-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 24px;
  line-height: 1.4;
}

.story-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #52525b;
  margin-bottom: 32px;
}

.story-id {
  font-family: var(--font-family-base);
  position: relative;
  top: -17px;
}

/* ボタン */
.story-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 32px 7px;
  font-size: 14px;
  border: 2px solid var(--h-green);
  color: var(--h-green);
  border-radius: 9999px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  width: fit-content;
  pointer-events: auto !important; /* 強制的にクリックを許可 */
}
@media screen and (max-width: 767px) {
  .story-btn {
    margin: 0 auto;
  }
}

.story-btn:hover {
  background-color: var(--h-green);
  color: white;
}

/* ビジュアル（画像） */
.story-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-photo-frame {
  width: 100%;
  aspect-ratio: 4/3;
  background: #fff;
  border-radius: 120px 40px 120px 40px;
  border: 8px solid #fff;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .story-photo-frame {
    border-radius: 20px;
  }
}

.story-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-illust-floating {
  position: absolute;
  bottom: -30px;
  right: -20px;
  width: 200px;
  z-index: 20;
}
@media screen and (max-width: 767px) {
  .story-illust-floating {
    width: 130px;
    bottom: -60px;
    right: 0;
  }
}

.story-people-box {
  width: 180px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  bottom: -9.286vw;
  z-index: 2;
}
@media screen and (max-width: 767px) {
  .story-people-box {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 90px;
    height: 90px;
  }
}

/* --- スマホ向けスライドストーリー調整 --- */
@media screen and (max-width: 767px) {
  #horizontal-slide-story {
    touch-action: none;
  }
  .story-grid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 20px;
  }
  .story-main-title {
    font-size: 1.5rem;
  }
  .story-sub-title {
    font-size: 1rem;
  }
  .story-desc {
    font-size: 15px;
    line-height: 1.6;
  }
  /* モバイルで見切れないようビジュアルサイズを調整 */
  .story-visual {
    margin-top: 20px;
    max-height: 30vh;
  }
}
/* ロック中のスクロール禁止を確実に */
body.is-locked {
  overflow: hidden !important;
  height: 100% !important;
}

/* スマホ用ボタンのスタイル */
.story-mobile-controls {
  display: flex;
  justify-content: space-between;
  position: absolute;
  right: auto;
  left: 20px;
  top: auto;
  bottom: 50px;
  width: 120px;
  padding: 0 10px;
  z-index: 100;
  pointer-events: none; /* ボタン以外を透過 */
}
@media screen and (min-width: 769px) {
  .story-mobile-controls {
    position: absolute;
    left: auto;
    right: 120px;
    bottom: auto;
    top: 90px;
  }
}

.story-ctrl-btn {
  pointer-events: auto;
  background: rgba(22, 163, 74, 0.8);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
}

@media screen and (max-width: 767px) {
  /* スマホでは縦ロックしないので、タッチアクションを戻す */
  #horizontal-slide-story {
    touch-action: pan-y; /* 上下スクロールは許可 */
  }
}
.history {
  display: flex;
  padding-bottom: 6.944vw;
}
@media screen and (max-width: 767px) {
  .history {
    display: block;
  }
}

.history-img {
  width: 40%;
  border-radius: 0 8.333vw 0 0;
  position: sticky;
  top: 120px; /* ヘッダーの高さ分下げる */
  width: 50%;
  height: calc(100vh - 120px); /* 画面全体の高さからヘッダー分を引く */
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  .history-img {
    border-radius: 0;
    width: 100%;
    position: relative;
    top: 0;
  }
}
.history-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.history-img img.active {
  opacity: 1;
}

.history-container {
  width: 60%;
}
@media screen and (max-width: 767px) {
  .history-container {
    width: 100%;
  }
}
.history-container {
  /*padding: 50vh 0;  最初と最後を中央に寄せるための余白 */
}

/* 元号セクションの親要素 */
.era-section {
  display: flex;
  position: relative;
  margin: 0 6.944vw 0 2.778vw;
  padding: 10px 0;
  border-top: #F0F0F0 solid 3px;
  position: relative;
}
.era-section::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  top: -3px;
}
@media screen and (max-width: 767px) {
  .era-section {
    margin: 0 5%;
    width: 90%;
  }
}

/* 元号ラベル（明治、昭和など） */
.era-label {
  width: 100px;
  color: var(--color-primary);
  font-weight: bold;
  margin: 0;
  padding: 7px 0 0 15px;
}

/* リスト全体のスタイル */
.history-list {
  width: calc(100% - 100px);
  font-family: "Zen Kaku Gothic New", sans-serif;
}
@media screen and (max-width: 767px) {
  .history-list {
    width: 100%;
  }
}

.history-list::after {
  content: "";
  clear: both;
  height: 0;
  display: block;
  visibility: hidden;
}

/* 年の部分 */
.history-list dt {
  width: 80px; /* 年の部分の幅 */
  padding: 8px 0 7px;
  font-weight: bold;
  float: left;
}
@media screen and (max-width: 767px) {
  .history-list dt {
    padding: 8px 0 7px 15px;
    width: 100%;
    float: none;
  }
}

/* 出来事の部分 */
.history-list dd {
  padding: 8px 0 7px 80px;
}
@media screen and (max-width: 767px) {
  .history-list dd {
    padding: 8px 0 7px 15px;
    font-size: 14px;
  }
}

/* dd内のリスト形式のスタイル */
.history-list dd ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.history-list dd li {
  margin-bottom: 8px;
  position: relative;
  list-style: disc outside;
  margin-left: 20px;
}

.greeting {
  display: flex;
  width: 100%;
}
@media screen and (max-width: 767px) {
  .greeting {
    display: block;
  }
}

.greeting-body {
  width: 55%;
  padding-right: 6.944vw;
}
@media screen and (max-width: 767px) {
  .greeting-body {
    width: 100%;
    padding-right: 0;
  }
}
.greeting-body p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 3.125vw;
}

.greeting-img {
  width: 45%;
}
@media screen and (max-width: 767px) {
  .greeting-img {
    width: 100%;
    padding-bottom: 6.944vw;
  }
}

.g-info {
  width: 100%;
  text-align: right;
  padding-top: 25px;
}
.g-info dt {
  font-size: 1rem;
}
.g-info dd {
  font-size: 1.5rem;
}
.g-info dd span {
  font-size: 0.875rem;
  display: inline-block;
  margin-right: 10px;
  position: relative;
  top: -2px;
}

.recommend-nav {
  width: 100%;
  padding: 6.944vw;
  background-color: var(--color-bg-footer);
  display: flex;
  gap: 0px 50px;
}
@media screen and (max-width: 767px) {
  .recommend-nav {
    display: block;
  }
}
.recommend-nav li {
  width: 33.3%;
  min-height: 200px;
}
@media screen and (max-width: 767px) {
  .recommend-nav li {
    width: 100%;
    min-height: auto;
    margin: 10px 0;
  }
}
.recommend-nav li a {
  width: 100%;
  min-height: 200px;
  display: block;
  background: #fff;
  border-radius: 2.083vw;
  padding: 3.472vw;
  font-size: 2.222vw;
  font-weight: 600;
  color: var(--color-text);
  position: relative;
}
@media screen and (max-width: 767px) {
  .recommend-nav li a {
    font-size: 24px;
    padding: 15px;
    min-height: 150px;
  }
}
.recommend-nav li a .more {
  display: flex;
  font-size: 1rem;
  position: absolute;
  right: 2.083vw;
  bottom: 2.083vw;
  align-items: center;
  color: var(--color-primary);
}
@media screen and (max-width: 767px) {
  .recommend-nav li a .more {
    font-size: 14px;
  }
}

.nav-title {
  position: relative;
}

.nav-title::before {
  content: "";
  display: block;
  width: 50px;
  height: 5px;
  background-color: var(--color-primary);
  position: absolute;
  left: 0;
  bottom: -20px;
}

.dli-arrow-right {
  display: inline-block;
  background-color: var(--color-primary);
  line-height: 1;
  position: relative;
  width: 45px;
  height: 45px;
  border-radius: 28px;
  margin-left: 15px;
}

.dli-arrow-right::before {
  content: "";
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-left: 0;
  border-bottom: 0;
  transform: rotate(45deg);
  transform-origin: top right;
  position: absolute;
  top: 23px;
  left: 20px;
  box-sizing: border-box;
}

.dli-arrow-right::after {
  display: block;
  content: "";
  width: 16px;
  height: 2px;
  background-color: #fff;
  position: absolute;
  top: 22px;
  left: 12px;
}

/* --- 全体コンテナ --- */
.yakusoku {
  padding-bottom: 6.944vw;
}

/* --- 親コンテナ（フェードインの起点） --- */
.yakusoku-copy,
.yakusoku-read {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* アニメーション実行：JSで .is-animated が付与されたら表示 */
.yakusoku-copy.is-animated,
.yakusoku-read.is-animated {
  opacity: 1;
  transform: translateY(0);
}

/* --- コンテンツレイアウト --- */
.yakusoku-copy {
  display: block;
  margin-bottom: 6.944vw;
}
@media screen and (max-width: 767px) {
  .yakusoku-copy {
    margin-top: 15px;
  }
}

.yakusoku-copy p {
  margin: 0 0 30px 0;
  line-height: 1;
}
@media screen and (max-width: 767px) {
  .yakusoku-copy p {
    margin-bottom: 10px;
  }
}

/* 画像を囲む箱 */
.yakusoku-txt1,
.yakusoku-txt2 {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  height: 6.597vw;
  /* 帯用のoverflow: hiddenや擬似要素設定は不要になったため整理 */
}

/* 中の画像：シンプルに表示 */
.yakusoku-txt1 img,
.yakusoku-txt2 img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 1; /* 親のフェードインに連動するため1でOK */
}

/* リード文テキスト */
.yakusoku-read {
  font-size: 2.222vw;
  line-height: 2;
  font-weight: 600;
}
@media screen and (max-width: 767px) {
  .yakusoku-read {
    font-size: 16px;
    line-height: 1.75;
  }
}
.yakusoku-read p {
  margin: 0 0 2.222vw 0;
}
@media screen and (max-width: 767px) {
  .yakusoku-read p {
    margin: 0 0 25px 0;
  }
}

/* 以前 reveal-text だった部分も通常のテキストとして表示 */
.reveal-text {
  position: relative;
  display: inline-block;
  line-height: 1.8;
  vertical-align: bottom;
  color: inherit; /* 透明設定を解除 */
  opacity: 1;
}

/* 帯（擬似要素）を完全に無効化 */
.yakusoku-txt1::after,
.yakusoku-txt2::after,
.reveal-text::after {
  display: none !important;
}

/* --- 理念セクション --- */
.philosophy {
  position: relative;
  padding: 6.944vw 0;
}
.philosophy::before {
  display: block;
  content: "";
  background-color: var(--color-bg-footer);
  width: 100%;
  height: 100%;
  border-radius: 0 120px 0 0;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.philosophy-box {
  margin: 40px 0;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0px 0px 15px 15px #ebebeb;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/about/cross.png);
  background-size: 170px 170px;
  background-position: center center;
  background-repeat: no-repeat;
  text-align: center;
  display: flex;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .philosophy-box {
    display: block;
  }
}
.philosophy-box .thumb {
  width: 50%;
  padding: 7.5% 5%;
}
@media screen and (max-width: 767px) {
  .philosophy-box .thumb {
    width: 100%;
    padding: 20px 0;
  }
}
.philosophy-box .thumb img {
  width: 100%;
  max-width: 422px;
  height: auto;
  margin: 0 auto;
}
.philosophy-box .read {
  width: 50%;
  padding: 5%;
}
@media screen and (max-width: 767px) {
  .philosophy-box .read {
    width: 100%;
    padding: 5% 5% 10% 5%;
  }
}
.philosophy-box h3 {
  color: var(--color-primary);
  position: relative;
  margin-bottom: 50px;
  font-size: 18px;
}
@media screen and (min-width: 1000px) {
  .philosophy-box h3 {
    font-size: 32px;
  }
}
.philosophy-box h3::after {
  content: "";
  display: block;
  width: 50px;
  height: 5px;
  background-color: var(--color-primary);
  position: absolute;
  left: 50%;
  bottom: -20px;
  margin-left: -25px;
}
.philosophy-box h4 {
  margin-bottom: 30px;
}
@media screen and (max-width: 767px) {
  .philosophy-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
  }
}
@media screen and (min-width: 768px) {
  .philosophy-box h4 {
    font-size: 20px;
  }
}
@media screen and (min-width: 1000px) {
  .philosophy-box h4 {
    font-size: 36px;
  }
}

/* --- 組織セクション --- */
.organization {
  padding: 6.944vw;
}

.organization_img {
  padding: 5%;
}

/* --- 縦書き/横書きリード文 --- */
.concept-read {
  writing-mode: horizontal-tb;
  height: auto;
  top: 0;
  padding: 20px 6.944vw;
  line-height: 1.8;
  text-align: left;
}
.concept-read p {
  margin-top: 30px;
}
@media screen and (min-width: 1000px) {
  .concept-read {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 570px;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 0;
    font-size: 1rem;
    line-height: 2.4;
    letter-spacing: 0.05em;
    color: #333;
    font-weight: 600;
    position: relative;
    top: -100px;
  }
  .concept-read p {
    margin-left: 3em;
    margin-top: 0;
  }
  .concept-read p:last-child {
    margin-left: 0;
  }
}

@media screen and (min-width: 1000px) {
  .concept-read br {
    display: block;
    content: "";
    margin-top: 0.5em;
  }
}
/* -------------------------------------------------------------------------
  Featured Section Component
------------------------------------------------------------------------- */
.featured-section {
  padding: 0;
}

.featured__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* Header */
.p-featured__header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.p-featured__header-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.p-featured__header-line {
  flex-grow: 1;
  height: 1px;
  background-color: #eeeeee;
}

/* Grid System */
.p-featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .p-featured__grid {
    grid-template-columns: 1.8fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    height: 640px;
    gap: 20px;
  }
}
/* --- Card Components (Base) --- */
.c-f-card {
  position: relative;
  overflow: hidden;
  display: flex;
}

.c-f-card__link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.c-f-card__image-box {
  width: 100%;
  height: 100%;
}

.c-f-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  opacity: 1;
}

/* Content Overlay */
.c-f-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
@media screen and (max-width: 767px) {
  .c-f-card__content {
    padding: 0 12px 12px;
  }
}

@media (min-width: 1024px) {
  .c-f-card--main .c-f-card__content {
    padding: 40px;
  }
}
/* Category & Title with White Background */
.c-f-card__category {
  display: block;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 0;
  letter-spacing: 0.05em;
}

.c-f-card__subtitle {
  display: inline-block;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px;
  letter-spacing: 0.05em;
}

.c-f-card__title {
  background-color: #fff;
  color: var(--color-text);
  display: inline;
  padding: 4px 10px;
  font-weight: 700;
  line-height: 1.6;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition: color 0.3s ease;
}
.c-f-card__title .kana {
  display: inline-block;
  font-size: small;
}

.c-f-card:hover .c-f-card__title {
  color: var(--color-primary);
}

/* Meta Info */
.c-f-card__meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  position: absolute;
  right: 5px;
  bottom: 3px;
}

/* --- Variant: Main (Left) --- */
.c-f-card--main {
  grid-row: 1/-1;
}

.c-f-card__title-wrapper {
  line-height: 1;
}

.c-f-card--main .c-f-card__title {
  font-size: 18px;
}

/* --- Variant: Sub (Right) --- */
.c-f-card--sub .c-f-card__title {
  font-size: 18px;
}

@media (max-width: 1023px) {
  .c-f-card--sub {
    height: 100%;
  }
}
.keywords-section {
  background: var(--color-bg-footer);
}

/* -------------------------------------------------------------------------
  Keyword Section Component
------------------------------------------------------------------------- */
.keywords-section {
  background: var(--color-bg-footer);
  padding: 80px 40px;
}
@media screen and (max-width: 767px) {
  .keywords-section {
    padding: 30px;
  }
}

.p-keywords__inner {
  max-width: var(--width-content);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .p-keywords__inner {
    display: block;
  }
}

.p-keywords__title {
  min-width: 200px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  margin-right: 40px;
}
@media screen and (max-width: 767px) {
  .p-keywords__title {
    display: block;
    width: 100%;
    margin: 0 0 20px;
  }
}

.p-keywords__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  list-style: none;
  margin: 0;
}

.p-keywords__item {
  display: block;
}

.c-keyword-tag {
  display: inline-block;
  padding: 8px 20px;
  background-color: #fff;
  border: 1px solid var(--color-border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition);
}

.c-keyword-tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: rgba(26, 115, 232, 0.05);
  transform: translateY(-2px);
}

/* -------------------------------------------------------------------------
  Latest Articles Section (Updated Layout)
------------------------------------------------------------------------- */
.section-latest {
  padding: 80px 40px 120px;
}
@media screen and (max-width: 767px) {
  .section-latest {
    padding: 30px 30px 60px;
  }
}
.section-latest .btn-center-wrap {
  display: none;
}
@media screen and (max-width: 767px) {
  .section-latest .btn-center-wrap {
    display: block;
  }
}

.s-l__container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: stretch;
}
@media screen and (max-width: 767px) {
  .s-l__container {
    display: block;
  }
}

@media (min-width: 1024px) {
  .s-l__container {
    flex-direction: row;
    gap: 80px;
  }
}
.s-l__sidebar {
  flex-shrink: 0;
  width: 320px;
  position: relative;
}

.s-l__sidebar .view-all-btn {
  position: absolute;
  bottom: 40px;
}
@media screen and (max-width: 767px) {
  .s-l__sidebar .view-all-btn {
    position: relative;
    bottom: 0;
    display: none;
  }
}

.s-l__heading {
  margin-bottom: 100px;
}
@media screen and (max-width: 767px) {
  .s-l__heading {
    margin-bottom: 30px;
  }
}

.s-l__heading-en {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.s-l__heading-jp {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 40px;
}

/* Main Grid Content (Right side) */
.s-l__main {
  flex-grow: 1;
}

.s-l__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px 40px;
}

@media (min-width: 640px) {
  .s-l__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Article Card Styles */
.c-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.c-article-card__img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1; /* 正方形に変更 */
  overflow: hidden;
  border-radius: 0;
  margin-bottom: 20px;
}

.c-article-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.c-article-card:hover .c-article-card__img {
  border-radius: 40px;
}

.c-article-card__date {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
  display: inline-block;
}

.c-article-card__category {
  font-size: 0.75rem;
  background-color: #01C19C;
  color: #fff;
  padding: 0 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  display: inline-block;
}

.c-article-card__title {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 12px 0;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.c-article-card:hover .c-article-card__title {
  color: var(--color-primary);
}

.section-popular {
  position: relative;
}
.section-popular .c-article-card__date {
  color: #fff;
}
.section-popular .c-article-card__title {
  color: #fff;
}
.section-popular .headline2 {
  margin-bottom: 110px;
}
@media screen and (max-width: 767px) {
  .section-popular .headline2 {
    margin-bottom: 40px;
  }
}

.section-popular a:hover .c-article-card__date,
.section-popular a:hover .c-article-card__title {
  color: #98C50B;
}

.section-popular .inner {
  padding-top: 150px;
  padding-bottom: 100px;
  background-color: var(--color-primary);
  clip-path: ellipse(100% 70% at 50% 70%);
}
@media screen and (max-width: 767px) {
  .section-popular .inner {
    clip-path: ellipse(200% 70% at 50% 70%);
  }
}

.popular-parts {
  width: 384px;
  height: 281px;
  position: absolute;
  right: 6.944vw;
  top: 0px;
}
@media screen and (max-width: 767px) {
  .popular-parts {
    width: 192px;
    height: 140px;
  }
}

/* -------------------------------------------------------------------------
  特集詳細
------------------------------------------------------------------------- */
.page-featured {
  padding: 0;
}

.featured-post-mv {
  margin-bottom: 6.944vw;
}
@media screen and (max-width: 767px) {
  .featured-post-mv {
    padding-top: 76px;
  }
}

.featured-post-body {
  margin: 0 auto;
}

.featured-post-body .headding {
  margin-bottom: 3.944vw;
}

.featured-post-body .headding .sub-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 20px;
}
@media screen and (max-width: 767px) {
  .featured-post-body .headding .sub-title {
    font-size: 14px;
    margin-bottom: 10px;
  }
}

.featured-post-body .headding h2 {
  font-size: 28px;
  border-bottom: #D5D5D5 solid 1px;
  padding-bottom: 10px;
  margin-bottom: 15px;
}
@media screen and (max-width: 767px) {
  .featured-post-body .headding h2 {
    font-size: 18px;
  }
}

.discription {
  margin-bottom: 3.944vw;
}

.index-member {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 3.944vw;
}
@media screen and (min-width: 768px) {
  .index-member {
    flex-wrap: wrap;
  }
}
@media screen and (min-width: 1000px) {
  .index-member {
    flex-wrap: nowrap;
  }
}
@media screen and (max-width: 767px) {
  .index-member {
    display: block;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 3.944vw;
  }
}

.member-info {
  position: relative;
  padding: 2em;
  text-align: center;
  background-color: var(--color-bg-footer);
  border-radius: 20px;
  font-weight: 600;
}
@media screen and (min-width: 768px) {
  .member-info {
    width: 47%;
  }
}
@media screen and (min-width: 1000px) {
  .member-info {
    width: 25%;
  }
}
@media screen and (max-width: 767px) {
  .member-info {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
  }
}
.member-info .member-face {
  width: 140px;
  height: 140px;
  margin: 0 auto;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 50%;
}
@media screen and (max-width: 767px) {
  .member-info .member-face {
    width: 100px;
    height: 100px;
    margin: 0;
  }
}
.member-info .name {
  font-size: 1.25rem;
  margin-bottom: 7px;
}
@media screen and (max-width: 767px) {
  .member-info .name {
    font-size: 16px;
  }
}

.member-info::before {
  content: "";
  display: block;
  width: 38px;
  height: 38px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/ico_cross2.png);
  background-repeat: no-repeat;
  background-size: contain;
}
@media screen and (max-width: 767px) {
  .member-info::before {
    position: absolute;
    left: 10px;
    top: 10px;
  }
}

@media screen and (max-width: 767px) {
  .member-name-details {
    text-align: left;
    width: calc(100% - 100px);
    padding-left: 10px;
    font-size: 14px;
    font-weight: 400;
  }
  .member-name-details .detail {
    padding-left: 0;
    text-align: left;
  }
}
.index-list {
  padding: 4% 2%;
  margin-bottom: 3.944vw;
  border-radius: 20px;
  background-color: rgba(1, 162, 62, 0.05);
  display: flex;
  gap: 20px;
}
@media screen and (max-width: 767px) {
  .index-list {
    display: block;
  }
}
.index-list dl {
  width: 50%;
  max-width: 100%;
  padding: 1% 2%;
  line-height: 1.75;
}
@media screen and (max-width: 767px) {
  .index-list dl {
    width: 100%;
    padding: 4%;
  }
}
.index-list dl dt {
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 15px;
}
.index-list dl dd {
  font-size: 1rem;
}
.index-list dl dd li {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 7px;
}
.index-list dl dd li a {
  text-decoration: underline;
  color: var(--color-text);
}
.index-list dl dd li a:hover {
  text-decoration: none;
}

.featured-post-body .index-list dl dd li:not(:last-child) {
  margin-bottom: 7px;
}

.featured-post-body .index-list dl dd p:not(:last-child) {
  margin-bottom: 15px;
}

.featured-post-body .index-list dl:nth-child(2n) {
  border-left: solid 1px #D5D5D5;
}
@media screen and (max-width: 767px) {
  .featured-post-body .index-list dl:nth-child(2n) {
    border-top: solid 1px #D5D5D5;
    border-left: none;
  }
}

.post-body-content {
  padding-bottom: 6.944vw;
}

.featured-post-body .post-body-content h1 {
  font-size: 1.75rem;
  color: var(--color-primary);
  margin: 5rem 0 2rem 0;
}

.featured-post-body .post-body-content h2 {
  font-size: 1.5rem;
  border-bottom: #D5D5D5 solid 1px;
  padding-bottom: 10px;
  margin: 5rem 0 2rem 0;
}
@media screen and (max-width: 767px) {
  .featured-post-body .post-body-content h2 {
    font-size: 1.25rem;
    padding-bottom: 10px;
    margin: 0 0 2rem;
  }
}

.featured-post-body .post-body-content h3 {
  color: var(--color-primary);
  font-size: 1.25rem;
  margin: 5rem 0 2rem 0;
}
@media screen and (max-width: 767px) {
  .featured-post-body .post-body-content h3 {
    font-size: 1rem;
    margin: 0 0 2rem 0;
  }
}

.featured-post-body .post-body-content p:not(:last-child) {
  margin-bottom: 2rem;
}

@media screen and (max-width: 767px) {
  .featured-post-body .post-body-content p {
    font-size: 15px;
    line-height: 1.75;
  }
}
.fukidasi-block {
  display: flex;
  align-items: start;
  margin-bottom: 15px;
}

.face-wrap {
  width: 140px;
  margin-right: 60px;
}
@media screen and (max-width: 767px) {
  .face-wrap {
    width: 70px;
    margin-right: 20px;
  }
}
.face-wrap .face {
  border-radius: 50%;
  overflow: hidden;
}
.face-wrap .name {
  display: block;
  text-align: center;
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 600;
  margin: 5px auto;
  width: 100%;
}

.comment {
  width: calc(100% - 200px);
}

.comment {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 2.5%;
  border: 1px solid #D5D5D5;
  border-radius: 8px;
  background-color: #ffffff;
  text-align: left;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #000000;
}

.comment::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 0;
  border-style: solid;
  border-width: 7.5px 15px 7.5px 0;
  border-color: transparent #D5D5D5 transparent transparent;
  translate: -100% -50%;
}
@media screen and (max-width: 767px) {
  .comment::before {
    top: 30px;
  }
}

.comment::after {
  content: "";
  position: absolute;
  top: 54px;
  left: 0;
  border-style: solid;
  border-width: 6.4px 12.8px 6.4px 0;
  border-color: transparent #ffffff transparent transparent;
  translate: -100% -50%;
}
@media screen and (max-width: 767px) {
  .comment::after {
    top: 30px;
  }
}

.page-contents table,
article table {
  border-collapse: separate !important;
  border-spacing: 20px 0 !important;
  width: calc(100% + 40px) !important;
  margin-left: -20px !important;
  table-layout: fixed !important;
}

.page-contents table td,
article table td {
  padding: 0 !important;
  width: 50% !important;
}

.page-contents table td img,
article table td img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
}

@media screen and (max-width: 767px) {
  .page-contents table,
  .page-contents tbody,
  .page-contents tr,
  .page-contents td {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    border-spacing: 0 !important;
  }
  .page-contents table td:first-child {
    margin-bottom: 20px !important;
  }
}
/* NEWS
--------------------------------------------------------------------------------------------------------------------------------------------- */
.post-section {
  padding: 6.944vw;
  display: flex;
  flex-direction: row-reverse;
  background: var(--color-bg-footer);
}
@media screen and (max-width: 767px) {
  .post-section {
    display: block;
    gap: 0;
  }
}
.post-section.is-details {
  padding: 0 6.944vw 6.944vw;
  background: #fff;
}
@media screen and (max-width: 767px) {
  .post-section {
    flex-direction: row;
  }
}

.side-menu {
  width: 220px;
}
@media screen and (max-width: 767px) {
  .side-menu {
    width: 100%;
  }
}
.side-menu h2 {
  margin-bottom: 30px;
}
.side-menu li {
  font-weight: 600;
}
.side-menu li a {
  display: block;
  padding: 7px 0;
  color: var(--color-text);
  transition: 0.3s;
}

.side-menu li a:hover {
  color: var(--color-primary);
}

.news-contents {
  width: calc(100% - 220px);
}
@media screen and (max-width: 767px) {
  .news-contents {
    width: 100%;
  }
}

.news-list li {
  margin-bottom: 10px;
}
@media screen and (max-width: 767px) {
  .news-list li {
    margin-bottom: 20px;
  }
}
.news-list li a {
  padding: 2.5%;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-radius: 20px;
  transition: 0.3s;
  box-shadow: 0px 0px 10px 5px #f0f0f0;
}
@media screen and (max-width: 767px) {
  .news-list li a {
    display: block;
    padding: 5%;
  }
}

.news-list li a:hover {
  background-color: #01C19C;
  box-shadow: 0;
}
.news-list li a:hover .date {
  color: #fff;
}
.news-list li a:hover p {
  color: #fff;
}

.date {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
}

.cat {
  display: inline-block;
  padding: 3px 20px 1px;
  margin: 0 20px;
  background-color: #01C19C;
  color: #fff;
  font-weight: 600;
  border-radius: 20px;
  font-size: 14px;
}

.news-list p {
  color: var(--color-text);
}
@media screen and (max-width: 767px) {
  .news-list p {
    padding: 5% 0 0;
  }
}

.news-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: #ddd solid 1px;
}
.news-header h2 {
  margin-top: 15px;
}
@media screen and (max-width: 767px) {
  .news-header h2 {
    font-size: 18px;
  }
}

.news-body {
  padding-bottom: 20px;
}
.news-body p {
  margin-bottom: 2em;
}
.news-body img {
  max-width: 100%;
  height: auto;
}

/* ------------------------------------ 
一覧に戻るボタン
--------------------------------------- */
.post-navigation {
  padding: 80px 0;
  border-top: 1px solid #e0e0e0;
}
@media screen and (max-width: 767px) {
  .post-navigation {
    padding: 40px 0 80px;
  }
}

.post-navigation__inner {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .post-navigation__inner {
    display: block;
    width: 100%;
    position: relative;
  }
}

.post-navigation__link a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
  font-size: 16px;
  font-weight: bold;
  transition: opacity 0.3s ease;
}

@media screen and (max-width: 767px) {
  .post-navigation__link {
    position: absolute;
  }
  .post-navigation__link.post-navigation__link--prev {
    display: none;
  }
  .post-navigation__link.post-navigation__link--next {
    display: none;
  }
  .post-navigation__link.post-navigation__link--back {
    top: 0;
    left: 50%;
    margin-left: -70px;
  }
}
.post-navigation__link a .link-text {
  position: relative;
}

.post-navigation__link a .link-text:before {
  content: "";
  display: block;
  width: 10px;
  height: 3px;
  background: var(--color-primary);
  transition: 0.3s;
  position: absolute;
  left: 0;
  bottom: -10px;
}

.post-navigation__link a:hover .link-text:before {
  width: 100%;
}

/* 矢印アイコンのベースデザイン */
.arrow-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px; /* デザインに合わせて調整 */
  height: 44px;
  background-color: var(--color-primary);
  border-radius: 8px; /* デザイン通りの角丸 */
  flex-shrink: 0;
}

.arrow-icon img {
  width: 16px; /* 矢印のサイズ調整 */
  height: auto;
}

/* 「前へ」「一覧へ」は右向き画像を180度回転させて左向きにする */
.arrow-icon.is-prev img {
  transform: rotate(180deg);
}

/* 各パーツ間の余白調整 */
.post-navigation__link--prev .arrow-icon,
.post-navigation__link--back .arrow-icon {
  margin-right: 15px;
}

.post-navigation__link--next .arrow-icon {
  margin-left: 15px;
}

/* レスポンシブ：SP表示 */
@media (max-width: 767px) {
  .post-navigation__inner {
    gap: 15px;
  }
  .post-navigation__link a {
    font-size: 14px;
  }
  .arrow-icon {
    width: 36px;
    height: 36px;
  }
  .arrow-icon img {
    width: 12px;
  }
}
.f_image-block {
  width: 100%;
  margin: 30px 0;
}

.f_image-block img {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

/* ---------------------------------
ページネーション
 ----------------------------------- */
.pagination {
  position: relative;
  width: 100%;
  text-align: center;
}

.pagination ul {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  position: relative;
  padding: 0 122px;
}

.pagination ul li .page-numbers {
  display: block;
  width: 35px;
  height: 35px;
  line-height: 35px;
  text-align: center;
}

.pagination .current {
  display: inline-block;
  position: relative;
  background: #F4F4F2;
}

.pagination ul li .prev,
.pagination ul li .next {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: auto;
  height: auto;
}

.pagination .prev {
  left: 0;
  padding-left: 20px;
}

.pagination .next {
  right: 0;
  padding-right: 20px;
}

.pagination .prev::after,
.pagination .next::before {
  content: " ";
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 6px;
  height: 18px;
  background-image: url(/group/wp-content/themes/kyoaikai-group/images/common/ico_chevron.svg);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

.pagination .prev::after {
  left: 0;
  -webkit-transform: translateY(-50%) scale(-1, 1);
  transform: translateY(-50%) scale(-1, 1);
  -webkit-filter: FlipH;
  filter: FlipH;
  -ms-filter: "FlipH";
}

.pagination .next::before {
  right: 0;
}/*# sourceMappingURL=style.css.map */