@import url('https://fonts.googleapis.com/css2?family=Damion&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Yuji+Mai&display=swap');

:root {
  --fontB: "Noto Serif JP", serif;
  --fontC: "Poppins", sans-serif;
  --fontD: "Damion", cursive;
  --main-color: #666637;
  --accent-color: #d4c8a9;
  --text-color: #333;

}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  padding: 0;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  font-size: 1rem;
  font-family: "Noto Sans JP", sans-serif;
  color: #333;
}

a {
  display: block;
  pointer-events: auto !important;
  cursor: pointer !important;
}


/*===============================================
ヘッダー
================================================*/

.menu-container {
  width: 100%;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.menu-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/line.png);
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.1;
  /* ここの値を0.0〜1.0の間で調整 */
  z-index: -1;
  /* コンテンツよりも背後に配置 */
}

.contents-container {
  flex-grow: 1;
}

.footer-bar {
  width: 100%;
  height: 4vh;
  background-image: url('../img/border.jpg');
  background-repeat: repeat-x;
  background-size: cover;
  flex-shrink: 0;
  position: static;
}

.footer-bar2 {
  width: 100%;
  height: 4vh;
  background-image: url('../img/copy-back546×85.png');
  background-repeat: repeat-x;
  flex-shrink: 0;
  position: static;
}

header {
  width: 100%;
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.8);
}


.header-logo {
  width: 300px;
  height: auto;
  padding: 5px 15px 5px 8px;
}

.header-logo img {
  width: 100%;
  height: auto;
  display: block;
}



@media screen and (max-width: 767px) {
  header {
    height: 67px;
  }

  .header-logo {
    width: 55%;
    padding-top: 15px;
  }
}

.header-tel {
  position: absolute;
  top: 8px;
  right: 400px;
}

.header-tel p {
  font-size: 1.7rem;
  font-family: var(--fontB);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  position: relative;
  /*
  text-shadow:
    3px 3px 0 #fff,
    -3px 3px 0 #fff,
    3px -3px 0 #fff,
    -3px -3px 0 #fff,
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
    */
}

@media screen and (min-width: 655px) and (max-width: 675px) {
  .header-logo {
    width: 45%;
    padding-top: 5px;
  }
}

.header-tel p::before {
  content: "";
  display: inline-block;
  background-image: url(../img/freedial.png);
  background-repeat: no-repeat;
  background-size: contain;
  width: 45px;
  height: 35px;
  position: absolute;
  bottom: 5%;
  left: -22%;
}

.header-tel p span {
  font-size: 3.2rem;
  font-family: var(--fontC);
  font-weight: 500;
  display: block;
  color: rgba(102, 102, 55, 1);
  text-shadow:
    3px 3px 0 #fff,
    -3px 3px 0 #fff,
    3px -3px 0 #fff,
    -3px -3px 0 #fff,
    2px 2px 0 #fff,
    -2px 2px 0 #fff,
    2px -2px 0 #fff,
    -2px -2px 0 #fff,
    1px 1px 0 #fff,
    -1px 1px 0 #fff,
    1px -1px 0 #fff,
    -1px -1px 0 #fff;
}

@media screen and (max-width: 767px) {
  .header-tel {
    display: none;
  }
}

.urgent-button-container {
  width: 250px;
  margin: auto;
  box-sizing: border-box;
  position: absolute;
  top: 5px;
  right: 73px;
}

.urgent-button-container a {
  transition: all ease 0.3s;
}

.urgent-button-container a:hover {
  opacity: 0.5;
}

@media screen and (max-width: 1024px) {

  .urgent-button-container {
    display: none;
  }

  .header-tel {
    right: 75px;
  }

}

.urgent-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 60px;
  background-color: #EC8688;
  color: #333;
  text-align: center;
  padding: 0 15px;
  text-decoration: none;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background-image: url(../img/pattern-bg-footer.png);
  background-repeat: repeat;
  line-height: 1.3;
  box-sizing: border-box;
  padding-left: 3rem;
}

.urgent-button-title {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fontB);
  line-height: 1;
  font-weight: 600;
  color: #fff;
}

.urgent-button-title .icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  background-color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-right: 8px;
  color: #EC8688;
  font-size: 1.8rem;
  font-weight: bold;
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.urgent-button-text {
  font-size: 2.1rem;
  font-weight: 600;
  margin-top: 3px;
  color: #fff;
}

.phone-button-container {
  margin: 20px;
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
}

.phone-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 55px;
  background-color: #8b325b;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  top: 5px;
  right: 63px;
  overflow: hidden;
}

.phone-button:hover {
  background-color: #702049;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.phone-icon {
  font-size: 24px;
  margin-bottom: 4px;
  padding-top: 4px;
}

.phone-text {
  font-size: 12px;
  font-weight: 500;
}

@media screen and (min-width: 768px) {
  .phone-button-container {
    display: none;
  }
}

.line-button-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
}

.line-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 60px;
  height: 60px;
  justify-content: center;
  background-color: #4cc764;
  color: white;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: absolute;
  top: 5px;
  right: 331px;
  overflow: hidden;
}

.line-button:hover {
  opacity: 0.9;
}

.line-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
  transform: translateY(-8px);
}

.line-icon img {
  width: 100%;
  height: auto;
}

.line-text {
  font-size: 1.3rem;
  position: absolute;
  bottom: 3px;
  /* 下からの位置 */
  left: 0;
  width: 100%;
  /* ボタンの幅いっぱいに */
  text-align: center;
  font-weight: 500;
}

@media screen and (max-width: 1024px) {

  .line-button {
    right: 72px;
  }

}

@media screen and (max-width: 767px) {

  .line-button-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    font-family: 'Hiragino Sans', 'Meiryo', sans-serif;
  }

  .line-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    height: 54px;
    justify-content: center;
    background-color: #4cc764;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: absolute;
    top: 5px;
    right: 119px;
    overflow: hidden;
    box-sizing: border-box;
    overflow: hidden;
  }

  .line-button:hover {
    opacity: 0.9;
  }

  .line-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
    transform: translateY(-8px);
  }

  .line-icon img {
    width: 100%;
    height: auto;
  }

  .line-text {
    font-size: 12px;
    position: absolute;
    bottom: 3px;
    /* 下からの位置 */
    left: 0;
    width: 100%;
    /* ボタンの幅いっぱいに */
    text-align: center;
    font-weight: 500;
  }
}

/*======================================
ハンバーガーBTN
=======================================*/

#nav-toggle {
  width: 60px;
  height: 60px;
  position: fixed;
  right: 5px;
  top: 5px;
  cursor: pointer;
  z-index: 1000;
  background-color: rgba(102, 102, 55, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

#nav-toggle div {
  width: 100%;
  height: 100%;
  position: relative;
}

#nav-toggle div span {
  content: "";
  display: block;
  width: 70%;
  height: 3px;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#nav-toggle div span:nth-child(1) {
  top: 8px;
}

#nav-toggle div span:nth-child(2) {
  top: 18px;
}

#nav-toggle div span:nth-child(3) {
  top: 28px;
}

#nav-toggle div p {
  color: #fff;
  font-size: 1.5rem;
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
}

@media screen and (max-width: 767px) {

  #nav-toggle {
    width: 50px;
    height: 55px;
  }

  #nav-toggle div p {
    color: #fff;
    font-size: 1.2rem;
    bottom: 4px;
  }

}

/* ハンバーガーアイコンのアニメーション（アクティブ状態） */
#nav-toggle.active div span:nth-child(1) {
  top: 18px;
  transform: translateX(-50%) rotate(45deg);
  transition: all 0.3s ease-in-out;
}

#nav-toggle.active div span:nth-child(2) {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#nav-toggle.active div span:nth-child(3) {
  top: 18px;
  transform: translateX(-50%) rotate(-45deg);
  transition: all 0.3s ease-in-out;
}

/* ハンバーガーアイコンの通常状態のトランジション */
#nav-toggle div span:nth-child(1),
#nav-toggle div span:nth-child(2),
#nav-toggle div span:nth-child(3) {
  transition: all 0.3s ease-in-out;
}

/* メニューオープン時に背景スクロールを防止 */
body.nav-open {
  overflow: hidden;
}

/* オーバーレイ効果（修正版） */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 980;
  animation: fadeIn 0.4s forwards;
  pointer-events: none;
  /* クリックイベントを通過させる */
}

body.nav-open .nav-overlay {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/*======================================
ハンバーガーメニュー
=======================================*/

#nav-inner {
  width: 30vw;
  height: 100vh;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 990;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 8rem 0 0;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  overflow-y: auto;
}

/* メニューの初期状態（閉じた状態） */
#nav-inner.closed {
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
}

/* メニューの開いた状態 */
#nav-inner.open {
  transform: translateX(0);
  transition: transform 0.4s ease-in-out;
}

#nav-inner .nav-inner-logo {
  width: 300px;
  height: auto;
  margin: 0 auto 5rem;
}

#nav-inner .nav-inner-logo img {
  width: 100%;
  height: auto;
  display: block;
}

ul.parent {
  list-style: none;
  width: 60%;
  margin: auto;
}

ul.parent li:nth-child(1) {
  margin-bottom: 2rem;
  border-bottom: dotted 1px #ccc;
  padding-bottom: 7px;
}

ul.parent li+li {
  margin-bottom: 2rem;
  border-bottom: dotted 1px #ccc;
  padding-bottom: 7px;
}

ul.parent li a {
  display: block;
  font-size: 2rem;
  color: rgba(102, 102, 55, 1);
  text-decoration: none;
  padding-left: 1.5rem;
  position: relative;
  transition: all ease 0.2s;
}

ul.parent li a:hover {
  color: #cccc6e;
}

ul.parent li a::after {
  content: "\003E";
  padding: 0 8px 3px 9px;
  background-color: rgba(102, 102, 55, 1);
  color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  right: 2%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  box-sizing: border-box;
}

ul.parent li a:hover::after {
  background-color: #cccc6e;
}

span.navfont-small {
  font-size: 1.5rem;
}

span.navfont-main {
  font-family: var(--fontB);
  font-size: 2.4rem;
  font-weight: bold;
}

@media screen and (max-width: 1440px) {
  ul.parent {
    width: 80%;
  }
}

@media screen and (max-width: 1140px) {
  #nav-inner {
    width: 40vw;
  }
}

@media screen and (max-width: 840px) {

  #nav-inner {
    width: 45vw;
  }

  #nav-inner .nav-inner-logo {
    width: 250px;
  }

}

@media screen and (max-width: 767px) {
  #nav-inner {
    width: 100%;
    min-height: 100vh;
    overflow-y: auto;
  }

  #nav-inner .nav-inner-logo {
    margin-bottom: 3rem;
  }

  ul.parent li:nth-child(1) {
    margin-bottom: 1.5rem;
    border-bottom: dotted 1px #ccc;
    padding-bottom: 5px;
  }

  ul.parent li+li {
    margin-bottom: 1.5rem;
    border-bottom: dotted 1px #ccc;
    padding-bottom: 5px;
  }

  span.navfont-main {
    font-size: 2rem;
  }

}

/*=====================================
メインビジュアル
======================================*/
.mainvisual {
  width: 100%;
  height: 400px;
  background-image: url(../img/page-title-pc.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  margin-top: 70px;
}

@media screen and (max-width: 767px) {
  .mainvisual {
    height: 300px;
    background-image: url(../img/page-title-sp.png);
  }
}


.mainvisual h1 {
  font-family: var(--fontB);
  font-size: 4.8rem;
  font-weight: 500;
  color: rgba(102, 102, 55, 1);
  margin-bottom: 1.5;
  letter-spacing: 0.15em;
  line-height: 1.2;
}

.mainvisual h1 span.title_small {
  font-size: 3.7rem;
}

.visual-underline {
  width: 140px;
  height: 4px;
  background: linear-gradient(to right, var(--main-color) 0%, var(--main-color) 60%, var(--accent-color) 60%, var(--accent-color) 100%);
  margin: 2rem auto 4rem;
  position: relative;
}

.mainvisual p {
  font-size: 1.8rem;
  color: var(--text-color);
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 1.6;
  max-width: 90%;
  opacity: 0.9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .mainvisual {
    height: 350px;
  }

  .mainvisual h1 {
    font-size: 4.2rem;
  }

  .mainvisual p {
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 767px) {
  .mainvisual {
    height: 300px;
    padding: 0 20px;
  }

  .mainvisual h1 {
    font-size: 3.6rem;
    margin-bottom: 1.5rem;
  }

  .mainvisual h1 span.title_small {
    font-size: 2.8rem;
  }

  .visual-underline {
    width: 100px;
    margin-bottom: 2rem;
  }

  .mainvisual p {
    font-size: 1.4rem;
    max-width: 90%;
  }
}

@media screen and (max-width: 480px) {
  .mainvisual h1 {
    font-size: 2.8rem;
  }

  .mainvisual p {
    font-size: 1.3rem;
  }
}

/* アニメーション効果 */
.mainvisual h1,
.visual-underline,
.mainvisual p {
  opacity: 0;
  animation: fadeInUp 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.visual-underline {
  animation-delay: 0.4s;
}

.mainvisual p {
  animation-delay: 0.8s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}




/*===========================================
パンくずリスト
============================================*/
.header-bar {
  width: 100%;
  height: 40px;
  background-image: url(../img/copy-back546×85.png);
  background-repeat: repeat;
}

ul.pankuzu {
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 1.7rem;
  width: 85%;
  max-width: 1920px;
  margin: auto;
  padding: 8px 0;
}

ul.pankuzu li {
  margin: 0 1rem;
  width: auto;
}

ul.pankuzu li:last-child {
  margin-left: 0;
}

ul.pankuzu i.fas {
  margin-right: 4px;
  transform: translateY(-1px);
}

ul.pankuzu li a {
  text-decoration: none;
  color: inherit;
  transition: all ease 0.3s;
  display: block;
  line-height: 1.2;
}

ul.pankuzu li a:hover {
  color: rgba(102, 102, 55, 1);
  font-weight: 800;
}

span.small1 {
  font-size: 1.7rem;
}

span.small2 {
  font-size: 1.4rem;
}

span.main {
  font-size: 2rem;
}


li.here {
  color: rgba(102, 102, 55, 1);
  font-weight: bold;
  font-family: var(--fontB);
}

@media screen and (max-width: 767px) {

  ul.pankuzu {
    width: 95%;
    font-size: 1.5rem;
  }

  ul.pankuzu li {
    margin: 0 6px;
  }

  span.small1 {
    font-size: 1.4rem;
  }

  span.main {
    font-size: 1.6rem;
  }

  span.pcdisplay {
    display: none;
  }

}

main {
  margin: 0;
  padding: 0;
  width: 100%;
  height: auto;
  position: relative;
}


/*===========================================
式場画像スライダー
============================================*/

.hall {
  padding: 5rem 0;
}


.hall-container {
  width: 80%;
  max-width: 1460px;
  margin: 0 auto;
  position: relative;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 400px;
}

/* slick風のスライダーWrapper */
.slider-wrapper {
  display: flex;
  height: 400px;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
  align-items: center;
}

/* 各スライド */
.slide {
  flex: 0 0 33.333%;
  /* 3枚表示なので33.333% */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 100%;
}

/* サイド画像（左右） */
.slide img {
  width: 85%;
  height: 340px;
  margin-top: 30px;
  object-fit: cover;
  border-radius: 15px;
  opacity: 0.6;
  filter: brightness(0.7);
  transform: scale(1.0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* transition削除 */
}

/* サイド画像のホバー効果 */
.slide:hover img {
  opacity: 0.8;
  filter: brightness(0.9);
  transform: scale(1.02);
  cursor: pointer;
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* センター画像のスタイル */
.slide.slick-center {
  z-index: 5;
  /* 左右の画像より前面に表示 */
}

.slide.slick-center img {
  width: 120% !important;
  height: 400px !important;
  margin-top: 0 !important;
  opacity: 1 !important;
  filter: brightness(1) !important;
  transform: scale(1.1) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4) !important;
  background-color: white !important;
  border: 3px solid white !important;
  z-index: 5;
  position: relative;
  /* transition削除、!importantで強制適用 */
}

/* センター画像はホバー効果を無効化 */
.slide.slick-center:hover img {
  width: 120% !important;
  height: 400px !important;
  opacity: 1 !important;
  filter: brightness(1) !important;
  transform: scale(1.1) !important;
  /* センター画像はホバーしても変化させない */
}

/* ナビゲーションボタン */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  color: #333;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.nav-btn.prev {
  left: 15px;
}

.nav-btn.next {
  right: 15px;
}

/* インジケーター */
.indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #007bff;
  transform: scale(1.2);
}

.indicator:hover {
  background: #007bff;
  opacity: 0.8;
}

/* 画像情報表示（data-titleがない場合は完全非表示） */
.image-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  z-index: 6;
  transition: all 0.4s ease-in-out;
  opacity: 0;
  visibility: hidden;
  display: none;
}

/* レスポンシブ対応 */
@media (max-width: 840px) {
  .hall-container {
    width: 95%;
  }

  .slider {
    height: 300px;
  }

  .slider-wrapper {
    height: 300px;
  }

  /* モバイルでは左右の画像を非表示にして、センター画像のみ表示 */
  .slide img {
    display: none;
    /* 左右の画像は非表示 */
  }

  .slide.slick-center img {
    display: block;
    /* センター画像のみ表示 */
    width: 95%;
    /* 600% → 95%に戻す（flexで制御するため） */
    height: 300px;
    /* 350px → 250pxに戻す */
    margin-top: 0;
    /* margin-topをリセット */
    transform: scale(1.0);
    object-fit: cover;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    z-index: 15;
    /* センター画像より確実に前面に */
  }

  .nav-btn.prev {
    left: 10px;
    /* 少し内側に */
  }

  .nav-btn.next {
    right: 10px;
    /* 少し内側に */
  }
}

@media (max-width: 480px) {
  .slide img {
    width: 40%;
    /* さらに小さく */
  }

  .slide.slick-center img {
    width: 110%;
    /* 480px以下でも適度に大きく */
  }
}


/*==========================================
葬儀場の特徴
===========================================*/

ul.feature {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1rem;
  margin-bottom: 2rem;
  width: 62%;
  margin: auto;
  margin-top: 3rem;
}

ul.feature li {
  width: 16%;
  font-size: 1.5rem;
  border: solid 1px #ccc;
  padding: 10px 0 10px 5px;
  color: #555;
}

ul.feature li.this {
  color: #4567b5;
  border: solid 1px #4567b5;
}

span.ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: 0.5rem;
}

ul.feature li:nth-child(1) span.ico {
  background-image: url(../img/spec-car-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(1) span.ico {
  background-image: url(../img/spec-car.svg);
  transform: translateY(4px);
}

ul.feature li:nth-child(2) span.ico {
  background-image: url(../img/spec-station-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(2) span.ico {
  background-image: url(../img/spec-station.svg);
  transform: translateY(4px);
}

ul.feature li:nth-child(3) span.ico {
  background-image: url(../img/spec-room-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(3) span.ico {
  background-image: url(../img/spec-room.svg);
  transform: translateY(4px);
}

ul.feature li:nth-child(4) span.ico {
  background-image: url(../img/spec-stay-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(4) span.ico {
  background-image: url(../img/spec-stay.svg);
  transform: translateY(4px);
}

ul.feature li:nth-child(5) span.ico {
  background-image: url(../img/spec-anchi-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(5) span.ico {
  background-image: url(../img/spec-anchi.svg);
  transform: translateY(4px);
}

ul.feature li:nth-child(6) span.ico {
  background-image: url(../img/spec-free-g.svg);
  transform: translateY(4px);
}

ul.feature li.this:nth-child(6) span.ico {
  background-image: url(../img/spec-free.svg);
  transform: translateY(4px);
}

@media screen and (max-width: 1600px) {
  ul.feature {
    width: 75%;
  }
}

@media screen and (max-width: 1240px) {
  ul.feature {
    width: 90%;
  }
}

@media screen and (max-width: 1180px) {

  .hall {
    padding: 1rem;
  }

  ul.feature li {
    font-size: 1.3rem;
  }

}

@media screen and (max-width: 1024px) {
  ul.feature {
    width: 100%;
  }
}

@media screen and (max-width: 980px) {

  ul.feature {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  ul.feature li {
    width: 30%;
  }

  span.ico {
    width: 15px;
    height: 15px;
  }

}

@media screen and (max-width: 767px) {


  ul.feature li {
    font-size: 1.4rem;
  }

  span.ico {
    width: 18px;
    height: 18px;
  }

}

@media screen and (max-width: 480px) {

  ul.feature li {
    width: 50%;
  }

}

/*===========================================
式場情報
============================================*/

.hall-data {
  padding: 5rem 0;
  background-color: #f4f4f4;
}

.hall-data-container {
  width: 80%;
  max-width: 1460px;
  margin: 0 auto;
}

.hall-info-table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  font-size: 1.7rem;
}

.hall-info-table tr {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #e0e0e0;
  min-height: 80px;
}

.hall-info-table tr:first-child th:first-child {
  border-top-left-radius: 8px;
}

.hall-info-table tr:first-child td:last-child {
  border-top-right-radius: 8px;
}

.hall-info-table tr:last-child {
  border-bottom: none;
}

.hall-info-table tr:last-child th:first-child {
  border-bottom-left-radius: 8px;
}

.hall-info-table tr:last-child td:last-child {
  border-bottom-right-radius: 8px;
}

.hall-info-table th {
  background-color: #f8f8f8;
  color: #4567B5;
  font-weight: 600;
  padding: 20px 25px;
  text-align: left;
  border-right: 1px solid #e0e0e0;
  font-family: "Noto Sans JP", sans-serif;
  flex: 0 0 15%;
  margin: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hall-info-table td {
  padding: 20px 25px;
  color: #333;
  line-height: 1.6;
  border-right: 1px solid #e0e0e0;
  background-color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.hall-info-table tr.four-column td {
  flex: 0 0 35%;
}

.hall-info-table tr.two-column td {
  flex: 1;
}

.hall-info-table td:last-child {
  border-right: none;
}

.hall-info-table td:last-child {
  border-right: none;
}

/* 特別なスタイリング */
.price-info {
  color: #d4691b;
  font-weight: 600;
}

.facility-available {
  color: #2e8b57;
  font-weight: 600;
}

.facility-note {
  color: #666;
  font-size: 1.4rem;
  margin-top: 5px;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .hall-data-container {
    width: 90%;
  }

  .hall-info-table {
    font-size: 1.6rem;
  }

  .hall-info-table th,
  .hall-info-table td {
    padding: 15px 20px;
  }
}

@media screen and (max-width: 767px) {
  .hall-data {
    padding: 4rem 0;
  }

  .hall-data-container {
    width: 95%;
  }

  .hall-info-table {
    font-size: 1.5rem;
  }

  .hall-info-table tr {
    flex-direction: column;
    align-items: stretch;
  }

  .hall-info-table th,
  .hall-info-table td {
    flex: none;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 15px;
  }

  .hall-info-table tr:last-child th:last-child,
  .hall-info-table tr:last-child td:last-child {
    border-bottom: none;
  }

  .facility-note {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 480px) {
  .hall-info-table {
    font-size: 1.5rem;
  }

  .hall-info-table th,
  .hall-info-table td {
    padding: 10px 12px;
  }
}

/*==========================================
MAP
===========================================*/
.map {
  padding: 5rem 0;
}

.map-title {
  text-align: center;
  font-size: 4.6rem;
  margin-bottom: 2rem;
  font-weight: 500;
  font-family: var(--fontB);
  color: rgba(102, 102, 55, 1);
  letter-spacing: 0.1em;
}

.map-underline {
  width: 140px;
  height: 4px;
  background: linear-gradient(to right, var(--main-color) 0%, var(--main-color) 60%, var(--accent-color) 60%, var(--accent-color) 100%);
  margin: 2rem auto 4rem;
}

@media screen and (max-width: 1024px) {

  .map-title {
    font-size: 3.8rem;
  }
}

@media screen and (max-width: 767px) {

  .map-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
  }

  .map-underline {
    width: 100px;
    margin: 1.5rem auto 3rem;
  }

}

/*==========================================
アクセスマップ
===========================================*/
.accessmap {
  width: 80%;
  max-width: 1460px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.accessmap iframe {
  width: 100%;
  height: 450px;
  border: none;
  display: block;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
  .accessmap {
    width: 90%;
  }

  .accessmap iframe {
    height: 400px;
  }
}

@media screen and (max-width: 767px) {
  .accessmap {
    width: 95%;
  }

  .accessmap iframe {
    height: 400px;
  }
}

@media screen and (max-width: 480px) {
  .accessmap iframe {
    height: 400px;
  }
}

/*===========================================
ご葬儀プラン
============================================*/

.others {
  width: 80%;
  max-width: 1460px;
  height: auto;
  margin: auto;
  margin-top: 3rem;
  display: grid;
  justify-content: space-between;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding-bottom: 5rem;
}

.other-content a {
  display: block;
  width: 100%;
  height: 300px;
  background-color: #ccc;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  transition: all ease 0.3s;
}

.other-content a:hover {
  opacity: 0.9;
  transform: translateY(5px);
}

.other-content:nth-of-type(1) a .other-content-main {
  background-image: url(../img/menu2.jpg);
}

.other-content:nth-of-type(2) a .other-content-main {
  background-image: url(../img/menu3.jpg);
}

.other-content:nth-of-type(3) a .other-content-main {
  background-image: url(../img/menu4.jpg);
}

.other-content:nth-of-type(4) a .other-content-main {
  background-image: url(../img/menu5.jpg);
}

.other-content.public:nth-of-type(1) a .other-content-main {
  background-image: url(../img/menu1.jpg);
}

.other-content.piblic:nth-of-type(2) a .other-content-main {
  background-image: url(../img/menu2.jpg);
}

.other-content.public:nth-of-type(3) a .other-content-main {
  background-image: url(../img/menu3.jpg);
}

.other-content.public.piblic:nth-of-type(4) a .other-content-main {
  background-image: url(../img/menu5.jpg);
}

.other-content.oneday:nth-of-type(1) a .other-content-main {
  background-image: url(../img/menu1.jpg);
}

.other-content.oneday:nth-of-type(2) a .other-content-main {
  background-image: url(../img/menu2.jpg);
}

.other-content.oneday:nth-of-type(3) a .other-content-main {
  background-image: url(../img/menu4.jpg);
}

.other-content.oneday.piblic:nth-of-type(4) a .other-content-main {
  background-image: url(../img/menu5.jpg);
}

.other-content.cremation:nth-of-type(1) a .other-content-main {
  background-image: url(../img/menu1.jpg);
}

.other-content.cremation:nth-of-type(2) a .other-content-main {
  background-image: url(../img/menu2.jpg);
}

.other-content.cremation:nth-of-type(3) a .other-content-main {
  background-image: url(../img/menu3.jpg);
}

.other-content.cremation:nth-of-type(4) a .other-content-main {
  background-image: url(../img/menu4.jpg);
}

.other-content.general:nth-of-type(1) a .other-content-main {
  background-image: url(../img/menu1.jpg);
}

.other-content.general:nth-of-type(2) a .other-content-main {
  background-image: url(../img/menu3.jpg);
}

.other-content.general:nth-of-type(3) a .other-content-main {
  background-image: url(../img/menu4.jpg);
}

.other-content.general:nth-of-type(4) a .other-content-main {
  background-image: url(../img/menu5.jpg);
}


.other-content-main {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: block;
  background-color: #ccc;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  transition: all ease 0.3s;
  z-index: 2;
}

.other-content a::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: url(../img/g-pattern.jpg) repeat;
  position: absolute;
  top: 10px;
  left: 10px;
  box-sizing: border-box;
  z-index: -1;
  pointer-events: none;
  transition: opacity ease 0.3s;
  /* transition を追加 */
  opacity: 1;
  visibility: visible;
  /* 追加 */
  transition: all ease 0.3s;
}

.other-content a:hover::after {
  opacity: 0;
  visibility: hidden;
}

.other-content-text {
  width: 65%;
  height: 65%;
  background-color: rgba(102, 102, 55, 0.8);
  border-radius: 50%;
  position: absolute;
  bottom: -20%;
  right: -20%;
  text-align: center;
  color: #fff;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.other-content a:hover .other-content-main .other-content-text {
  background-color: rgba(255, 255, 255, 1);
  color: rgba(102, 102, 55, 1);
}


h4.other-content-title {
  font-size: 1.8rem;
  font-weight: 400;
  padding-top: 4rem;
  margin-left: -5rem;
}

span.title-type1 {
  font-size: 1.6rem;
  font-weight: 300;
}

span.title-type2 {
  font-family: var(--fontB);
  font-weight: bold;
  font-size: 2.6rem;
}


@media screen and (max-width: 1600px) {

  h4.other-content-title {
    font-size: 1.6rem !important;
    padding-top: 4.5rem !important;
  }

  span.title-type1 {
    font-size: 1.2rem;
  }

  span.title-type2 {
    font-size: 2.2rem;
  }

}

@media screen and (max-width: 1500px) {

  .others {
    width: 85%;
  }

}


@media screen and (max-width: 1400px) {

  .other-content-text {
    width: 75% !important;
  }

}

@media screen and (max-width: 1240px) {

  .others {
    width: 90%;
  }


  .other-content a {
    height: 240px;
  }

  .other-content-text {
    width: 75%;
    height: 75%;
    right: -10%;
  }

  h4.other-content-title {
    padding-top: 0;
    padding-left: 25%;
  }

}

@media screen and (max-width: 840px) {

  .others {

    grid-template-columns: repeat(2, 1fr);
    margin-top: 2rem;

  }

  .other-content a::after {
    top: 5px;
    left: 5px;
  }

  .other-content-text {
    width: 60% !important;
    height: 65% !important;
    bottom: -20%;
    right: -20%;
  }

  h4.other-content-title {
    padding-left: 0 !important;
    padding-top: 3.5rem !important;
  }

}

@media screen and (max-width: 767px) {

  .others {
    grid-template-columns: repeat(1, 1fr);
  }
}

/*===========================================
バナー
===========================================*/

.banner-container {
  width: 80%;
  max-width: 1460px;
  height: auto;
  margin: auto;
  padding: 8rem 0;
}

@media screen and (max-width: 1024px) {
  .banner-container {
    width: 85%;
  }
}

@media screen and (max-width: 767px) {
  .banner-container {
    width: 100%;
    padding-bottom: 5rem;
  }
}

.banner-container img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 2px 2px 6px #ccc;
}

.more-button::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 1px solid #9c8e6b;
  border-right: 1px solid #9c8e6b;
  transform: rotate(45deg);
  transition: all 0.3s ease;
}

.more-button:hover::after {
  transform: translateX(3px) rotate(45deg);
}

/* PC用ボタン */
.more-button {
  padding: 12px 35px 12px 30px !important;
  font-size: 2rem !important;
  letter-spacing: 1px !important;
  background-color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
  font-weight: 600 !important;
}

.more-button::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, #d4c8a9, transparent);
}

.more-button::after {
  right: 20px;
}

/* SP用ボタン */
@media screen and (max-width: 767px) {


  .more-button {
    padding: 10px 30px 10px 25px !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    width: 85%;
    max-width: 280px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .more-button::after {
    right: 15px;
  }

}

.more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #333;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #d4c8a9;
}

.more-button:hover {
  background-color: #f0ebe0 !important;
}

/* 装飾用 */
.button-label {
  position: relative;
  display: flex;
  align-items: center;
}

.button-label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: #d4c8a9;
  border-radius: 50%;
  margin-right: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {

  .pc {
    display: none !important;
  }

}

@media (min-width: 768px) {

  .sp {
    display: none !important;
  }

}

/* 表示用コンテナ */
.button-container {
  text-align: center;
  margin-top: 20px;
}

h2 {
  margin-bottom: 10px;
  font-weight: normal;
  color: #666;
}


/*============================================
フッター
=============================================*/
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7rem;
  position: relative;
  /* 疑似要素の配置のため必要 */
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(../img/pattern-bg-footer.png);
  background-repeat: repeat;
  opacity: 0.7;
  /* 0から1の間で調整可能 */
  z-index: -1;
  /* コンテンツの背後に配置 */
}

.footer-left {
  width: 30%;
  height: auto;
  background-color: #fff;
  padding: 4rem 0;
  border-radius: 3rem;
}

.footer-right {
  width: 65%;
}

.footer-image {
  width: 50%;
  height: auto;
  margin: 0 auto 2rem;
}

.footer-image img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-text {
  text-align: center;
}

p.address {
  font-size: 1.6rem;
}

p.freedial a {
  text-decoration: none;
  font-size: 2.4rem;
  color: rgba(102, 102, 55, 1);
  font-weight: 700;
  font-family: var(--fontC);
  display: inline-block;
}

p.freedial::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 20px;
  background: url(../img/freedial.png) no-repeat;
  background-size: contain;
  margin-right: 0.5rem;
}

p.others-num {
  font-size: 1.6rem !important;
  width: 100% !important;
  grid-template-columns: repeat(1 ,1fr) !important;
  margin-top: 0 !important;
}

.footer-right ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.footer-right ul li {
  width: 33%;
}

.footer-right ul li a {
  display: block;
  color: rgba(102, 102, 55, 1);
  text-decoration: none;
  font-size: 2rem;
  position: relative;
  transition: all ease 0.2s;
  line-height: 2;
  transition: all ease 0.3s;
}

.footer-right ul li a:hover {
  color: #cccc6e;
}

span.type-small {
  font-size: 1.4rem;
}

span.type-title {
  font-family: var(--fontB);
  font-size: 2.4rem;
  font-weight: bold;
}

.footer-right ul li:nth-of-type(1) a::before {
  font-family: "Font Awesome 6 Free";
  content: "\f015";
  /* 家のアイコン */
  margin-right: 8px;
  font-weight: 900;
  font-size: 0.9em;
  color: #666;
}

.footer-right ul li a::before {
  font-family: "Font Awesome 6 Free";
  content: "\f138";
  margin-right: 8px;
  font-weight: 900;
  color: #555;
}

.footer-right ul li a:hover:before {
  color: #cccc6e;
}

@media screen and (max-width: 1440px) {

  .footer-right ul li a {
    font-size: 1.8rem;
  }

  span.type-title {
    font-size: 2.2rem;
  }

}

@media screen and (max-width: 1140px) {

  .footer-left {
    width: 35%;
  }

  .footer-right ul li:nth-of-type(1) a {
    font-size: 1.8rem;
  }

  .footer-right ul li a {
    font-size: 1.5rem;
  }

  span.type-title {
    font-size: 1.9rem;
  }

}

@media screen and (max-width: 1024px) {

  footer {
    padding: 0 2rem;
  }

  .footer-left {
    width: 40%;
    padding: 3rem 0;
  }

  .footer-right {
    width: 60%;
  }

  .footer-right ul li {
    width: 50%;
  }

}

@media screen and (max-width: 767px) {

  footer {
    flex-direction: column;
    padding: 0 0 6rem;
  }

  .footer-left {
    width: 100%;
    margin: 0 auto 2rem;
  }

  .footer-image {
    width: 60%;
  }

  .footer-right {
    width: 80%;
    margin: auto;
    padding: 0 3rem 3rem;
  }

  .footer-right ul li {
    width: 100%;
  }

}

/*=====================================
Copyright
======================================*/
.copyright {
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  padding: 1.5rem 0;
  background: url(../img/copy-back546×85.png) repeat-x;
}

.copyright p {
  font-size: 1.5rem;
  font-family: var(--fontC);
  color: #fff;
  text-align: center;
}

@media screen and (max-width: 767px) {
  .copyright {
    width: 100%;
    height: auto;
    display: none;
  }
}

/*=============================================
FooterFixed
==============================================*/
.footer-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(102, 102, 55, 1);
  /* 紫色の背景 */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  box-sizing: border-box;
  height: 60px;
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.footer-fixed.show {
  opacity: 1;
  visibility: visible;
}

.footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 48%;
}

.footer-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  width: 100%;
}

.footer-item-left {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-title {
  font-size: 1rem;
  margin-bottom: 3px;
  font-family: var(--fontB);
  font-weight: 500;
}

.footer-subtitle {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.circle-icon {
  background: #E83B80;
  /* アイコンのピンク背景 */
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
}

.circle-icon i {
  font-size: 18px;
}

.footer-item-right .footer-subtitle {
  color: #FFEB3B;
  /* 右側のテキストの黄色 */
}

.document-icon {
  width: 28px;
  height: 28px;
  margin-right: 5px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  /* Webkit用 */
  image-rendering: crisp-edges;
  /* 標準 */
}

/* モバイルデバイスのみ表示 */
@media screen and (min-width: 768px) {
  .footer-fixed {
    display: none;
  }
}

/*=============================================
資料請求ボタン
==============================================*/
.vertical-btn {
  width: 60px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: fixed;
  right: 0;
  bottom: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  /* 初期状態では少し右に配置 */
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

.vertical-btn a {
  display: block;
  background-color: #E56567;
  background-image: url(../img/pattern-bg-footer.png);
  padding: 10px 0;
  color: white;
  text-decoration: none;
  width: 100%;
  transition: all ease 0.3s;
}

.vertical-btn a:hover {
  opacity: 0.5;
}

.icon-container {
  margin-bottom: 5px;
}

.icon-container img {
  max-width: 50px;
  height: auto;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
  margin-bottom: 5px;
}

.text-container {
  margin: 0 auto;
  font-weight: bold;
  font-size: 21px;
  white-space: nowrap;
  height: auto;
  min-height: 80px;
  line-height: 1.2;
  box-sizing: border-box;
  padding-bottom: 10px;
}

.text-container span {
  display: block;
  line-height: 1.1;
}

.vertical-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@media screen and (max-width: 1400px) {
  .vertical-btn {
    display: none;
  }
}

/*=============================================
ページトップBTN
=============================================*/

.pagetop-btn {
  display: block;
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: rgba(85, 85, 85, 0.9);
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 100;
  transition: all 0.5s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.pagetop-btn:hover {
  background-color: rgba(85, 85, 85, 1);
  transform: translateY(-5px);
}

.arrow-up {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  border-top: 3px solid white;
  border-left: 3px solid white;
  transform: translate(-50%, -40%) rotate(45deg);
}

/* 表示状態 */
.pagetop-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media screen and (max-width: 767px) {
  .pagetop-btn {
    right: 10px;
  }
}

/*=============================================
ポップアップ
=============================================*/
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 1080px;
  height: 80vh;
  margin: 0 auto;
  background-color: white;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #333;
  line-height: 1.6;
  z-index: 1010;
  overflow-y: auto;
  display: none;
  opacity: 0;
}

.popup-close {
  position: fixed;
  top: calc(10vh + 10px);
  right: calc(5% + 10px);
  width: 80px;
  height: 80px;
  background-color: #6d4b6d;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 5rem;
  font-weight: bold;
  z-index: 1015;
  transition: all 0.3s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  opacity: 0;
}

@media screen and (max-width: 767px) {
  .popup-close {
    width: 40px;
    height: 40px;
    font-size: 2rem;
    line-height: 1.9;
  }
}

.popup-close:hover {
  background-color: #5a3d5a;
  transform: scale(1.05);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1005;
  display: none;
  opacity: 0;
}

.popup.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

.popup-overlay.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

.popup-close.active {
  display: block;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

body.popup-active {
  overflow: hidden !important;
  height: 100% !important;
  position: fixed !important;
  width: 100% !important;
}

/* Headings */
.popup h2 {
  text-align: center;
  font-size: 3.4rem;
  margin: 30px 0 20px;
  position: relative;
  padding-bottom: 10px;
  font-weight: 600;
  font-family: var(--fontB);
  padding: 3rem 0;
}

.popup h2:after {
  content: "";
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: #6d4b6d;
}

.popup h3 {
  font-size: 2.2rem;
  background-color: #6d4b6d;
  color: white;
  padding: 14px 0;
  margin: 0 0 15px;
  text-align: center;
  font-family: var(--fontB);
  font-weight: 500;
  background-image: url(../img/popup-pattern-bg.png);
  background-repeat: repeat;
}

/* Pattern 1 - Two columns for emergency situations */
.pattern1-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.pattern1-content {
  width: 48%;
  border: 1px solid #e0e0e0;
}

.pattern1-content p {
  padding: 15px;
  margin: 0;
  font-size: 1.8rem;
  text-align: justify;
  font-family: var(--fontB);
}

/* Phone Number Section */
.popup-num {
  background-color: #eee;
  padding: 30px;
  margin-top: 20px;
  position: relative;
  font-size: 2rem;
  font-weight: 400;
}

.popup-num:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #eee;
}

.popup-text {
  text-align: center;
  margin-bottom: 15px;
}

.popup-num-container {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(102, 102, 55, 1);
  padding: 2rem 0;
  background-color: white;
}

.popup-dial {
  font-size: 4rem;
  font-weight: bold;
  color: rgba(102, 102, 55, 1);
  margin: 0;
  padding-right: 20px;
}

.popup-dial::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 45px;
  background: url(../img/freedial.png) no-repeat;
  background-size: contain;
  margin-right: 1.5rem;
  transform: translateY(12px);
}

.popup-time {
  font-size: 14px;
  background-color: rgba(102, 102, 55, 1);
  color: white;
  padding: 5px 10px;
  margin: 0;
  text-align: center;
  line-height: 1.4;
}

/* Pattern 2 - Three columns for items and confirmations */
.pattern2-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.pattern2-content {
  width: 32%;
  background-color: #f9f9f9;
  background: url(../img/pattern-bg-footer.png) repeat;
  padding: 15px;
}

.pattern2-content-image {
  text-align: center;
  margin: 15px 0;
}

.pattern2-content-image img {
  max-width: 100%;
  height: auto;
}

.pattern2-content p {
  font-size: 1.7rem;
  margin: 0;
  padding: 0 5px;
  text-align: justify;
}

.pattern2-content h3 {
  background-image: none;
}

/* Footer Section */
.popup-footer {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  margin-top: 5rem;
  padding: 4rem 2rem;
}

.popup-footer-text {
  width: 65%;
  padding: 2rem 1rem;
}

.popup-footer-text p {
  margin: 0 0 15px;
  font-size: 1.8rem;
  text-align: center;
  line-height: 1.8;
  color: #6d4b6d;
}

.popup-footer-text .popup-footer-num {
  background: none;
  color: rgba(102, 102, 55, 1);
  background-color: #fff;
  margin-top: 3rem;
  padding: 2rem 1rem 0;
  position: relative;
}


.popup-footer-text .popup-footer-num:before {
  content: "";
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-bottom: 15px solid #fff;
}

.popup-footer-num .num-sub {
  font-size: 1.8rem;
  color: #fff;
  font-weight: normal;
  background-color: rgba(102, 102, 55, 1);
  width: 90%;
  margin: auto;
  margin-top: 1rem;
}

.num-main {
  display: flex;
  text-align: center;
  width: 450px;
  margin: auto;
  justify-content: center;
  /* 追加: 水平方向の中央揃え */
  align-items: center;
  /* 追加: 垂直方向の中央揃え */
}

.num-main img {
  display: inline-block;
  width: 50px;
  height: 35px;
  margin-right: 1rem;
  transform: translateY(-8px);
}

.num-main p {
  font-size: 4.3rem;
  font-weight: bold;
  color: rgba(102, 102, 55, 1);
}


.popup-footer-image {
  width: 35%;
  margin-left: 20px;
  border-bottom: 7px;
}

.popup-footer-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 7px;
}

.red {
  color: #cc0000;
  display: block;
}


/* Responsive adjustments */
@media (max-width: 1420px) {

  .popup {
    width: 80%;
  }

  .pattern1-container,
  .pattern2-container {
    flex-direction: column;
  }

  .pattern1-content,
  .pattern2-content {
    width: 100%;
    margin-bottom: 15px;
  }

  .popup-num-container {
    flex-direction: column;
  }

  .popup-dial {
    padding-right: 0;
    margin-bottom: 10px;
  }

  .popup-footer {
    flex-direction: column;
  }

  .popup-footer-text {
    width: 100%;
  }

  .popup-footer-image {
    width: 90%;
    margin: 15px 0 0 0;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {

  .popup {
    width: 90%;
    padding: 25px 15px;
  }

  .popup h2 {
    font-size: 2.8rem;
  }

  .popup h3 {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
  }

  .pattern1-content p {
    font-size: 1.6rem;
  }

  .popup-num {
    padding: 2.5rem 1.5rem;
  }

  .popup-dial {
    font-size: 3rem;
  }

  .popup-dial.sp a {
    text-decoration: none;
    color: rgba(102, 102, 55, 1);
    display: inline-block;
  }

  .popup-dial::before {
    width: 35px;
    height: 30px;
    transform: translateY(6px);
    margin-right: 8px;
    display: inline-block;
  }

  .popup-footer {
    padding: 2.5rem 0;
  }

  .popup-footer-num .num-sub {
    width: 100%;
  }

  .num-main {
    width: 100%;
  }

  .num-main img {
    width: 35px;
    height: 30px;
    margin-right: 8px;
  }

  .num-main p {
    font-size: 3rem;
  }

  .num-main p a {
    text-decoration: none;
    color: rgba(102, 102, 55, 1);
  }

}

/*==============================
追加
===============================*/
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.request-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* フォールバック */
@supports not (writing-mode: vertical-rl) {
  .request-text {
    writing-mode: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}