/**
* Updated: Aug 07 2024 with Bootstrap v5.3.3
/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  /* フォント設定を日本語向けに変更 */
  --default-font: "Noto Serif JP", serif; /* 本文明朝 */
  --heading-font: "Noto Sans JP", sans-serif; /* 見出しゴシック */
  --nav-font: "Noto Sans JP", sans-serif; /* ナビゲーションゴシック */
}

/* Global Colors */
:root { 
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #111111;
  --accent-color: #009961; /* #1bbd36 */
  --accent-color2: #088c4a; /* 半透明のバックに目立つ緑 */
  --accent-color3: #1bbd36; /* 長方形ボタン */	
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: #444444;
  --nav-hover-color: #009961; /* #1bbd36 */
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #009961; /* #1bbd36 */
  --accent-color-dark: #009961; /* 落ち着いた緑 #056639 */
  --accent-color-dark2: #009961; /* 目立つ緑 #cfe7d6 */
}

/* Color Presets */
.light-background {
  --background-color: #f7f7f7;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #009961; /* #1bbd36 */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --accent-color: #ffffff;
  --surface-color: #2ae149;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color) ;
  font-family: var(--default-font);
  font-size: 18px; /* PCで少し大きめに設定 */
  line-height: 1.8; /* 行間を広めにして読みやすく */
  margin: 0 auto;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* 見出しのフォント調整（PC:細め、スマホ:標準） */
h1,h2,h3,h4,h5,h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
  font-weight: 300; /* PCでは細め */
  line-height: 1.2;
  margin-top: 0.6em; /* 見出しの前に余白を多め */
  margin-bottom: 0.6em; /* 見出しの下少し詰める */
}

/* スマホでは少し太めにして読みやすく */
@media (max-width: 768px) {
  h1,h2,h3,h4,h5,h6 {
    font-weight: 400; /* 標準 */
  }
}

/* 段落の間隔（日本語向けに少し広げる） */
p {
  margin-bottom: 1.0em;
}

/* スマホ用のレスポンシブ対応 */
@media (max-width: 768px) {
  body {
    font-size: 16px;  /* スマホでは小さく */
    /* line-height: 1.7; */
    max-width: 100%;  /* スマホでは幅制限を解除 */
    padding: 0 1rem;
  }
  
  h1, h2, h3, h4, h5, h6 {
    margin-top: 1.0em;
    margin-bottom: 0.5em;
  }
}

/* Pulsating Play Button
------------------------------*/
.carousel-item > .container {
  position: relative; /* ボタン配置の基準となる */
  z-index: 1;
}

.hero-buildings {
  position: relative;
  z-index: 2; /* ボタンより下の層に */
}

.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  /* opacity: 0.85; */ /* 半透明で自然な印象 */
  cursor: pointer;

  /* 重なり順：アニメよりも上に */
  z-index: 9999;
  pointer-events: auto;
	
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
	
  /* 下中央に配置 */
  bottom: -25px; /* 数値を増やすと上に、減らすと下に */
  left: 50%;
  transform: translateX(-50%);
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

@media (max-width: 575px) {
  .pulsating-play-btn {
    margin-top: 20px;
	margin-bottom: -25px;
  }
}

/* ===========================
   拡がるアニメーション
=========================== */
@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* ===========================
   スマホ対応（575px以下）
=========================== */
@media (max-width: 575px) {
  .pulsating-play-btn {
    bottom: 4px;  /* さらに下へ配置 */
    width: 84px;
    height: 84px;
  }

  .pulsating-play-btn::before {
    width: 110px;
    height: 110px;
    top: -14%;
    left: -14%;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 10px 0;
  transition: all 0.5s;
  z-index: 997;
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--heading-color);
}

.header .logo span {
  color: var(--accent-color);
  font-size: 26px;
  font-weight: 700;
}

.header .header-social-links {
  padding: 0 0 0 15px;
}

.header .header-social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding-left: 10px;
  display: inline-block;
  transition: 0.3s;
  font-size: 16px;
}

.header .header-social-links a:hover {
  color: var(--accent-color);
}

.header .header-social-links a i {
  line-height: 0px;
}

/* YouTubeアイコン専用 */
.header-social-links a.youtube i {
  color: #FF0000; /* YouTubeの赤色 */
  font-size: 20px; /* ひと回り大きく */
  transition: 0.3s;
}

/* ホバー時 */
.header-social-links a.youtube:hover i {
  color: #cc0000; /* 少し濃い赤に変化 */
}

@media (max-width: 1200px) {
  .header .logo {
    order: 1;
  }

  .header .logo h1 {
    font-size: 24px;
  }

  .header .header-social-links {
    order: 2;
    padding: 0 15px 0 0;
  }

  .header .navmenu {
    order: 3;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 13px;
    font-family: var(--nav-font);
    text-transform: uppercase;
    font-weight: 500; /* 600 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: 90% !important; /* 右に出す（左｜left: -90%;） */
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: 100% !important; /* 右に出す（左｜left: -100%;） */
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer ★
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 16px;
  position: relative;
  z-index: 20;

}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  font-size: 26px;
  /* font-weight: 700; */
  letter-spacing: 1px;
  font-family: var(--heading-font);
  color: var(--heading-color);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .footer-newsletter .newsletter-form {
  margin-top: 30px;
  margin-bottom: 15px;
  padding: 6px 8px;
  position: relative;
  border-radius: 4px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  display: flex;
  background-color: var(--surface-color);
  transition: 0.3s;
}

.footer .footer-newsletter .newsletter-form:focus-within {
  border-color: var(--accent-color);
}

.footer .footer-newsletter .newsletter-form input[type=email] {
  border: 0;
  padding: 4px;
  width: 100%;
  background-color: var(--surface-color);
  color: var(--default-color);
}

.footer .footer-newsletter .newsletter-form input[type=email]:focus-visible {
  outline: none;
}

.footer .footer-newsletter .newsletter-form input[type=submit] {
  border: 0;
  font-size: 16px;
  padding: 0 20px;
  margin: -7px -8px -7px 0;
  background: var(--accent-color);
  color: var(--contrast-color);
  transition: 0.3s;
  border-radius: 0 4px 4px 0;
}

.footer .footer-newsletter .newsletter-form input[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.footer .copyright {
  padding: 25px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  color: rgba(255, 255, 255, 0.6); /* 透明感を追加 */
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/* 電話番号リンクの基本スタイル */
.footer .phone-link {
  color: var(--contrast-color); /* 通常は白 */
  text-decoration: none; /* 下線を消す */
  transition: color 0.3s ease;
}

/* ホバー・タップ時 */
.footer .phone-link:hover,
.footer .phone-link:active {
  color: var(--accent-color); /* 指を合わせたときはグリーン */
  transform: translateY(1px); /* 押した感（少し沈む） */
}

/* 通常時：白文字＋白角丸囲み */
.footer .contact-link {
  display: inline-block;
  padding: 4px 10px;
  background-color: transparent; /* 背景透明 */
  color: var(--contrast-color); /* 文字は白 */
  border: 2px solid var(--contrast-color); /* 白の縁取り */
  border-radius: 10px; /* 角丸 */
  text-decoration: none; /* 下線なし */
  /* font-weight: 500; */
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* ホバー・タップ時：文字だけ緑に変わる */
.footer .contact-link:hover,
.footer .contact-link:active {
  color: var(--accent-color); /* 文字を緑に */
  border-color: var(--contrast-color); /* 枠線は白のまま */
  background-color: transparent; /* 背景は変えない */
}

.footer .footer-copyright-link {
  color: var(--contrast-color); /* 通常時は白文字 */
  text-decoration: none;       /* 下線を消す */
  transition: color 0.3s ease;
  color: rgba(255, 255, 255, 0.6); /* 透明感を追加 */
}

.footer .footer-copyright-link:hover,
.footer .footer-copyright-link:focus {
  color: var(--accent-color); /* ホバー時は緑 */
}

/* 電話アイコンと文字の間隔 */
.footer .footer-contact i {
  margin-right: 6px; /* アイコンの右側に6pxの余白 */
  vertical-align: middle; /* 縦位置を文字にそろえる */
  position: relative;
  top: -2px; /* 上に2px移動 */
}

/* ニュースレター本文の行間調整 */
.footer .footer-newsletter p {
  line-height: 1.4; /* デフォルトより少し詰める */
  margin-bottom: 8px; /* 下の余白調整 */
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .footer .footer-newsletter p i {
    font-size: 15px;
  }
  .footer-links {
    font-size: 15px;
  }
}

/* アイコンと文字の間隔 */
.footer .footer-newsletter i {
  margin-right: 6px; /* アイコンの右側余白 */
  vertical-align: middle; /* 縦位置を文字にそろえる */
  position: relative;
  top: -2px; /* 上に移動 */
}

@media (max-width: 575px) {
  .footer .footer-links {
    margin-bottom: -10px;
  }
}

/* スマホ画面用（例: 幅575px以下） */
@media (max-width: 575px) {
  .footer .footer-about .logo span {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .footer .footer-newsletter p {
    font-size: 15px; /* スマホ変更 */
  }
}

/* スマホ用：フッターコピーライトを軽やか表示 */
@media (max-width: 575px) {
  .footer .copyright p {
    font-size: 15px; /* 文字を少し小さく */
    line-height: 1.6; /* 行間を広めにして窮屈感解消 */
    margin-bottom: 10px; /* 下余白を確保 */
    color: rgba(255, 255, 255, 0.6);
  }

  .footer .copyright span,
  .footer .copyright strong {
    display: inline-block; /* 要素の横幅を調整しやすく */
    margin-right: 4px; /* 左右の余白で窮屈感解消 */
  }

  /* リンク自体に透明感を適用 */
  .footer .copyright a.footer-copyright-link {
    color: rgba(255, 255, 255, 0.6); /* 白に透明度 */
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 25px); /* 中央位置を調整 */
  left: calc(50% - 25px);
  border: 3px solid var(--accent-color); /* 細く（元:6px） */
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 50px;  /* 少し小さく（元: 60px） */
  height: 50px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# 背景画像（後ろ全体に表示）
--------------------------------------------------------------*/
.page-background {
  position: fixed; /* 常に画面に固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1; /* すべての下に */
}

/*--------------------------------------------------------------
# Page Title バー
--------------------------------------------------------------*/
.page-title {
  position: relative;
  padding: 25px 0;
  color: var(--default-color);
  background: transparent !important; /* 白を打ち消す */
  z-index: 1;
}

/* 半透明グリーンオーバーレイ */
.page-title-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 155, 119, 0.8); /* 初期 80%透明度 */
  z-index: 0;
  transition: background-color 0.3s ease-out;
}

/* タイトルテキスト・パンくずは前面に */
.page-title .container {
  position: relative;
  z-index: 1;
}

/*--------------------------------------------------------------
# テキスト調整
--------------------------------------------------------------*/
.page-title h1 {
  font-size: 20px;
}

@media (min-width: 992px) {
  .page-title h1 {
    margin-top: -10px;
  }
}

@media (max-width: 768px) {
  .page-title h1 {
    margin-top: -5px;
    font-size: 15px;
  }
}

/* パンくず */
.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: -10px 0 0;
  font-size: 14px;
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

@media screen and (max-width: 1024px) { /* 767 */
  .page-title-overlay {
    background-color: var(--accent-color-dark) !important; /* 不透明グリーン */
  }
}

@media (max-width: 768px) {
  /* 内部コンテナを縦並び・左寄せに */
  .page-title .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* 左寄せ */
    text-align: left !important;
    gap: 6px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
	margin-bottom: -5px !important;
  }

  /* パンくずを左寄せに */
  .page-title .breadcrumbs,
  .page-title .breadcrumbs ol {
    width: 100% !important;
    text-align: left !important;
    padding-left: 0px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    font-size: 12px;	
  }
}


/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 50px 0; /* 上下の余白を60px→50px */
  scroll-margin-top: 100px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

.section-divider {
  width: 0; /* 初期は幅0 */
  margin: -40px auto 70px auto;

  border-top: 8px dotted #ccc; /* solid */
  
  opacity: 0;
  transform: translateY(10px);
  
  /* アニメーション設定 */
  transition: width 1.8s ease, opacity 1.8s ease, transform 1.8s ease;
}

.section-divider.show {
  width: 73%; /* 最終的な幅 */
  opacity: 1;
  transform: translateY(0);
}

/* スマホ非表示 */
@media (max-width: 768px) {
  .section-divider { display: none; }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 40px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  margin-bottom: 20px;
  /* text-transform: uppercase; */
  padding-bottom: 20px;
  position: relative;
}

.section-title h2.animate {
  animation: titleFadeBounce 2.2s ease-out forwards;
}

@keyframes titleFadeBounce {
  0% {
    opacity: 0;
    transform: translateY(-50px);
  }
  50% {
    opacity: 0.3;
    transform: translateY(10px);
  }
  70% {
    opacity: 0.6;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 下線 */
.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;

  opacity: 0; /* 初期は非表示 */
  transform: scaleX(0); /* 横方向に縮小 */
  transition: transform 0.5s ease, opacity 0.5s ease; /* フェード＋スケール */
}

/* animateクラスがついたときに文字アニメーション開始 */
.section-title h2.animate:after {
  opacity: 1;
  transform: scaleX(1);
  transition-delay: 2.2s; /* 文字アニメーション終了後に開始 */
}

.section-title p {
  max-width: 76ch;
  margin: 0 auto 20px;
  text-align: left;
  line-height: 1.8;
}

@media (min-width: 991px) {
  #about .container.section-title {
    margin-bottom: 40px;
  }
}

@media (max-width: 575px) {
  .section-title h2 {
    font-size: 20px;
	margin: 0px 0 20px;
  }
}

/*--------------------------------------------------------------
# logo overlay & background
--------------------------------------------------------------*/
#logo-bg {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: none; /* 初期は非表示 */
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  background: #000; /* 黒下地 */
  transition: background 1s ease, opacity 1s ease;
}

#logo-bg.visible {
  display: flex; /* JSで表示 */
  background: rgba(0,0,0,0); /* 背景画像を見せる */
}

#logo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
  transition: filter 1s ease;
}

#logo-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none; /* 初期非表示 */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

#logo-overlay img {
  max-width: 40%;
  height: auto;
  opacity: 0;
  transform: scale(0.8);
  filter: brightness(0) invert(1);
  animation: logo-pop 1s ease-out forwards;
}

@keyframes logo-pop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Heroカルーセル初期非表示 */
#hero-carousel {
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

#hero-carousel.visible {
  opacity: 1;
  visibility: visible;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero-title span {
  display: inline-block;
}

.hero .carousel {
  width: 100%;
  min-height: calc(100vh - 75px);
  padding: 0;
  margin: 0;
  position: relative;
}

@media (max-height: 500px),
(max-width: 1200px) {
  .hero .carousel {
    min-height: calc(100vh - 48px);
  }
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* 画像スライド用アニメーション（pcのみ） */
.hero .carousel-item {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
} 

.hero .container {
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  /* background: color-mix(in srgb, var(--surface-color), transparent 40%); */
  position: relative;
  text-align: center;
  padding-top: 30px;
  padding-bottom: 30px;
  margin-bottom: 50px;
  border-top: 4px solid var(--accent-color);
  z-index: 3;

  /* 左上と右下を斜めカット */
  clip-path: polygon(
    35px 0, /* 左上を右に35pxずらす */
    100% 0, /* 右上 */
    100% calc(100% - 35px), /* 右下少し上 */
    calc(100% - 35px) 100%, /* 下右から左に35pxカット */
    0 100%, /* 左下 */
    0 35px /* 左上から下に35pxカット */
  );
}

.hero .container p {
  max-width: 71ch; /* 少し広め（71文字分くらい） */
  margin: 0 auto 0; /* ブロックを中央寄せ（左右auto） */
  text-align: left; /* 文章は左揃え */
  line-height: 1.6; /* 行間広めで読みやすく */
  font-size: 22px;
}

/* --- スマホ（幅575px以下）用設定 --- */
@media screen and (max-width: 575px) {
  .hero .container p {
    font-size: 16px;
  }
}

@media (max-width: 1200px) {
  .hero .container {
    margin-left: 50px;
    margin-right: 50px;
  }
}

.hero h2 {
  margin-bottom: 25px;
  font-size: 36px;
  /* font-weight: 700; */
}

@media (max-width: 768px) {
  .hero h2 {
	font-weight: 400;
    font-size: 19px;
  }
}

.hero .btn-get-started {
  font-family: var(--nav-font);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  transition: 0.5s;
  margin: 10px;
  border-radius: 4px;
  color: var(--contrast-color);
  border: 2px solid var(--accent-color);
}

.hero .btn-get-started:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

/* --- スマホ（幅575px以下）では変更しない --- */
@media screen and (max-width: 575px) {
  .hero .btn-get-started {
    font-size: inherit; /* そのままのフォントサイズを維持 */
  }
}

.hero .carousel-control-prev {
  justify-content: start;
}

@media (min-width: 640px) {
  .hero .carousel-control-prev {
    padding-left: 15px;
  }
}

.hero .carousel-control-next {
  justify-content: end;
}

@media (min-width: 640px) {
  .hero .carousel-control-next {
    padding-right: 15px;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 26px;
  line-height: 0;
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 50px;
  color: var(--contrast-color);
  transition: 0.3s;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

.hero .carousel-control-prev:hover .carousel-control-next-icon,
.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon,
.hero .carousel-control-next:hover .carousel-control-prev-icon {
  background: var(--accent-color);
  color: var(--default-color);
}

.hero .carousel-indicators li {
  cursor: pointer;
  background: var(--default-color);
  overflow: hidden;
  border: 0;
  width: 12px;
  height: 12px;
  border-radius: 50px;
  opacity: 0.6;
  transition: 0.3s;
}

.hero .carousel-indicators li.active {
  opacity: 1;
  background: var(--accent-color);
}

/* 画像スライド用アニメーション（PCのみ） */
@media (min-width: 768px) {
  .hero .carousel-item img {
    width: 106%;
    transform: translateX(-4%);
    transition: transform 20s linear;
  }
}

/* スマホではアニメーションなし（PCのみ） */
@media (max-width: 767px) {
  .hero .carousel-item img {
    width: 100%;
    transform: none;
    transition: none !important;
  }
}

/* topイラストを横に連続表示（右→左へスムーズに流れる） */
.hero-buildings {
  width: calc(100% - 40px); /* containerの内側に入れる（左右20px） */
  height: 89px; /* 高さはお好みで調整 */
  margin: 30px auto 20px; /* 上下余白と中央寄せ */
  background-image: url('../img/top_building.png');
  background-repeat: repeat-x; /* 横方向に繰り返す */
  background-position: 0 bottom;
  background-size: auto 100%; /* 高さに合わせて横を自動調整 */
  animation: scroll-buildings 1200s linear infinite; /*時間調整*/
  will-change: background-position; /* パフォーマンス最適化 */
}

/* 背景を右から左へループアニメーション */
@keyframes scroll-buildings {
  from {
    background-position: 0 bottom;
  }
  to {
    background-position: -10000px bottom; /* 大きく動かしてループ感を出す */
  }
}

/* スマホ対応 */
@media (max-width: 767px) {
  .hero-buildings {
    width: 100%; /* スマホは左右いっぱい */
    height: 60px; /* 高さを少し小さく */
    margin: 30px 0; /* 上下余白のみ */
    background-size: auto 100%;
  }
}

@media (max-width: 575px) {
  .hero .carousel-item.to-right img {
    width: 100%; /* 変形なし */
    transform: none; /* PC用アニメーションを無効化 */
    transition: none !important;
    object-position: calc(50% + 80px) center; /* 右にズラす */
  }
	
  .hero .carousel-item.to-right02 img {
    width: 100%; /* 変形なし */
    transform: none; /* PC用アニメーションを無効化 */
    transition: none !important;
    object-position: calc(50% + 170px) center; /* 右にズラす */
  }
	
  .hero .carousel-item.to-right03 img {
    width: 100%;
    transform: none;
    transition: none !important;
    object-position: calc(50% + 130px) calc(50% - 0px); /* 右/上 */
  }

}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .inner-title {
  font-size: 2.45rem;
  /* font-weight: 700; */
  margin: 30px 0;
}

/* PC画面用スクロール連動アニメーション */
@media (min-width: 992px) {
  .about .inner-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(-30px); /* 少し遠くから降りる */
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.25, 0.8, 0.5, 1);
  }

  .about .inner-title span.animate {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 991px) {
  .about .inner-title {
    max-width: 65%;
    margin: 10px 0 80px 10px; /* 0 0 80px 0 */
  }
}

@media (max-width: 575px) {
  .about .inner-title {
    font-size: 1.4rem;
  }
}

.about .our-story {
  padding: 40px;
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
	
  /* 左上と右下を切り落としたデザイン */
  clip-path: polygon(
    25px 0, /* 左上を15px切り落とす */
    100% 0,
    100% calc(100% - 25px), /* 右下を15px切り落とす */
    calc(100% - 25px) 100%,
    0 100%,
    0 25px
  );	
}

@media (min-width: 991px) {
  .about .our-story {
    padding-right: 35%;
    margin-top: -20px; /* 必要に応じて -10px, -30px など微調整 */
  }
}

.about .our-story h4 {
  text-transform: uppercase;
  font-size: 1.0rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

.about .our-story h3 {
  font-size: 1.8rem;
  /* font-weight: 700; */
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.about .our-story .sp {
  text-transform: uppercase;
  font-size: 1.4rem;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

@media (max-width: 768px) {
  .about .our-story h3 {
  font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .about .our-story .sp {
  font-size: 1.0rem;
  }
}

.about .our-story p:last-child {
  margin-bottom: 0;
}

.about ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.about ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.about ul i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  line-height: 1.2;
  color: var(--accent-color);
}

.about .watch-video i {
  font-size: 1rem; /* 2rem */
  transition: 0.3s;
  color: var(--accent-color);
  position: relative;
  top: 1px; /* 下に2px下げる */
}

.about .watch-video a {
  font-family: var(--nav-font);
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-left: 8px;
  transition: 0.3s;
}

.about .watch-video:hover a {
  color: var(--accent-color);
}

.about .about-img {
  min-height: 400px;
  position: relative;
}

/* 画像を小さく、テキストスペースを広くする */
@media (min-width: 992px) {
  .about .about-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 49%; /* デフォルトほぼ半分近くを占有。縮小 */
    min-height: 500px;
    /* min-height: 600px; */
  }

  .about .our-story {
    padding-right: 17%; /* 画像が小さくなった分、余白狭める */
  }
}

.about .about-img img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.spacer-50 {
  height: 50px;
}
/* スマホ（幅768px以下）では高さ0にする */
@media (max-width: 768px) {
  .spacer-50 {
    height: 35px;
  }
}

.spacer-130 {
  height: 130px;
}
/* スマホ（幅768px以下）では高さ0にする */
@media (max-width: 768px) {
  .spacer-130 {
    height: 35px;
  }
}

/* スマホ（幅768px以下）ではセクションの上下余白を狭くする */
@media (max-width: 768px) {
  section.about {
    padding-top: 20px; /* 上の余白 */
    padding-bottom: 20px; /* 下の余白 */
  }
}

/* message セクション限定 */
/* messageセクション用 画像2枚レイアウト */
.message-images {
  position: relative;
  min-height: 500px; /* 上画像の高さ確保 */
  overflow: visible; /* これを追加 → 子要素が切れずに表示される */
  padding-bottom: 40%; /* 下画像分のスペースを確保 */
}

.message-images img {
  object-fit: cover;
  object-position: center;
  max-width: 100%;
}

/* 上の画像：右寄せ＋縮小 */
.message-images img.img-top {
  width: 95% !important;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  z-index: 2;
}

/* 下の画像：縮小して左寄せ */
.message-images img.img-bottom {
  width: 71% !important;
  height: auto !important;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-3%, 119%);
  z-index: 1;
  object-fit: contain !important;
}

/* 上の画像：右寄せ＋縮小 */
.message-images img.img-top-02 {
  width: 95% !important;
  position: relative;
  margin-left: auto;
  margin-right: 0;
  z-index: 1;
}

/* 下の画像：縮小して左寄せ */
.message-images img.img-bottom-02 {
  width: 71% !important;
  height: auto !important;
  position: absolute;
  left: 0;
  bottom: 0;
  transform: translate(-3%, 119%);
  z-index: 2;
  object-fit: contain !important;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .message-images {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: auto !important;
	padding-bottom: 0; /* スマホでは不要 */
  }

  .message-images img.img-top,
  .message-images img.img-bottom {
    position: static !important; /* 絶対配置を解除 */
    width: 100% !important; /* 上下同じ幅 */
    height: auto !important; /* 縦横比維持 */
    transform: none !important; /* 変形解除 */
    object-fit: cover !important; /* 全体表示 */
    z-index: auto !important; /* 重なり解除 */
  }
	
  .message-images img.img-top-02,
  .message-images img.img-bottom-02 {
    position: static !important; /* 絶対配置を解除 */
    width: 100% !important; /* 上下同じ幅 */
    height: auto !important; /* 縦横比維持 */
    transform: none !important; /* 変形解除 */
    object-fit: cover !important; /* 全体表示 */
    z-index: auto !important; /* 重なり解除 */
  }
}

/* 遅延画像アニメーション */
/* 共通：画像は透明からフェードイン */
.message-images img {
  object-fit: cover;
  object-position: center;
  max-width: 100%;
  opacity: 0; /* 初期は透明 */
  transition: opacity 1s ease; /* フェードイン */
}

/* 下の画像：0.5秒遅れでフェードイン */
.message-images img.img-bottom {
  animation: fadeIn 1s ease forwards;
  animation-delay: 0.5s;
}

/* 上の画像：1.5秒遅れでフェードイン */
.message-images img.img-top {
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.0s;
}

/* 下の画像：0.5秒遅れでフェードイン */
.message-images img.img-bottom-02 {
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.5s;
}

/* 上の画像：1.5秒遅れでフェードイン */
.message-images img.img-top-02 {
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.0s;
}

/* フェードイン用アニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (min-width: 991px) {
  .about .our-story {
    position: relative;
    z-index: 1;
  }

  .about .about-img {
    position: absolute;
    z-index: 2;
  }
}

/*---------------------------
# Outline Table in Our-Story
---------------------------*/
.outline-table {
  border-top: 1px solid #ccc; /* 上ライン */
  border-bottom: 1px solid #ccc; /* 下ライン */
  margin: 20px 0; /* 上下マージン */
  padding: 0 20px; /* 左右に余白を確保して幅揃え */
  box-sizing: border-box;
}

.outline-table .row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ccc; /* 各行の区切り */
}

.outline-table .row:first-child {
  border-top: 1px solid #eee; /* 一番上を少し薄く */
}

.outline-table .row:last-child {
  border-bottom: 1px solid #eee; /* 一番下を少し薄く */
}

.outline-table .key {
  font-weight: 600; /* 左側太字 */
  color: #000;
  font-family: "Noto Sans", "Yu Gothic", sans-serif;
  line-height: 1.4;
  flex-basis: 33%;
}

.outline-table .value {
  font-weight: 400; /* 右側通常の細さ */
  color: #000;
  font-family: "Noto Sans", "Yu Gothic", sans-serif;
  line-height: 1.4;
  flex-basis: 67%;
  text-align: left;
}

/* スマホ対応 セクション下段と連動 */
@media (max-width: 575px) {
  .outline-table .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .outline-table .key,
  .outline-table .value {
    flex-basis: auto;
  }

  .outline-table .value {
    margin-top: 4px;
  }
	
  /* 画像とグレー枠の間に余白を追加 */
  #outline .about-img {
    margin-bottom: 20px;
  }

}

@media (min-width: 576px) and (max-width: 1440px)  {
  .outline-table {
    font-size: 17px;
  }
  .outline-table .key {
    font-size: 16px;
  }
}

/* # Outline Section（id="outline"専用） */
@media (min-width: 992px) {
  /* 画像枠を小さく */
  #outline .about-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 41%; /* 右側に小さく配置 */
    min-height: 500px; /* 元の高さに戻す */
  }

  /* 文字掲載枠を広く */
  #outline .our-story {
	padding-top: 19px;
	padding-bottom: 20px;
    padding-right: 20px;
	padding-left: 20px;
    margin-top: -1px;  /* 元のマージンに戻す */
  }
}

/* スマホ用：outline-table の内側余白（上下左右）を確実に適用 */
@media (max-width: 575px) {
  /* id="outline" に限定して高い特異性で当てる */
  #outline .outline-table {
    padding: 10px !important; /* 内側余白を強制的に適用 */
    box-sizing: border-box !important; /* パディングが幅を壊さないように */
    width: 100% !important;
    max-width: 100% !important;
  }

  /* 行の上下パディングをスマホ向けに調整（必要に応じて増減） */
  #outline .outline-table .row {
    padding: 8px 0 !important; /* 内側余白と合わせて見た目を整える */
  }

  /* キーと値の間の余白を微調整 */
  #outline .outline-table .value {
    margin-top: 0px !important;
  }

  /* 文字サイズ・行間の調整（任意：見やすく） */
  #outline .outline-table .key,
  #outline .outline-table .value {
    line-height: 1.5 !important;
  }
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  /* box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1); */
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15); /* 初期影を少し濃く＆コンパクトに */
  height: 100%;
  padding: 21px 22px;
  text-align: center;
  transition: 0.3s;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;	
  border-radius: 0; /* 角丸無効化 */
  position: relative;
  overflow: hidden;  
    /* 左上と右下を7%カット */
  clip-path: polygon(
    7% 0, /* 左上カット（横方向） */
    100% 0,
    100% 93%, /* 右下カット（縦方向） */
    93% 100%, /* 右下カット（横方向） */
    0 100%,
    0 7% /* 左上カット（縦方向） */
  );
}

.services .service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease-in-out;
}

.services .service-item:hover::before {
  height: 100%;
}

/* 画像も枠に合わせてカット */
.service-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  clip-path: polygon(
    5% 0, /* 左上カット（横方向） */
    100% 0,
    100% 100%, /* 右下カット（縦方向） */
    100% 100%, /* 右下カット（横方向） */
    0 100%,
    0 9% /* 左上カット（縦方向） */
  );
  transition: transform 0.3s ease;
}

/* スマホ（575px以下）はさらにコンパクトに */
@media (max-width: 575px) {
  .service-item img {
    margin: -20px 0 14px;
  }
}

/* ホバー時の変化 */
.services .service-item:hover {
  transform: translateY(-5px);
  opacity: 0.95;
  box-shadow: 0px 12px 35px rgba(0, 0, 0, 0.3); /* 濃く＆大きくして存在感アップ */
}

.service-item p {
  text-align: left;
  margin-top: 10px; /* 上との間隔調整 */
  font-size: 14px;
  color: var(--default-color); /* 文字色 */
}

.services .service-item .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .service-item .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .service-item .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .service-item .icon svg path {
  transition: 0.5s;
  fill: color-mix(in srgb, var(--default-color), transparent 95%);
}

.services .service-item h3 {
  /* font-weight: 700; */
  margin: 25px 0 12px 0;
  font-size: 24px; /* 22px */
}

.services .service-item p {
  line-height: 24px;
  font-size: 18px;
  margin-bottom: 0;
}

.services .service-item:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.1);
}

.services .service-item.item-cyan i {
  color: #0dcaf0;
}

.services .service-item.item-cyan:hover .icon i {
  color: #fff;
}

.services .service-item.item-cyan:hover .icon path {
  fill: #0dcaf0;
}

.services .service-item.item-orange i {
  color: #fd7e14;
}

.services .service-item.item-orange:hover .icon i {
  color: #fff;
}

.services .service-item.item-orange:hover .icon path {
  fill: #fd7e14;
}

.services .service-item.item-teal i {
  color: #20c997;
}

.services .service-item.item-teal:hover .icon i {
  color: #fff;
}

.services .service-item.item-teal:hover .icon path {
  fill: #20c997;
}

.services .service-item.item-red i {
  color: #df1529;
}

.services .service-item.item-red:hover .icon i {
  color: #fff;
}

.services .service-item.item-red:hover .icon path {
  fill: #df1529;
}

.services .service-item.item-indigo i {
  color: #6610f2;
}

.services .service-item.item-indigo:hover .icon i {
  color: #fff;
}

.services .service-item.item-indigo:hover .icon path {
  fill: #6610f2;
}

.services .service-item.item-pink i {
  color: #f3268c;
}

.services .service-item.item-pink:hover .icon i {
  color: #fff;
}

.services .service-item.item-pink:hover .icon path {
  fill: #f3268c;
}

@media (max-width: 575px) {
  .services .service-item p {
  font-size: 16px;
  margin-bottom: 0;
  }
}

@media (max-width: 575px) {
  .services .service-item h3 {
    font-size: 18px;
  }
}

/* スマホ専用の調整 */
@media (max-width: 575px) {
  .services .service-item {
    padding: 40px 20px; /* 少しコンパクトに */
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  }

  /* タップ時の変化（hoverの代わり） */
  .services .service-item:active {
    transform: translateY(-3px) scale(0.98); /* 少し押し込む＋持ち上がる */
    opacity: 0.95;
    box-shadow: 0px 10px 28px rgba(0, 0, 0, 0.35); /* 濃い影 */
  }
}

.service-details blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 20px 20px;
  position: relative;
  text-align: left;
  margin: 10px 0 20px;
}

.service-details .block {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 20px 20px;
  position: relative;
  text-align: left;
  margin: 10px 0 20px;
}

.bk {
  color: var(--nav-color);
  font-family: var(--nav-font);
  font-weight: 500;
}

/*--------------------------------------------------------------
# Services Section2 YouTube設定あり：重要
--------------------------------------------------------------*/
.services .watch-video i {
  font-size: 2rem;
  transition: 0.3s;
  color: var(--accent-color);
}

.services .watch-video a {
  font-weight: 600;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-left: 8px;
  transition: 0.3s;
}

.services .watch-video:hover a {
  color: var(--accent-color);
}

.youtube-thumb img {
  width: 100%;
  display: block;
}

/* 親要素を基準にする */
.youtube-thumb {
  position: relative;
  display: inline-block; /* アイコンの位置合わせに必要 */
}

/* 再生アイコンのスタイル */
.play-icon {
  position: absolute;
  top: 40%; /* 垂直位置（数値を変えて調整可能） */
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 100px; /* アイコンの大きさ */
  color: rgba(255, 255, 255, 0.5) !important; /* 薄い白 */
  transition: transform 0.3s, color 0.3s;
  pointer-events: none; /* アイコンをクリックしてもリンク動作を邪魔しない */
}

/* ホバー時の動作 :親 <a> の hover に反応 */
.youtube-thumb:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
  color: rgba(255, 255, 255, 1) !important; /* 白マーク */
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);

  /* 通常時の枠線 薄グレー */
  border: 1px solid rgba(0, 0, 0, 0.1);  /* 薄グレー */
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--surface-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

.portfolio-description h3 i.bi {
  color: var(--accent-color);
  margin-right: 8px; /* アイコンと文字の間の隙間 */
  vertical-align: middle; /* アイコンを文字の中央に揃える */
  position: relative; /* 位置調整のため相対位置 */
  top: -3px; /* 上方向に微調整 */
}

/* YouTubeサムネイル専用の角丸設定 */
.portfolio-item .youtube-thumb img {
  clip-path: none !important; /* 三角カットを上書き解除 */
  border-radius: 12px; /* 角丸（YouTubeサムネ風） */
  border: 1px solid rgba(0, 0, 0, 0.1); /* 薄いグレー枠 */
  width: 100%;
  aspect-ratio: 16 / 9; /* 横長の比率を固定（16:9） */
  object-fit: cover; /* 画像を切り取りフィット */
  display: block;
}

/* アイコンと文字を横並び＆間隔調整 */
.portfolio .youtube-thumb > div {
  display: flex; /* 横並びにする */
  align-items: center; /* 縦方向中央揃え */
  gap: 8px; /* アイコンと文字の間隔（pxで調整可能） */
  color: var(--accent-color-dark); /* 落ち着いた緑 */
}

/* 文字サイズを18pxに */
.portfolio .youtube-thumb > div h3 {
  font-size: 18px;
  margin: 0; /* h3のデフォルト余白をリセット */
}

/* スマホ用：文字サイズ16pxに */
@media (max-width: 767px) {
  .portfolio .youtube-thumb > div h3 {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .clients-wrap {
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-left: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.clients .client-logo {
  background-color: var(--surface-color);
  display: flex;
  justify-content: center;
  align-items: center;
  border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  overflow: hidden;
}

.clients .client-logo img {
  padding: 50px;
  max-width: 80%;
  transition: 0.3s;
}

@media (max-width: 640px) {
  .clients .client-logo img {
    padding: 30px;
    max-width: 50%;
  }
}

.clients .client-logo:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .team-member {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border-radius: 0; /* 角丸は無効化 */
  /* 左上と右下を同じ深さでカット（5%だけカット） */
  clip-path: polygon(
    5% 0, /* 左上カット */
    100% 0,
    100% 95%, /* 右下カット */
    95% 100%,
    0 100%,
    0 5% /* 左上カット */
  );
}

.team .team-member .member-img {
  position: relative;
  overflow: hidden;
}

.team .team-member .member-img::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease-in-out;
  z-index: 2;
}

.team .team-member .member-img:hover::before {
  height: 100%;
}

.team .team-member .member-info .title-with-icon i {
  font-size: 16px;
  color: var(--accent-color); /* 緑系で統一 */
}

/* -- 半透明のボタン -- */
.team .team-member .social {
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255,255,255,0.7);
  transform: scaleY(0);
  transform-origin: bottom;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  text-align: center;
}

.team .team-member .social b {
  color: #111111 !important; 
  font-weight: 500 !important;
  font-family: "Noto Sans JP", "Yu Gothic", sans-serif !important;
}

/* ホバーで全体表示 */
.team .team-member:hover .social {
  transform: scaleY(1);
  opacity: 1;
}
/* -- 半透明のボタン end -- */

.team .team-member .social a i {
  line-height: 0;
}

.team .team-member .social i {
  font-size: 20px;
  margin: 0 2px;
}

.team .team-member .member-info {
  padding: 10px 0px 14px 10px;
  text-align: center;
}

/* アイコンと見出しを横並び＆中央揃え */
.team .team-member .member-info .title-with-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* 左寄せ */
  gap: 8px; /* アイコンとテキストの間隔 */
  margin-top: 8px; /* 上の余白 */
  padding-left: 16px; /* 左に余白を追加（調整可） */
}

.team .team-member .member-info h4 {
  font-weight: 500;
  /* margin-bottom: 5px; */
  margin: 0;
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.team .team-member .member-info span {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .team-member .member-info p {
  font-style: italic;
  font-size: 14px;
  line-height: 26px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

/* PCのみ 外側上部に余白を入れる */
@media (min-width: 992px) {
  section#team {
    margin-top: 50px; /* 前ブロックとの間を空ける（外側スペース）*/
    border-top: 1px solid transparent;/* マージン折りたたみ防止（見た目に影響なし）*/
  }
}

/* スマホのみ h2の上余白を狭くする */
@media (max-width: 767px) {
  section#team .section-title h2 {
    margin-top: 0px;  /* デフォルトより狭く（調整可） */
  }
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-item {
  background-color: var(--surface-color);
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  position: relative;
  height: 100%;
}

.testimonials .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

.testimonials .testimonial-item .stars {
  margin: 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Features Section
--------------------------------------------------------------*/
.features .features-item {
  background-color: var(--surface-color);
  display: flex;
  align-items: center;
  padding: 20px;
  transition: 0.3s;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  position: relative;
}

@media (max-width: 575px) { /*576→575*/
.features {
  margin-top: -30px;
  }
}

.features .features-item i {
  font-size: 32px;
  padding-right: 10px;
  line-height: 0;
}

.features .features-item h3 {
  font-weight: 700;
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 16px;
}

.features .features-item h3 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.features .features-item:hover {
  border-color: var(--accent-color);
}

.features .features-item:hover h3 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Service Details Section & ページ専用補正
--------------------------------------------------------------*/
/* 左サイドボタン＆コンテンツ */
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  /* border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%); */
  margin-bottom: 20px;
  background-color: color-mix(in srgb, var(--nav-color), transparent 96%);

  /* 高さが変わっても三角の角度一定（px指定） */
  clip-path: polygon(
    20px 0, /* 左上カット */
    100% 0,
    100% calc(100% - 20px), /* 右下カット */
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
}

/* ▼ PC限定：サービスリストの背景点滅 ▼ */
/* ▼ 背景点滅＋文字色変化アニメーション ▼ */
@media screen and (min-width: 1024px) {

  /* 緑点滅 */
  @keyframes gentleHighlight {
    0%, 100% { background-color: color-mix(in srgb, var(--nav-color), transparent 96%); }
    50% { background-color: color-mix(in srgb, rgba(0, 155, 119, 0.8), transparent 40%); } /* rgba(27, 189, 54, 0.7) var(--accent-color)*/
  }

  .services-list.highlight-on-load {
    position: relative;
    overflow: hidden;
    animation: gentleHighlight 3s ease-in-out infinite;
    transition: background-color 1s ease-in-out, color 1s ease-in-out;
  }

  /* 光スジのCSS変数を使ってランダム化 */
  .services-list.highlight-on-load::before {
    content:"";
    position:absolute; top:0; left:0;
    width: var(--shine-width, 80%);
    height:100%;
    background: linear-gradient(
      calc(120deg + var(--shine-angle, 0deg)),
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,var(--shine-opacity, 0.5)) 50%,
      rgba(255,255,255,0) 100%
    );
    transform: skewX(var(--shine-skew, -20deg)) translateX(var(--shine-start, -100%));
    opacity:0;
    pointer-events:none;
  }

  @keyframes shine {
    0% { transform: skewX(var(--shine-skew,-20deg)) translateX(var(--shine-start,-100%)); opacity:0; }
    20% { opacity: var(--shine-opacity,0.4); }
    50% { opacity: var(--shine-opacity,0.55); }
    70% { opacity: var(--shine-opacity,0.35); }
    100% { transform: skewX(var(--shine-skew,-20deg)) translateX(300%); opacity:0; }
  }

  .services-list.highlight-on-load.shine-on::before {
    animation: shine var(--shine-duration, 1.6s) ease-in-out forwards;
  }

  .services-list.stop-highlight {
    animation:none !important;
    background-color: color-mix(in srgb, var(--nav-color), transparent 96%) !important;
  }
  .services-list.stop-highlight::before { animation:none !important; opacity:0 !important; }

  .services-list.highlight-on-load a.menu-link { transition:color 1s ease-in-out; color: var(--nav-color);}
  .services-list.highlight-on-load.max-green a.menu-link { color:#333 !important; }
}

/* スマホグレー */
@media screen and (max-width: 1023px) {
  .services-list.highlight-on-load {
    animation:none !important;
    background-color: #f0f0f0 !important;
  }
  .services-list.highlight-on-load::before { display:block !important; }
}
/* end */

.service-details .services-list a {
  display: block;
  line-height: 1.5;
  padding: 8px 0 8px 15px;
  margin: 20px 0;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

/* hover時 */
.service-details .services-list a:hover {
  border-left-color: var(--accent-color);
  color: var(--heading-color);
}

/* focus時 */
.service-details .services-list a:focus {
  outline: none; /* ゴースト枠を完全に消す */
  /* outline: 3px solid color-mix(in srgb, var(--accent-color), transparent 70%);
  outline-offset: 2px; */
}

/* アクティブ時：縦棒のみ緑、囲みなし */
.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-left: 3px solid var(--accent-color); /* 左の縦棒だけ緑 */
  background: none;
  outline: none; /* クリック時の枠も消す */
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .service-details .services-list a {
    font-size: 15px;
  }
}

.service-details .services-img {
  margin-bottom: 20px;
  aspect-ratio: 16 / 9; /* YouTube風（横16：縦9）比率 */
  width: 100%;
  object-fit: cover; /* 画像をトリミングして比率を維持 */
  display: block;
  /* border-radius: 10px; */ /* （任意）角丸を付けたい場合 */
}

.service-details h2,h3 {
  margin: 25px 0 15px;
  font-weight: 400;
  font-size: 24px;
}

@media (max-width: 575px) { /*576→575*/
  .service-details h2,h3 {
    font-size: 20px; /* スマホ用に小さく */
  }
  .service-details p,
  .service-details ul {
  font-size: 16px; /* スマホ用に小さく */
  }
}

.service-details h4 {
  margin: 25px 0 10px;
  font-weight: 500;
  font-size: 20px;
  position: relative;
  padding-left: 12px; /* 縦棒と文字の余白 */
  line-height: 1.4;   /* テキストの行の高さ */
}

.service-details h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; /* 上下中央揃え */
  transform: translateY(-45%); /* -50% から -45% に調整して少し下げる */
  width: 3px; /* 縦棒の太さ（細め） */
  height: 70%; /* 文字高さに対する割合（短め） */
  background-color: var(--accent-color); /* 統一デザインの緑#28a745 */
  border-radius: 2px; /* 角を少し丸く */
}

.service-details p,
.service-details ul {
  font-size: 18px;
}

.service-details ul {
  list-style: none;
  padding: 0 1px;
}

.service-details ul li {
  padding: 0;
  display: flex;
  align-items: flex-start; /* 上揃えに変更 */
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
  position: relative;
  top: -2px; /* 少し上に寄せる */
}

/* --------------------------------------------------------------
   左サイドボタン｜一番下3つ（h4 a）
-------------------------------------------------------------- */
/* h4 の縦棒は削除 */
.service-details .col-lg-4 h4::before {
  content: none; /* 左の棒を消去 */
}

/* 一番下3つのh4 a ボタン */
.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a {
  display: block;
  position: relative;
  padding: 5px 12px; /* 上下パディングを小さくして縦幅を詰める */
  margin: 0; /* ボタン間の縦間隔 */
  color: rgba(0,0,0,0.6);
  font-weight: 400;
  line-height: 1.0; /* 文字の行間を詰める */
  text-decoration: none;
  transition: all 0.3s;
}

/* PC・タブレット用：最後の3つの h4 の余白を詰める */
@media (min-width: 577px) {
  .service-details .col-lg-4 h4:nth-last-of-type(-n+3) {
    margin: 6px 0;     /* 上下余白を小さく */
    line-height: 1.2;  /* 行間を詰める */
  }
}

/* 左縦棒 */
.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 70%;
  background-color: #ccc;
  border-radius: 2px;
  transition: all 0.3s;
}

/* hover時 */
.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a:hover {
  color: #000;
  font-weight: 500;
}

.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a:hover::before {
  background-color: var(--accent-color);
}

/* active時 */
.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a.active {
  color: #000;
  font-weight: 500;
}

.service-details .col-lg-4 h4:nth-last-of-type(-n+3) a.active::before {
  background-color: var(--accent-color);
}


@media (min-width: 576px) and (max-width: 1440px)  {
  .service-details .col-lg-4 h4 {
    font-size: 16px;
  }
}

@media (max-width: 575px) { /*576→575*/
  .service-details .col-lg-4 h4:nth-last-of-type(-n+3) a {
    font-size: 16px;
    padding: 0px 10px; /* 上下・左右の調整 */
  }
}

/*--------------------------------------------------------------
# 左サイドボタン固定（PCのみ、幅固定、右ブロック余白対応）★
--------------------------------------------------------------*/

/* 992px以上 左カラム固定 */
@media (min-width: 992px) {	
  .service-details {
    margin-top: -100px;
	margin-bottom: -100px;
    display: flex;
    align-items: flex-start;
  }
	
  .service-details .col-lg-4 {
    position: sticky; /* fixed */
	margin-top: 55px; /* 重要 55 */
    top: 126px; /* 移動後の位置 200 */
    width: 33%; /* 固定値でなくパーセント推奨 */
    max-width: 460px; /* 最大幅を制限 */	
	/* background: var(--background-color); */
    z-index: 10;
    /* border-radius: 16px; */ /* 角丸追加 */
    padding-bottom: 15px /* 角丸と内容の余白を確保 */
  }

  .service-details .col-lg-8 {
    margin-left: 33.333%; /* 左カラム分だけ右に押す */
	margin-bottom: -450px;
    padding-left: 30px;
    position: relative;
    top: -458px;  /* パンくず高さに応じて調整 */
  }
	
  /* 大浴場ページ（sp_cl） */
   .sp_cl .col-lg-4 {
	margin-top: 55px;
  }

  .sp_cl .col-lg-8 {
    top: -665px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .op_cl .col-lg-8 {
    top: -603px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .sp_cp .col-lg-8 {
    top: -853px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .sp_ms .col-lg-8 {
    top: -854px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .hp_cl .col-lg-8 {
    top: -602px; /* 微調整：パンくずバー高さに合わせる */
  }
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .service-details .col-lg-8 {
    top: -430px;
  }

  .sp_cl .col-lg-8 {
    top: -625px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .op_cl .col-lg-8 {
    top: -567px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .sp_cp .col-lg-8 {
    top: -801px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .sp_ms .col-lg-8 {
    top: -804px; /* 微調整：パンくずバー高さに合わせる */
  }
	
  .hp_cl .col-lg-8 {
    top: -568px; /* 微調整：パンくずバー高さに合わせる */
  }  
}

/* 991px以下 通常のフローに戻す */
@media (max-width: 991px) {
  .service-details .col-lg-4 {
    position: static;
    width: 100%;
    margin-top: -50px; /* 重要 0 */
    top: auto;
    z-index: 10;
  }

  .service-details .col-lg-8 {
    margin-left: 0;
    /* padding-left: 10px; */
    top: auto;
  }
}

@media (max-width: 575px) { /*576→575*/
  /* スマホ時：文字サイズを16pxに統一 */
  .service-details .col-lg-8 p,
  .service-details .col-lg-8 li,
  .service-details .col-lg-8 li i {
    font-size: 16px;
  }

  .service-details .col-lg-4 {
    margin-top: 0px; /* 重要 0 */
  }

  .service-details .col-lg-8 h4 {
    font-size: 18px;
  }
}

/*--------------------------------------------------------------
# サービスボタン群（左固定カラム下）
--------------------------------------------------------------*/
/* 左カラムの h4 と p に左右の余白を追加 */
.service-details .col-lg-4 h4,
.service-details .col-lg-4 p {
  padding-left: 10px;
  padding-right: 10px;
  line-height: 1.6; /* 行間を詰める */
}

@media (max-width: 575px) { /*576→575*/
  .service-details .col-lg-4 p {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    line-height: 1.4; /* 行間も同様に詰める */
  }
}

.service-buttons {
  display: flex;
  flex-direction: column; /* 縦並び */
  /* gap: 4px; */ /* ボタン間隔を狭く */
  margin: 2px 0 15px; /* 余白 */
}

/* ボタンの基本スタイル */
.service-buttons .btn-service {
  display: flex;
  align-items: center;
  gap: 8px; /* アイコンと文字の間隔 */
  padding: 5px 8px; /* 上下の内側余白を増やす */
  font-family: var(--nav-font);
  font-weight: 400;
  font-size: 18px; /* PC文字サイズ */
  color: rgba(0,0,0,0.6); /* 初期は少し薄めの黒文字 */
  text-decoration: none;
  border-radius: 8px; /* 丸角四角 */
  cursor: pointer;
  transition: all 0.3s;
  background-color: transparent; /* 背景は透明 */
}

/* アイコン初期色 */
.service-buttons .btn-service i {
  font-size: 14px;
  color: var(--accent-color) ; /* 初期#ccc #28a745*/
  transition: all 0.3s;
}

/* hover時 */
.service-buttons .btn-service:hover {
  color: #000; /* 文字を黒 */
  font-weight: 500;
}

.service-buttons .btn-service:hover i {
  color: var(--accent-color) !important; /* アイコンのホバー時：初期#28a745 */
  transition: color 0.3s; /* 色変化を滑らかに */
}

/* サービスボタン群の枠デザイン */
.service-buttons {
  border: 1px solid #28a745; /* 緑の細い角丸枠 */
  border-radius: 12px; /* 角丸 */
  padding: 12px 12px; /* 枠と内側ボタンの上下左右余白 */
  margin-top: 16px; /* h4との間隔 */
  display: flex;
  flex-direction: column; /* ボタン縦並び */
  background-color: color-mix(in srgb, var(--nav-color), transparent 96%);
}

.service-buttons .btn-service {
  display: flex;
  align-items: center;
  gap: 8px; /* アイコンと文字の間隔 */
  padding: 2px 3px; /* ボタン内の左右余白 */
  font-family: var(--nav-font);
  font-weight: 400;
  font-size: 18px; /* PC文字サイズ */
  color: rgba(0,0,0,0.6);
  text-decoration: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  background-color: transparent;
}

/* ボタンhover時 */
.service-buttons .btn-service:hover {
  color: #000;
}
.service-buttons .btn-service:hover i {
  color: #28a745;
}

/* スマホ対応 */
@media (max-width: 575px) { /*576→575*/
  .service-buttons {
    padding: 8px; /* 内側余白をスマホ向けに少し小さめ */
    border-radius: 8px; /* 角丸も小さめ */
    margin-top: 10px; /* h4との間隔を少し詰める */
  }

  .service-buttons .btn-service {
    font-size: 16px;
    padding: 6px 4px;
  }
}

/*--------------------------------------------------------------
# アンカーリンク固定補助（ヘッダー＋パンくず被り防止）
--------------------------------------------------------------*/
.service-details [id]::before {
  content: "";
  display: block;
  height: 140px; /* ヘッダー＋パンくず高さ */
  margin-top: -140px;
  visibility: hidden;
}

.service-details [id] {
  scroll-margin-top: 140px; /* 保険としてモダンブラウザ対応 */
  margin-bottom: 50px; /* ここで下余白追加 */
}

/*--------------------------------------------------------------
# スムーズスクロール（モダンブラウザ）
--------------------------------------------------------------*/
.service-page {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# ページ専用：ヘッダー固定・パンくず固定・SNSリンク
--------------------------------------------------------------*/
.service-page .header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--background-color);
  padding: 10px 0;
  box-shadow: 0 0 18px rgba(0,0,0,0.1);
}

.service-page .header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.service-page .header .logo h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--heading-color);
}

.service-page .header .header-social-links a.youtube i {
  color: #FF0000;
  font-size: 20px;
  transition: 0.3s;
}

.service-page .header .header-social-links a.youtube:hover i {
  color: #cc0000;
}

/*--------------------------------------------------------------
# Service Details Section｜YouTubeギャラリー専用
--------------------------------------------------------------*/
.service-youtube-gallery {
  margin-top: 20px;
}

/* フィルター（タブ） */
.service-youtube-gallery .youtube-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.service-youtube-gallery .youtube-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--heading-font);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.service-youtube-gallery .youtube-filters li:hover,
.service-youtube-gallery .youtube-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

/* Section Divider */
.service-page h3.section-divider {
  position: relative;
  padding-top: 20px;
  padding-bottom: 40px;
}

.service-page h3.section-divider::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background-color: #ddd;
}

@media (max-width: 575px) {
  .service-youtube-gallery .youtube-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

/* YouTubeサムネイル */
.service-youtube-gallery .youtube-item {
  position: relative;
  overflow: hidden;
}

.service-youtube-gallery .youtube-thumb img {
  clip-path: none !important;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.service-youtube-gallery .youtube-thumb > div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px; /*アイコン+文字（基本）*/
  margin-bottom: 5px;
}

.service-youtube-gallery .youtube-thumb > div p {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 18px; /*アイコン下の文字*/
  margin: 0;
}

.service-page .youtube-filters li {
  font-family: var(--heading-font);
}

@media (max-width: 767px) {
  .service-youtube-gallery .youtube-thumb > div p {
    font-size: 16px;
  }
}

/* YouTube サムネイル セクション */
.service-page .youtube-container {
  position: relative; /* Isotope 用 */
}

/* YouTube サムネイルアイテム */
.service-page .youtube-item {
  width: calc(33.333% - 6px);
  margin: 0 6px 30px 0; /* 横10px・下30pxの隙間 */
  float: left;
  border-box: border-box;
}

.service-page .youtube-item img {
  width: 100%;
  aspect-ratio: 16 / 9; /* 横16:縦9で固定 */
  border-radius: 12px; /* 角丸（YouTube風はやや大きめ推奨） */
  display: block;
  object-fit: cover; /* 枠いっぱいに表示、上下をカット */
  object-position: center; /* 中央を基準にトリミング */
}

/* 再生アイコンを小さく */
.service-youtube-gallery .youtube-thumb .play-icon {
  font-size: 80px; /* デフォルトより小さめに（px指定） */
  color: white; /* 色も変更可能 */
  opacity: 0.9; /* 少し透過させたい場合 */
}

/* タブレット以下は3列 */
@media (max-width: 992px) {
  .service-page .youtube-item {
    width: calc(50% - 15px);
  }
}

/* スマホは1列 */
@media (max-width: 575px) { /*576→575*/
  .service-page .youtube-item {
    width: 100%;
    margin-bottom: 15px;
  }
}

/* ギャラリー下の余白調整 */
@media (max-width: 575px) { /*576→575*/

  /* ギャラリーの親も含め余白ゼロ */
  .service-youtube-gallery,
  .service-details {
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden; /* margin collapsing 対策 */
  }

  /* ギャラリー内の最下段サムネイル */
  .service-youtube-gallery .youtube-item {
    margin: 0 !important;
    padding: 0 !important;
  }

  /* ギャラリー直後の要素の上余白もゼロ */
  .service-youtube-gallery + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 画像・iframeの下余白も消す */
  .service-youtube-gallery img,
  .service-youtube-gallery iframe {
    display: block;
    margin: 0;
    padding: 0;
    vertical-align: bottom;
  }

  /* フッターも余白ゼロ */
  footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}

/* 物件&アイテム ギャラリー専用デザイン */
.property-gallery .youtube-item img {
  width: 100%;
  aspect-ratio: 16 / 9; /* YouTubeと同じ比率 */
  border-radius: 0; /* 角丸をやめる */
  display: block;
  object-fit: cover;
  transition: opacity 0.3s ease-in-out;
}

/* a要素を相対配置にしてオーバーレイを重ねる */
.property-gallery .youtube-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none; /* 下線を消す */
  color: inherit;
}

/* ホバー時に画像を半透明に */
.property-gallery .youtube-thumb:hover img {
  opacity: 0.2;
}

/* オーバーレイテキスト */
.property-gallery .overlay-text {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 20px !important; 
  opacity: 0;
  transition: opacity 0.3s ease-in-out, font-size 0.3s ease;
  pointer-events: none; /* テキスト自体はクリック不可 */
  text-align: center;
  white-space: nowrap;
}

/* ホバー時に文字を表示 */
.property-gallery .youtube-thumb:hover .overlay-text {
  opacity: 1;
}
/* end */

/*--------------------------------------------------------------
# youtube用サムネイルのスマホ対応
--------------------------------------------------------------*/

@media (max-width: 575px) {

  .youtube-thumb {
    display: block;
	text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    padding-top: 20px;
  }

  .youtube-thumb h3 {
    margin-top: 0.75rem; /* タイトルを見せるための余白 */
  } 
}
/* end */

/* iframeラッパ */
.map-wrapper {
  margin-top: -32px; /* PC時：少し上に詰める */
  margin-bottom: 40px;
}

/* iframe 共通 */
.map-wrapper iframe {
  width: 100%;
  border: none;
  display: block;
}

/* PC用の高さ */
@media (min-width: 992px) {
  .map-wrapper iframe {
    height: 650px;  /* 適度な縦の長さ（調整可） */
  }
}

/* スマホ用の高さと下余白 */
@media (max-width: 575px) {
  .map-wrapper {
	margin-top: 5px;
    margin-bottom: 25px; /* スマホ時：下に余白を確保 */
  }
  .map-wrapper iframe {
    height: 55vh; /* 画面の55%の高さ、見やすいサイズ感 */
  }
}

/*--------------------------------------------------------------
# Page Title & Breadcrumb 固定（ヘッダー下、上下微動防止）
--------------------------------------------------------------*/
.page-title-wrapper {
  position: relative;
  z-index: 998;
}

.page-title-wrapper .page-title {
  position: relative; /* fixed★ */
  /* top: 79px; */ /* ヘッダー下★ */
  left: 0;
  width: 100%;
  z-index: 998;
  /* background-color: var(--accent-color-dark);★ */
}

.page-title-wrapper .page-title .container {
  display: relative; /* flex★ */
  justify-content: space-between;
  align-items: center;
  /* gap: 10px; */
}

.page-title-wrapper .page-title h1 {
  margin: -5px 0;
  font-size: 20px;
  line-height: 1.2;
}

.page-title-wrapper .page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
}

.page-title-wrapper .page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title-wrapper .page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

@media(max-width:768px){
  .page-title-wrapper .page-title .breadcrumbs ol {
    font-size: 16px;
  }
}

@media(max-width:991px) {
  .page-title-wrapper .page-title {
    position: relative; /* fixed → relative に戻す */
    top: auto;
    left: auto;
    width: 100%;
  }
}

.service-details .container {
  position: relative;
  padding-top: 70px;
  padding-bottom: 30px;
  margin-bottom: 50px;
}

/* スマホ時（575px以下）の余白を詰める */
@media (max-width: 575px) { /*576→575*/
  /* コンテナの上余白をゼロに */
  .service-details .container {
  /* padding-top: 10px; *//* 隙間 */
  }

  /* アンカーリンク補助の余白も極小に */
  .service-details [id]::before {
    height: 5px;      /* 最低限だけ残す */
    margin-top: -5px;
  }
  .service-details [id] {
    scroll-margin-top: 5px;
    margin-bottom: 15px; /* 下方向も少しだけ残す */
  }
}

@media (max-width: 768px) {
  /* 内部コンテナを縦並び・左寄せに */
  .page-title-wrapper .page-title .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important; /* 左寄せ */
    text-align: left !important;
    gap: 6px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 見出し（h1）を左寄せに */
  .page-title-wrapper .page-title h1 {
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    font-size: 15px !important; /* 必要に応じて調整 */
    line-height: 1.2 !important;
  }

  /* パンくずを左寄せに */
  .page-title-wrapper .page-title .breadcrumbs,
  .page-title-wrapper .page-title .breadcrumbs ol {
    width: 100% !important;
    text-align: left !important;
    padding-left: 0px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: flex-start !important;
    flex-wrap: wrap !important;
    font-size: 14px;	
  }
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
/* デフォルト（PCなど広い画面） */
.portfolio-details .portfolio-details-slider img {
  width: 100%;
  aspect-ratio: 16 / 9; /* 横長比率 16 / 9 */
  object-fit: cover; /* トリミングして均等に収める */
}

/* スマホ画面（575px以下）は正方形 */
@media (max-width: 575px) {
  .portfolio-details .portfolio-details-slider img {
    aspect-ratio: 1 / 1; /* 正方形 */
  }
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-info h3 {
    font-size: 18px;
  }
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 18px;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-info ul {
    font-size: 16px;
  }
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 20px;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-description h2 {
    font-size: 20px;
  }
}

.portfolio-details .portfolio-description p {
  font-size: 18px;
  padding: 0;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-description p {
    font-size: 16px;
  }
}

.portfolio-details .portfolio-description .testimonial-item {
  position: relative;
  padding: 30px 30px 0 30px;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
  border-radius: 12px; /* 角丸サイズを調整 */
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-description h3 {
    font-size: 18px;
  }
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-description .testimonial-item h3 {
    font-size: 16px;
  }
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  /* font-style: italic; */
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

@media (max-width: 575px) {
  .portfolio-details .portfolio-description .testimonial-item p {
    font-size: 16px;
  }
}

/* ========================================
   narrow-img：サンプル画像専用
   ======================================== */
.narrow-img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* 16:9比率を維持 */
  object-fit: cover; /* 縦長でも自然にトリミング */
  border-radius: 8px; /* やや角丸で自然に */
  margin: -5px 5px 20px; /* 余白 */
  box-sizing: border-box; /* 枠内で余白処理 */
  max-width: calc(100% - 10px); /* 余白分を考慮してはみ出し防止 */
}

@media (max-width: 575px) {
  .narrow-img img {
    margin: 0 0 20px; /* スマホ時は余白を少し小さく */
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
  }
}

/* Portfolio Details: 左右カラム間を20pxに調整 */
.portfolio-details .row.justify-content-between {
  display: flex;
  flex-wrap: wrap;
  gap: 20px; /* 左右の間隔 */
}

/* 右カラムを広げる（PC表示） */
.portfolio-details .row.justify-content-between {
  display: flex;
  flex-wrap: wrap;
  gap: 0px !important; /* 左右の間隔を狭める */
}

/* 右カラムをさらに広げる（PC表示） */
@media (min-width: 992px) {
  .portfolio-details .col-lg-3 {
    flex: 0 0 35%; /* 元は30% → さらに広げる */
    max-width: 35%;
  }
  .portfolio-details .col-lg-8 {
    flex: 0 0 60%; /* 元は65% → 少し狭める */
    max-width: 60%;
  }
}

/* スマホ表示で右カラムの下余白を詰める */
@media (max-width: 575px) {
  .portfolio-details .col-lg-3 {
    margin-top: 20px;
	margin-bottom: -30px;
  }

  .portfolio-details .portfolio-info {
    padding-bottom: 0px; /* 内側の余白を詰める */
  }

  /* ulの下の余白を詰める */
  .portfolio-details .portfolio-info ul {
    margin-bottom: 0;
  }
}

/* ------------------------------
   ポートフォリオスライダー共通
--------------------------------*/
.portfolio-details-slider {
  position: relative;
  width: 100%;
  height: 500px; /* 600px */
  padding: 40px 0 100px 0; /* 下に余裕を確保 */
  overflow: hidden; 
  margin-bottom: 30px;
}

.portfolio-details-slider .swiper-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.portfolio-details-slider .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.2;
  transform: scale(0.85);
  transition: transform 1s ease, opacity 1s ease; /* 浮き上がりをゆっくりに */
  overflow: hidden;
  width: auto;
  height: auto;
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .portfolio-details-slider .swiper-slide {
      width: 80%;
  }
}

/* 画像の左上と右下を三角でカット */
.portfolio-details-slider .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease, opacity 1s ease;
  aspect-ratio: 16 / 7; /* 16 / 9 */
  display: block;
  clip-path: polygon(
    30px 0, /* 左上のカット */
    100% 0,
    100% calc(100% - 30px), /* 右下のカット */
    calc(95% + 20px) 100%,
    0% 100%,
    0 30px
  );
}

/* 中央スライド強調 */
.portfolio-details-slider .swiper-slide-active {
  opacity: 1;
  transform: scale(1.15);
  z-index: 2;
}

/* 隣スライド */
.portfolio-details-slider .swiper-slide-prev,
.portfolio-details-slider .swiper-slide-next {
  opacity: 0.2;
  transform: scale(0.9);
  z-index: 1;
}

/* ナビボタン（〇矢印） */
.portfolio-details-slider .swiper-button-prev,
.portfolio-details-slider .swiper-button-next {
  color: white;
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.3); /* 半透明グレー背景 */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

/* 矢印アイコンを中央に配置 */
.portfolio-details-slider .swiper-button-prev::after,
.portfolio-details-slider .swiper-button-next::after {
  font-size: 18px; /* アイコンサイズ */
  color: white;    /* アイコン色 */
}

/* ページネーション（緑丸） */
.portfolio-details-slider .swiper-pagination {
  position: absolute;
  bottom: 55px !important; /* 中央画像下に浮かせる */
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* ページネーション初期は透明 */
.portfolio-details-slider .swiper-pagination {
  opacity: 0;
  transition: opacity 1s ease 1s; /* 1秒かけてフェードイン、1秒遅延 */
}

/* スライダー読み込み後にクラス追加で表示 */
.portfolio-details-slider.loaded .swiper-pagination {
  opacity: 1;
}

.portfolio-details-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0,255,0,0.5);
  margin: 0 4px !important;
  opacity: 1;
}

.portfolio-details-slider .swiper-pagination-bullet-active {
  background: green;
}

/* スライド番号ラベル */
.slide-number {
  position: absolute;
  bottom: 15px;
  left: 20px;
  font-size: 14px;
  font-weight: 300;
  font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  color: rgba(200,200,200,0.6);
  background: rgba(0,0,0,0.25);
  padding: 4px 12px; /* 左右余白を広げる */
  border-radius: 6px;
  pointer-events: none;
  transition: all 0.3s ease;
  text-align: left;
}

/* 中央スライドの番号強調 */
.portfolio-details-slider .swiper-slide-active .slide-number {
  color: #ffffff;
  font-size: 16px;
  font-weight: 300;
  background: rgba(0,0,0,0.4);
}

/* レスポンシブ */
@media (max-width: 575px) {
  .portfolio-details-slider {
    padding: 0; /* 上下の余白を狭める */
	margin-top: -100px;
	margin-bottom: -50px;
  }

  .portfolio-details-slider .swiper-slide img {
    aspect-ratio: 1 / 1;
    clip-path: none; /* スマホではカットを無効 */
  }

  .portfolio-details-slider .swiper-slide-active,
  .portfolio-details-slider .swiper-slide-prev,
  .portfolio-details-slider .swiper-slide-next {
    transform: scale(1);
  }

  .portfolio-details-slider .swiper-pagination {
    bottom: 50px; /* ページネーションも少し上げる */
  }
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing .pricing-item {
  background-color: color-mix(in srgb, var(--nav-color), transparent 96%);
  padding: 25px 25px;
  height: 100%;
  border-radius: 0; /* 角丸を無効化 */
  position: relative;
  overflow: hidden;
  /* 左上と右下を7%ずつカット（正三角形っぽい切口） */
  clip-path: polygon(
    8% 0, /* 左上カット：横の位置から開始 */
    100% 0,    
    100% 95%, /* 右下カット：縦上にずらす */
    92% 100%, /* 右下カット：横左にずらす */
    0 100%,    
    0 5% /* 左上カット：縦下にずらす */
  );
}

.pricing .pricing-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background-color: var(--accent-color);
  transition: height 0.3s ease-in-out;
}

.pricing .pricing-item:hover::before {
  height: 100%;
}

.pricing p {
  color: var(--heading-color);
}

.pricing h3 {
  /* font-weight: 600; */
  margin: 25px 0 15px 0;
  font-size: 24px;
  text-align: center; /* 文字を中央寄せ */
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .pricing h3 {
    font-size: 20px;
  }
}

@media (max-width: 575px) {
  .pricing h3 {
  font-size: 18px;
  }
}

.pricing h4 {
  color: var(--accent-color);
  font-size: 48px;
  /* font-weight: 700; */
  font-family: var(--heading-font);
  margin-bottom: 0;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
  font-weight: 500;
}

.pricing .description {
  font-size: 18px;
}

/* Pricing ボタン通常 */
.pricing .cta-btn {
  background: var(--accent-color-dark);
  border: 1px solid var(--accent-color-dark);
  color: var(--contrast-color);
  display: block;
  text-align: center;
  padding: 10px 35px;
  /* border-radius: 5px; 丸み無効化 */
  font-size: 16px;
  font-weight: 500;
  font-family: var(--heading-font);
  transition: 0.3s;
  margin-top: 20px;
  margin-bottom: 6px;
}

/* Pricing ボタンホバー */
.pricing .cta-btn:hover {
  background-color: var(--accent-color3); /* 緑 */
  color: var(--contrast-color); /* 文字は白 */
  border-color: var(--accent-color3); /* 枠線も同色 */
}

.pricing ul {
  padding: 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul li:last-child {
  padding-bottom: 0;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .pricing ul i {
    font-size: 15px !important; 
  }
  .pricing ul {
    font-size: 16px !important; 
  }
}

@media (max-width: 575px) {
  .pricing ul i {
  font-size: 18px;
  }
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .featured {
  position: relative;
}

.pricing .featured .popular {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 4px 15px 6px 15px;
  margin: 0;
  border-radius: 5px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 400;
} 

.pricing .featured .cta-btn {
  background: var(--accent-color3);
  color: var(--contrast-color);
  border-color: var(--accent-color3);
}

.pricing .featured .cta-btn:hover {
  background-color: var(--accent-color); /* 緑 */
  color: var(--contrast-color); /* 文字は白 */
  border-color: var(--accent-color); /* 枠線も同色 */
}

@media (max-width: 992px) {
  .pricing .box {
    max-width: 60%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 767px) {
  .pricing .box {
    max-width: 80%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 420px) {
  .pricing .box {
    max-width: 100%;
    margin: 0 auto 30px auto;
  }
}

@media (max-width: 575px) {
  .pricing .description {
  font-size: 16px;
  }
}

/* Pricing Section Images */
/* Pricing 内の画像 */
.pricing .pricing-item img {
  width: 105%;
  max-width: 100%;
  height: auto;
  border-radius: 0; /* 角丸を無効化 */
  object-fit: cover;
  display: block;
  margin: -5px auto 15px;
  transition: transform 0.3s ease;

  clip-path: polygon(
    6% 0, /* 左上カットを深く（横方向） */
    100% 0,
    100% 100%, /* 右下カットを深く（縦方向上へ） */
    100% 100%, /* 右下カットを深く（横方向左へ） */
    0 100%,
    0 9.5% /* 左上カットを深く（縦方向下へ） */
  );
  object-fit: cover; /* 画像を枠にフィットさせる */
}

/* ホバー時に軽くズーム */
.pricing .pricing-item img:hover {
  transform: scale(1.03);
}

/* スマホ用（小さめ＆枠内に収まる） */
@media (max-width: 767px) {
  .pricing .pricing-item img {
    width: 100%;
    /* clip-path はそのまま適用される 調整不要 */
  }
}

/*--------------------------------------------------------------
# Blog Posts Section
--------------------------------------------------------------*/
.blog-posts article {
  background-color: color-mix(in srgb, var(--nav-color), transparent 96%);
  /* box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1); */
  transition: 0.3s;
  /* 右下を三角カット */
  clip-path: polygon(
    25px 0, /* 左上を右にずらしてカット開始 */
    100% 0, /* 右上 */
    100% calc(100% - 25px), /* 右下カット開始（上方向へずらす） */
    calc(100% - 25px) 100%, /* 右下カット終点（左方向へずらす） */
    0 100%, /* 左下 */
    0 25px /* 左上カット終点（下方向へずらす） */
  );
}

.blog-posts .post-img img {
  width: 100%;
  aspect-ratio: 16 / 9; /* YouTube風比率 */
  object-fit: cover; /* 枠いっぱいに切り抜き */
  transition: 0.5s;
  /* 左上を三角カット */
  clip-path: polygon(
    25px 0, /* 左上を右にずらしてカット開始 */
    100% 0, /* 右上 */
    100% 100%, /* 右下 */
    0 100%, /* 左下 */
    0 25px /* 左上カットの終点（下方向へずらす） */
  );
}

.blog-posts span {
  font-family: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;	
  font-weight: 300;
}

.blog-posts .post-date {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  position: absolute;
  right: 0;
  bottom: 0;
  text-transform: uppercase;
  font-size: 13px;
  padding: 6px 12px;
  font-weight: 500;
}

.blog-posts .post-content {
  padding: 15px 30px 30px;
}

.blog-posts .post-title {
  font-size: 20px;
  color: var(--heading-color);
  font-weight: 4400;
  transition: 0.3s;
  margin-bottom: 15px;
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .blog-posts .post-title {
    font-size: 16px;
  }
}

.blog-posts .meta i {
  font-size: 16px;
  color: var(--accent-color);
}

.blog-posts .meta span {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .blog-posts .meta span {
    font-size: 14px;
  }
}

.blog-posts p {
  margin-top: 10px;
  line-height: 1.5; /* 行間を詰める */
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .blog-posts p  {
    font-size: 16px;
  }
}

.blog-posts hr {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin-bottom: 15px;
}

.blog-posts .readmore {
  display: flex;
  align-items: center;
  font-weight: 600;
  line-height: 1;
  transition: 0.3s;
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
}

.blog-posts .readmore i {
  line-height: 0;
  margin-left: 6px;
  font-size: 16px;
}

.blog-posts article:hover .post-title,
.blog-posts article:hover .readmore {
  color: var(--accent-color);
}

.blog-posts article:hover .post-img img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Blog Pagination Section
--------------------------------------------------------------*/
.blog-pagination {
  padding-top: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-pagination ul {
  display: flex;
  padding: 0;
  margin: 0;
  list-style: none;
}

.blog-pagination li {
  margin: 0 5px;
  transition: 0.3s;
}

.blog-pagination li a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  padding: 7px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.blog-pagination li a.active a,
.blog-pagination li a:hover a {
  color: var(--contrast-color);
}

@media (min-width: 576px) and (max-width: 1440px)  {
  .blog-pagination li {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Blog Details Section
--------------------------------------------------------------*/
.blog-details {
  padding-bottom: 30px;
}

.blog-details .article {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.blog-details .post-img {
  margin: -30px -30px 20px -30px;
  overflow: hidden;
}

.blog-details .title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 500;
  padding: 0;
  margin: 30px 0;
}

.blog-details .content {
  margin-top: 20px;
}

.blog-details .title i {
  margin-right: 8px; /* 文字との間隔 */
  vertical-align: middle; /* 中央寄せ */
  line-height: 1; /* アイコンの行の高さを調整 */
  position: relative;
  top: -2px; /* 微調整（マイナス上へ） */
}

@media (max-width: 1440px) {
  .blog-details .title {
    font-size: 20px; /* スマホ時のh2サイズ */
  }
}

.blog-details .content h3 {
  font-size: 22px;
  margin-top: 30px;
  font-weight: bold;
}

.sp-color {
  /* color: var(--accent-color2); */
  display: inline-block; /* 幅を文字に合わせる */
  border-bottom: 3px solid var(--accent-color2);
  padding-bottom: 6px; /* 文字と線の間隔 */
  margin-bottom: 16px;
}

.blog-details-page h4 {
  font-size: 18px !important; /* 小さめに調整 */
  font-weight: 500; /* 指定のウェイト */
  margin-top: 30px !important; /* 必要なら余白も調整 */
}

/* スマホ（575px以下） */
@media (max-width: 575px) {
  .blog-details .content h2 {
    font-size: 16px;
    font-weight: bold;
  }	
  .blog-details .content h3 {
    font-size: 16px;
    font-weight: bold;
  }
}

.blog-details .content blockquote {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 30px 20px;
  position: relative;
  text-align: left;
  margin: 10px 0 20px;
}

.blog-details .content .block {
  overflow: hidden;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 30px 20px;
  position: relative;
  text-align: left;
  margin: 10px 0 20px;
}

.blog-details .content blockquote p {
  color: var(--default-color);
  line-height: 1.6;
  margin: 15px 0 15px;
  /* font-style: italic; */
  font-weight: 400;
  font-size: 18px;
}

.blog-details .content .block p {
  color: var(--default-color);
  line-height: 1.6;
  margin: 15px 0 15px;
  /* font-style: italic; */
  font-weight: 400;
  font-size: 18px;
}

.blog-details .content a {
  font-weight: 200;
  /* text-decoration: underline; */
}

/* スマホ（575px以下） */
@media (max-width: 575px) {
  .blog-details .content blockquote {
  padding: 20px 8px;
  }
  .blog-details .content blockquote p {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .blog-details .content .block {
  padding: 20px 8px;
  }
  .blog-details .content .block p {
    font-size: 16px;
  }
}

ul li::marker { /* リスト中黒点に色を指定 */
  color: var(--accent-color);
}

ol li::marker { /* リスト数字に色を指定 */
  color: var(--accent-color);
}

.blog-details .content blockquote:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .content .block:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--accent-color);
  margin-top: 20px;
  margin-bottom: 20px;
}

.blog-details .meta-top {
  margin-top: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

.blog-details .meta-top ul li+li {
  padding-left: 20px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top i {
  font-size: 16px;
  margin-right: 8px;
  line-height: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.blog-details .meta-top a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 14px;
  display: inline-block;
  line-height: 1;
}

.blog-details .meta-bottom {
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.blog-details .meta-bottom i {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  display: inline;
}

.blog-details .meta-bottom a {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.blog-details .meta-bottom a:hover {
  color: var(--accent-color);
}

.blog-details .meta-bottom .cats {
  list-style: none;
  display: inline;
  padding: 0 20px 0 0;
  font-size: 14px;
}

.blog-details .meta-bottom .cats li {
  display: inline-block;
}

.blog-details .meta-bottom .tags {
  list-style: none;
  display: inline;
  padding: 0;
  font-size: 14px;
}

.blog-details .meta-bottom .tags li {
  display: inline-block;
}

.blog-details .meta-bottom .tags li+li::before {
  padding-right: 6px;
  color: var(--default-color);
  content: ",";
}

.blog-details .meta-bottom .share {
  font-size: 16px;
}

.blog-details .meta-bottom .share i {
  padding-left: 5px;
}

/* 左サイドと頭を揃える */
.blog-details-page .sidebar .widgets-container {
  margin-top: 50px; /* 上余白 */
  padding-top: 30px; /* 内側余白 */
}

/* より確実に左と右を揃える場合 */
.blog-details-page .col-lg-4.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* 上揃え */
}

/*--------------------------------------------------------------
# Blog Comments Section
--------------------------------------------------------------*/
.blog-comments {
  padding: 10px 0;
}

.blog-comments .comments-count {
  font-weight: bold;
}

.blog-comments .comment {
  margin-top: 30px;
  position: relative;
}

.blog-comments .comment .comment-img {
  margin-right: 14px;
}

.blog-comments .comment .comment-img img {
  width: 60px;
}

.blog-comments .comment h5 {
  font-size: 16px;
  margin-bottom: 2px;
}

.blog-comments .comment h5 a {
  font-weight: bold;
  color: var(--default-color);
  transition: 0.3s;
}

.blog-comments .comment h5 a:hover {
  color: var(--accent-color);
}

.blog-comments .comment h5 .reply {
  padding-left: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-comments .comment h5 .reply i {
  font-size: 20px;
}

.blog-comments .comment time {
  display: block;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 5px;
}

.blog-comments .comment.comment-reply {
  padding-left: 40px;
}

/*--------------------------------------------------------------
# Comment Form Section
--------------------------------------------------------------*/
.comment-form {
  padding-top: 10px;
}

.comment-form form {
  background-color: var(--surface-color);
  margin-top: 30px;
  padding: 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.comment-form form h4 {
  font-weight: bold;
  font-size: 22px;
}

.comment-form form p {
  font-size: 14px;
}

.comment-form form input {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  font-size: 14px;
  border-radius: 4px;
  padding: 10px 10px;
}

.comment-form form input:focus {
  color: var(--default-color);
  background-color: var(--surface-color);
  box-shadow: none;
  border-color: var(--accent-color);
}

.comment-form form input::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form textarea {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
  border-radius: 4px;
  padding: 10px 10px;
  font-size: 14px;
  height: 120px;
}

.comment-form form textarea:focus {
  color: var(--default-color);
  box-shadow: none;
  border-color: var(--accent-color);
  background-color: var(--surface-color);
}

.comment-form form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.comment-form form .form-group {
  margin-bottom: 25px;
}

.comment-form form .btn-primary {
  border-radius: 4px;
  padding: 10px 20px;
  border: 0;
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.comment-form form .btn-primary:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact {
  padding-top: 0;
}

.contact .info {
  background-color: var(--surface-color);
  padding: 40px;
  box-shadow: 0px 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact .info h3 {
  font-weight: 600;
  font-size: 24px;
}

.contact .info p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin-bottom: 30px;
  font-size: 15px;
}

.contact .info-item+.info-item {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent-color);
  transition: all 0.3s ease-in-out;
  margin-right: 20px;
}

.contact .info-item h4 {
  padding: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.contact .php-email-form {
  width: 100%;
}

.contact .php-email-form .form-group {
  padding-bottom: 8px;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  color: var(--default-color);
  background-color: var(--surface-color);
  border-radius: 0px;
  box-shadow: none;
  font-size: 14px;
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email] {
  height: 48px;
  padding: 10px 15px;
}

.contact .php-email-form textarea {
  padding: 10px 12px;
  height: 290px;
}

.contact .php-email-form button[type=submit] {
  background: var(--accent-color);
  color: var(--contrast-color);
  border: 0;
  padding: 13px 50px;
  transition: 0.4s;
  border-radius: 4px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, black 15%);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widgets-container {
background-color: color-mix(in srgb, var(--nav-color), transparent 96%);
  padding: 30px;
  margin: 60px 0 30px 0;
  /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); */
  /* 左上と右下を三角カット */
  clip-path: polygon(
    25px 0, /* 左上カット：横を右へずらす */
    100% 0,
    100% calc(100% - 25px),/* 右下カット：縦を上にずらす */
    calc(100% - 25px) 100%,/* 右下カット：横を左にずらす */
    0 100%,
    0 25px /* 左上カット：縦を下にずらす */
  );
}

.widget-title {
  color: var(--heading-color);
  margin: 25px 0 20px;
  font-weight: 500;
  font-size: 20px;
  position: relative;
  padding-left: 12px; /* 縦棒と文字の余白 */
  line-height: 1.4;   /* テキストの行の高さ */
}

.widget-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; /* 上下中央揃え */
  transform: translateY(-45%); /* -50% から -45% に調整して少し下げる */
  width: 3px; /* 縦棒の太さ（細め） */
  height: 70%; /* 文字高さに対する割合（短め） */
  background-color: var(--accent-color); /* 統一デザインの緑#28a745 */
  border-radius: 2px; /* 角を少し丸く */
}

@media (max-width: 575px) {
  .widget-title {
    font-size: 18px;
  }
}

.widget-item {
  margin-bottom: 40px;
}

.widget-item:last-child {
  margin-bottom: 0;
}

.blog-author-widget img {
  max-width: 160px;
}

.blog-author-widget h4 {
  font-weight: 600;
  font-size: 24px;
  margin: 15px 0 0 0;
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.blog-author-widget .social-links {
  margin: 5px 0;
}

.blog-author-widget .social-links a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  margin: 0 3px;
  font-size: 18px;
}

.blog-author-widget .social-links a:hover {
  color: var(--accent-color);
}

.blog-author-widget p {
  /* font-style: italic; */
  font-family: var(--default-font);
  color: color-mix(in srgb, var(--default-color), transparent 15%);
  margin: 10px 0 0 0;
}

.search-widget form {
  background: var(--background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 75%);
  padding: 3px 10px;
  position: relative;
  border-radius: 50px;
  transition: 0.3s;
}

.search-widget form input[type=text] {
  border: 0;
  padding: 4px 10px;
  border-radius: 4px;
  width: calc(100% - 40px);
  background-color: var(--background-color);
  color: var(--default-color);
}

.search-widget form input[type=text]:focus {
  outline: none;
}

.search-widget form button {
  background: none;
  color: var(--default-color);
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  border: 0;
  font-size: 16px;
  padding: 0 16px;
  transition: 0.3s;
  line-height: 0;
}

.search-widget form button i {
  line-height: 0;
}

.search-widget form button:hover {
  color: var(--accent-color);
}

.search-widget form:is(:focus-within) {
  border-color: var(--accent-color);
}

.recent-posts-widget .post-item {
  display: flex;
  align-items: center !important;
  margin-bottom: 15px;
}

.recent-posts-widget .post-item:last-child {
  margin-bottom: 0;
}

.recent-posts-widget .post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover; /* 画像を中央でトリミング */
  border-radius: 6px; /* 丸く*/
  margin-right: 15px;
  flex-shrink: 0; /* 画像が縮まないように */
  
}

.recent-posts-widget .post-item h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.recent-posts-widget .post-item h4 a {
  font-size: 15px;
  color: var(--default-color);
  transition: 0.3s;
  margin-top: -70px;
  padding: 0;
  display: block;
}

@media (max-width: 768px) {
  .recent-posts-widget .post-item h4 a {
    font-size: 14px;
    margin-top: -55px;
  }
}

.recent-posts-widget .post-item h4 a:hover {
  color: var(--accent-color);
}

.recent-posts-widget .post-item time {
  display: block;
  font-style: italic;
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

.tags-widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags-widget ul li {
  display: inline-block;
}

.tags-widget ul a {
  background-color: color-mix(in srgb, var(--default-color), transparent 94%);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  border-radius: 50px;
  font-size: 14px;
  padding: 5px 15px;
  margin: 0 6px 8px 0;
  display: inline-block;
  transition: 0.3s;
}

.tags-widget ul a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.tags-widget ul a span {
  padding-left: 5px;
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  font-size: 14px;
}

/* Location｜アクセス */
.map.features.section {
  margin-top: -40px;
}

.map.features.section h2 {
  margin-bottom: -20px;
}

/* スマホ（768px以下） */
@media (max-width: 768px) {
  .map.features.section {
    margin-top: -40px;
  }
  .map.features.section h2 {
  margin-bottom: -20px;
  }
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  margin-top: -64px; /* -2 */
  padding: 91px 0 152px; /* 91 */
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 20px;
  left: 0;
  display: block;
  width: 100%;
  height: 60%;
  object-fit: cover;
  z-index: 1;
}

@media (max-width: 991px) {
  .call-to-action img {
    height: 80%;
  }
}

/* ▼ PC（992px以上）用：薄い黒フィルター＋右寄り透明スジ ▼ */
.call-to-action:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.25) 50%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.15) 68%,
    rgba(0, 0, 0, 0.15) 100%
  );
  pointer-events: none;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

/* ▼ 見出しと本文：基本は中央寄せ */
.call-to-action h2 {
  color: var(--default-color);
  font-size: 24px;
  font-weight: 400;
  text-align: center;
}

.call-to-action p {
  color: var(--default-color);
  line-height: 1.5;
  max-width: 38em;
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ▼ タブレット横向き以上（768px〜）で左寄せ */
@media screen and (min-width: 768px) {
  .call-to-action h2,
  .call-to-action p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
  }
}

/* ▼ ボタン設定 */
.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 30px 20px;
  background: var(--accent-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/* ▼ スマホ・タブレット（991px以下）は濃いフィルター */
@media screen and (max-width: 991px) {
  .call-to-action:before {
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 50%,
      rgba(0, 0, 0, 0.6) 50%
    );
  }
}

/* スマホ（575px以下） */
@media (max-width: 575px) {
  .call-to-action {
    padding-top: 110px; /* 上の余白を減らす */
    padding-bottom: 60px; /* 下の余白も減らす */
  }	

  .call-to-action .container {
    padding-left: 5px !important;
    padding-right: 5px !important;
  }
  .call-to-action .container p {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
	
  /* 背景画像をもっと引く（ズーム防止） */
  .call-to-action img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px; /* 高さ固定 */
    object-fit: cover; /* 枠いっぱいに表示 */
    z-index: 1;
  }

  .call-to-action h2 {
	margin-bottom: 30px;
  }	
	
  /* p の文字だけ左寄せ */
  .call-to-action p {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
	margin-bottom: 0px;
    font-size: 16px;      /* ←あなたの要望どおりスマホ文字を16px */
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-wrapper {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 6px;
  padding: 0;
}

.faq .faq-item {
  margin-bottom: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  transition: all 0.3s ease-in-out;
}

.faq .faq-item:last-child {
  border-bottom: none;
}

.faq .faq-item.faq-active {
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
}

.faq .faq-item.faq-active .faq-header h4 {
  color: var(--accent-color);
  font-weight: 600;
}

.faq .faq-item.faq-active .faq-header .faq-icon {
  color: var(--accent-color);
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
}

.faq .faq-item.faq-active .faq-header .faq-icon i {
  transform: rotate(180deg);
}

.faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
}

.faq .faq-item .faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  cursor: pointer;
  gap: 20px;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header:hover {
  background-color: color-mix(in srgb, var(--default-color), transparent 98%);
}

.faq .faq-item .faq-header:hover .faq-icon {
  background-color: color-mix(in srgb, var(--accent-color), transparent 92%);
  color: var(--accent-color);
}

.faq .faq-item .faq-header h4 {
  flex: 1;
  margin: 0;
  font-family: var(--heading-font);
  font-size: 18px;
  font-weight: 500;
  color: var(--heading-color);
  transition: all 0.3s ease;
  line-height: 1.8;
}

.faq .faq-item .faq-header .faq-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  border-radius: 4px;
  color: var(--heading-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.faq .faq-item .faq-header .faq-icon i {
  transition: transform 0.3s ease;
}

.faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-item .faq-content .content-inner {
  padding: 0 32px 24px 32px;
  overflow: hidden;
}

.faq .faq-item .faq-content .content-inner p {
  padding: 0 35px 0 0;
  margin: 10px 0;
  color: color-mix(in srgb, var(--default-color), transparent 10%);
  line-height: 1.6;
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 768px) {
  .faq .faq-item .faq-header {
    padding: 20px 24px;
    gap: 16px;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 16px;
  }

  .faq .faq-item .faq-header .faq-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 24px 20px 24px;
  }

  .faq .faq-item .faq-content .content-inner p {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .faq .faq-item .faq-header {
    padding: 18px 20px;
    gap: 12px;
  }

  .faq .faq-item .faq-header h4 {
    font-size: 15px;
  }

  .faq .faq-item .faq-header .faq-icon {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .faq .faq-item .faq-content .content-inner {
    padding: 0 20px 18px 20px;
  }

  .faq .faq-item .faq-content .content-inner p {
	padding: 0;
    font-size: 15px;
  }
}

/* hr透明 */
.fade-line {
  border: none;
  margin: 30px 0 10px;
}

@media (max-width: 576px) {
 .fade-line {
   border: none;
   margin: 15px 0;
  }
}

/* プライバシーポリシー調整 */
.privacy {
  margin: -150px 0 0;
}

.privacy-left {
  padding-right: 40px; /* 右側に余白を追加 */
}

/* スマホ時にH2と左ブロックの間を詰める */
@media (max-width: 575px) {
  /* section-titleの下余白を詰める */
  .section-title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* privacyセクションの上余白を詰める */
  .privacy.section {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* containerやrowが余白を持っている場合も詰める */
  .privacy .container,
  .privacy .row {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 左ブロックの上余白も詰める */
  .privacy-left {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* さらに、section全体の間隔を完全リセット */
  section.features.section + section.privacy.section {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
	
  .features.section {
    margin-bottom: 20px !important;
    padding-bottom: 0 !important;
  }
	
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 575px) {
  .privacy-left,
  .privacy-left h4,
  .privacy-left p {
    font-size: 16px !important;
  }

  .privacy-right,
  .privacy-right h3,
  .privacy-right h4,
  .privacy-right p {
    font-size: 16px !important;
  }
}

@media (max-width: 991px) {
  .privacy-left {
    padding-right: 0; /* スマホでは余白をなくす（縦並び時） */
    margin-bottom: 30px; /* 下に余白を入れて右ブロックと間隔確保 */
  }
}

.privacy-right .pp {
  margin: 10px 0 10px 2px;
  font-weight: 500;
  font-size: 20px;
  position: relative;
  padding-left: 12px; /* 縦棒と文字の余白 */
  line-height: 1.4;   /* テキストの行の高さ */
}

.privacy-right .pp::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%; /* 上下中央揃え */
  transform: translateY(-45%); /* -50% から -45% に調整して少し下げる */
  width: 3px; /* 縦棒の太さ（細め） */
  height: 70%; /* 文字高さに対する割合（短め） */
  background-color: var(--accent-color); /* 統一デザインの緑#28a745 */
  border-radius: 2px; /* 角を少し丸く */
}
