@charset "utf-8";

body{
    margin: 0;
}

.wrapper{
}

.scroll {
    display: none; /* デフォルトでは非表示 */
    position: fixed;
    left: calc(50% + 455px);
    bottom: 250px;
    transform: rotate(90deg);
    font-size: 14px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0;
}
.shape {
    position: relative;
    width: 1px;
    height: 60px;
    background-color: #333;
    bottom: 36px;
    left: 95px;
    transform: rotate(90deg);}

.shape::after {
    content: '';
    position: absolute;
    top: 0px;
    left: 0px;
    width: 1px;
    height: 17px;
    background-color: #333;
    transform: rotate(35deg);
    transform-origin: top left;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.main-header {
    background-color: white;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.main-header img {
    max-height: 80%; /* ヘッダー内での画像の最大高さ */
}

.sub-header {
    display: none; /* デフォルトで非表示 */
    position: fixed;
    height: 80px;
    bottom: -100px; /* 初期位置を画面外に */
    left: 0;
    right: 0;
    background-color: white;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transition: bottom 0.3s ease-in-out;
    z-index: 1000;
}

.sub-header.visible {
    display: flex; /* 表示する際はflexにする */
    bottom: 0; /* 画面内に表示 */
}

.sub-header .logo {
    height: auto;
    width: 32%;
    max-width: 130px;
    margin-left: 10px;
    margin-bottom: 10px;
}

.sub-header .hdcta {
    height: auto;
    width: 100%;
    max-width: 300px;
    margin-bottom: 5px;
}

.sub-header img {
    max-height: 80%; /* ヘッダー内での画像の最大高さ */
}
.logo{
    width: 32%;
}
.hdcta{
    width: 57%;
    position: relative;
    overflow: hidden;
}
.hdcta::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #fff;
    transition: 300ms;
    animation: shinyshiny 2.5s ease-in-out infinite;
}
@-webkit-keyframes shinyshiny {
    0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
    60% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
    61% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
    100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
}

.fv{
    position: relative;
}
.overlay-text {
    position: absolute;
    top: 46px;
    left: 14px;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 2.9rem;
    width: 54%;
    font-weight: bolder;
    color: #000;
    display: inline-block;
    z-index: 1;
}
.overlay-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 12px;
    width: 100%;
    height: 13px;
    background-color: #FDE92E;
    z-index: -1;
    animation: slideInOut 3s ease-in-out infinite;
}

@keyframes slideInOut {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    50.1% {
        transform: scaleX(1);
        transform-origin: right;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.arrow {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: absolute;
	top: 68px;
	left: 260px;
}

/* 矢印の点部分 */
.dot {
    width: 7px;
    height: 7px;
    background-color: #62C3C2;  /* 元の色 */
    border-radius: 50%;
    margin: 1px 0;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #FF98A0;
}

@keyframes activateDot {
    0%, 100% { background-color: #000000; }
    50% { background-color: #FF98A0; }
}
/* 矢印の先端 */
.background-element {
	content: '';
	width: 30px;
	height: 14px;
	background-image: url(img/arrow1.webp);
	background-repeat: no-repeat;
	background-size: contain;
	background-position: center;
	margin-top: -3px;
}
.background-element.arrow2 {
    background-image: url(img/arrow2.webp);
}


@media (max-width: 1023px) {
    .image-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    .image-container img {
        box-shadow: none;
    }
    .left-side-images {
        display: none;
}
    .sub-header {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }

    .overlay-text {
        top: 7.2%;
        left: 3%;
        font-size: 10.8vw;
    }
    .overlay-text img{
        width: 100%;
    }
    .overlay-text::after {
        bottom: 17%;
        height: 20%;
}
.arrow {
    top: 11%;
    left: 60%;
    width: 4%;
}
.dot {
    width: 40%;
    height: auto;
    aspect-ratio: 1;
    margin: 5% 0;
}
.background-element {
    width: 100%;
    height: 20px;
    margin-top: -5px;
}

    /* 予約カレンダーの高さをスマホ版で調整 */
    .calendar-section iframe {
        min-height: 600px !important;
    }
}
@media screen and (min-width: 1024px) {
    body {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 100vh; /* ビューポートの高さいっぱいに表示 */
    }

    .left-side-images {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        left: 25%; /* 画面の左から25%の位置 */
        top: 50%;
        transform: translate(-50%, -50%); /* 中央揃え */
        gap: 20px; /* 画像間の間隔 */
    }

    .left-side-images img {
        max-width: 65%;
        height: auto;
        display: block;
        margin: auto;
    }
    .leftbutton{
        position: relative;
        overflow: hidden;
    }
    .leftbutton::before {
        position: absolute;
        content: '';
        display: inline-block;
        top: -180px;
        left: 0;
        width: 30px;
        height: 100%;
        background-color: #FEF7EF;
        transition: 300ms;
        animation: shinyshiny 2.5s ease-in-out infinite;
    }
    @-webkit-keyframes shinyshiny {
        0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
        60% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
        61% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
        100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
    }
.wrapper{
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
max-width: 435px;
        margin-left: 53%;
    }
    .scroll {
        display: block; /* PC時のみ表示 */
    }

/* PC用の固定全画面背景 */
    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1;
        background: 
            linear-gradient(
                to bottom,
                #62C3C2 0px,
                #62C3C2 186px,
                #FEF7EE 186px,
                #FEF7EE calc(100% - 186px),
                #62C3C2 calc(100% - 186px),
                #62C3C2 100%
            );
    }
}

.campaign {
    background-color: #fff;
    padding: 40px 4px;
    position: relative;
}
.cp-cta{
    position: absolute;
    width: 90%;
    top: 33.7%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    overflow: hidden;
}
.cp-cta::before {
    position: absolute;
    content: '';
    display: inline-block;
    top: -180px;
    left: 0;
    width: 30px;
    height: 100%;
    background-color: #FEF7EF;
    transition: 300ms;
    animation: shinyshiny 2.5s ease-in-out infinite;
}
@-webkit-keyframes shinyshiny {
    0% { -webkit-transform: scale(0) rotate(45deg); opacity: 0; }
    60% { -webkit-transform: scale(0) rotate(45deg); opacity: 0.5; }
    61% { -webkit-transform: scale(4) rotate(45deg); opacity: 1; }
    100% { -webkit-transform: scale(50) rotate(45deg); opacity: 0; }
}

.month {
    font-family: 'Bahnschrift', 'Helvetica', sans-serif; /* フォントをBahnschriftに設定 */
    position: absolute;
    bottom: 33.2%;
    right: 24%;
    font-size: 1.5rem;
    font-weight: 600;
}

.beforeafter{
    position: relative;
}

.BAslider1{
    position: absolute; /* 絶対位置指定 */
    top: 8.5%; 
    left: 50%; 
    transform: translateX(-50%);
    width: 100%; /* 幅を100%に設定 */
    aspect-ratio: 1;
    max-width: 435px; /* PC時の最大幅 */
    margin: 0 auto; /* 中央揃え */
    overflow: hidden; /* はみ出した部分を隠す */
    z-index: 10;
}
.BAslider2{
position: absolute; /* 絶対位置指定 */
bottom: 12%;
left: 50%; 
transform: translateX(-50%);
width: 80%;
aspect-ratio: 1 / 1.3;
max-width: 435px; /* PC時の最大幅 */
margin: 0 auto; /* 中央揃え */
overflow: hidden; /* はみ出した部分を隠す */
z-index: 10;
}
.before-after-image {
    width: 100%; /* 幅を100%に設定 */
    max-width: 435px; /* PC時の最大幅 */
    display: block; /* ブロック要素として表示 */
    margin: 0 auto; /* 中央揃え */
    position: relative; /* スライダーの基準点 */
    z-index: 1; /* スライダーの下に配置 */
}

.slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    position: absolute; /* スライドを重ねる */
    top: 0;
    left: 0;
}

.slide.active {
    opacity: 1;
}

.slide.chousei1{
margin-top: 22px;
}
.slide.chousei2{
margin-top: 50px;
}
.slide.chousei3{
margin-top: 75px;
}
.slide.chousei4{
margin-top: 30px;
}
.slide.chousei5{
margin-top: 8px;
}
.slide.chousei6{
margin-top: 28px;
}

/* インジケーターのスタイルはそのまま */
.slider-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 10px;
}

.slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D8D8D8;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-indicator.active {
    background-color: #FF98A0;
}

.price {
    background-color: #FDF7F0;
    padding: 45px 4px;
}

img.saiyasune {
    width: 60%;
    margin: 70px auto 40px;
    display: block;
}

img.ryoukinhyou {
    padding: 0 4px;
}

.zeroen{
    padding: 16% 9% 7%;
    position: relative;
}

.month2 {
    font-family: 'Bahnschrift', 'Helvetica', sans-serif; /* フォントをBahnschriftに設定 */
    position: absolute;
    bottom: 68.5%;
    right: 23.5%;
    font-size: 1.5rem;
    font-weight: 600;
}

img.flow {
    margin-top: -60px;
}

.price2 {
    background-color: #FDF7F0;
    padding: 35px 4px;
    text-align: center;
    max-width: 641px;
}
img.tokuten {
    padding: 70px 20px;
}

img.diet {
    width: 60%;
    display: block;
    margin: 0px auto 30px;
}

.access {
    background-color: #FDF7F0;
    padding: 50px 30px;
}

.tenpo {
    text-align: center;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 2em;
    font-weight: 600;
}

img.tenpologo {
    width: 40%;
    margin: 15px auto 35px;
    display: block;
}

iframe {
    height: 240px;
    width: 100%;
}

.tel,
.moyori {
    display: flex;
    height: 25px;
    margin: 30px 0;
    gap: 10px;
}

.adress {
    display: flex;
    gap: 10px;
    align-items: center;
}
.adress img{
    height: 30px;
}

p{
    font-family: 'Yu Gothic', sans-serif;
    color: #000;
}

.footer {
    background-color: #62C3C2;
    height: 80px;
    padding: 20px;
    margin-bottom: 64px;
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    color: #fff;
}
.footer a{
    color: #fff;
    font-family: 'Yu Gothic', sans-serif;
    font-size: 0.75rem;
}
.footer p{
    color: #fff;
}

@media screen and (min-width: 1024px) {
    .footer {
        margin-bottom: 0;
    }
}
@media screen and (max-width: 1023px) {
    .month2 {
        right: 24.5%;
    }
    }
@media screen and (max-width: 500px) {
    .month2 {
        bottom: 68%;
        right: 24%;
        font-size: 6vw;
    }
}

/* この高さだけ確保（お好みで数値変更） */
:root { --cal-h: 1000px; }

.calendar-section,
.calendar-container { min-height: 0; box-sizing: border-box; }

.calendar-container {
  position: relative;
  overflow: visible;    /* 親ではスクロールさせない */
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}


/* iframe 自体に高さとスクロールを持たせる（ここが肝） */
#hacomono-widget-w0002 {
  display: block;
  width: 100%;
  height: var(--cal-h) !important;  /* ← 見える窓の高さを固定 */
  border: none;

  overflow: auto !important;        /* スクロールは iframe 側で */
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y !important;

  min-height: 1200px !important;
  max-height: none !important;
  pointer-events: auto !important;
}

/* flex 配下で潰れないよう保険 */
.calendar-section, .calendar-container, .calendar-section > * { min-height: 0; }

/* iOS transform 問題の保険 */
.calendar-section { transform: none !important; -webkit-transform: none !important; isolation: isolate; }

/* 1) 普通にページ全体がスクロールしている場合 */
html, body { scroll-behavior: smooth !important; }

/* 2) ラッパー要素がスクロールしている場合（例） */
.site-wrapper, .page, .main-scroll {
  scroll-behavior: smooth !important;
}

/* 固定ヘッダーがあるなら到達ズレ補正 */
#calendar { scroll-margin-top: 96px; } /* ヘッダー高さに合わせて調整 */
