@charset "utf-8";
body {
  font-size:16px;
  line-height:200%;
  overflow-x: hidden;
  font-family: "Noto Sans JP", sans-serif;
}

.breadcrumb a {
        color:#666;
      }

header {
  background-color:#f2f2f2;
}

/* --- ローディング (シンプルな円回転) --- */
#loading {
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  background: #fdfdfd;
  
  transition: opacity 0.5s;
  opacity: 1;
  pointer-events: auto;
}

/* JSで .is-active が外れた時のスタイル */
#loading:not(.is-active) {
  opacity: 0;
  pointer-events: none;
}

/* 回転する円のスタイル */
#loading .circle {
  display: block;
  position: relative;
  top: calc( 50% - 20px ); /* 画面中央に配置 */
  width: 40px;
  height: 40px;
  margin: 0 auto;
  
  border: 8px solid #e0e0e0; /* 基礎となる薄いグレーの円 */
  border-top: 7px solid #227934; /* 上部だけテーマカラーの緑 */
  
  border-radius: 50px;
  animation: loading 700ms linear 0ms infinite normal both;
}

/* 回転アニメーションの定義 */
@keyframes loading {
  0% { transform: rotate( 0deg ); }
  100% { transform: rotate( 360deg ); }
}


/* --- ナビゲーションバー --- */
.navbar {
    background-color: #f2f2f2;
    padding: 0 1rem;
    height:10vh;
}

/* ロゴ（仮） */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ハンバーガーボタン（トグラー）のカスタム */
.navbar-toggler.custom-toggler {
  position: fixed; /* 画面基準に固定 */
  top:0;
  right: 0;
  z-index: 1035; /* offcanvas-backdrop(1040) より手前 */
  height:10vh;
  width: 10vh;
  background-color: #227934;
  border: none;
  border-radius: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar-toggler.custom-toggler .bi-list {
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1;
    vertical-align: middle;
}

.navbar-toggler.custom-toggler:focus {
    box-shadow: none;
}

/* --- PC表示時の電話番号ボタン --- */
.btn.custom-tel-btn {
    background-color: #227934;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 700;
}
.btn.custom-tel-btn:hover {
    background-color: #204922;
    color: #ffffff;
}
.btn.custom-tel-btn .bi-telephone-fill {
    font-size: 1.1rem;
    margin-right: 0.75rem;
}
/* 電話番号専用フォント (Oswald) */
.tel-number {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.05em;
}

/* PCヘッダーの電話番号のサイズ指定 */
.btn.custom-tel-btn .tel-number {
    font-size: 1.2rem;
}


/* --- Offcanvas（スライドメニュー） --- */
.offcanvas.offcanvas-end {
    width: 300px;
}

.offcanvas-header {
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    font-weight: 700;
}

.offcanvas-body {
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* ナビゲーションリンク全体 */
.offcanvas-nav {
    flex-grow: 1;
    overflow-y: auto; /* スクロール許可 */
    
    /* ▼▼▼ これを追加してください（重要） ▼▼▼ */
    flex-wrap: nowrap;
    
    /* ※前回提案した scrollbar-gutter は削除してOKです */
}

/* 通常のリンク */
.offcanvas-nav .nav-link {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #343a40;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.offcanvas-nav .nav-link:hover {
    background-color: #f8f9fa;
}

/* アコーディオンのスタイルリセット */
.offcanvas-nav .accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 0;
    border-bottom: 1px solid #f0f0f0;
}

.offcanvas-nav .accordion-button {
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: #227934;
}

.offcanvas-nav .accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23343a40'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.offcanvas-nav .accordion-button:focus {
    box-shadow: none;
    background-color: #f8f9fa;
}

.offcanvas-nav .accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #285A2A;
    box-shadow: none;
}

/* アコーディオンの下位コンテンツ */
.offcanvas-nav .accordion-body {
    padding: 0;
    background-color: #ffffff;
}

.offcanvas-nav .accordion-body .nav-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
    padding: 0.5rem 1.5rem 0.5rem 2.5rem;
    border-bottom: 1px solid #f8f9fa;
}

.offcanvas-nav .accordion-body .nav-link:last-child {
    border-bottom: none;
}

.offcanvas-nav .accordion-body .nav-link:hover {
    background-color: #f8f9fa;
    color: #285A2A;
}


/* --- Offcanvas最下部（電話・お問い合わせ） --- */
.offcanvas-footer {
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offcanvas-footer .btn-custom-contact {
    display: flex;
    align-items: center;
    width: 100%;
    
    background-color: #227934;
    color: white;
    border: none;
    text-decoration: none;
    padding: 0.75rem 1rem;
    text-align: left;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease-in-out;
}
.offcanvas-footer .btn-custom-contact:hover {
    background-color: #204922;
    color: white;
}
.offcanvas-footer .btn-custom-contact i {
    font-size: 1.5rem;
    margin-right: 1rem;
}
.offcanvas-footer .btn-custom-contact .d-flex {
    text-align: left;
}
.offcanvas-footer .btn-custom-contact .btn-label {
    font-size: 0.8rem;
    line-height: 1.2;
    font-weight: 400;
}
.offcanvas-footer .btn-custom-contact .btn-main-text {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}


/* =================================================================
 * スクロールフェードイン
 * ================================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}


/* --- フッターまわり --- */
.footer-text-link-topic {
    color:#666;
    font-weight:700;
    border-bottom:1px solid #227934;
    padding-bottom:0rem;
    margin-bottom:0.5rem;
    font-size:0.8rem;
}

.footer-text-link a{
    color:#777;
    font-weight:700;
    font-size:0.7rem;
    text-decoration:none;
}

.footer-text-link li {
    line-height:150%;
}

.footer-text-link-mini a {
    font-size:0.6rem;
}

.footer-text-link a:hover{
    text-decoration:underline;
}

.copy {
    font-weight:400;
    color:#c7c7c7;
    font-size:0.7rem;
    padding-top:5rem;
    padding-bottom:3rem;
}

.foot-c-name {
    color:#227934;
    font-weight:700;
    padding:1rem 0;
    font-size:1.1rem;
}

.foot-c-name small {
    font-size:0.8rem;
}

.foot-c-address {
    font-size:0.8rem;
    line-height:150%;
}


/* --- お問い合わせセクション（左右分割背景） --- */
.contact-split-bg {
  position: relative;
  overflow: hidden;
  background-color: #f2f2f2;
  color: #227934;
  height: 30vh;
}

.contact-split-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: #227934;
  z-index: 0; 
}

.contact-split-bg .container-fluid {
  position: relative;
  z-index: 1;
}

.contact-split-left {
  color: #fff;
}

.contact-split-left h1 {
    font-size:2rem;
}


/* =================================================================
 * 右側固定お問い合わせボタン
 * ================================================================= */
.fixed-side-contact {
  position: fixed;
  top: 50%;
  transform: translateY(-50%); /* 縦の中央配置 */
  right: 0;
  z-index: 900; /* ヘッダーより上、ローディング画面より下 */
  
  background-color: #227934; /* サイトのテーマカラー */
  color: #ffffff;
  
  /* 左上の角と左下の角を丸くする */
  border-radius: 8px 0 0 8px;
  
  /* paddingの初期設定 */
  padding: 1.2rem 0.8rem;
  text-decoration: none;
  box-shadow: -4px 4px 10px rgba(0, 0, 0, 0.15);
  
  /* アニメーション設定：背景色とパディングの変化を滑らかに */
  transition: background-color 0.3s ease, padding-left 0.3s ease;
  
  /* アイコンと文字を縦並びにする */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

/* ホバー時のアニメーション */
.fixed-side-contact:hover {
  background-color: #1a5c28; /* 少し濃い緑に */
  
  /* 右端に固定したまま、左の余白を広げることでボタンを伸ばす */
  padding-left: 1.8rem; 
  
  color: #ffffff;
}

/* アイコンのサイズ */
.fixed-side-contact i {
  font-size: 1.4rem;
}

/* テキストの縦書き設定 */
.fixed-side-contact span {
  writing-mode: vertical-rl; /* 縦書き */
  text-orientation: upright; /* 文字を正立させる */
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em; /* 文字間隔を少し広げる */
}

/* スマホ画面（幅768px未満）では非表示にする */
@media (max-width: 767px) {
  .fixed-side-contact {
    display: none;
  }
}

small.tel-note {
    color: #227934;
    font-size: 0.75rem;
    margin-top: -0.3rem;
    font-weight: 700;
}

.tel-number-box {
    margin-right: calc(10vh + 1rem);
}

a.btn-gw {
    background-color: #227934; color: white; border: none; min-width: 240px; text-decoration: none;
}

.footer-btn01 {
    font-size: 0.8rem; line-height: 1.2; font-weight: 400;
}

.footer-btn02 {
    font-size: 1.2rem; font-weight: 700; line-height: 1.2;
}




section.specialist {
  padding-top:5rem;
  background-color:#f2f2f2;
}

section.specialist h1 {
  font-weight: 700;
  color: #ddd;
  font-size:6vw;
  margin-bottom:2rem;
}

section.specialist h2 {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding-left:1rem;
}

section.specialist p {
  font-size: 0.9rem;
  line-height:150%;
  padding-left:1rem;
}

section.specialist-box {
  margin-bottom:8rem;
  background-color:#f2f2f2;
  padding:5rem 0 6rem 0;
}


/*
* =================================================================
* スペシャリスト (フキダシをタイトル上部にはみ出し + 上向きしっぽ)
* =================================================================
*/

/* ぴょんと跳ねるアニメーション */
@keyframes bounce-up {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.1) translateY(-15px); }
  100% { transform: scale(1.1) translateY(0); }
}

/* 1. 親コンテナとリンク全体 */
.specialist-item {
  position: relative; 
}

.specialist-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative; 
  transition: box-shadow 0.3s ease;
}

.specialist-link:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 3; 
}

/* 2. 画像ラッパー */
.specialist-image-wrapper {
  position: relative; 
  overflow: hidden;   
  line-height: 0;
}

/* 3. デフォルト画像とスワップ画像 */
.specialist-image-wrapper .default-image,
.specialist-image-wrapper .swap-image {
  width: 100%;
  height: auto;
  transition: opacity 0.4s ease, transform 0.4s ease-out; 
  transform: scale(1) translateY(0); 
  transform-origin: center bottom; 
}
.specialist-image-wrapper .swap-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0; 
}

/* 4. 常時表示のタイトル */
.specialist-info {
  padding: 1rem;
  background-color: #f2f2f2; 
  position: relative; 
  z-index: 1; 
}
.specialist-info h2 { font-weight: 900; color: #717171; font-size: 1.1vw; line-height: 150%; border-bottom: 1px solid #227934; padding-bottom: 1rem; margin-bottom: 1rem; }
.specialist-info01 { line-height: 150%; font-weight: 900; font-size: 0.8rem; margin-right: 0.5rem; color: #717171; }
.specialist-info01 span { font-size: 1rem; font-weight: 700; color: #227934; }
.specialist-info02 { font-weight: 900; color: #d6d6d6; font-size: 2.4vw; }


/*
* 5. フキダシ (.specialist-callout)
*/
.specialist-callout {
  position: absolute; 
  bottom: 1rem; 
  
  left: 50%;
  width: 85%; 
  max-width: 320px;
  
  background-color: #fff; 
  color: #333;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  
  text-align: left; 
  z-index: 2; /* .specialist-info より手前 */
  
  opacity: 0;
  transform: translate(-50%, 10px); 
  
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

/* フキダシの「しっぽ」を「上」向きに */
.specialist-callout::after {
  display: block;
  content: '';
  position: absolute;
  
  top: -8px; /* 上辺から8px上にはみ出す */
  left: 50%;
  transform: translateX(-50%);
  
  /* CSSで上向きの三角形（しっぽ）を作成 */
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #fff; /* フキダシの背景色と合わせる */
  border-top: 0; /* リセット */
}

/* フキダシ内のリード文・ボタン */
.specialist-callout .specialist-lead { font-size: 0.9rem; color: #555; margin-bottom: 0.9rem; line-height: 1.5; }
.specialist-callout .specialist-btn { background-color: #227934; color: #fff; font-weight: 700; border: none; padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: 5px; text-decoration: none; display: inline-block; transition: background-color 0.3s ease; }
.specialist-callout .specialist-btn:hover { background-color: #1a5c28; }

/*
* =================================================================
* ホバー時の動作
* =================================================================
*/

/* 画像のバウンド */
.specialist-link:hover .specialist-image-wrapper .default-image,
.specialist-link:hover .specialist-image-wrapper .swap-image {
  animation: bounce-up 0.4s ease-out forwards;
}
.specialist-link:hover .specialist-image-wrapper .swap-image {
  opacity: 1; 
  transition: opacity 0.4s ease;
}
.specialist-link:hover .specialist-image-wrapper .default-image {
  opacity: 0; 
  transition: opacity 0.4s ease;
}

/* フキダシのアニメーション */
.specialist-link:hover .specialist-callout {
  opacity: 1; 
  transform: translate(-50%, -20px); 
}

.specialist-item.fade-in.is-visible:nth-child(1) {
  transition-delay: 0.1s;
}
.specialist-item.fade-in.is-visible:nth-child(2) {
  transition-delay: 0.2s;
}
.specialist-item.fade-in.is-visible:nth-child(3) {
  transition-delay: 0.3s;
}
.specialist-item.fade-in.is-visible:nth-child(4) {
  transition-delay: 0.4s;
}
.specialist-item.fade-in.is-visible:nth-child(5) {
  transition-delay: 0.5s;
}


.f-boh-link {
    font-size: 1rem;
    font-weight: 700;
}

.f-boh-link img {
  margin-left:1rem;
  margin-right:1rem;
}

.f-boh-link a {
    text-decoration: underline;
    color: #000;
    padding-bottom:1rem;
}

.f-boh-link a:hover {
  text-decoration: none;
}

.f-boh-link a span {
  color:rgb(223, 0, 0);
}

section.common-f-hd-link {
  background-color: #f2f2f2; border-top:1px solid #227934;
}


@media (max-width: 768px) {
.copy {
    text-align:center;
}

.specialist-info01 {
    font-size:0.6rem;
}

.specialist-info01 span {
    font-size:0.9rem;
  }

/* --- Specialist (スペシャリスト) --- */
  .specialist-info h2 {
    font-size: 0.9rem; /* タイトル文字サイズ調整 */
    height: 5em; /* 2行になっても高さが揃うように */
    overflow: hidden;
  }

  
  
  .specialist-info02 {
    font-size: 2rem; /* イニシャルを適切なサイズに */
  }

  .navbar {
    height:5svh;
  }

  .navbar-toggler.custom-toggler {
    height: 5svh;
    width: 5svh;
}


/* --- Footer Contact (お問い合わせエリア) --- */
  /* 左右分割背景を解除して縦積みに最適化 */
  .contact-split-bg {
    height: auto; /* 固定高さを解除 */
    padding: 3rem 0;
    background-color: #227934; /* 全体を緑に */
  }

  .contact-split-bg::before {
    display: none; /* 斜め分割等を削除 */
  }

  .contact-split-left {
    justify-content: center;
    margin-bottom: 2rem;
    text-align: center;
  }
  
  .contact-split-left h1 {
    color: #ffffff;
    font-size: 1.3rem;
  }

  /* ボタンを縦並びにしやすく */
  .contact-split-bg .btn-gw {
    width: 100%;
    max-width: 300px;
    background-color: #ffffff; /* 白ボタンに変更 */
    color: #227934; /* 文字を緑に */
  }
  
  .contact-split-bg .btn-gw:hover {
    background-color: #f0f0f0;
  }

  /* --- Footer (その他) --- */
  .foot-c-name {
    margin-top: 2rem;
  }
  
  .footer-text-link {
    margin-top: 2rem;
  }
  
  .footer-text-link .col {
    margin-bottom: 1.5rem; /* メニュー間の余白 */
    flex: 0 0 50%; /* 2列表示にする */
    max-width: 50%;
  }

  .footer-text-link {
    display: none;
  }
  
}

@media (max-width: 599px) {
  
  .copy {
    padding-top:3rem;
    line-height:150%;
  }

  .specialist-messagebox p {
    font-size:0.9rem;
  }

  .f-boh-link {
    line-height: 170%;
    font-size: 0.8rem;
    font-weight: 700;
  }
  
}