/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;  
    font-family: "Zen Maru Gothic", serif;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 30px 20px 20px 20px;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    transition: padding 0.3s ease;
}

header.scrolled {
    padding: 10px 20px;
}

.header{
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1{
    margin: 0;
    padding: 0;
    line-height: 0;
}
.logo {
    max-width: 200px;
    transition: max-width 0.3s ease;
}

header.scrolled .logo {
    max-width: 150px; /* 元のサイズの約2/3 */
}

.logo img {
    width: 100%;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
}

.desktop-nav ul {
    display: flex;
    list-style: none;
}

.desktop-nav li {
    margin-left: 20px;
}

.desktop-nav a {
    color: #3c9a9a;
    font-size: 14px;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #2c7474;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    width: 30px;
    height: 22px;
    position: relative;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #3c9a9a;
    position: absolute;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 10px;
}

.hamburger span:nth-child(3) {
    top: 20px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Close Button X */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 2000;
  display: none;
}

.close-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #3c9a9a;
  position: absolute;
  top: 50%;
  left: 0;
}

.close-btn span:first-child {
  transform: rotate(45deg);
}

.close-btn span:last-child {
  transform: rotate(-45deg);
}

.nav-menu.active .close-btn {
  display: block;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1500;
    padding: 80px 20px 20px;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    font-size: 16px;
    color: #3c9a9a;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: #2c7474;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    display: none;
}

.overlay.active {
    display: block;
}

/* Hero Section */
.hero {
    background: url('../img/bg_main@2x.webp') center/cover no-repeat;
    text-align: center;
    position: relative;
    color: #666;
    padding: 250px 20px 200px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;  
}

.hero-content {
    z-index: 2;
    overflow: hidden;  
}

.hero p {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.8;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 3;
    font-weight: 500;

}

.opening-info {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 200px 10px 18px;
    display: inline-block;
    margin-top: 30px;
    font-size: 14px;
    bottom: 100px;
    right: 0;
    letter-spacing: 3px;
    font-size: 16px;
}

/* Section Styles */
section {
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    font-weight: normal;
    font-size: 20px;
    color: #555;
    font-weight: 500;

}

.section-title-en::before {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background-color: #3c9a9a;
    margin: 5px auto 10px auto;
}

.section-title-en {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* Characteristics Section */
.characteristics-list {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1em;
    font-size: 18px;
}

.characteristics-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
}

/* Schedule Section */
#schedule {
    background: url('../img/bg_common@2x.webp') center/cover no-repeat;
    padding: 100px 20px;
}
.schedule-container {
    overflow-x: auto;
    max-width: 1100px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
    background-color: #fff;
    border: 1px solid #fff;

}

.schedule-table th, .schedule-table td {
    text-align: center;
    font-size: 14px;
}

.schedule-table th {
    background-color: #3c9a9a;
    color: white;
    padding: 8px 0;
}
.schedule-table th span{
    display: block;
    border-left: 1.5px solid #fff;
    padding: 7px 5px;
}
.schedule-table tr:first-child th {
    width: calc(100% / 8);
}
.schedule-table td{
    padding: 8px 0;
}
.schedule-table td span{
    display: block;
    border-left: 3px dotted #ccc;
    padding: 15px 5px; 
}
.tdg{
    background-color: #9CC5C5;
    color: #fff;
    font-weight: bold;
    padding: 15px 80px !important;
}
.schedule-notes {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 14px;
    margin-top: 15px;
}

.schedule-notes p {
    margin-bottom: 5px;
}
.keyc1{
    color: #3c9a9a;
}

/* Clinic Info Section */
.clinic-info {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 0 auto;
    align-items:center;
    justify-content: center;
    gap: 90px;
}

.clinic-info-text {
    margin-bottom: 30px;
}

.clinic-info-text h3 {
    font-size: 18px;
    margin-bottom: 30px;
    font-weight: normal;
    font-weight: 500;

}
.clinic-info-text h3 span{
    display: block;
    border-top: 1px solid #ccc;
    font-size: 12px;
    padding: 5px 0;
    margin-top:5px;
    font-weight: normal;
}

.clinic-info-item {
    margin-bottom: 10px;
    font-size: 16px;
}

.clinic-info-item span {
    display: inline-block;
    min-width: 80px;
    font-weight: bold;
    color: #3c9a9a;
    font-size: 14px !important;

}

.access{
    margin-top: 20px;
}
.access .clinic-info-item span{
    min-width: 150px;
}

.clinic-map {
    width: 100%;
}

/* Clicnic image*/
.clinic-image {
    background: url('../img/bg_common@2x.webp') center/cover no-repeat;
    padding: 0;
    text-align: center;
    line-height: 0;
}
.clinic-image img{
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
}

/* Doctor Section */
.doctor-info {
    max-width: 800px;
    margin: 0 auto;
}

.doctor-name {
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items:baseline;
    font-weight: normal;
}
.doctor-name::before {
    width: 70px;
    content: "院　長";
    display: block;
    font-size: 16px;
    color: #4B9695;
    font-weight: bold;
}

.doctor-details {
    display: flex;
    align-items:baseline;
}
.doctor-details::before {
    width: 70px;
    content: "経　歴";
    display: block;
    font-size: 16px;
    color: #4B9695;
    font-weight: bold;
}
.doctor-details ul{
    width: 80%;
}
.doctor-details li {
    margin-bottom: 10px;
    list-style-type: none;
}

.doctor-details2 {
    display: flex;
    align-items:baseline;
}
.doctor-details2::before {
    width: 70px;
    content: "資　格";
    display: block;
    font-size: 16px;
    color: #4B9695;
    font-weight: bold;
}
.doctor-details2 ul{
    width: 80%;
}
.doctor-details2 li {
    margin-bottom: 10px;
    list-style-type: none;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    line-height: 0;
}

/* Footer */
footer {
    background-color: #3c9a9a;
    color: white;
    text-align: right;
    padding: 20px;
    font-size: 12px;
}


.hero p span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
}


.news-container{
    max-width: 600px;
    margin: 0 auto;
}
.news-item{
    display: flex;
    width: 100%;
    margin-bottom: 15px;
}
.news-date{
    margin-right: 20px;
}
.news-title a{
    color:#3c9a9a;
    text-decoration: underline;
}

/*ボタン*/

.back{
    margin: 60px auto 0 auto;
    text-align: center;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background-color: #3c9a9a;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(60, 154, 154, 0.25);
    cursor: pointer;
    font-size: 16px;
    width: 160px;
  }

  .button:hover {
    background-color: #348888;
  }

  .button:active {
    background-color: #2c7676;
  }
  
  .arrow-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    background-color: white;
    color: #3c9a9a;
    transition: transform 0.3s ease;
  }
  
  .button-forward {
    flex-direction: row-reverse;
  }
  
  .button-back .arrow-circle {
    margin-right: 4px;
  }
  
  .button-forward .arrow-circle {
    margin-left: 4px;
  }
  
  .button-back:hover .arrow-circle {
    transform: translateX(-3px);
  }
  
  .button-forward:hover .arrow-circle {
    transform: translateX(3px);
  }
  
  .button-text {
    text-align: center;
    flex-grow: 1;
  }
  
  .arrow-svg {
    width: 10px;
    height: 10px;
  }
  
  .news-container-detail{
    max-width: 900px;
    margin: 0 auto;
  }
  .detail-head{
    margin-bottom: 30px;
  }
  .detail-head h2{
    color: #3c9a9a;
  }
    .detail-head p{
        text-align: right;
    }

  .detail-body{
    margin-bottom: 100px;
  }

  .reservation_btn{
    position: fixed;
    top: 40%;
    right: 0px;
    width: 120px;
    z-index: 999999999;
  }
  .reservation_btn:hover{
    opacity: 0.9;
}

.characteristics{
    gap: 20px;
    justify-content: space-between;
}
.characteristics-image{
    box-sizing: border-box;
    width: 45%;
}
.characteristics-text{
    padding: 0 20px;
}


/* 下層 */

.title{
    display: flex;
    background: url('../img/bg_common@2x.webp') center/cover no-repeat;
    margin-top: 100px;
    padding: 60px 20px;
    justify-content: center;
}
.title h1{
    font-size: 28px;
    color: #666;
    text-align: center;
}
.title h1::before {
  content: attr(data-title);
  display: block; /* または inline-block */
  font-size: 14px;
  color: #777;
  text-align: center;
}

/* Q&A */
.qa-container {
            max-width: 800px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }

        .qa-item {
            border-bottom: 1px solid #e0e0e0;
        }

        .qa-item:last-child {
            border-bottom: none;
        }

        .question {
            display: flex;
            align-items: center;
            padding: 20px;
            cursor: pointer;
            transition: background-color 0.2s ease;
            user-select: none;
        }

        .question:hover {
            background-color: #f8f9fa;
        }

        .question-icon {
            width: 40px;
            height: 40px;
            background-color: #5a9aa0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            margin-right: 15px;
            flex-shrink: 0;
        }

        .question-content {
            flex: 1;
            display: flex;
            align-items: center;
        }

        .question-text {
            flex: 1;
            font-size: 16px;
            color: #333;
            margin-right: 15px;
        }

        .toggle-icon {
            width: 24px;
            height: 24px;
            color: #5a9aa0;
            font-size: 20px;
            font-weight: bold;
            transition: transform 0.3s ease;
            flex-shrink: 0;
        }

        .answer {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
            background-color: #f8f9fa;
        }

        .answer-content {
            display: flex;
            padding: 0 20px;
        }

        .answer-icon {
            width: 40px;
            height: 40px;
            background-color: #666;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
            font-size: 18px;
            margin-right: 15px;
            flex-shrink: 0;
            margin-top: 10px;
        }

        .answer-text {
            flex: 1;
            color: #555;
            font-size: 15px;
            padding: 15px 0;
        }

        /* チェックボックスを使ったアコーディオン */
        .qa-checkbox {
            display: none;
        }

        .qa-checkbox:checked + .qa-content .answer {
            max-height: 500px;
            padding-bottom: 20px;
        }

        .qa-checkbox:checked + .qa-content .toggle-icon {
            transform: rotate(45deg);
        }

        /* 空の質問項目のスタイル */
        .empty-question .question-text {
            height: 20px;
            background-color: #e0e0e0;
            border-radius: 10px;
            margin-right: 15px;
            opacity: 0.3;
        }

        .empty-question .toggle-icon {
            opacity: 0.3;
        }

        .empty-question:hover {
            background-color: white;
            cursor: default;
        }

        .inner{
            max-width: 1100px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .inner p{
            line-height: 2;
        }

        .bg-section{
            background: url('../img/bg_common@2x.webp') center/cover no-repeat;
        }

        .round-box{
            border-radius: 10px;
        }
        .round-box ul{
            margin-left: 1.5em;
        }
        .bg-white{
            background-color: white;
            padding: 50px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            margin-bottom: 20px;
        }

        .round-box dt{
            font-weight: bold;
            color: #4B9695;
            margin-bottom: 10px;
        }
        .round-box dd:not(:last-child) {
            margin-bottom: 30px;
        }

        .service-lists {
            margin: 0 auto;
        }

        .service-list {
            display: flex;
            align-items: flex-start;
            margin-bottom: 40px;
            gap: 60px;
            align-items: center;
            justify-content: center;
            padding-bottom: 40px;
            border-bottom: 1px solid #eee;
        }

        .service-list h3 {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            color: #333;
            line-height: 1.4;
            flex-shrink: 0;
            padding: 10px;
        }
      
        .service-list:last-child h3 {
            font-size: 12px;
        }
        .service-list p {
            flex: 1;
            font-size: 15px;
            line-height: 1.8;
            color: #555;
            padding-top: 20px;
        }

        /* 3nごとの色変更 */
        .service-list:nth-child(3n+1) h3 {
            background-color: #F2F0E6;
        }

        .service-list:nth-child(3n+2) h3 {
            background-color: #EBE4DB;
        }

        .service-list:nth-child(3n) h3 {
            background-color: #C8C2B9;
        }
        .service-list p{
            font-size: 18px;
        }

       
        .doctor{
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 60px;
        }
        .doctor-photo {
            width: 500px;
        }

        .facilities h3{
            font-size: 20px;
            margin-bottom: 20px;
            font-weight: normal;
            font-weight: 500;
            padding: 10px 0;
            border-bottom: #348888 2px solid;
        }
        .facility{
            margin-bottom: 40px;
        }
        .facility img{
            margin-bottom: 1em;
        }
        .facility h4{
            color: #348888;
        }
        .facility p{
            margin-bottom: 1em;
        }

        .bg-section-title{
            padding:40px 0;
            margin-bottom: 40px;
        }
        .bg-section-title h2{
            margin-bottom: 0;
        }
        .pt-0{
            padding-top: 0 !important;
        }

.navigation.pagination {
  display: flex;
  justify-content: center;
  margin: 3em 0;
  font-family: sans-serif;
}

.navigation .nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-numbers {
  display: inline-block;
  padding: 4px 12px;
  text-decoration: none;
  color: #469393;
  background-color: #f1f1f1;
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
  font-size: 12px;
}

.page-numbers:hover {
  background-color: #469393;
  color: #fff;
}

.page-numbers.current {
  background-color: #469393;
  color: #fff;
  font-weight: bold;
  cursor: default;
}

.page-numbers.next,
.page-numbers.prev {
  font-weight: bold;
}
