@charset "utf-8";

@font-face {
  font-family: 'TimesNewRomanCustom';
  src: url('../font/times-new-roman.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* レイアウトのためのCSS */
html {
    font-size: 18px;
}

@media(max-width:900px) {
    html {
        font-size: 16px;
    }
}

@media(max-width:768px) {
    html {
        font-size: 14px;
    }
}


.sp {
    display: none;
}

.pc {
    display: block;
}


@media(max-width:768px) {
    .sp {
        display: block;
    }

    .pc {
        display: none;
    }
}

body {
    background: #f0f0f0;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    font-size: 1rem;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    word-wrap: break-word;
}


ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: #333;
    text-decoration: none;
    outline: none;
}

img {
    width: 100%;
    height: auto;
}

* {
    box-sizing: border-box
}

/* font-family */

#header, h1, h2, .heading01, .count-size {
    font-family: 'Roboto', sans-serif;
}

/* header */

#header {
    padding: 0 15px 0 20px;
    background-color: #ffffff7a;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    z-index: 100;
}

#header h1 {
    font-size: calc(16px + (32 - 16) * ((100vw - 320px) / (1920 - 320)));
}

@media screen and (max-width:960px) {
    #header {
        padding: 5px 30px 0 90px;
        background-color: #ffffff00;
    }
}

@media screen and (max-width:870px) {
    #header {
        padding: 10px 40px 0;
        justify-content: center;
    }
}

#header h1 a {
    letter-spacing: 0.05em;
    font-weight: normal;
}

#header .header-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header ul {
    font-weight: bold;
    letter-spacing: 0.1em;
    margin: 0 20px 0 0;
}

@media screen and (max-width:960px) {
    #header ul {
        display: none;
    }
}

#header li,
#header dl,
#header dt,
#header dd {
    display: inline-block;
}

#header li {
    padding: 20px 10px;
}

/* 最後の要素だけ「/」を消す */
#header li:last-child {
    background-color: #5bbb8a8c;
}

#header .header-area dd a {
    display: flex;
    flex-direction: column;
    /* 縦方向に積む */
    align-items: center;
    /* 横の中央寄せ */
    row-gap: 0.5em;
    line-height: 1;
    /* 要素間のスペース */
}

#header .header-area dd a span {
    font-size: 0.75em;
}

/* メガメニュー本体を非表示に */
#header .has-mega .mega-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 50;
}

/* 開いた状態の表示制御 */
#header .has-mega.is-open .mega-menu {
    display: block;
}

/* 3列×自動行 */
#header .mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    /* 高さはお好みで調整 */
    gap: 10px 20px;
    /* 上下10px、左右20pxのグリッド間隔 */
    max-width: 1200px;
    /* 中央揃え用の最大幅 */
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

/* 各マスの見た目 */
#header .mega-item {
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    transition: transform .3s;
    padding: 0;
}

/* 空セルは透明に */
#header .mega-item.empty {
    background: transparent;
    pointer-events: none;
}

/* ホバーで拡大 */
#header .mega-item:hover {
    transform: scale(1.05);
}

/* テキストラベル */
#header .mega-item a {
    display: block;
    position: relative;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    text-transform: none;
    width: 100%;
    height: 100%;
}

#header .mega-item a span {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    width: 75%;
    text-align: center;
}

/* JavaScript版 */
#header .has-mega .mega-menu {
    display: none;
}

#header .has-mega.is-open .mega-menu {
    display: block;
}





/* 診療時間メニューを相対位置に */

/* 非表示にしておく */
.time-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    max-width: 725px;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* JS制御を使う場合の表示ルール */
#header .has-time.is-open .time-content {
    display: block;
}


#header .float3 {
    border-radius: 30px;
}

@media screen and (max-width:870px) {
    #header .float3 {
        display: none;
    }

}

/* g nav */

#g-nav li:nth-of-type(1) {
    animation-delay: 0.3s;
}

#g-nav li:nth-of-type(2) {
    animation-delay: 0.5s;
}

#g-nav li:nth-of-type(3) {
    animation-delay: 0.7s;
}

#g-nav li:nth-of-type(4) {
    animation-delay: 0.9s;
}

#g-nav li:nth-of-type(5) {
    animation-delay: 1.1s;
}

/* container */

#container {
    padding: 0 70px 0 130px;
}

@media screen and (max-width:960px) {
    #container {
        padding: 0 10px;
    }

}

/* flud-area */

.fluid-area {
    position: relative;
    height: 95vh;
    display: flex;
    align-items: center;
}

.fluid-lead {
    padding: 0 0 0 14vw;
}

.fluid-lead h2 {
    font-size: 4vw;
    letter-spacing: 0.2em;
    line-height: 1.4;
    margin: 0 0 40px 0;
    opacity: 0;
}

body.appear .fluid-lead h2 {
    opacity: 1;
}

.fluid-lead p {
    font-size: 1.1rem;
    line-height: 2;
    margin: 0 0 0 30px;
    font-weight: bold;
}

.fluid-block {
    position: absolute;
    z-index: -1;
    top: 10%;
    left: 10vw;
    /* right: 25%; */
    width: 55vw;
    height: 75vh;
    animation-delay: 0.5s;
    opacity: 0.4 !important;
}


@media screen and (max-width:960px) {
    .fluid-lead h2 {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }

    .fluid-block {
        width: 60vw;
        height: 60vh;
    }
}

@media screen and (max-width:768px) {
    .fluid-block {
        width: 65vw;
        height: 60vh;
    }

    .fluid-lead h2 {
        font-size: 1.8rem;
    }

    .fluid-lead {
        padding: 0;
    }

    .fluid-lead p {
        margin: 0;
    }

    .fluid-area {
        height: 55vh;

    }
}

@media screen and (max-width:550px) {
    .fluid-block {
        width: 95%;
        height: 95%;
        left: 5vw;
    }

    .fluid-lead h2 {
        margin-left: 48px;
    }

    .fluid-lead p {
        margin: -30px 0 0 50px;
    }

    .fluid-lead p {
        font-size: 1rem;
    }
}

@media screen and (max-width:360px) {
    .fluid-block {
        width: 240px;
        height: 240px;
    }
}

/* heading */

.heading-block {
    padding: 0 0 0 70px;
}

@media screen and (max-width:550px) {
    .heading-block {
        padding: 0;
    }
}

.heading01 {
    position: relative;
    font-weight: normal;
    font-size: 5vw;
    letter-spacing: 0.1em;
    padding: 0 0 30px 0;
    line-height: 1;
    font-family: TimesNewRomanCustom;
}

.heading01 span {
    position: absolute;
}

.heading01 span.en {
    top: 1.1em;
    font-size: 3vw;
}

#greeting .heading01 span.en {
    left: 2.2em;
}

#statistics .heading01 span.en {
    left: 2.5em;
}

.heading01 span.jp {
    top: 6em;
    left: 5.5em;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2vw;
}

#greeting .heading01 span.jp {
    left: 5.5em;
}

#statistics .heading01 span.jp {
    left: 7em;
}

.heading01:first-letter {
    font-size: 9vw;
}

@media screen and (max-width:960px) {
    .heading01 {
        font-size: 1rem;
    }

    .heading01:first-letter {
        font-size: 8rem;
    }

    .heading01 span.en {
        font-size: 2rem;
    }

    .heading01 span.jp {
        font-size: 1rem;
        top: 6em;
    }
}

@media screen and (max-width:768px) {
    .heading01:first-letter {
        font-size: 6rem;
    }

    .heading01 span.en {
        font-size: 1.6rem;
        width: 170px !important;
    }

    .heading01 span.jp {
        font-size: 0.9rem;
        top: 5em;
        left: 4.5em;
        width: 170px !important;
    }

    #greeting .heading01 span.jp {
        left: 6em;
    }

}


/* topics */

#topics {
    position: relative;
    margin: 0 0 200px 0;
}

@media screen and (max-width:960px) {
    #topics {
        margin: 0 0 100px 0;
    }
}

.topics-area {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.topics-area.topics_two {
    margin-top: 100px;
}

.topics-area article {
    width: 40%;
    box-shadow: 0 0 10px #ccc;
    background: #ffffff00;
    border-radius: 10px;
}

.topics-area article:nth-of-type(1) {
    position: relative;
    top: 130px;
}

.topics-area article:nth-of-type(2) {
    position: relative;
    top: 80px;
}

.topics-area article:nth-of-type(3) {
    position: relative;
    top: 30px;
}

@media screen and (max-width:1020px) {
    .topics-area article {
        width: 46%;
        margin: 0 0 50px 0;
    }

    .topics-area article:nth-of-type(2n+1) {
        top: 30px;
    }

    .topics-area article:nth-of-type(2n) {
        top: 0;
    }

    .topics-area.topics_two {
        margin-top: 0;
    }
}

@media screen and (max-width:550px) {
    .topics-area article {
        width: 90%;
    }

    .topics-area article:nth-of-type(2n+1) {
        top: 0;
    }
}

/*
.zoomOut .mask {
    border-radius: 10px 10px 0 0;
}
*/

.topics-area .topics-block {
    padding: 10px 20px;
}

.topics-area .topics-block time {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 20px 0;
}

.topics-area .topics-block h3 {
    font-size: 1rem;
    text-align: center;
}

#topics .topics-btn {
    text-align: right;
    padding: 100px 0 0 0;
}

@media screen and (max-width:960px) {
    #topics .topics-btn {
        text-align: center;
        padding: 50px 0 0 0;
    }

}

/* greeting */

#greeting {
    margin: 200px 0 200px 0;
}

@media screen and (max-width:960px) {
    #greeting {
        margin: 100px 0 100px 0;
    }
}

.greeting-area {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 150px;
}

.greeting-area p {
    margin: 0 0 30px 0;
}

.greeting-area .txt-r {
    text-align: right;
}

.greeting-lead {
    font-weight: bold;
    font-size: 1.2rem;
}

.greeting-img {
    width: 50%;
}

.greeting-img img {
    animation: fluidrotate 30s ease 0s infinite;
}

.greeting-content {
    width: 40%;
}

@media screen and (max-width:768px) {
    .greeting-area {
        display: block;
        padding-top: 0;
    }

    .greeting-img {
        width: 60%;
        margin: 0 auto;
    }

    .greeting-content {
        width: 100%;
        padding: 0 30px 0 70px;
    }

    .greeting-area {
        padding-top: 20px;
    }

}

@media screen and (max-width:550px) {
    .greeting-content {
        padding: 0;
    }

    .greeting-img {
        width: 100%;
    }
}

/* statistic*/

.count-size {
    font-size: 5vw;
    color: #00b7b8;
    padding: 0 10px;
    line-height: 1.2;
}

#count-up-area {
    display: flex;
    justify-content: flex-end;
    margin: -100px 0 100px 0;
}

@media screen and (max-width:768px) {
    #count-up-area {
        justify-content: center;
        margin: 0 0 100px 0;
    }
}

@media screen and (max-width:550px) {
    #count-up-area {
        justify-content: flex-start;
    }

    .count-size {
        font-size: 2rem;
    }
}

.chart-area.bar {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 0 100px 0;
}

.chart-area.pie {
    /*円グラフがスマホでつぶれないようにする*/
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 50vh;
    margin: 0 auto 100px auto;
}

@media screen and (max-width:960px) {

    .chart-area.bar,
    .chart-area.pie {
        margin: 0 auto 100px auto;
    }

}

/* contact */

#contact {
    position: relative;
    margin: 0 0 100px 0;
    padding: 130px 0 0 0;
    text-align: center;
}

#contact::before {
    content: "";
    width: 1px;
    height: 100px;
    background: #333;
    position: absolute;
    left: 50%;
    top: 0;
}

#contact h2 {
    margin: 0 0 30px 0;
    font-size: 2.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media screen and (max-width:960px) {
    #contact h2 {
        font-size: 2rem;
    }
}

@media screen and (max-width:768px) {
    #contact h2 {
        font-size: 1.5rem;
    }
}

#contact h2 span {
    font-size: 1rem;
    display: block;
}

#contact ul {
    margin: 20px 0 50px 0;
    letter-spacing: 0.1em;
}

#contact li,
#contact dl,
#contact dt,
#contact dd {
    display: inline-block;
}

@media screen and (max-width:530px) {
    #contact li {
        display: block;
    }
}

#contact dt {
    padding: 0 10px 0 0;
}

#contact dd {
    font-size: 1.5rem;
}

@media screen and (max-width:768px) {
    #contact dd {
        font-size: 1rem;
    }
}

#contact li:first-child::after {
    content: '/';
    padding: 0 10px;
}

@media screen and (max-width:530px) {
    #contact li:first-child::after {
        content: '';
        padding: 0;
    }
}

/* footer */

#page-top {
    margin: 0 auto 100px auto;
    display: block;
    width: 30px;
    height: 30px;
    border: 2px solid;
    border-radius: 2px;
    border-color: #999 #999 transparent transparent;
    transform: rotate(-45deg);
    cursor: pointer;
}


#waveCanvas {
    position: absolute;
    bottom: 0;
    z-index: -1;
}

small {
    text-align: center;
    display: block;
    padding: 50px 0;
}

#treatment {
    margin-top: 500px;
    margin-bottom: 300px;
}


#treatment .heading01 {
    position: absolute;
    font-weight: normal;
    font-size: 5vw;
    letter-spacing: 0.1em;
    padding: 0 0 30px 0;
    line-height: 1;
    right: 50%;
    top: -200px;
}

#treatment .heading01 span.en {
    top: 1.1em;
    left: 1.8em;
    font-size: 3vw;
    width: 320px;
}

#treatment .heading01 span.jp {
    width: 250px;
    left: 4.2em;
}

@media screen and (max-width:768px) {
    #greeting .heading01 span.en {
        left: 2.8em;
    }

    #treatment .heading01 span.en {
        font-size: 1.6rem;
    }
}


/* 共通：下部メニューとトグルボックス */
.sp_bottom_box,
.sp_bottom_menu {
    display: none;
}

.fas_bottom {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

/* 横幅960px以下のときだけ有効 */
@media (max-width: 960px) {

    /* ① 診療時間のトグルボックス */
    .sp_bottom_box {
        position: fixed;
        bottom: 50px;
        /* 下部メニューの上に表示 */
        left: 0;
        width: 100%;
        background: #fff;
        z-index: 1000;
        box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
        display: none;
        /* JavaScript で制御 */
        padding: 16px;
        top: initial !important;
    }

    .sp_bottom_box.open {
        display: block;
    }

    /* ② 下部固定メニュー */
    .sp_bottom_menu {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        display: flex;
        justify-content: space-around;
        background: #f8f8f8;
        border-top: 1px solid #ddd;
        z-index: 1001;
        padding: 10px 0;
    }

    .sp_bottom_menu button,
    .sp_bottom_menu a {
        flex: 1;
        text-align: center;
        font-size: 16px;
        color: #333;
        background: none;
        border: none;
        outline: none;
    }

    .sp_bottom_menu button {
        cursor: pointer;
    }

    .sp_bottom_menu a.bottom_link {
        border-right: solid 1px;
        border-left: solid 1px;
    }

    .sp_bottom_menu a.bottom_tel::before {
        content: "\f095";
        font-size: 16px;
        color: #66b6c9;
        padding-right: 10px;
    }

    .sp_bottom_menu a.bottom_link::before {
        content: "\f5a0";
        font-size: 16px;
        color: #66b6c9;
        padding-right: 10px;
    }

    .sp_bottom_menu button.jikan-toggle::before {
        content: "\f017";
        font-size: 16px;
        color: #66b6c9;
        padding-right: 10px;
    }
}




/*top03*/

.top03 .topics-area article {
    width: 30%;
}

.top03 .topics-area article:nth-of-type(1) {
    position: relative;
    top: 80px;
}

.top03 .zoomOut .mask {
    width: 100%;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    height: auto;
}

.top03 .zoomOut .mask img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


@media screen and (max-width: 1020px) {

    .top03 .topics-area article:nth-of-type(1) {
        top: 0px;
    }

    .top03 .topics-area article {
        width: 46%;
        margin: 0 0 50px 0;
    }
}

@media screen and (max-width: 550px) {
    .top03 .topics-area article {
        width: 90%;
    }
}

.site-title {
    display: flex;
    align-items: center;
    /* 高さを揃える */
    gap: 12px;
    /* 画像とテキストの間隔 */
}

.site-title img {
    height: 2em;
    max-height: 100%;
    object-fit: contain;
    width: auto;
}

.site-title h1 {
    font-size: 2rem;
    margin: 0;
}

.symptom-menu {
    margin: 3em 0;
    padding: 1em;
    margin-top: 200px;
    background-color: #c1c1c147;
}

.symptom-menu h2 {
    font-size: 1.5em;
    margin-bottom: 1em;
    color: #333;
    text-align: center;
}

.symptom-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75em;
}

.symptom-list li {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.symptom-list a {
    display: block;
    padding: 0.5em 1em;
    text-decoration: none;
    color: #333;
    font-size: 0.95em;
}

.symptom-list a:hover {
    background-color: #e0e0e0;
}