@charset "utf-8";

/* ==========================================================================
   0. 全体共通・基本スタイル（他ページへの影響最小化）
   ========================================================================== */
.entry-categories a, 
.post-categories a, 
.vk_post_category a {
  font-size: 11px !important;
  padding: 2px 6px !important;
  line-height: 1.2 !important;
}

@media screen and (max-width: 767px) {
  .headline {
    font-size: 1.5rem !important;
  }
}

/* ==========================================================================
   1. メインビジュアルエリア (.main_visual) - アニメーション完全同期確定版
   ========================================================================== */
/* メインビジュアルの内側を包むコンテナ */
.main_visual .main_visual__inner {
  position: relative; /* 子要素（カプセル見出しなど）の絶対配置の基準点 */
}

/* ─── 【PC・スマホ共通：カプセル型見出しと文字を常時100%強制表示】 ─── */
#pc-mv-headline-capsule {
  display: block !important;
  visibility: visible !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 9999 !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  bottom: auto !important;
   
  /* 【位置調整】スマホ画面の時の配置：画像の上部12%の位置に固定 */
  top: 12% !important; 
  max-width: 90% !important; /* スマホ画面からはみ出さないようガード */
}

/* 白いカプセル型の外枠（h2）の基本設定 */
#pc-mv-headline-capsule h2 {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
  border-radius: 100px !important; /* 完璧な楕円カプセル */
  margin: 0 !important;
  text-align: center !important;
  width: max-content !important;
  max-width: 100% !important;
   
  /* 【修正】はみ出た文字をカプセルの型でマスクし、外から見えないようにする */
  overflow: hidden !important;
   
  /* 【スマホサイズ】スリムで美しい肉厚に調整 */
  padding: 8px 16px !important; 
  white-space: normal !important; /* スマホで長文になっても綺麗に折り返す設定 */
}

/* カプセル内の文字（キャッチフレーズ）の基本設定 */
#pc-mv-headline-capsule h2 span {
  display: block !important;
  visibility: visible !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  /* PCでは1行（スペースはただの隙間）、スマホではスペースの位置で強制改行 */
  white-space: pre-wrap !important;
   
  /* 【修正：フォントを Noto Sans JP に指定】 */
  font-family: 'Noto Sans JP', sans-serif !important;
   
  /* 高級感のある濃い緑色（#187042）で確実に文字を露出・表示 */
  color: #187042 !important;
  -webkit-text-fill-color: #187042 !important;
  background: none !important;
   
  /* 【スマホ文字サイズ】スマホ版でもカプセル見出しと文字を表示（18px大文字） */
  font-size: 18px !important; 
   
  /* ─── 【重要修正：左から右への滑らかなアニメーション初期状態（スマホ最適化）】 ───
      スマホの幅に合わせて開始位置を「左に25pxズレ」に調整し、カプセルの内側から綺麗にフェードインさせます */
  opacity: 0;
  transform: translateX(-10px);
  animation: capsuleTxtFinalShowMobile 6.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards !important;
}

/* ─── 【PC表示（768px以上）の時のダイナミック最適化（文字を大きく・位置調整）】 ─── */
@media screen and (min-width: 768px) {
  #pc-mv-headline-capsule {
    /* 【位置調整】PCの時は上部15%の位置（画像の中心より上）にブレなく固定 */
    top: 30% !important; 
    max-width: 95% !important;
  }

  #pc-mv-headline-capsule h2 {
    padding: 22px 55px !important; /* ふっくらとしたPC用の美しい肉厚余白 */
    white-space: nowrap !important; /* PCでは1行で美しく見せる */
  }

  #pc-mv-headline-capsule h2 span {
    /* 【文字サイズ拡大】PCでは大迫力の38pxに拡大表示（文字表示を保証） */
    font-size: 38px !important; 
    white-space: nowrap !important;
     
    /* 【修正：PC側にもフォント指定を追加】 */
    font-family: 'Noto Sans JP', sans-serif !important;
     
    /* 【修正】PC表示ではしっかりダイナミックに動かすため「左に50pxズレ」で同期 */
    opacity: 0;
    transform: translateX(-20px);
    animation: capsuleTxtFinalShowPC 6.5s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards !important;
  }
   
  #pc-mv-headline-capsule h2 br {
    display: none !important;
  }
}

/* ─── 【スマホ表示（767px以下）：画像の右寄せはみ出しバグを完全に中央配置へリセット】 ─── */
@media screen and (max-width: 767px) {
  .main_visual,
  .main_visual__inner,
  .main_visual .swiper,
  .main_visual .swiper-container,
  .main_visual .swiper-wrapper,
  .main_visual .swiper-slide {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    left: 0 !important;
    right: 0 !important;
  }

  .main_visual .main_visual__inner .main_visual__img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important; /* ← auto から 100% に修正 */
    object-position: center center !important; 
    margin: 0 auto !important;
    display: block !important;
  }
}

/* スライダー（Swiper）全体のコンテナ（全画面表示・中央基準） */
.main_visual .main_visual__inner .main_visual__img {
  width: 100%;
  max-height: 550px;
  margin-right: 0;
  margin-left: 0;
  aspect-ratio: 12 / 9; /* アスペクト比を16:9に固定 */
}

/* スライダー内の各画像 */
.main_visual .main_visual__inner .main_visual__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper プログレスバーの土台 */
.main_visual .main_visual__inner .main_visual__img .swiper-progressbar {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 5px;
  background-color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Swiper プログレスバーの動くゲージ部分 */
.main_visual .main_visual__inner .main_visual__img .swiper-progressbar span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: inline-block;
  width: 100%;
  background-color: #019742;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  transform-origin: left center;
  transition-timing-function: linear;
}

/* ==========================================================================
   2. アバウトエリア (.home_about) 【完全維持】
   ========================================================================== */
.home_about {
  margin-top: calc(clamp(60px, calc(60px + 60 * ((var(--vw) * 100) - 320px) / 880), 120px) * 0.66);
}

@media screen and (max-width: 767px) {
  .home_about {
    margin-top: 10px; /* スマホ時の隙間を調整 */
  }
}

.home_about .home_about__rows .home_about__img {
  width: min(38.46%, 525px);
  margin-left: min(5%, 60px);
  float: right; 
}
.home_about .home_about__rows .home_about__text p {
  letter-spacing: 0.04em;
  line-height: 2.0;
}
.home_about .home_about__rows .home_about__text p:last-child {
  margin-bottom: 0;
}
.home_about .button {
  clear: both;
}
@media screen and (min-width: 980px) {
  .home_about {
    position: relative;
    z-index: 1;
  }
  .home_about .home_about__rows {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row-reverse; 
    gap: min(5%, 60px); 
  }
  .home_about .home_about__rows .home_about__img,
  .home_about .home_about__rows .home_about__text {
    flex-grow: 1;
    flex-basis: 525px;
  }
  .home_about .home_about__rows .home_about__img {
    margin-left: 0;
    float: none;
  }
}

/* ==========================================================================
   3. お知らせエリア (.home_news) 【新規統合・最適化】
   ========================================================================== */
.home_news {
  margin-top: clamp(60px, calc(60px + 60 * ((var(--vw) * 100) - 320px) / 880), 120px);
}

.news_head_wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5em;
}

.home_news .headline {
  margin-bottom: 0 !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  color: #001f4d !important;
}

.home_news .headline::after {
  background-image: linear-gradient(to bottom, #001f4d 0%, #0061c2 100%) !important;
}

.news_link_top {
  font-size: 14px;
  color: #001f4d;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 3px;
  border-bottom: 1px solid #001f4d;
  transition: opacity 0.3s;
}

.news_link_top:hover {
  opacity: 0.6;
}

.news_list {
  border-top: 2px solid #DDDDDD;
}

.news_item {
  border-bottom: 1px solid #DDDDDD;
  transition: background-color 0.3s ease;
}

.news_item:hover {
  background-color: #f9f9f9;
}

.news_item__inner {
  display: flex;
  align-items: center;
  padding: 1.5em 1em;
}

.news_item__date {
  font-size: 1.2em;
  color: #333333;
  margin-right: 2.5em;
  flex-shrink: 0;
}

.news_item__category {
  font-size: 12px;
  background-color: #001f4d;
  color: #fff !important;
  padding: 2px 8px;
  margin-right: 3.0em;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1.5;
  text-decoration: none !important;
}

.news_item__category:hover {
  opacity: 0.7;
}

.news_item__title {
  font-size: 16px;
  font-weight: 400;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.news_item__title a {
  color: #202020;
  text-decoration: none;
  display: block;
}

.news_item__title a:hover {
  text-decoration: underline;
}

@media screen and (max-width: 767px) {
  .news_head_wrap {
    align-items: center;
  }
  .news_item__inner {
    padding: 1.5em 0.5em;
    flex-wrap: wrap;
  }
  .news_item__date {
    font-size: 14px;
    margin-right: 1em;
  }
  .news_item__category {
    font-size: 12px;
    line-height: 1.8;
  }
  .news_item__title {
    width: 100%;
    margin-top: 0.5em;
    white-space: normal;
    font-size: 16px;
  }
}

/* ==========================================================================
   4. ビジネスエリア (.home_business) 【マージ・最適化】
   ========================================================================== */
.home_business {
  margin-top: clamp(60px, calc(60px + 60 * ((var(--vw) * 100) - 320px) / 880), 120px);
}

/* リード文カスタムスタイル */
.home_business .inner > p {
  font-size: 1.2rem !important; 
  font-weight: 500 !important;  
  line-height: 1.6 !important;  
  margin-bottom: 2em !important; 
  color: #333 !important;        
}

.home_business .business_list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px min(1.35%, 15px); 
}
.home_business .business_list li {
  display: flex;
  justify-content: flex-end;
  align-content: flex-end;
  flex-direction: column; 
  position: relative;
  z-index: 1;
  flex-basis: calc(50% - (min(1.35%, 15px))); 
  color: #fff;
  padding: min(11.11%, 40px) min(5%, 40px);
  aspect-ratio: 3 / 4; 
  opacity: 0;
  transform: translateY(-15%);
  transition: 0.6s ease-in-out;
}
.home_business .business_list li h4 {
  font-size: clamp(16px, calc(16px + 8 * ((var(--vw) * 100) - 320px) / 880), 24px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.1em;
  margin-bottom: 1.0em;
}
.home_business .business_list li h4 a {
  color: inherit;
  text-decoration: none;
}
.home_business .business_list li h4 a::after {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  content: '';
  width: 100%;
  height: 100%;
}
.home_business .business_list li p {
  flex-grow: 1;
  font-size: clamp(12px, calc(12px + 4 * ((var(--vw) * 100) - 320px) / 880), 16px);
  line-height: 2.0;
  letter-spacing: 0.04em;
}
.home_business .business_list li .business_list__img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1; 
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.home_business .business_list li .business_list__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s ease-out;
}
.home_business .business_list li .business_list__img::before {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  content: '';
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(32, 32, 32, 0) 0%, #202020 100%);
}
.home_business .business_list li::after {
  content: '';
  display: block;
  width: 1.25em;
  height: 1.25em;
  margin-left: auto; 
  background: url("../img/icon_arrow_white.svg") no-repeat 50% 50%/contain;
  transition: 0.4s ease-out;
}
.home_business .business_list li:nth-child(1) .business_list__img { border-radius: 1.25em 0 0 0; }
.home_business .business_list li:nth-child(2) .business_list__img { border-radius: 0 1.25em 0 0; }
.home_business .business_list li:nth-last-child(1) .business_list__img { border-radius: 0 0 1.25em 0; }
.home_business .business_list li:nth-last-child(2) .business_list__img { border-radius: 0 0 0 1.25em; }

.home_business .business_list li:hover .business_list__img img { transform: scale(1.2); }
.home_business .business_list li:hover::after { transform: translateX(0.5em); }

@media screen and (max-width: 767px) {
  /* スマホでのリード文調整 */
  .home_business .inner > p {
    font-size: 1.1rem !important;
  }
  
  /* 2列レイアウト崩れ・文字折り返し対策修正 */
  .home_business .business_list h4,
  .home_business .business_list h4 a {
    overflow-wrap: break-word !important; 
    word-break: break-all !important;     
    white-space: normal !important;      
    font-size: 14px !important;          
    line-height: 1.4 !important;         
  }
}

@media screen and (min-width: 980px) {
  .home_business .business_list li {
    flex-basis: calc(33.33% - (min(1.35%, 15px) - (min(1.35%, 15px) / 3)));
  }
  .home_business .business_list li:nth-child(2) .business_list__img { border-radius: 0; }
  .home_business .business_list li:nth-child(3) .business_list__img { border-radius: 0 1.25em 0 0; }
  .home_business .business_list li:nth-last-child(2) .business_list__img { border-radius: 0; }
  .home_business .business_list li:nth-last-child(3) .business_list__img { border-radius: 0 0 0 1.25em; }
}

.home_business .business_list.is-animated li {
  opacity: 1.0; 
  transform: translateY(0);
}
.home_business .business_list.is-animated li:nth-child(1) { transition-delay: 0s; }
.home_business .business_list.is-animated li:nth-child(2) { transition-delay: .2s; }
.home_business .business_list.is-animated li:nth-child(3) { transition-delay: .4s; }
.home_business .business_list.is-animated li:nth-child(4) { transition-delay: .6s; }
.home_business .business_list.is-animated li:nth-child(5) { transition-delay: .8s; }
.home_business .business_list.is-animated li:nth-child(6) { transition-delay: 1s; }

/* ==========================================================================
   5. コンテンツ・下部リンク・マップエリア (.home_content / .google-map) 【完全維持】
   ========================================================================== */
.home_content {
  position: relative;
  z-index: 1;
  margin-top: clamp(60px, calc(60px + 60 * ((var(--vw) * 100) - 320px) / 880), 120px);
  padding-top: 2.5em;
  overflow: hidden;
}
.home_content .home_link {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5em min(7.2%, 80px);
  margin-bottom: calc(clamp(60px, calc(60px + 60 * ((var(--vw) * 100) - 320px) / 880), 120px) * 0.66);
}
.home_content .home_link .home_link__bnr {
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-direction: column; 
  position: relative;
  flex-grow: 1;
  flex-basis: 408px;
  max-width: 100%; 
  margin-bottom: 0;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: 1.25em;
  aspect-ratio: 103 / 40; 
  transition: 0.4s ease-out;
}
.home_content .home_link .home_link__bnr .home_link__icon {
  font-size: 2.75em;
  color: #019742;
}
.home_content .home_link .home_link__bnr a {
  font-size: clamp(16px, calc(16px + 8 * ((var(--vw) * 100) - 320px) / 880), 24px);
  font-weight: 500;
  color: #202020;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  margin-top: 1.0em;
}
.home_content .home_link .home_link__bnr a::before {
  position: absolute;
  top: 0;
  left: 0;
  content: '';
  width: 100%;
  height: 100%;
}
.home_content .home_link .home_link__bnr::after {
  position: absolute;
  right: 1.5em;
  bottom: 1.5em;
  content: '';
  width: 1.25em;
  height: 1.25em;
  background: url("../img/icon_arrow_green.svg") no-repeat 50% 50%/contain;
  transition: 0.4s ease-out;
}
.home_content .home_link .home_link__bnr:hover { border-color: #7FBF65; }
.home_content .home_link .home_link__bnr:hover::after { transform: translateX(0.5em); }

.home_content .home_access .headline {
  text-align: center;
  margin-bottom: 0;
  padding-left: 0;
}
.home_content .home_access .headline::after {
  position: static;
  height: 5.0rem;
  margin: 2.5rem auto 0;
}
.home_content .home_content__img {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1; 
  width: 100%;
  height: 73.42%;
  overflow: hidden;
  border-radius: 0 1.25em 0 0;
}
.home_content .home_content__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home_content::after {
  position: absolute;
  top: 0;
  right: 0;
  z-index: -2; 
  content: '';
  width: 100%;
  height: 100%;
  background-color: #e8f3e3;
  border-radius: 1.25em 0 0 0;
}
@media screen and (min-width: 980px) {
  .home_content::after {
    width: calc(100% - min(5%, 96px));
  }
}
.google-map { max-height: 420px; }

/* ==========================================================================
   6. キーフレームアニメーション（フェードイン定義）
   ========================================================================== */
/* スマホ表示用（-25px → 0） */
@keyframes capsuleTxtFinalShowMobile {
  0% {
    opacity: 0;
    transform: translateX(-10px); 
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* PC表示用（-50px → 0） */
@keyframes capsuleTxtFinalShowPC {
  0% {
    opacity: 0;
    transform: translateX(-20px); 
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}