/*
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
*/


/* ==========================================================================
   3. network
   ========================================================================== */
   .k-network__title {
    text-align: center;
    margin: 80px auto 30px;

}

.k-network__title-en {
    display: block;
    font-size: 16px;
    font-weight: bold;
    color: #45be2e;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.k-network__title-ja {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.1em;
}

   .ko-map iframe{
    width: 100%;
  height: 630px;
   }
.ko-map{
    position: relative !important;
	overflow: hidden;
}
.ko-map::before{
    position: absolute;
    content: "";
    width: 100%;
    height: 70px;
    z-index: 2;
    background: #fff;
  }

  .page-locations  .page-content {
    padding: 100px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAIAAACRXR/mAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAAABnSURBVHja7M5RDYAwDEXRDgmvEocnlrQS2SwUFST9uEfBGWs9c97nbGtDcquqiKhOImLs/UpuzVzWEi1atGjRokWLFi1atGjRokWLFi1atGjRokWLFi1af7Ukz8xWp8z8AAAA//8DAJ4LoEAAlL1nAAAAAElFTkSuQmCC") repeat 0 0;
    animation: bg-scrolling-reverse 0.92s infinite;
    background-size: 20px 20px; /* マス目のサイズを20pxに指定 */
    animation-timing-function: linear;
}

  @keyframes bg-scrolling-reverse {
    100% {
      background-position: 20px 20px;
    }
  }

  @keyframes bg-scrolling {
    0% {
      background-position: 20px 20px;
    }
  }
.network-section::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;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 14px;
    color: #45be2e;
    margin-bottom: 8px;
}

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

.section-lead {
    color: #666;
    margin-bottom: 40px;
}

.map-container {
    max-width: 900px;
    margin: 0 auto 60px;
    z-index: 2; 
    position: relative;
}


.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.map-wrapper svg {
    width: 100%;
    height: auto;
    display: block;
}

.location-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.location-marker {
    position: absolute;
    transform: translate(-50%, -50%); 
    pointer-events: auto; 
    text-decoration: none;
}

:root {
    --map-aspect-ratio: calc(608.93 / 541.32);
}
.location-marker:hover {
    opacity: 0.8;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: #FF4444;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.location-marker:hover .marker-dot {
    border: 3px solid #f00;
    background: #FFF;
}

.marker-label {
    position: absolute;
    left: 24px;
    top: 0;
    white-space: nowrap;
}
.marker-label-left {
    position: absolute;
    right: 24px;
    top: 0;
    white-space: nowrap;
    text-align: right;
}

.marker-label-left .clinic-name,
.marker-label-left .clinic-specialty {
    direction: ltr; /* テキストの方向を保持 */
}
.clinic-name {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.clinic-specialty {
    font-size: 12px;
    color: #666;
    display: none;
}

/* Prefecture Labels */
.prefecture-label {
    position: absolute;
    padding: 6px 12px;
    background: #fff;
    border: 1px solid #45be2e;
    border-radius: 20px;
    color: #45be2e;
    font-size: 13px;
    white-space: nowrap;
}

.section-footer {
    text-align: center;
    margin-top: 30px;
}
.sp-only{
    display:none;
}
/* Responsive */
@media (max-width: 768px) {
        .k-network__title-ja {
                font-size: 24px;
            }
    .network-section::before {
        height: 100px;
    }

    .sp-only{
        display:block;
        line-height: 1;

    }
    .pc-only{
        display:none;
    }

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

    .marker-label {
        font-size: 12px;
    }

    .prefecture-label {
        font-size: 11px;
        padding: 4px 8px;
    }
}
@media (max-width: 650px) {
    .clinic-name {
        font-size: 12px;
    }
    .prefecture-labels .prefecture-label:nth-of-type(1){
        left: 20.7% !important;
    }  
    .prefecture-labels .prefecture-label:nth-of-type(2){
    left: 20% !important;
    }  
        .prefecture-labels .prefecture-label:nth-of-type(3){
            left: 22.5% !important;
            }

    }
@media (max-width: 480px) {
.prefecture-labels .prefecture-label:nth-of-type(1){
    left: 0% !important;
}   
.prefecture-labels .prefecture-label:nth-of-type(2){
top: 83% !important;
  left: 10% !important;
}   

    .prefecture-labels .prefecture-label:nth-of-type(3){
        left: 12.5% !important;
        }
    .prefecture-labels .prefecture-label:nth-of-type(4){
      left: 62.9% !important;
      top: 80.5% !important;
}
.location-markers .location-marker:nth-of-type(2) .marker-label{
left: 17px !important;
  top: 9px !important;
}

.location-markers .location-marker:nth-of-type(4) .marker-label{
left: 3px !important;
  top: -12px !important;
}
.location-markers .location-marker:nth-of-type(6) .marker-label{
    left: 0px !important;
  top: 20px !important;
}
.location-markers .location-marker:nth-of-type(7) .marker-label{
left: -64px !important;
  top: 20px !important;
}
.ko-map iframe{
  height:400px;
   }
}

/* ==========================================================================
   5. Clinic セクション
   ========================================================================== */
   .clinic-section {
    padding: 0px 0 300px;
    background: #fff;
    position:relative;
}
.clinic-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/nami-a.svg) center bottom/100% 100% no-repeat;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: block;
    font-size: 14px;
    color: #45be2e;
    margin-bottom: 8px;
}

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

.section-lead {
    color: #666;
    line-height: 1.8;
}

.clinic-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.clinic-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    padding: 30px;
}
.info-badges ul{
list-style: none;
display:flex;
}
.info-badges li a{
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    background: none;
    border-radius: unset;
    overflow: unset;
    box-shadow: unset;
    display: unset;
    flex-wrap: wrap;
    padding: unset;
    }
    .info-badges li a img{
        width: 30px;
        }
.clinic-card:hover {
    transform: translateY(-5px);
}

.clinic-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    margin-bottom: 20px;
}

.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.clinic-info {
    width: 40%;
}
.clinic-map{
    width: 60%;
    padding-left: 20px;
}
.group-name {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #45be2e;
    color: #45be2e;
    border-radius: 4px;
    font-size: 12px;
    background: #fff;
}
.b-jyusho{
    font-size: 12px;
    width: 100%;
    position:relative;
}
.b-access{
    font-size: 12px;
    width: 100%;
    position:relative;
    padding-left:20px;
}
.b-access::before{
    position: absolute;
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-size: contain;
    top: 0px;
    left: 0px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/toho.svg)no-repeat;
}
.b-tel{
    color: #45be2e;
    font-size: 14px;
    width: 100%;
    position:relative;
    padding-left:20px;
}
.b-tel::before{
    position: absolute;
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-size: contain;
    top: 0px;
    left: 0px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/tel.svg)no-repeat;
}
.b-gaibu{
    font-size: 14px;
    width: 100%;
    position:relative;
    text-align: center;
    background: #45be2e;
  color: #fff;
  border-radius: 10px;
  padding: 20px;
}
.b-gaibu::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;
}
.clinic-card iframe{
    width:100%;
    height: 38vw;
}
@media (max-width: 1024px) {
    .clinic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clinic-card {
        padding: 20px;
      }
    .clinic-section {
        padding: 0 0 150px;
      }
      .clinic-section::before {
        height: 100px;
      }
    .section-title {
        font-size: 24px;
    }
    .clinic-info {
        width: 100%;
      }
    .clinic-grid {
        gap: 20px;
    }
    .clinic-map {
        width: 100%;
        padding-left: 0;
        margin-top: 20px;
      }
      .b-gaibu {
        padding: 15px;
      }
}

@media (max-width: 480px) {
    .clinic-grid {
        grid-template-columns: 1fr;
    }

    .clinic-image {
        height: 200px;
    }
}