@font-face {
    font-family: 'Rounded M Plus 1c';
    src: url('../fonts/rounded-mplus-1c-regular.ttf') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Rounded M Plus 1c';
    src: url('../fonts/rounded-mplus-1c-bold.ttf') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Rounded M Plus 1c';
    src: url('../fonts/rounded-mplus-1c-medium.ttf') format('woff2');
    font-weight: medium;
    font-style: normal;
}

body {
    font-family: 'Rounded M Plus 1c', sans-serif;
    margin: 0;
    padding: 0;
}

/* コンテナとコンテナサイドバーの設定 */
.container {
    display: flex;
    max-width: 900px;
    margin: auto;
    position: relative;
}

/* ハンバーガーメニューの設定 */
nav {
    display: flex;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: -900px;
    transition: all 0.4s;
    justify-content: center;
    align-items: center;
    z-index: 3;
    opacity: 0;
}

.open nav {
    left: 0;
    opacity: 1;
}

nav .inner {
    display: flex;
    flex-direction: column;
    padding: 100px;
}

nav .inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav .inner ul li {
    margin: 0;
}

nav .inner ul li a {
    display: block;
    color: #e4e4e4;
    font-size: 3em;
    padding: 1rem;
    text-decoration: none;
    transition-duration: 0.2s;
    text-align: center;
}

nav .inner ul li a:hover {
    color: #333;
    background-color: #e4e4e4;
}

.toggle-btn {
    display: none;
    position: fixed;
    margin-top: 30px;
    margin-left: calc(100% - 60px);
    width: 30px;
    height: 30px;
    z-index: 3;
    cursor: pointer;
}

.toggle-btn span{
    position: absolute;
    display: block;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: #333;
    transition: all 0.5s;
    border-radius: 4px;
}

.toggle-btn span:nth-child(1) {
    top: 4px;    
}

.toggle-btn span:nth-child(2) {
    top: 14px;    
}

.toggle-btn span:nth-child(3) {
    bottom: 4px;    
}

.open .toggle-btn span {
    background-color: #fff;
}

.open .toggle-btn span:nth-child(1) {
    transform: translateY(10px) rotate(-315deg);
}

.open .toggle-btn span:nth-child(2) {
    opacity: 0;
}

.open .toggle-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(315deg);
}

#mask {
    display: none;
    transition: all 0.5s;
}

.open #mask {
    display: block;
    background-color: #000;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    opacity: 0.8;
    cursor: pointer;
}


/* サイドバーのスタイル */
.sidebar {
    width: 100px;
    height: 100vh;
    position: fixed;
    right: calc((100vw - 900px) / 2);
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-sidebar {
    height: 10em;
    display: flex;
    justify-content: flex-end;
    font-family: 'Rounded M Plus 1c', sans-serif;
    align-items: flex-start;
}

.side-image {
    width: 100px;
    height: auto;
    display: flex;
}

.menu {
    display: flex;
    align-items: flex-start;
    font-family: 'Rounded M Plus 1c', sans-serif;
}

.title {
    font-weight: normal;
    text-align: center;
    font-size : 3em;
    line-height : 1.1;
    width: fit-content;
    margin-bottom: 0;
}

.nav {
    font-weight: medium;
    margin-top: 20px;
    text-align: center;
    font-size: 1em;
}

.nav a {
    text-decoration: none;
    color: black;
    transition: all 0.3s ease;
}

.nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.phone {
    margin-top: 20px;
    font-size: 0.8em;
    display: flex;
    font-family: 'Rounded M Plus 1c', sans-serif;
    font-weight: bold;
    text-align: center;
    color: orangered;
}

/* メインコンテンツのスタイル */
.main-content {
    width: calc(100% - 120px);
}

.header-main {
    height: 10em;
    display: flex;
    justify-content: center;
    font-family: 'Rounded M Plus 1c', sans-serif;
    align-items: flex-start;
}

.footer-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-family: 'Rounded M Plus 1c', sans-serif;
}

.title-en {
    font-weight: normal;
    text-align: center;
    font-size : 3em;
    line-height : 1.1;
    width: fit-content;
    margin-bottom: 0;
}

.title-jp {
    font-weight: normal;
    text-align: center;
    font-size : 3em;
    line-height : 1.1;
    width: fit-content;
    margin-bottom: 0;
    display: none;
}

.bottom-image {
    display: none;
    width: 100px;
    height: auto;
}

.section-title {
    font-size: 1.5em;
    border-top: 2px solid black;
    font-weight: bold;
    padding-bottom: 5px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.table th, .table td {
    border: 1px solid black;
    padding: 10px;
    text-align: center;
}

.highlight {
    font-weight: bold;
    color: orangered;
    font-size: 1.5em;
}

.highlight-text {
    font-weight: bold;
    color: orangered;
}

.map-container iframe {
    width: 100%;
}

.doctor-text h2, .practice-text h2 {
    font-size: 1.5em;
}

.doctor-text h2 {
    color: darkblue;
}

.practice-text h2 {
    color: orangered;
}

.doctor-text p, .practice-text p {
    font-size: 1em;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.img-mobile {
    display: none;
  }

.info-box {
    display: flex;
    align-items: stretch;
    margin-top: 20px;
    background-color:#e67d2210;
    height: fit-content;
}

.info-box p, .practice-text p{
    text-align: justify;
}

.box:nth-child(2) {
    width: calc(100% - 288px);
    display: flex;
    justify-content: center;
}

.box-text {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.box img {
    height: 100%;
    width: 288px;
    object-fit: cover;
}

.box h3 {
    font-size: 1.2em;
    color: darkblue;
}

.box ul {
    padding-left: 15px;
}

.copyright {
    margin-bottom: 20px;
}

.space-mobile {
    display: none;
}

.blue-text {
    color: darkblue;
}

@media (min-width: 900px) {
    #navArea {
        display: none;
    }
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
        width: 100%;
    }

    .main-content {
        width: 90%;
        margin-left: 5%;
    }

    .sidebar {
        display: none;
    }

    .title-en {
        display: none;
    }

    .title-jp {
        display: unset;
    }

    .footer-main {
        margin-top: 20px;
    }

    .bottom-image {
        display: unset;
    }

    #navArea {
        left: -5000px;
    }

    .toggle-btn {
        display: block;
    }

    .info-box {
        flex-direction: column;
        align-items: center;
        background-color: #ffffff;
      }
    
      .box:nth-child(1), .box:nth-child(2) {
        width: 100%;
        display: flex;
        justify-content: center;
      }
    
      .box img {
        width: 80%;
        height: auto;
        object-fit: contain;
        margin: 20px 0;
      }
    
      .box-text {
        padding: 0 20px 20px 20px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
      }
    
      .box-text h3 {
        margin-top: 20px;
      }
    
      .box-text ul {
        padding-left: 1em;
      }

      .space-desktop {
        display: none;
      }

      .space-mobile {
        display: unset;
      }

      .img-desktop {
        display: none;
      }

      .img-mobile {
        display: unset;
      }

      .box h3 {
        margin-top: 0;
        margin-bottom: 1px;
    }
}

@media (max-width: 600px) {
    nav .inner ul li a {
        font-size: 1.3em;
    }
}