@charset "utf-8";
a:hover{color:#000;
text-decoration:none;
}
.pc{
    display: none !important;
}

.sp{
    display: block !important;
}
body > header{
        top: -11px;
}
header{
    margin-top: -20px;
}
header p{
    font-size: 0.7em;
}
header p.httl{
    font-size: 1.3rem !important;
}
.subpagecontent {
    margin-top: 0 !important;
}
nav{
    padding-bottom: 15px;
}

.menu {
        display: none;
    }

    .burger {
        display: flex;
    }

    .menu-mobile {
        display: flex;
    }

    .submenu {
        position: static;
        display: none;
        flex-direction: column;
        width: 100%;
        background: #444;
    }

    .has-submenu .submenu-toggle-icon {
        display: inline-block;
        margin-left: 10px;
        cursor: pointer;
    }

    .submenu.open {
        display: block;
    }

div.main{
    width: 92%;
    margin: 0 auto;
}

div.submainttl h1{
    height: 200px;
    background-attachment: scroll !important; /* 固定を解除 */
    background-size: cover;
    background-position: center;
}

div.main-visual img{
    width: 100%;
}
.hero h1{
    font-size: 1.2rem;
}
div.flexblock{
    display: block;
}
.content img {
    max-width: 70%;
    height: auto;
    margin: 10px auto;
    display: block;
}
div.featurescontents {
    display: block;
}
div.fcontleft, div.fcontright{
    width: 100%;
}
div.fcontleft img{
    width: 100%;
}
.servicecontainer{
    display: block;
    margin-bottom: 30px;
}
section.servicesblock{
    width: 100%;
}
.slick-dots{
    left: 0;
}
.block{
    margin-bottom: 20px;
    width: 100%;
}
section.yoyakuarea img{
    width: 100%;
}
div.casecontents{
    width: 100%;
    display: block;
}
.case_list_wrap {
    width: 100%;
    margin-bottom: 20px;
}


/* モバイルメニュー用SNSアイコン */
.menu-mobile .social-icons {
    display: flex;
    gap: 10px;
    justify-content: center; /* 中央寄せ */
    margin-top: 10px;
    margin: 0;
}

.menu-mobile.active .social-icons {
    display: flex; /* 展開時のみ表示 */
}

div.caseleft, div.caseright{
    width: 100%;
}
div.caseleft img{
    width: 100%;
}
div.caseright ul li a div p{
    font-size: 0.9em;
}

/*
div#about{
    width: 88%;
}
*/
div.aboutcont{
    display: block;
}
div.aboutcont p,
.seminar-history p{
    width: 100%;
            font-size: 16px;
}
.section.custom-bannerarea{
    margin-bottom: 60px;
}
.custom-access-map iframe{
    height: 400px;
}
div.aboutcont div.about_right{
    width: 100%;
        margin-bottom: 50px;
}
div.aboutcont div.about_right p{
    font-size: 16px;
    font-weight: bold;
}
div.aboutcont p.doctorname span{
    display: inline;
}
div.keireki{
    display: block;
    width: 100%;
}
div.keirekit_left, div.keirekit_right{
    width: 100%;
}
div.keirekit_left{
    margin-bottom: 1.5em;
}
.section#news{
    margin-top: 0;
}
div#news p {
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-align: left;
}
/*
div#news p span{
    white-space: nowrap;
}
    */
.section#case-study {
    padding-top: 20px;
    padding-bottom: 20px;
}
.custom-access-info{
    min-height: auto
}
/* フッターメニューのスタイル */
.fixed-footer {
    display: flex !important;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #99948b;
    padding: 0;
    z-index: 1000;
}

/* ボタンのスタイル */
.footer-button {
    flex: 1;  /* 各ボタンの幅を均等に */
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    height: 100%; /* 高さ100% */
    width: 100%;  /* 幅100% */
    padding: 10px 0; /* タッチしやすいように */
    position: relative; /* 縦線を引くために必要 */
}

/* 各ボタンの間に縦線を追加 */
.footer-button:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.5);
}
.footer-button:hover{
    text-decoration: none;
}

/*診療ページ下部のリンクボタン*/
div.othertreatment{
    display: block;
}
div.subpage_kinkbtm{
    width: 100%;
}
div.accesstopbtm,
div.accessflowsc,
div.accessblock{
    margin-top: 40px;
    margin-bottom: 40px;
}

.footer-button {
    font-size: 16px;
    padding: 15px 0;
}


.footer-links {
    flex-direction: column;
    gap: 10px;
}
footer{
    padding: 10px 20px 80px 20px;
    box-sizing: border-box;
}

/* メインビジュアルの文字サイズ変更 */
div.submainttl h1{
    font-size: 20px;
}

.main-visual {
    flex-direction: column-reverse; /* 画像を上、テキストを下にする */
    height: auto;
    width: 90%;
    padding: 0 5%;
}

.text-area {
    padding: 20px;
    text-align: center;
}

.image-grid {
    width: 100%;
    padding-right: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
}
#latest-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex-direction: row;
}
.column-article {
    display: block;
    width: 47%;
    margin: 0;
}
.column-article a {
    flex-direction: column;
    align-items: flex-start
}
.column-article img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-right:0;
}

div.caseareaone {
    display: block;
}
div.caseright ul{
    display: block;
}
div.caseright ul li{
    width: 100%;
    margin-bottom: 20px;
}
div.caseright ul li:last-child{
    margin-bottom: 0;
}
div.aboutcont{
    padding: 0;
}
#case-study img{
    width: 100%;
    margin-bottom: 15px;
}
.btn-wrap-case a{
width: 95%;
        line-height: 47px;
        font-size: 18px;
        height: 48px;
}
div.fcont-first{
    width: 100%;
}
.fcontlist{
    display: block;
    margin-bottom: 0px;
}
.fcontlist li{
    width: 100%;
    padding:20px;
}
.fcontlist li:last-child{
    margin-bottom: 20px;
}
.fcontmb{
    width: 100%;
    margin-bottom: 20px;
}
.fcontmb img{
    width: 140px;
}
.power {
    display: block;
    width: 100%;
}
.btn-wrap-gikousho a{
    width: 100%;
    margin-bottom: 40px;
}
.fcont-first p br{
    display: none;
}
#features.section,
.section{
    padding: 20px;
}
.btn-wrap-case a span{
        right: 20px;
    top: 18px;
}
.section h2,
#features.section h2{
        font-size: 24px;
}
#features.section h2 span {
    font-size: 42px;
}
.fcont-first p{
    font-size: 18px;
}
.webyoyaku{
    display: block;
}
#yoyaku.section{
    padding: 40px;
}
.web-yoyaku{
    margin-bottom: 20px;
}
.seminar-list li{
    width: 45%;
}
.seminar-list li .img-box{
    height: 115px;
}
.seminar-list li p.caption{
    font-size: 12px;
}
div.keirekit_left table tr th,
div.keirekit_left table tr td{
    font-size: 14px;
}
header h1.httl{
    margin-bottom: 13px;
}
header h1.httl a{ 
font-size: 28px;
}
div.submainttl h2{
    height: 65px;
}
div.servicecontainer2 .block{
    width: 100%;
}
div.aboutcontbb table tr th,
div.aboutcontbb table tr td{
    box-sizing: border-box;
}
.c-archive-content a{
color:#000
}

.columnright {
    width: 100% !important;
}

header h1.httl span{
        font-size: 14px;
}
#features.section{
    background: #79e2ee !important;
}

.responsive-iframe {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 の比率 → 高さ = 幅 × 0.5625 */
  overflow: hidden;
  margin: 20px auto 40px;
}