/* headerやfooter等の共通パーツ */

/* ヘッダー */
.header {
  position: fixed;
  width: 100%;
  height: 80px;
  z-index: 2;
}

.header-inner {
  padding-left: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 1440px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  height: 80px;
}

.header a {
  transition: 0.4s;
  letter-spacing: 0.1rem;
}

.header-nav_list {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
}

.header-nav_list a {
  color: #fff;
  display: block;
  transition: 0.4s;
  padding: 30px 5px;
  font-weight: 500;
}

.header-nav_item-container {
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
}

.header a:hover {
  opacity: 0.6;
}

.header-nav_item-contact {
  background-color: #6B3B5D;
  color: #fff;
  background-image: url(../img/common/mon2.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.header-nav_item-contact a {
  padding: 28px;
}

.header-nav_item-contact a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  opacity: 0.6;
}


/* ハンバーガーメニュー */
.header-hamburger {
  display: none;
}

.header-hamburger_color {
  display: none;
}

.header-nav_logo {
  display: none;
}

.header-nav_address {
  display: none;
  border-top: solid 1px #fff;
  margin: 0 auto;
  padding-top: 30px;
  width: 90%;
}

.header-nav_item-top {
  display: none;
}

@media screen and (max-width: 1250px) {

  /* ヘッダーのナビ部分 */
  .header-nav {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);
    background-image: url(../img/common/header-bg.png);
    /*ハンバーガーメニュークリック時のナビゲーションメニュー背景色*/
    background-size: cover;
    transition: ease .4s;
    /*ハンバーガーメニュークリック時のナビゲーションメニュー出現を遅延*/
  }

  /* ハンバーガーメニュー */
  .header-hamburger_color {
    display: block;
    height: 80px;
    width: 80px;
    background-color: #6B3B5D;
    position: relative;
    transition: 0.4s;
  }

  .header-hamburger_color:hover {
    background-color: rgb(135, 92, 122);
  }

  .header-hamburger {
    width: 56px;
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    display: block;
    background-color: transparent;
    /*buttonタグデフォルトスタイルを打ち消し*/
    border-color: transparent;
    /*buttonタグデフォルトスタイルを打ち消し*/
    z-index: 9999;
  }

  /* ハンバーガーメニューの線 */
  .header-hamburger span {
    width: 70%;
    height: 1px;
    background-color: #ffffff;
    position: relative;
    transition: ease .4s;
    /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
    display: block;
  }

  .header-hamburger span:nth-child(1) {
    top: 0;
  }

  .header-hamburger span:nth-child(2) {
    margin: 8px 0;
  }

  .header-hamburger span:nth-child(3) {
    top: 0;
  }

  /* ハンバーガーメニュークリック後のスタイル */
  .header-nav.active {
    transform: translateX(0);
  }

  .header-hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
  }

  .header-hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .header-hamburger.active span:nth-child(3) {
    top: -9px;
    transform: rotate(-45deg);
  }

  .header-hamburger_color.active {
    background-color: rgba(0, 0, 0, 0.3);
  }

  /* ヘッダー調整 */
  .header-inner {
    height: 80px;
  }

  .header-nav {
    text-align: center;
  }

  .header-nav_logo {
    display: block;
    width: 200px;
    margin: 0 auto;
    margin-top: 50px;
  }

  .header-nav_item-top {
    display: inline-block;
  }

  .header-nav_item-contact {
    background-image: none;
    background-color: transparent;
  }

  .header-nav_list {
    flex-direction: column;
    margin-top: 50px;
    margin-bottom: 50px;
    gap: unset;
    font-size: 20px;
    text-align: left;
    display: inline-block;
  }

  .header-nav_item-container {
    display: inline-block;
  }

  .header-nav_address {
    display: block;
    color: #fff;
    text-align: center;
    font-size: 28px;
  }

  .header-nav_address a {
    color: #fff;
  }

  .header-nav_list a {
    padding: 15px 50px;
  }

  .header-hamburger_color {
    background-color: #6B3B5D;
  }

  .header-nav_tel {
    font-size: 40px;
  }

  .header-nav_time {
    font-size: 16px;
  }

  .header-nav_item-contact a:hover {
    background-color: transparent;
  }
}

@media (max-width: 440px) {
  .header-inner {
    height: 50px;
  }

  .header-nav_address {
    font-size: 14px;
    line-height: 300%;
  }

  .header-nav_tel {
    font-size: 30px;
  }

  .header {
    height: 50px;
  }

  .header-logo_img {
    width: 120px;
  }

  .header-hamburger_color {
    height: 50px;
    width: 50px;
  }

  .header-hamburger {
    top: 50%;
    left: 60%;
    transform: translate(-50%, -50%);
  }
}


/* スクロール */
.header.is-scroll {
  background: rgba(0, 0, 0, 0.6);
  /* スクロール時の色 */
}

.header {
  transition: background-color 1s ease;
  /* 色の変更をスムーズに */
}


/* CTA */
.cta-container {
  background-image: url(../img/common/paper-bg.jpg);
  width: 60%;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 50px;
  margin-bottom: 90px;
}

.cta-logo img {
  margin: 0 auto;
}

.cta-text {
  padding: 25px 0 15px;
  font-size: 24px;
  border-bottom: #C5C5C5 solid 1px;
  width: 550px;
  margin: 0 auto;
  letter-spacing: 0.25rem;
}

.cta-nav_address {
  font-size: 20px;
  line-height: 1.2;
  margin-top: 10px;
  margin-bottom: 50px;
}

.cta-nav_tel {
  font-size: 37px;
}

.cta-nav_time {
  font-size: 15px;
}

.cta-button img {
  margin: 0 auto;
}

.cta-button_text {
  margin: 0 auto;
  color: #fff;
  margin-top: -42px;
}

.cta-button {
  transition: 0.4s;
}

.cta-button:hover {
  opacity: 0.7;
}

@media screen and (max-width: 1100px) {
  .cta-container {
    width: 80%;
  }
}

@media screen and (max-width: 768px) {
  .cta-container {
    width: 80%;
    padding: 35px 10px 50px;
    margin-bottom: 50px;
  }

  .cta-text {
    padding: 25px 0 15px;
    font-size: 18px;
    width: 90%;
  }

  .cta-nav_tel {
    font-size: 28px;
  }

  .cta-nav_time {
    font-size: 14px;
  }
}

@media screen and (max-width: 440px) {
  .cta-container {
    width: 100%;
    padding: 35px 0px 50px;
  }

  .cta-text {
    font-size: 15px;
    width: 95%;
    letter-spacing: 0.03rem;
  }
}


/* スマホCTAボタン */
.SPbutton {
  display: none;
}

@media screen and (max-width: 1100px) {
  .SPbutton {
    display: block;
  }

  .SPbutton a {
    background-color: #6B3B5D;
    background-image: url(../img/common/mon2.png);
    background-position: right;
    background-repeat: no-repeat;
    width: 100%;
    text-align: center;
    padding-top: 15px;
    padding-bottom: 15px;
    left: 0;
    bottom: 0;
    color: #fff;
    transition: 0.4s;
    position: fixed;
  }

  .SPbutton a:hover {
    opacity: 0.9;
  }
}


/* フッター */
address {
  font-style: normal;
}

.footer {
  color: #fff;
  background-image: url(../img/common/footer-bg.png);
  background-size: cover;
  background-position: right center;
  padding-bottom: 90px;
}

.footer-content {
  padding: 0 30px;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-around;
  letter-spacing: 0.1rem;
}

.footer-content_box {
  padding-top: 70px;
}

.footer a {
  color: #fff;
  letter-spacing: 0.1rem;
  transition: 0.4s;
}

.footer-navi a {
  letter-spacing: 0.2rem;
}

.footer a:hover {
  opacity: 0.6;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 30px;
}

.footer-address {
  margin-bottom: 60px;
  line-height: 200%;
}

.footer-navi li {
  line-height: 350%;
}

.footer-navi {
  writing-mode: vertical-lr;
}


@media screen and (max-width: 768px) {
  .footer-content {
    display: flex;
    flex-direction: column; 
    align-items: center;    /* 左右中央に配置 */
    padding-top: 0;
  }

  /* 1つ目のボックス（ナビゲーション） */
  .footer-content_box:first-child {
    display: flex;
    justify-content: center; /* 縦書き要素を中央へ */
    width: 100%;
  }

  .footer-navi {
    writing-mode: vertical-lr;
    -webkit-writing-mode: vertical-lr;
    
    /* Safari対策: widthを auto ではなく fit-content にする */
    width: fit-content; 
    margin: 0 auto;
    
    /* 縦書きの高さ（文字数に応じた高さ）を確保 */
    min-height: 200px; 
    padding: 0;
    list-style: none;
  }

  .footer-navi li {
    line-height: 2.5 !important;
    /* 縦書きの場合、text-alignではなくmarginで調整 */
    margin-right: 15px; 
    margin-left: 15px;
  }
}

@media (max-width: 440px) {
  .footer-navi li {
    line-height: 250%;
  }

  .footer {
    background-position: right -600px center;
  }

}

@media (min-width: 440px) {
  a[href^="tel:"] {
    pointer-events: none;
  }
}

@media (max-width: 440px) {
  a[href^="tel:"] {
    border-bottom: solid 1px;
  }
}


/* ふわっと表示 */
.js-fade {
  opacity: 0;
  visibility: hidden;
  transform: translateY(50px);
  transition: opacity 1s, visibility 1s, transform 1s;
}

.inview {
  opacity: 1;
  visibility: visible;
  transform: translateY(0px);
}

.tel-announcement{
  font-size: 13px;
  line-height: 150%;
  margin-top: 8px;
}