/*--------------------------
    カスタムCSS - 株式会社アクト
    読みやすさとテキストサイズの改善
    作成日: 2025-12-05
    最終更新: 2025-12-05 v3（テキストサイズ・色調整）
---------------------------*/

/* ベースフォントサイズの拡大と色の調整 */
body {
  font-size: 18px !important; /* 14px → 16px → 18px */
  line-height: 1.8; /* 行間を広げて読みやすく */
  color: #444444 !important; /* 薄いグレー(#9b9b9b) → 濃いグレー(#444444) */
}

/* 段落テキストの色と読みやすさ */
p {
  color: #444444 !important;
  font-size: 18px !important;
  line-height: 1.9;
}

/* 見出しのサイズ調整 */
h1 {
  font-size: 44px; /* 元: 40px前後 */
}

h2 {
  font-size: 36px; /* 元: 32px前後 */
}

h3 {
  font-size: 28px; /* 元: 24px前後 */
}

h4 {
  font-size: 22px; /* 元: 18px前後 */
}

h5 {
  font-size: 18px; /* 元: 16px前後 */
}

/* スライダーのタイトルを大きく */
.slide__title {
  font-size: 48px !important; /* 目立つように大きく */
  line-height: 1.3;
  font-weight: 700;
}

.slide__subtitle {
  font-size: 18px !important; /* 元: 16px前後 */
}

.slide__desc {
  font-size: 19px !important; /* 元: 14-16px → 18px → 19px */
  line-height: 1.8;
  color: #ffffff !important; /* スライダーテキストは白色 */
}

/* 見出しテキストの調整 */
.heading__title {
  font-size: 36px !important;
  line-height: 1.4;
  margin-bottom: 20px;
}

.heading__subtitle {
  font-size: 16px !important;
  letter-spacing: 2px;
}

.heading__desc {
  font-size: 18px !important; /* 元: 14-15px → 17px → 18px */
  line-height: 1.9;
  color: #444444 !important;
}

/* bg-darkセクション内のheading__descは白色 */
.heading-light .heading__desc,
.bg-dark .heading__desc {
  color: #ffffff !important;
}

/* サービスアイテムのテキスト */
.service__title {
  font-size: 22px !important;
}

.service__desc {
  font-size: 17px !important; /* 16px → 17px */
  line-height: 1.8;
  color: #444444 !important;
}

/* ボタンのテキストサイズ */
.btn {
  font-size: 16px !important;
  padding: 14px 30px;
}

.btn__xl {
  font-size: 17px !important;
  padding: 16px 35px;
}

/* リストアイテムのテキスト */
.list__item {
  font-size: 17px !important; /* 16px → 17px */
  line-height: 1.8;
  color: #444444 !important;
}

/* bg-darkセクション内やlist-items-lightのリストアイテムは白色 */
.list-items-light .list__item,
.bg-dark .list__item {
  color: #ffffff !important;
}

/* cta-banner内のリストアイテムは黒色（例外） */
.cta-banner .list__item {
  color: #222222 !important;
}

/* フッターのテキスト */
.footer-widget__title {
  font-size: 18px !important;
}

.footer p,
.footer li {
  font-size: 16px !important; /* 15px → 16px */
  color: #555555 !important; /* フッターは少し薄めのグレー */
}

/* お問い合わせフォームのテキスト */
.contact-panel__title {
  font-size: 28px !important;
}

.contact-panel__desc {
  font-size: 17px !important; /* 16px → 17px */
  color: #444444 !important;
}

/* フォーム入力欄のテキスト */
.form-control {
  font-size: 16px !important;
  padding: 12px 20px;
}

/* 認定証セクションのスタイル */
.certification-item {
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.certification__title {
  font-size: 18px !important;
  font-weight: 600;
  color: #222222;
}

.certification__desc {
  font-size: 16px !important; /* 15px → 16px */
  color: #555555 !important; /* 薄いグレー(#9b9b9b) → やや濃いグレー(#555555) */
}

/* パートナーセクションのスタイル */
.partner-section .heading__title {
  font-size: 38px !important;
}

.partner-section .heading__desc {
  font-size: 18px !important; /* 17px → 18px */
  color: #ffffff !important; /* パートナーセクションは白テキスト */
}

/* About セクションのテキスト */
.about__Text p,
.about__text p {
  font-size: 18px !important;
  color: #444444 !important;
  line-height: 1.9;
}

/* CTA（Call to Action）のテキスト */
.cta__desc,
.cta__title {
  color: #444444 !important;
}

.cta-layout3 p {
  font-size: 17px !important;
  color: #444444 !important;
}

/* レスポンシブ対応 */
@media (max-width: 991px) {
  body {
    font-size: 16px !important; /* 15px → 16px */
  }

  p {
    font-size: 16px !important;
  }

  .slide__title {
    font-size: 36px !important;
  }

  .heading__title {
    font-size: 28px !important;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 16px !important; /* 15px → 16px */
  }

  p {
    font-size: 16px !important;
  }

  .slide__title {
    font-size: 28px !important;
  }

  .heading__title {
    font-size: 24px !important;
  }

  .slide__desc,
  .heading__desc {
    font-size: 16px !important; /* 15px → 16px */
  }

  .service__desc {
    font-size: 16px !important;
  }
}

/*--------------------------
    認定証ギャラリー
    作成日: 2026-02-05
---------------------------*/

/* 認定証カードのホバー効果 */
.certification-link {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.certification-link:hover .certification-item {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(101, 181, 48, 0.2);
}

.certification-link:hover .certification__icon i {
  transform: scale(1.1);
}

.certification__icon i {
  transition: transform 0.3s ease;
}

/* ギャラリーカード */
.gallery-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  background: #fff;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gallery-card__image {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

.gallery-card__image img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-card__image img {
  transform: scale(1.05);
}

.gallery-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(101, 181, 48, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-card__overlay {
  opacity: 1;
}

.gallery-card__content h5 {
  color: #222;
  font-size: 18px;
  font-weight: 600;
}

.certification-gallery-item {
  display: block;
  text-decoration: none;
  color: inherit;
}

.certification-gallery-item:hover {
  text-decoration: none;
}

/*--------------------------
    画像サイズ調整
    トップビュー画像をコンテナに収める
    作成日: 2025-12-18
---------------------------*/

/* スライダー・ページタイトルの背景画像調整 */
.bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* スライドアイテムの位置調整 */
.slide-item {
  position: relative;
  overflow: hidden;
}

/* ページタイトルの位置調整 */
.page-title-layout1 {
  position: relative;
  overflow: hidden;
}

/*--------------------------
    ニュースティッカー
    作成日: 2026-02-09
---------------------------*/

.news-ticker {
  border-bottom: 1px solid #e5e5e5;
}

.news-ticker__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-ticker__item {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.news-ticker__item:last-child {
  border-bottom: none;
}

.news-ticker__link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.news-ticker__link:hover {
  text-decoration: none;
}

.news-ticker__link:hover .news-ticker__title {
  color: #65b530 !important;
}

.news-ticker__date {
  flex-shrink: 0;
  font-family: 'Roboto', sans-serif;
}

.news-ticker__title {
  transition: color 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .news-ticker__list {
    gap: 5px;
  }

  .news-ticker__item {
    padding: 5px 0;
  }

  .news-ticker__link {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-ticker__date {
    margin-bottom: 5px;
  }
}

/*--------------------------
    KV 流れる文字エフェクト（ACT）
    ALSOK九州サイトの p-home-fv-text と同仕様
    作成日: 2026-02-22
---------------------------*/

/* アニメーション定義：シームレスループ（2セット分の-50%） */
@keyframes act-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ラッパー：スライダー内 絶対配置 */
.p-home-fv-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  z-index: 10;         /* スライド画像より手前 */
  pointer-events: none;
  line-height: 1;
  /* リバースタイプ：ラッパー全体をdifferenceブレンドで合成 */
  mix-blend-mode: difference;
}

/* トラック：2セット+アニメ */
.p-home-fv-text__track {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  font-size: clamp(5rem, 12vw, 12rem);
  font-weight: 900;
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  /* 白で描画→ラッパーのdifferenceブレンドで背景反転色になる */
  color: #ffffff;
  /* シームレスループ：25秒で-50%（2セットの1セット分） */
  animation: act-marquee 25s linear infinite;
  will-change: transform;
  padding-bottom: 0.1em;
}

.p-home-fv-text__word {
  letter-spacing: 0.08em;
}

.p-home-fv-text__sep {
  opacity: 0.5;
  margin: 0 0.3em;
  font-weight: 300;
  font-size: 0.6em;
}

/* 旧仕様の__inner（互換性のため残存） */
.p-home-fv-text__inner {
  display: none;
}

/* 停止制御（reduced-motion配慮） */
@media (prefers-reduced-motion: reduce) {
  .p-home-fv-text__track {
    animation: none;
    opacity: 0;
  }
}

/*--------------------------
    KV 右下バナー（最前面）
---------------------------*/

.kv-corner-banner {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 999;       /* 最前面 */
  line-height: 0;     /* 画像下の余白をなくす */
}

.kv-corner-banner img {
  display: block;
  max-width: 360px;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.kv-corner-banner:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* モバイルでサイズを少し小さく */
@media (max-width: 767px) {
  .kv-corner-banner {
    bottom: 12px;
    right: 12px;
  }

  .kv-corner-banner img {
    max-width: 120px;
  }
}



/*--------------------------
    KV バナーエリア
    スライダー直下の3カラムバナー
---------------------------*/

.kv-banner-area {
  background: #111;
}

.kv-banner-area__inner {
  display: flex;
  flex-wrap: nowrap;
}

.kv-banner-item {
  flex: 1 1 33.333%;
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.kv-banner-item__img {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 120px;
  padding: 20px;
  position: relative;
  transition: filter 0.35s ease, transform 0.35s ease;
}

.kv-banner-item:hover .kv-banner-item__img {
  filter: brightness(1.25);
}

/* 区切り線 */
.kv-banner-item + .kv-banner-item .kv-banner-item__img::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,0.2);
}

/* ラベル（英字） */
.kv-banner-item__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 6px;
  transition: color 0.3s;
}

/* タイトル（和文） */
.kv-banner-item__title {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}

.kv-banner-item:hover .kv-banner-item__label,
.kv-banner-item:hover .kv-banner-item__title {
  color: #ffffff;
}

/* レスポンシブ：768px以下でスタック */
@media (max-width: 767px) {
  .kv-banner-area__inner {
    flex-wrap: wrap;
  }

  .kv-banner-item {
    flex: 1 1 100%;
  }

  .kv-banner-item__img {
    height: 80px;
    flex-direction: row;
    gap: 12px;
  }

  .kv-banner-item__img::before {
    display: none;
  }

  .kv-banner-item__label {
    margin-bottom: 0;
  }

  .p-home-fv-text__inner {
    font-size: clamp(4rem, 20vw, 8rem);
    animation-duration: 12s;
  }
}
