/*
Theme Name: KOHOKAI Theme
Theme URI: https://kohokai.com/
Author: KOHOKAI
Description: KOHOKAI website theme
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kohokai.com
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
/* ==========================================================================
   1. Base
   ========================================================================== */
   html {
    scroll-behavior: smooth;
}
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "DM Sans", serif;
    font-optical-sizing: auto;
    font-weight: <weight>;
    font-style: normal;
}

.sp768{
    display:none;
}
@media (max-width: 768px) {
    .pc768{
        display:none;
    }
    .sp768{
        display:block;
    }
}
.sp480{
    display:none;
}
@media (max-width: 480px) {
    .pc480{
        display:none;
    }
    .sp480{
        display:block;
    }
}
/* ==========================================================================
   2. Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

section:nth-child(even) {

}
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }
}
/* ==========================================================================
   3. Header
   ========================================================================== */
   .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1000;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    width: 140px;
    z-index: 9;
}
.site-logo img{
margin-top: 10px;
}
.global-nav {
    flex: 1;
    margin: 0 40px;
}

.menu-list {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-list li {
    margin: 0 12px;
}

.menu-list a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    padding-bottom: 4px;
}

.menu-list a::after {
    background-color: #45be2e;
    border-radius: 2px;
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    transition: width 0.2s ease-in-out;
    width: 0;
}

.menu-list a:hover::after {
    width: 100%;
}

.contact-button {
    position: fixed;
    right: 30px;
    top: 100px;
    transform: translateY(-50%);
    z-index: 1001;
    pointer-events: auto;
    filter: drop-shadow(0px 2px 2px rgba(0, 0, 0,.2));
}

/* コンタクトボタン用の独立したコンテナ */
.contact-button-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 200px; /* ボタンの幅より余裕を持たせる */
    z-index: 1001;
    pointer-events: none; /* コンテナ自体はクリックを通過 */
}

.circle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #fff;
    color: #333;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    text-decoration: none;
    flex-direction: column;
    gap: 8px;
    position: relative;
    overflow: visible;
}

.circle-button::after,
.circle-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

.circle-button::before {
    animation: none;
}

.circle-button::after {
    animation: none;
}

.circle-button:hover::before {
    animation: ripple 2s infinite;
}

.circle-button:hover::after {
    animation: ripple 2s infinite 0.5s;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    25% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* その他のボタンスタイルは維持 */
.circle-button:hover {
    border-color: #fff;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(255, 255, 255, 0.2);
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: 12px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform: scale(1.02);
}

.icon-message {
    width: 24px;
    height: 24px;
    background: url('/honbu/wp-content/themes/kohokai/img/common/message-icon.svg') no-repeat center;
    display: block;
    position: relative;
    z-index: 2;
}

.circle-button span.text {
    font-size: 12px;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.menu-trigger {
    display: none;
    width: 30px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-trigger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #333;
    position: absolute;
    transition: all 0.4s ease;
}

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

.menu-trigger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-trigger span:nth-child(3) {
    bottom: 0;
}

.menu-trigger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.menu-trigger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}
.h-bnr{
    display:none;
}
/* Responsive Styles */
@media (max-width: 1054px) {
.menu-list a {
    font-size: 12px;
}
}
@media (max-width: 980px) {
    .site-header.hidden {
        transform:unset;
        opacity: unset;
    }

    .global-nav {
        display: none;
        position: fixed;
        width: 100%;
        background: #fff;
        padding: 20px;
        height: 100%;
        top: 0px;
        left: 0px;
        margin: 0;
    }

    .global-nav.active {
        display: block;
    }

    .menu-list {
        flex-direction: column;
        margin-top: 50px;
    }

    .menu-list a {
        font-weight: bold;
        font-size: 15px;
        padding: 15px 0;
    display: block;
      }
    

    .menu-list li {
        border-top: 1px solid #cdcdcd;
        position:relative;
    }

  .menu-list li::before {
content: "";
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 2px;
  width: 8px; 
  height: 8px; 
  border-top: 2px solid #bcbcbc;
  border-right: 2px solid #bcbcbc;
  transform: rotate(45deg);  
}
    .menu-list li:last-of-type{
        border-bottom:  1px solid #cdcdcd;
    }
    .menu-trigger {
        display: block;
    }
    .contact-button{
        display:none;
    }
    .h-bnr {
        display: block;
        list-style: none;
        margin-top: 30px;
      }
      .h-bnr li{
        height: 57px;
  border-radius: 10px;
  margin-bottom: 15px;
  position:relative;
}
    .h-bnr li::before{
        position: absolute;
content: '';
display: inline-block;
width: 25px;
height: 25px;
background-size: contain;
top:15px;
        left:25px;  } 
        .h-bnr li:nth-of-type(1)::before{
background: url(/honbu/wp-content/themes/kohokai/img/common/message-icon-w.svg)no-repeat;
  } 
  .h-bnr li:nth-of-type(2)::before{
    background: url(/honbu/wp-content/themes/kohokai/img/common/clinic-icon-w.svg)no-repeat;
      } 
      .h-bnr li:nth-of-type(3)::before{
        background: url(/honbu/wp-content/themes/kohokai/img/common/dr-icon-w.svg)no-repeat;
          } 
      .h-bnr li a{
        text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
      }
      .h-bnr li:nth-of-type(1){
      background: #45be2e;
    }
    .h-bnr li:nth-of-type(2){
        background: #5c85dc;
      }
      .h-bnr li:nth-of-type(3){
        background: #5c85dc;
      }
      .site-logo {
        width: 120px;
      }
      .menu-list a::after {
        display:none;
      }
}


/* ==========================================================================
   fade-in
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   6. CTA button
   ========================================================================== */
   .cta {
    align-self: flex-end;
    justify-self: flex-end;
    position: relative;
    z-index: 2;
}
.cta a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 24px;
    background-color: white;
    color: #007bff;
    border: 2px solid #007bff;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: bold;
}

.cta a .circle-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #7892f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.cta a .circle-arrow svg {
    width: 20px;
    height: 20px;
    fill: white;
    transition: transform 0.3s ease;
}

.cta a .bg-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #007bff;
    z-index: -1;
    transition: width 0.3s ease;
}

.cta a:hover .bg-fill {
    width: 100%;
}

.cta a:hover {
    color: white;
    background: #7892f0;
  border: 2px solid #fff;
}

.cta a:hover .circle-arrow {
    background-color: white;
}

.cta a:hover .circle-arrow svg {
    fill: #7892f0;
    transform: rotate(360deg);
}

@media (max-width: 810px) {
    .cta {
        width: 100%;
        text-align: center;
    }

    .cta a {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   11.more button
   ========================================================================== */
.more-button {
    display: inline-flex;
    align-items: center;
    padding: 13px 38px; /* borderの2pxを考慮して内側に調整 */
    background-color: #45be2e;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    border: 2px solid #45be2e; /* 最初からborderを設定 */
    transition: all 0.3s ease;
}

.more-button .arrow {
    display: block;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: 10px;
}

.more-button:hover {
    color: #45be2e;
    background: #fff;
    /* border設定を削除（すでに設定済み） */
}

.more-button:hover .arrow {
    border-top: 2px solid #45be2e;
    border-right: 2px solid #45be2e;
}

.more-button.shiro{
    background-color: #ffffff;
    color: #333;
    border: none;
    border: 2px solid #fff;
}

.more-button.shiro .arrow {
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.more-button.shiro:hover {
    color: #fff;
    background: #45be2e;
    border: 2px solid #fff;
}

.more-button.shiro:hover .arrow {
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

/* ==========================================================================
   11.お問い合わせ セクション
   ========================================================================== */
.otoiawase{
    padding: 0 0 300px;
  position: relative;
  overflow: hidden;
}
.otoiawase::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/nami.svg) center bottom/100% 100% no-repeat;
    z-index: 10;
  }
.contact-section {
    position: relative;
    padding: 100px 0;
    background: url(/honbu/wp-content/themes/kohokai/img/common/otoiawase.jpg) center center/cover no-repeat;
    border-radius: 20px;
    margin: 0 20px;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
}

.contact-section .container {
    position: relative;
    z-index: 2;
    max-width: 800px !important;
    margin: 0 auto;
    padding: 0 20px !important;
    text-align: center;
    color: #fff;
    background: none !important;
}

.contact-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 24px;
}

.contact-lead {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.button-wrapper {
    display: flex;
    justify-content: center;
}


@media (max-width: 768px) {
    .otoiawase::before {
        height: 100px;
    }
    .otoiawase {
        padding: 0 0 200px;
    }
    .contact-section {
        padding: 60px 0;
        margin: 0 15px;
    }

    .contact-title {
        font-size: 24px;
    }

    .contact-lead {
        font-size: 14px;
        text-align: left;
    }

}

/* ==========================================================================
   11. footer セクション
   ========================================================================== */
   .footer {
    background: #eef6ee;
    padding: 0 0 40px;
}
.footer .container{
    background: none !important;
}
.f-logo{
    width: 150px;
    margin-bottom: 15px;
}

/* PC用グリッドレイアウト */
.clinic-grid-f {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.clinic-card-f {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.clinic-card-f:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.group-name-f {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.clinic-name-f {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #45be2e;
}

.clinic-address-f {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.clinic-contact-f {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clinic-tel-f {
    font-size: 16px;
    font-weight: bold;
    color: #45be2e;
}


.sp-accordion {
    display: none;
}

/* フッターナビゲーション */
.footer-nav {
    margin-bottom: 40px;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.footer-nav li{
    list-style: disc;
    color: #45be2e;
}
.footer-nav a {
    color: #333;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #45be2e;
}

.copyright {
    text-align: center;
    font-size: 10px;
    color: #666;
}
/* CSSの追加部分 */
.f-copy {
    margin: 20px 0 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.0s ease, transform 1.0s ease;
}

.f-copy__text {
    font-size: 26px;
    text-align: left;
    font-weight: 500;
}

/* フェードインアニメーション用のクラス */
.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .clinic-grid-f {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .f-copy {
        margin: 15px 0 30px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }

    .clinic-grid-f {
        display: none;
    }

    .sp-accordion {
        display: block;
        margin-bottom: 40px;
    }

    .accordion-item {
        border-bottom: 1px solid #ddd;
    }

    .accordion-header {
        width: 100%;
        padding: 15px;
        background: #fff;
        border: none;
        text-align: left;
        font-weight: bold;
        position: relative;
        cursor: pointer;
        color: #333;
    }
.clinic-contact-btn{
    font-size: 14px;
    width: 100%;
    position: relative;
    text-align: center;
    background: #45be2e;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}
.clinic-contact-btn a{
    color: #fff;
    text-decoration: none;
}
.clinic-contact-btn::before {
    position: absolute;
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/gaibu.svg)no-repeat;
    top: 50%;
    right: 10%;
    transform: translateY(-50%) translateX(-50%);
    margin: auto;
  }
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    padding: 0 15px;
    background: #fff;
}

.accordion-item.active .accordion-content {
    max-height: 200px; 
    padding: 15px;
}

.accordion-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    width: 10px;
    height: 10px;
    border-right: 2px solid #aeaeae;
    border-bottom: 2px solid #aeaeae;
    transform: translateY(-50%) rotate(45deg);
}

.accordion-item.active .accordion-icon {
    transform: translateY(-50%) rotate(-135deg);
}
.group-name-f{
    display:none;
}
    .footer-nav ul {
        flex-direction: unset;
        align-items: unset;
        gap: 15px;
    
    }
    .footer-nav li {
        margin: 0 10px;
      }
}