body {
    margin: 0;
    line-height: 0;
}
main {

    background-color: white;
    font-family: "Zen Old Mincho", serif;
    font-weight: 500;
    font-style: normal;
}

.box{
  background-image: url('../img/bg.jpg');  /* 背景画像を設定 */
  background-repeat: repeat;  /* 繰り返し表示 */
  background-size: auto;  /* 元のサイズで表示 */
  max-width: 100%; /* コンテンツの最大幅を設定 */
  margin: 0 auto; /* 中央寄せ */

}

.nav__fixed {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 7%;
    z-index: 9999;
}

.nav__fixed .nav ul {
    padding: 0;
    list-style-type: none;
}

.nav__fixed .nav .is_current a:after {
    opacity: 1;
}

.nav__fixed .nav li a {
    width: fit-content;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    padding: 2px 0;
    height: fit-content;
    text-decoration: none;
    color: #241816;
    font-size: 24px;
    line-height: normal;
    position: relative;
}

/* メニューボタン下のライン */
.nav__fixed .nav li a:after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: linear-gradient(270deg, rgba(161, 125, 63, 0) 0%, #241816 49.53%, rgba(161, 125, 63, 0) 101.02%);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: 0.3s;
}

.nav__fixed .nav li a:hover:after {
    opacity: 1;
}

@media only screen and (max-width: 1600px) {
    .nav__fixed {
        left: 2%;
    }
    .nav__fixed .nav li a {
        font-size: 1.5vw;
    }
}

@media only screen and (max-width: 1350px) {
    .nav__fixed {
        left: 5%;
    }
    .nav__fixed .nav li a {
        margin: 20px 0;
        font-size: 1.3vw;
    }
}

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

main .box {
    width: 750px;
    margin: 0 auto;
}

main .box .box__content img {
    width: 100%;
}

@media only screen and (max-width: 1350px) {
    main .box {
        width: 400px;
    }
}

@media only screen and (max-width: 767px) {
    main .box {
        width: 100%;
    }
}

main .question .q_box{
   padding: 10px 30px;
}

main .question .q_box .devider{
    border-top: 2px solid black;
}

main .question .q_box .q_row_top{
    padding-top: 30px !important;
}

main .question .q_box .q_row_bottom{
    padding-bottom: 30px !important;
}


main .question .q_box .q_row{
    display: flex;
    padding: 10px 0;
}


main .question .q_box .q_row .q_row_img{
    width: 10%;
    display: grid;
    place-items: center;
}

main .question .q_box .q_row .q_row_img img{
    display: inline-block;
    width: 100%;
    height: auto;
}

main .question .q_box .q_row p{
    width: 90%;
    padding-left: 10px;
}

main .box__content__footer {
    margin-bottom: 103px;
}

@media only screen and (max-width: 1350px) {
    main .box__content__footer {
        margin-bottom: 55px;
    }
}

@media only screen and (max-width: 767px) {
    main .box__content__footer {
        margin-bottom: 13vw;
    }
}

.footer__fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
}

.footer__fixed .footer__button {
    width: 750px;
    margin: 0 auto;
    position: relative;
    /* display: inline-block; */
}

@media only screen and (max-width: 1350px) {
    .footer__fixed .footer__button {
        width: 400px;
    }
}

@media only screen and (max-width: 767px) {
    .footer__fixed .footer__button {
        width: 100%;
    }
}

.footer__fixed .footer__button img {
    display: block;
    max-width: 100%;
    height: auto;
}

.footer__fixed .footer__button a {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
}

.left__link {
    left: 0;
}

.right__link {
    right: 0;
}

/* #follow-banner {
  background-color: rgba(255, 255, 255, 0.8);
} */

#follow-banner img {
  max-width: 100%;
  height: auto;
}


@media (min-width: 767px) {
  #follow-banner img {
    width: 500px;
  }
}


#exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);  /* 背景の透明度を下げて視認性を向上 */
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

.popup-content {
    position: relative;
    background: white;
    width: 70%;
    max-width: 300px;  /* 最大幅を500pxに設定 */
    padding: 20px;
    text-align: center;
    overflow: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);  /* 見た目を改善するためのシャドウ */
}

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

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;  /* ボタンの色を調整 */
}

#continue-link {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
}

#continue-link:hover {
    background-color: #0056b3;
}


#follow-banner {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 20px;
  z-index: 10;
}


.pp {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0px 80px 0px;
}

.pp a {
  display: block;
  color: #fff;
  margin-bottom: 25px;
}

.footer__custom {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 9999;
    width: 100%;
    text-align: center;
    padding: 0px 0;
  }
  
  .footer__custom .custom__link {
    display: inline-block;
    max-width: 90%; /* 画面幅の90%以内に収める */
    margin: 0 auto;
  }
  
  .footer__custom .custom__link img {
    max-width: 100%; /* 親要素内に収める */
    height: auto;
  }
  
  
  
  @media only screen and (max-width: 767px) {
    .footer__custom {
      padding: 0px 0;
    }

  
    .footer__custom .custom__link img {
      max-width: 80%; /* モバイルではさらに縮小 */
    }
  }
  
  .custom__link {
    display: inline-block;
    position: relative;
    padding: 0px;
    border-radius: 8px; /* ボタンの角丸 */
    overflow: hidden;
    text-decoration: none;
    box-shadow: none; /* 影を削除 */
    transition: transform 300ms ease-in-out;
}

.custom__link:hover {
    transform: translateY(-3px); /* ホバー時の動き */
}

/* 光沢エフェクト */
.shine {
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 75%);
    transform: rotate(45deg);
    opacity: 0;
    pointer-events: none;
    animation: shineEffect 3s infinite;
}

/* 画像スタイル */
.custom__image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* 光沢アニメーション */
@keyframes shineEffect {
    0% {
        left: -150%;
        opacity: 0;
    }
    50% {
        left: 50%;
        opacity: 1;
    }
    100% {
        left: 150%;
        opacity: 0;
    }
}
