/* style.css */

@charset "UTF-8";

/* 全体 */
body {
    font-family: 'M PLUS 1p', sans-serif;
    line-height: 1.7; /* 行間を調整 */
    color: #333; /* 文字色を調整 */
}

.w_inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.site-title img {
    max-width: 100%;
    height: auto;
}

.contact-info {
    font-size: 20px;
    text-align: center;
}

.contact-info img {
    margin-right: 5px;
    max-width: 65%;
    border-radius: 5px;
}

.contact-info table {
    margin: 10px auto;
    border-collapse: collapse;
} 

.contact-info td {
    padding: 3px;
    text-align: center;
}

.global-nav ul {
    display: flex;
    justify-content: space-between;
}

.global-nav li {
    margin-left: 20px;
    margin-bottom: 30px;
}

.global-nav a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: #007bff; /* ホバー時の色を変更 */
}

/* メインビジュアル */
#main-visual {
    position: relative;
    overflow: hidden; /* 動画がはみ出ないように */
    height: 400px; /* 高さを固定 */
}
#main-visual video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#main-visual img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mv-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px #000; /* 文字に影をつける */
}

.mv-heading {
    font-size: 1.5em;
    margin-bottom: 10px;
}

/* 各セクション共通 */
.container, .news, .treatment, .about-us, .faq, .notice, #location, #contact {
    padding: 50px 0;
}

.container h2, .treatment h2, .about-us h2, .faq h2, #location h2, #contact h2 {
    font-size: 1.8em;
    margin-bottom: 50px;
    text-align: center;
}

/* インデックスページ */
.service-intro {
    display: flex;
    justify-content: center;
    text-align: center;
    margin: 50px auto 50px;
}

.service-intro img {
    width: 60%;
    height: 20%;
    border-radius: 5px;
}

.service-intro .intro {
    width: 40%;
    padding: 10px 20px;
    text-align: center;
}

.service-intro h2 {
    font-size: 1.8em;
    margin-bottom: 50px;
    font-weight: bold;
}

.service-intro p {
    margin-bottom: 10px;
    text-align: left;
}

.intro a {
    display: flex;
    justify-content: center;
}

.service-intro .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #012a01a5;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    /* margin: 10px auto 100px; */
}

.service-intro .button:hover {
    background-color: #0056b3;
}
.service-block {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* 折り返し設定 */
}

.service {
    width: calc(33.33% - 20px); /* 3分割 */
    text-align: center;
}

.service img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.service-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    text-decoration: underline;
}

.service .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #012a01a5;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin: 10px auto 0 ;
}

.service .button:hover {
    background-color: #0056b3;
}

.news h2 {
    text-decoration: underline;
}

/* 当院についてページ */
.profile {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.profile img {
    max-width: 580px;
    height: auto;
    margin-right: 30px;
    border-radius: 5px;
}

.faq dl div {
    margin-bottom: 20px;
}

.faq dt {
    font-weight: bold;
    margin-bottom: 5px;
    background-color: #9094a139;
    padding: 5px;
    border-radius: 5px;
}

/* 施術料金ページ */

.feees {
    display: flex;
    justify-content: space-between;
}

.menus {
    width: 400px;
    height: 50px;
    border-radius: 5px;
    font-size: 20px;
    text-align: center;
    padding-top: 10px;
}

.fees {
    display: flex;
    justify-content: space-between;
    border-width: 0px 0px 1px 0px;
    border-style: dotted;
    border-color: #333;
    padding: 10px 0;
}

.menu {
    width: 400px;
    height: 50px;
    background-color: #9094a139;
    border-radius: 5px;
}

.menu p {
    font-size: 20px;
    text-align: center;
    padding-top: 10px;
}

.explain {
    width: 800px;
    height: 50px;
}

.explain p {
    font-size: 24px;
    text-align: center;
    padding-top: 10px;
}

.container_fees p {
    line-height: 1.5em;
}

.notice {
    font-size: 16px;
}

.notice h2 {
    font-size: 1.3em;
}

/* アクセスページ */

.location-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.location-info {
    width: 50%;
    background-color: #012a01a5;
    border-radius: 5px;
}

.location-info img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 5px;
}

.location-map{
    width: 50%;
    border-radius: 5px;
    overflow: hidden;
}

.location-map iframe{
    width: 100%;
    height: 100%;
}

.location-info h3 {
    font-size: 1.3em;
    margin: 10px 0;
    margin-left: 10px;
    color: #fff;
}

.location-info p {
    line-height: 1.5em;
    margin-left: 10px;
    color: #fff;
}

/* お問い合わせページ */
.contact-methods {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-qr img {
    max-width: 300px;
    height: auto;
}
.privacy {
    margin-top: 50px;
    text-align: center;
}

.contact-form iframe {
    width: 100%;
    height: 600px; /* 高さを調整 */
}

/* 個人情報保護方針 */
.privacy-policy {
    padding: 20px 0 50px ;
}

/* フッター */
.footer {
    background-color: #9094a139;
    padding: 20px 0;
    text-align: center;
}

.policy {
    font-size: 20px;
    margin: 10px 0;
}

/* ページトップへ戻るボタンの基本スタイル */
.back-to-top {
    position: fixed;
    bottom: 50px; /* 画面下からの距離 */
    right: 20px; /* 画面右からの距離 */
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.4); /* 初期は薄めの半透明 */
    color: #fff;
    border: none;
    border-radius: 50%; /* 丸いボタン */
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 60px;
    cursor: pointer;
    display: none; /* 初期状態では非表示 */
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 1000;
}

/* ボタンホバー時 */
.back-to-top:hover {
    background-color: rgba(0, 0, 0, 0.8); /* ホバーで濃くする */
    transform: scale(1.1); /* 少し拡大して押しやすく */
}

/* ボタン表示時（JSで制御） */
.back-to-top.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* スクロール前は少し下に隠しておく */
.back-to-top {
    transform: translateY(80px);
    opacity: 0;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .w_inner {
        padding: 0 10px;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .container, .news, .treatment, .about-us, .faq, .notice, #location, #contact {
        padding: 30px 10px;
    }

    .container h2, .treatment h2, .about-us h2, .faq h2, #location h2, #contact h2 {
        font-size: 1.3em;
        margin-bottom: 30px;
    }

    .logo {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .contact-info  {
        margin-top: 20px;
        max-width: 70%;
        font-size: 16px;
    }

    .global-nav ul {
        font-size: 11px;
    }

    .global-nav li {
        margin: 10px 0;
        margin-left: 0;
    }

    .service-intro {
        flex-direction: column;
    }

    .service-intro img {
        width: 100%;
        margin-bottom: 2rem;
    }

    .service-intro .intro {
        width: 100%;
    }

    .service-block{
        flex-direction: column;
    }

    .service{
        width: 100%;
        margin-bottom: 2rem;
    }

    .location-wrapper{
        flex-direction: column;
    }

    .location-info, .location-map{
        width: 100%;
        margin-bottom: 2rem;
    }
    
    .location-map iframe{
        height: 600px;
    }

    .profile{
        flex-direction: column;
    }

    .profile img{
        margin-right: 0;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .contact-methods{
        flex-direction: column;
    }

    .contact-qr img{
        margin-top: 1rem;
    }

    #main-visual{
        height: 300px;
    }

    .fees {
        flex-direction: column;
    }

    .menu {
        width: 100%;
    }

    .explain {
        width: 100%;
        text-align: center;
    }

    .notice h4{
        margin-top: 40px;
    }

    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
        line-height: 50px;
        bottom: 30px;
        right: 15px;
    }
}