/* フォントサイズ・体裁 */
* {
    box-sizing: border-box;
    color: #2a3132;
    text-decoration: none;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.6rem;/* 16px */
    line-height: 2;
    margin: 0;
}


h1 {
    font-size: 36px;/* IE8以下とAndroid4.3以下用フォールバック */
    font-size: calc(2.4rem + ((1vw - 0.64rem) * 2.1429));/* 24px~36pxで可変 */
    line-height: 1.3;
}

h2 {
    font-size: 20px;/* IE8以下とAndroid4.3以下用フォールバック */
    font-size: calc(2rem + ((1vw - 0.64rem) * 0.7143));/* 20px~24pxで可変 */
    line-height: 1.3;
}

img {
    max-width: 100%;
}

p {
    margin-block-start: 0;
    margin-block-end: 1.6rem;
}

@media (min-width: 1200px) {
    h1 {
        font-size: 3.6rem;/* 36px */
    }

    h2 {
        font-size: 2rem;/* 20px */
    }
}

@media screen and (max-width: 780px) {
    body {
        font-size: 1.4rem;
        line-height: 2;
    }

    h1 {
        font-size: 2.4rem;/* 24px */
    }

    h2 {
        font-size: 1.8rem;/* 18px */
    }
}

/* 各エリア調整 */
main {
    width: 95%;
    margin: 0 auto;
    text-align: center;
}

section {
    margin: 2.4rem auto 3.6rem;
    padding: 2.4rem 0;
}

section.start {
    padding: 0;
}

/* 各要素調整 */
h2 {
    font-weight: bold;
    margin: 0 auto 1.6rem;
    position: relative;
    display: inline-block;
    padding: 0 80px;
}

h2:before,
h2:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 60px;
    max-width: 100%;
    height: 1px;
    background-color: #336b87;
}

h2:before {
    left: 0;
}

h2:after {
    right: 0;
}

span {
    display: block;
    text-align: center;
    font-weight: bold;
    font-size: 1.8rem;
    margin-bottom: 1.6rem;
}

.subh2 {
    margin: 1.6rem;
}

.komidasi {
        padding: 0px 1.6rem;
        width: fit-content;
        border-bottom: 1px solid #336b87;
        margin: 0 auto 1.6rem;
        line-height: 1.6;
}

/* 詳しく見るボタン */
.more_btn a {
    background: #2a3132;
    color: #fff;
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 1.6rem auto 0;
    max-width: 200px;
    padding: 0.8rem 1.6rem;
    transition: 0.3s ease-in-out;
    font-weight: bold;
    border: 0.5px solid #fff;
}

.more_btn a:before {
    content: '';
    position: absolute;
    top: calc(50% - 2px);
    right: 16px;
    transform: translateY(calc(-50% - 2px)) rotate(30deg);
    width: 12px;
    height: 2px;
    background-color: #2a3132;
    transition: 0.3s;
}

.more_btn a:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background-color: #2a3132;
    transition: 0.3s;
}

.more_btn a:hover:before,
.more_btn a:hover:after {
    right: -16px;
    background-color: #336b87;
}

.more_btn a:hover {
    background-color: #fff;
    color: #336b87;
    border: 0.5px solid #336b87;
}

/* footer詳しく見るボタン */
.footer_more {
    margin-bottom: 3.2rem;
}

.footer_more a {
    background: #fff;
    color: #336b87;
}

.footer_more a:after,
.footer_more a:before {
    background-color: #fff;
}

.footer_more a:hover:before,
.footer_more a:hover:after {
    background-color: #fff;
}

.footer_more a:hover {
    background-color: #2a3132;
    color: #fff;
    border: 0.5px solid #336b87;
}

/* 社是・経営理念 */

.rinen {
    display: inline-block;
    width: auto;
}

.rinen ol {
    width: fit-content;
    margin: 0 auto;
    text-align: left;
}

/* 泉薬湯のはじまり */
.start {
    display: table;
    width: 100%;
    height: auto;
    background-image: url("../images/start_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0 auto;
}

.start_out {
    display: table-cell;
    width: fit-content;
    vertical-align: middle;
    padding: 4.8rem 1.6rem;
    background: radial-gradient(#ffffffe7 0%, #ffffffbb 51%, #ffffff63 100%);

}

.start_out p {
    margin-block-end: 0;
}




/* 新着情報エリア */
.news-list {
    list-style: none outside;
    margin: 0 auto;
    padding: 0;
    width: 700px;
    max-width: 100%;
}

.news-list .item .news-content {
    display: flex;
    flex-wrap: wrap;
    flex-wrap: nowrap;
    text-decoration: none;
    color: #2a3132;
    border-bottom: 1px solid #CCC;
    padding: 0.8rem 1.6rem;
    text-align: left;
}

.news-list .item:first-child .news-content {
    border-top: 1px solid #CCC;
}

.news-list .item .date {
    margin: 0;
    min-width: 100px;
    color: #2a3132;
    padding: 0 20px 0 0;
}

.news-list .item .title {
    margin: 0;
    width: 100%;
}

.news-list .item a:hover .title,
.news-list .item a:hover .date {
    color: #336b87;
}


@media screen and (max-width: 767px) {
    .news-list .item a {
        flex-wrap: wrap;
    }

    .news-list .item .date {
        min-width: 100px;
        padding: 0 10px 0 0;
    }
}










/* 営業案内table / 効能table */
#kounou_tbl {
    width: 70rem;
    max-width: 98%;

}

#eigyou_tbl,
#kounou_tbl {
    max-width: 100%;
    font-size: 1.6rem;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
}

#eigyou_tbl th,
#eigyou_tbl td,
#kounou_tbl th,
#kounou_tbl td {
    padding: 0.4rem 1.6rem;
    border: none;
}


#eigyou_tbl th,
#kounou_tbl th {
    width: 14rem;
    vertical-align: top;
}

#eigyou_tbl tr:nth-child(2n+1),
#kounou_tbl tr:nth-child(2n+1) {
    background-color: #d6e7ee;
}

#eigyou_tbl ul,
#kounou_tbl ul {
    margin: 0;
    padding-left: 2.2rem;
}

ul.tbl_lst {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

ul.tbl_lst li {
    padding: 0 1.6rem 0 0;
    list-style-position: inside;
}


/* 温泉情報 */
.jyouhou_out {
    display: flex;
    flex-direction: column;
}

.jyouhou_tokusei {
    width: 98%;
    display: flex;
    justify-content: space-around;
    margin: 0 auto 2.4rem;
    padding: 2.4rem 3.2rem;
    background-color: #e1e8eb;
}

.jyouhou_tokusei .text_box {
    display: flex;
    width: 50%;
    flex-direction: column;
    text-align: left;
}

.jyouhou_tokusei img {
    width: 50%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    margin: 3.2rem 1.6rem;
}

.panoramapic {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 30%;
}

.panoramapic iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hotoke {
    width: 120px;
    height: auto;
    margin: 0 auto;
}



.subsection {
    margin: auto;
    padding: 3.6rem 0;
}

.kiseki {
    margin: 3.2rem auto;
}

/* 散策 */
.sansaku_area {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

figure {
    margin-block-start: 1.6rem;
    margin-block-end: 1.6rem;
    margin-inline-start: 1.6rem;
    margin-inline-end: 1.6rem;
    cursor: pointer;
}

figure.sansaku_img {
    position: relative;
    overflow: hidden;
    width: 350px;
    height: auto;
    text-align: left;
    font-size: 1.6rem;
}

figure.sansaku_img * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.8s ease;
    transition: all 0.8s ease;
}

figure.sansaku_img img {
    max-width: 100%;
    backface-visibility: hidden;
    vertical-align: top;
}

figure.sansaku_img:after,
figure.sansaku_img figcaption {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

figure.sansaku_img:after {
    content: '';
    background-color: rgba(0, 0, 0, 0.5);
    -webkit-transition: all 0.8s ease;
    transition: all 0.8s ease;
    opacity: 0;
}

figure.sansaku_img figcaption {
    z-index: 3;
    padding: 2.4rem;
}

figure.sansaku_img h3,
figure.sansaku_img .links {
    width: 100%;
    margin: 0 0 0.8rem 0;
    padding: 0;
}

figure.sansaku_img h3 {
    line-height: 1.1em;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    opacity: 0;
    color: #fff;
}

figure.sansaku_img p {
    font-size: 1.5rem;
    letter-spacing: 1px;
    opacity: 0;
    top: 50%;
    -webkit-transform: translateY(40px);
    transform: translateY(40px);
    color: #fff;
}

figure span {
    position: absolute;
    right: 1.6rem;
    bottom: 0;
    z-index: 2;
    background-color: #fff;
    border-radius: 25px;
    padding: 8px;
}

figure:hover span {
    color: #fff;
    background-color: #ffffff00;
}

figure.sansaku_img a {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

figure.sansaku_img:hover img,
figure.sansaku_img.hover img {
    zoom: 1;
    filter: alpha(opacity=50);
    -webkit-opacity: 0.5;
    opacity: 0.5;
}

figure.sansaku_img:hover:after,
figure.sansaku_img.hover:after {
    opacity: 1;
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

figure.sansaku_img:hover h3,
figure.sansaku_img.hover h3,
figure.sansaku_img:hover p,
figure.sansaku_img.hover p,
figure.sansaku_img:hover i,
figure.sansaku_img.hover i {
    -webkit-transform: translate(0px, 0px);
    transform: translate(0px, 0px);
    opacity: 1;
}

figure.sansaku_img:last-child {
    margin-bottom: 2.4rem;
}

/* アクセスマップ　*/
.accesscontact {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
    padding: 2.4rem 1.6rem;
    background-color: #e1e8eb;
    margin-bottom: 4.8rem;
}

.accesscontact p {
    margin-left: 1.6rem;
}

.accesscontact iframe {
    max-width: 100%;
}

.root {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.root iframe {
    max-width: 100%;
}

.root div {
    margin: 1.6rem;
}

/* フッター */
footer {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-top: 2.4rem;
    background-color: #336b87;
    font-size: 1.4rem;
}

footer p {
    color: #fff;
}

.footer_tel {
    color: #fff;
    font-weight: 700;
}

.footer_nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    justify-content: center;
    margin-bottom: 2.4rem;
}

.footer_nav ul li {
        display: flex;
        margin: 0;
        justify-content: center;
}

.footer_nav ul li+li {
    border-left: 1px solid #fff;
}

.footer_nav ul li a {
    display: block;
    padding: 0.2rem 1.6rem;
    color: #fff;
}

span.footer {
    color: #fff!important;
    font-weight: 700;
    margin-bottom: 0;
}

footer .copyright {
    font-size: 1.2rem;
    padding: 1.6rem;
    color: #fff;
    font-weight: bold;
    background-color: #2a3132;
}
@media screen and (min-width: 781px) {
    .mb {
        display: none;
    }
}
@media screen and (max-width: 780px) {
    /* テキスト調整 */
    .pc {
        display: none;
    }

    span {
        font-size: 1.6rem;
    }

    /* 文字寄せ調整 */
    .start_out p,
    .subsection p,
    .sansaku p {
        text-align: left;
    }

    /* h2装飾調整 */
    h2 {
        padding: 0 30px;
    }
    
    h2:before,
    h2:after {
        width: 20px;
    }

    /* テーブル調整 */
    #eigyou_tbl,
    #kounou_tbl {
        width: 98%;
        font-size: 1.4rem;
    }

    #eigyou_tbl th,
    #eigyou_tbl td,
    #kounou_tbl th,
    #kounou_tbl td {
        width: 100%;
        display: block;
    }

    #eigyou_tbl td,
    #kounou_tbl td {
        padding-top: 0;
        padding-left: 3.2rem;
    }

    .jyouhou_tokusei {
        display: block;
        padding: 1.6rem;
    }

    .jyouhou_tokusei .text_box {
        width: 98%;
        margin: 0 auto;
    }

    .jyouhou_tokusei img {
        min-width: 90%;
        margin: 0 auto;
    }

    figure {
        margin-block-start: 0.8rem;
        margin-block-end: 0.8rem;
        margin-inline-start: 0.8rem;
        margin-inline-end: 0.8rem;
    }

    figure span {
        color: #000;
        z-index: 3;
    }

    figure.sansaku_img h3,
    figure.sansaku_img:after {
        opacity: 1;
    }

    figure.sansaku_img:after,
    figure.sansaku_img:after {
        opacity: 1;
        position: absolute;
        top: 10px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    figure.sansaku_img h3,
    figure.sansaku_img p,
    figure.sansaku_img i {
        -webkit-transform: translate(0px, 0px);
        transform: translate(0px, 0px);
        opacity: 1;
    }

    .accesscontact {
        flex-direction: column;
    }

    .accesscontact p {
        margin-left: 0;
        margin-top: 1.6rem
    }

    .footer_nav ul {
        flex-direction: column;
        display: inline-block;
    }

    .footer_nav ul li {
        display: block;
        border-left: solid 1px #fff;
        text-align: left;
    }
}

@media only screen and (max-width: 480px) {
    figure.sansaku_img h3 {
        font-size: 1.6rem;
    }

    figure.sansaku_img p {
        font-size: 1.3rem;
    }
}

/*　パノラマ画像　*/
.panorama {
    overflow: auto;
    width: 100%;
    height: auto;
    margin-top: 4.8rem;
    overflow-x:scroll;
}

.panorama::-webkit-scrollbar {
    height: 1.2rem;
    /* スクロールバーの高さ */
}

.panorama::-webkit-scrollbar-thumb {
    background: #a1a1a1;
    /* ツマミの色 */
    border-radius: 7px;
    /* ツマミ両端の丸み */
}

.panorama::-webkit-scrollbar-track {
    background: #dfdfdf;
    /* トラックの色 */
    border-radius: 7px;
    /* トラック両端の丸み */
}

.panorama img {
    max-width: initial;
}

img.pano {
    width: 1800px;
    height: 340px;
}


@media screen and (max-width:767px) {
    .panorama {
        overflow: auto;
        max-width: 100%;
        max-height: 526px;
    }
}

@media screen and (max-width:599px) {
    .panorama {
        overflow: auto;
        max-width: 100%;
        max-height: 376px;
    }

    img.pano {
        width: 1200px;
        height: auto;
    }
}