@charset "UTF-8";
/* CSS Document */

html {
  font-size: 62.5%;
  height: -webkit-fill-available;
}
body {
  color: #4a330b;

  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;

  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  /* 最小値を 15px (1.5rem) に引き上げる */
  font-size: clamp(1.5rem, 1.6vw, 1.6rem);
  line-height: 2;
  -webkit-text-size-adjust: 100%;
}

/* RESET */
input[type="submit"],
input[type="button"] {
  border-radius: 0;
  -webkit-box-sizing: content-box;
  -webkit-appearance: button;
  appearance: button;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
}
input[type="submit"]::-webkit-search-decoration,
input[type="button"]::-webkit-search-decoration {
  display: none;
}
input[type="submit"]::focus,
input[type="button"]::focus {
  outline-offset: -2px;
}
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  outline: none;
  background: transparent;
}
button,
input[type="submit"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding: 0;
  border: none;
  outline: none;
  background: transparent;
}
input[type="radio"] {
  display: none;
}
input[type="radio"]:checked + label {
  background: #ff0000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}
img,
figure,
figcaption {
  border: 0;
  vertical-align: top;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: #4a330b;
  text-decoration: none;
  display: inline-block;
}
p {
}
ul,
ol,
li,
dl,
dt,
dd {
  margin: 0;
  padding: 0;
  list-style: none;
}
table {
  width: 100%;
  border: none;
}
tbody {
  border-top: 0px;
}
th,
tbody th {
  padding-right: 0em;
  border-bottom: none;
}
input {
  -webkit-appearance: none;
}
.pc {
  display: inline;
}
.sp {
  display: none;
}

/* FOOTER */
#Footer {
  background: #4a330b;
  color: #ffffff;
}
#Footer .fWrap {
  padding: 56px 0 24px 0;
  overflow: hidden;
}
#Footer .fWrap > .inner {
}
#Footer .logoWrap > *:not(:last-child) {
  margin-bottom: 32px;
}
#Footer .Logo a {
  max-width: 45vw;
}
#Footer .fAddress {
  grid-gap: 24px 120px;
}
#Footer .fMenu ul a {
  color: #ffffff;
}
#Footer .Copy {
  color: rgba(255, 255, 255, 0.4);
  width: 100%;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.5em;
  letter-spacing: 0.05em;
  text-align: center;
}

/* 電話窓口のコンテナ（全体がリンクの白背景・角丸ボックス） */
a.phoneContactContainer {
  display: block; /* インライン要素からブロック要素に変更して、幅や高さを有効にする */
  background-color: #ffffff;
  color: #4a330b; /* テキストの色をフッターの背景色に合わせる */
  width: 100%;
  max-width: 330px; /* ボックスの最大幅 */
  padding: 20px 20px;
  border-radius: 13px; /* 角丸の指定 */
  box-sizing: border-box;
  text-align: center;
  text-decoration: none; /* リンクの下線を消す */
  transition: opacity 0.3s ease; /* ホバー時のアニメーション */
}

/* ホバー時に少し透明にして、クリックできることを分かりやすくする */
a.phoneContactContainer:hover {
}

/* 「入所・見学に関するお問合せ」 */
#Footer .phoneContactLabel {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
  margin-bottom: 12px;
}

/* 電話番号（span） */
#Footer .phoneNumber {
  display: block;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

/* 「受付時間 9:00〜17:00」 */
#Footer .receptionTime {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1;
}

@media print, screen and (min-width: 768px) {
  a.phoneContactContainer {
    margin-left: auto;
    margin-bottom: 70px;
  }
}

/* --- レスポンシブ対応（画面幅が狭いスマホ向け） --- */
@media (max-width: 767px) {
  a.phoneContactContainer {
    padding: 20px 15px;
    margin: 0 auto;
    margin-bottom: 40px;
  }
  .phoneNumber {
    font-size: 32px; /* スマホ画面で溢れないよう少し縮小 */
  }
  #Footer .phoneNumber {
    font-size: 40px; /* 大きめのフォントサイズ */
  }
}

/* CONTENT */
.inner {
  padding: 0 5.33%;
}
main section:not(.Head):not(.full) {
  padding: 56px 0;
}
main section:not(.Head):not(.full).bottom {
  padding-bottom: 24px;
}

.NoPaddingTop {
  padding-top: 0 !important;
}

.NoPaddingBottom {
  padding-bottom: 0 !important;
}

.NoMarginTop {
  margin-top: 0 !important;
}

.NoMarginBottom {
  margin-bottom: 0 !important;
}

.no-wrap {
  white-space: nowrap;
}

/*SP
-------------------------------------------------------*/
@media screen and (max-width: 767px) {
  .pc {
    display: none;
  }
  .sp {
    display: inline;
  }

  /* FOOTER */
  #Footer .fWrap {
    text-align: center;
  }
  #Footer .fWrap > .flex > *:not(:last-child) {
    margin-bottom: 40px;
  }
  #Footer .fAddress {
  }
  #Footer .fMenu {
    border: #c8c8c8 1px solid;
    border-left: none;
    border-right: none;
    padding: 32px 0;
  }
  #Footer .fMenu ul > li:not(:last-child) {
    margin-bottom: 16px;
  }
}

/*PC
-------------------------------------------------------*/
@media print, screen and (min-width: 768px) {
  a,
  a:hover,
  a *,
  a:hover *,
  a::before,
  a:hover::before,
  a::after,
  a:hover::after,
  .slick-arrow {
    transition:
      border 0.3s ease-out,
      background 0.3s ease-out,
      color 0.3s ease-out,
      opacity 0.3s ease-out;
  }
  a:hover {
    color: #008360;
  }
  a:hover img {
    opacity: 0.6;
  }

  /* FOOTER */
  #Footer .fWrap {
    padding: 77px 0 39px 0;
  }
  #Footer .fWrap > .inner {
    grid-gap: 53px 80px;
  }
  #Footer .Logo a {
    max-width: 370px;
    display: block;
  }
  #Footer .fMenu {
    /* border-left: #c8c8c8 1px solid;
    padding-left: 80px; */
  }
  #Footer .fMenu ul {
    display: flex;
    /* flex-direction: column; */
    align-items: stretch;
    gap: 1em 3em;
  }
  #Footer .Copy {
    text-align: right;
  }

  #Footer .fMenu ul a:hover {
    opacity: 0.7;
  }

  /* CONTENT */
  main section:not(.Head):not(.full) {
    padding: 136px 0;
  }
  main section:not(.Head):not(.full).bottom {
    padding-bottom: 40px;
  }
  .inner {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
  }
}

@media print, screen and (min-width: 1100px) {
  #NavWrap {
  }
}

/* 共通ユーティリティ */
.flex {
  display: flex;
}
.sb {
  justify-content: space-between;
}
.align-center {
  align-items: center;
}

/* ==========================================================================
   #Header 共通スタイル
   ========================================================================== */
#Header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 164px; /* 初期デザインサイズ */
  background: #ffffff;
  box-shadow: none; /* 初期状態では影（box-shadow）を非表示にする */
  z-index: 1000;
  transition:
    height 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease; /* 影の変化を滑らかにする */
  display: block;
}

.HeaderInner {
  width: 100%;
  max-width: 1440px; /* 1440pxで全体の広がりを制限し、ヒーローと縦ラインを同期 */
  height: 100%;
  margin: 0 auto; /* 大画面のときにヘッダーの中身を中央寄せにする */
  padding: 0 48px;
  box-sizing: border-box;
  transition: padding 0.3s ease;
}

/* ロゴの初期サイズ */
#Header .Logo {
  width: 204px;
  transition: width 0.3s ease;
}
#Header .Logo a,
#Header .Logo a img {
  display: block;
  width: 100%;
  height: auto;
}

/* ナビゲーションラップ */
#NavWrap {
  display: flex;
  align-items: center;
  height: 100%;
}
#NavWrap nav {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ナビゲーションリスト */
.NavList {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  position: relative; /* ::beforeの絶対配置の基準 */
}

/* 一番左端（茶寿苑について の左側）の縦線を追加 */
.NavList::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background-color: rgba(74, 51, 11, 0.3);
}

.NavList li {
  position: relative;
  padding: 0 18px;
  box-sizing: border-box;
  min-width: 152px; /* アイコンとテキストが重なったり折れたりするのを防ぐ */
}

/* 各項目間の区切り線 */
.NavList li::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 40px;
  background-color: rgba(74, 51, 11, 0.3);
}

/* 「Instagram」の右隣（最後の項目）にも縦線を表示状態にする */
.NavList li:last-child::after {
  display: block;
}

.NavList a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-family: "Noto Sans JP", sans-serif;
  transition: opacity 0.2s ease;
}
.NavList a:hover {
  opacity: 0.7;
}

/* アイコンとテキストの初期サイズ */
.NavList .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: 10px;
  transition:
    transform 0.3s ease,
    height 0.3s ease,
    margin 0.3s ease;
}
.NavList .icon img {
  max-height: 100%;
  width: auto;
}
.NavList .text {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* 右側 コンタクトボタン */
.btnContact {
  margin-left: 58px;
}
.btnContact a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #00825b; /* 通常時の背景色 */
  color: #ffffff;
  text-decoration: none;
  border-radius: 10px;
  width: 254px;
  height: 103px;
  box-sizing: border-box;
  font-family: "Noto Sans JP", sans-serif;
  border: 1px solid transparent;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    height 0.3s ease,
    flex-direction 0.3s ease,
    transform 0.2s ease;
}

@media print, screen and (min-width: 768px) {
  /* PC版ホバー時の反転スタイル */
  .btnContact a:hover {
    background-color: #ffffff !important;
    color: #008360 !important;
    border-color: #008360 !important;
  }
}

.contact-label {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 6px;
}
.contact-tel {
  display: block;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  font-size: 29px;
  line-height: 1;
  margin-bottom: 2px;
  transition: font-size 0.3s ease;
}
.contact-time {
  font-size: 14px;
  line-height: 1;
}

.Toggle {
  display: none;
}

/* ==========================================================================
   PC版（1400px以上）専用の固定・縮小スタイル制御
   スマホやタブレットで勝手に縮まないよう、縮小用の指定をすべてここに隔離
   ========================================================================== */
@media screen and (min-width: 1400px) {
  /* スクロール時の全体縮小スタイル */
  #Header.is-scrolled {
    height: 90px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  #Header.is-scrolled .HeaderInner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 30px;
  }

  /* ロゴ縮小 */
  #Header.is-scrolled .Logo {
    width: 154px;
  }

  /* ナビゲーションアイコン・テキストの縮小 */
  #Header.is-scrolled .NavList .icon {
    height: 20px;
    margin-bottom: 4px;
  }
  #Header.is-scrolled .NavList .text {
    font-size: 13px;
  }

  /* コンタクトボタンのコンパクト横並び化 */
  #Header.is-scrolled .btnContact a {
    height: 70px;
    border-radius: 8px;
    flex-direction: row;
    gap: 8px;
  }

  #Header.is-scrolled .contact-label {
    display: none;
  }
  #Header.is-scrolled .contact-time {
    display: none;
  }
  #Header.is-scrolled .contact-tel {
    font-size: 22px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
  }

  /* 電話アイコン（PCスクロール時：白色のSVG） */
  #Header.is-scrolled .contact-tel::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 0 0-1.01.24l-2.2 2.2a15.045 15.045 0 0 1-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 4px;
    transition: background-image 0.2s ease;
  }

  /* ボタンホバー時：アイコンのSVGの色を緑（#008360）に差し替え */
  #Header.is-scrolled .btnContact a:hover .contact-tel::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008360'%3E%3Cpath d='M20.01 15.38c-1.23 0-2.42-.2-3.53-.56a.977.977 0 0 0-1.01.24l-2.2 2.2a15.045 15.045 0 0 1-6.59-6.59l2.2-2.2c.28-.28.36-.67.25-1.02A11.36 11.36 0 0 1 8.5 4c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1 0 9.39 7.61 17 17 17 .55 0 1-.45 1-1v-3.5c0-.55-.45-1-1-1z'/%3E%3C/svg%3E");
  }

  /* -----------------------------------------
     PC版トップページ「/」専用の配置制御
  ----------------------------------------- */
  .is-top-page #Header {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: 164px;
    box-shadow: none;
  }

  .is-top-page #Header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: none;
  }

  .is-top-page #Header.is-sticky.is-scrolled {
    height: 90px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  .is-top-page #Content.header-is-sticky {
    padding-top: 164px !important;
  }

  /* PC版ではスマホ追従バナーを確実に消去 */
  .sp-floating-banner {
    display: none !important;
  }
}

/* ==========================================================================
   スマートフォン・タブレット共通スタイル（1399px以下）
   ========================================================================== */
@media screen and (max-width: 1399px) {
  body.nav-open {
    overflow: hidden;
  }

  #Header {
    height: 70px !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    box-shadow: none !important;
    transition: box-shadow 0.3s ease;
  }

  #Header.is-scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  }

  .is-top-page #Content {
    padding-top: 70px;
  }

  .HeaderInner {
    padding: 0 20px !important;
  }
  #Header .Logo {
    width: 100px !important;
  }

  /* ドロワーメニューのレイアウトベース */
  #NavWrap nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px 40px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: right 0.4s ease;
  }

  #NavWrap.open nav {
    right: 0;
  }

  .NavList {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
  }
  .NavList::before {
    display: none;
  }
  .NavList li {
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
    min-width: 0;
  }
  .NavList li::after,
  .NavList li:last-child::after {
    display: none;
  }
  .NavList a {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eeeeee;
  }
  .NavList .icon {
    height: 24px;
    margin-bottom: 0;
    margin-right: 15px;
  }
  .NavList .text {
    font-size: 16px;
  }

  .btnContact {
    margin-left: 0;
    margin-top: 30px;
    width: 100%;
  }
  .btnContact a {
    width: 100%;
    height: 90px !important;
    border-radius: 8px;
    padding: 10px;
    flex-direction: column !important;
    gap: 0 !important;
    border: none !important;
  }
  .btnContact a:hover {
    background-color: #006949 !important;
    color: #ffffff !important;
  }

  /* 1399px以下では、何があってもこのサイズ設定で固定を担保 */
  .contact-label {
    display: block !important;
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }
  .contact-time {
    display: block !important;
    font-size: 12px !important;
  }
  .contact-tel {
    font-size: 26px !important;
    margin-bottom: 4px !important;
    display: block !important;
  }
  .contact-tel::before {
    display: none !important;
  }

  .Toggle {
    display: block;
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    z-index: 1100;
  }
  .Toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #4a3b32;
    border-radius: 2px;
    transition: all 0.3s ease;
  }
  .Toggle span:nth-child(1) {
    top: 0;
  }
  .Toggle span:nth-child(2) {
    top: 11px;
  }
  .Toggle span:nth-child(3) {
    bottom: 0;
  }

  #NavWrap.open ~ .Toggle span:nth-child(1) {
    transform: translateY(11px) rotate(-45deg);
  }
  #NavWrap.open ~ .Toggle span:nth-child(2) {
    opacity: 0;
  }
  #NavWrap.open ~ .Toggle span:nth-child(3) {
    transform: translateY(-11px) rotate(45deg);
  }
}

/* ==========================================================================
   スマホ専用（767px以下）下部追従電話バナー
   ========================================================================== */
@media screen and (max-width: 767px) {
  .sp-floating-banner {
    display: block; /* スマホ幅のときのみ表示のベースを有効化 */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
    /* background-color: #008360; */
    padding-bottom: env(safe-area-inset-bottom); /* iPhone安全領域領域 */
    z-index: 989;

    /* 初期状態：非表示 */
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      visibility 0.3s ease;
  }

  .sp-floating-banner.is-visible {
    opacity: 1;
    visibility: visible;
  }

  .banner-item-link {
    display: block;
    width: 100%;
    text-align: center;
  }

  .banner-item-link img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
  }
}

/* 768px以上の画面（タブレット・PC）では追従要素を完全非表示 */
@media screen and (min-width: 768px) {
  .sp-floating-banner {
    display: none !important;
  }
}

/* ==========================================================================
   【CSS完全解決】ページ内ジャンプの位置ズレ補正（scroll-margin）
   ========================================================================== */

/* 1400px未満（スマホ・タブレット）：ヘッダー高さ70px分を考慮して手前で止める */
[id] {
  scroll-margin-top: 70px;
}

/* 1400px以上（PC）：ヘッダー高さ90px分を考慮して手前で止める */
@media screen and (min-width: 1400px) {
  [id] {
    scroll-margin-top: 90px;
  }
}

/* --- Modal Styles --- */
.galleryImageModal {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease-in-out,
    visibility 0.3s;
  pointer-events: none;
}

.galleryImageModal.modalVisible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modalContent {
  display: block;
  width: auto;
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.modalClose {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
  line-height: 1;
}

@media print, screen and (min-width: 768px) {
  .modalClose:hover {
    opacity: 1;
  }
}

img.modalTrigger {
  cursor: pointer;
}
