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

/* ==========================================================================
   1. FV
   ========================================================================== */
   .fv-section {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    padding:0;
}

.fv-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease;
    pointer-events: none;
}

.slide-images img.active {
    opacity: 1;
}

.catch-copy {
    position: absolute;
    bottom: 80px;
    left: 80px;
    z-index: 2;
}

.catch-text {
    color: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.8;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-family: '游明朝','Yu Mincho',YuMincho,'Hiragino Mincho Pro',serif;
}
@media (max-width: 768px) {
    .catch-copy {
        bottom: 40px;
        left: 20px;
    }
    
    .catch-text {
        font-size: 23px;
        background: #00000045;
        padding: 5px;
    }
}
/* ==========================================================================
  2. news
   ========================================================================== */
.top-news {
    position: absolute;
    bottom: 20%;
    right: 20px;
    z-index: 10;
    width: 400px; /* 幅は適宜調整 */
}

.top-news__inner {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-ticker {
    position: relative;
    height: 24px; /* 1行分の高さ */
    overflow: hidden;
}

.news-ticker__item {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.news-ticker__item.active {
    opacity: 1;
}

.news-ticker__date {
    display: inline-block;
    margin-right: 15px;
    font-size: 14px;
    color: #666;
}

.news-ticker__title {
    font-size: 14px;
    color: #333;
}

.news-ticker a {
    text-decoration: none;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position:relative;
}

.news-ticker a::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);
  }

.news-ticker a:hover .news-ticker__title {
    text-decoration: underline;
}
@media (max-width: 768px) {
.top-news {
    position: unset;
    width: 98%;
    margin: 0 auto;
  }
}
/* ==========================================================================
   5. scrolling-container
   ========================================================================== */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.scrolling-container {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    background: #fff;
}

.scrolling-content {
    display: inline-flex;
    align-items: center;
    animation: scroll-left 100s linear infinite;
}

.scrolling-content:hover {
    animation-play-state: paused;
}

.scrolling-item {
    display: flex;
    align-items: center;
    margin-right: 50px;
    font-family: "Rubik", sans-serif;
    font-size: 13vw;
    color: #b5b5b540;
}

.scrolling-item img {
    width: 15vw;
    height: 15vw;
    margin-right: 10px;
}
@media (max-width: 480px) {
.scrolling-item {
    font-size: 18vw;
}
.scrolling-item img {
    width: 20vw;
    height: 20vw;
  }
}

/* ==========================================================================
   2. ABOUT
   ========================================================================== */
   .about-section {
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.about-text-area {
    width: 70%;
}
.about-btn-area{
    width: 30%;
    text-align: center;
}

.section-title {
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4;
}

.section-title .title-en {
    display: block;
    color: #45be2e;
    font-size: 16px;
    margin-bottom: 8px;
}

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



/* スライダー部分 */
.location-slider {
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
}

.slider-inner {
    position: relative;
}

.slide-track {
    display: flex;
    animation: scroll 20s linear infinite; /* アニメーション時間を調整 */
    will-change: transform; /* パフォーマンス最適化 */
}

.slide {
    flex: 0 0 300px;
    padding: 0 15px;
}

.slide img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
}

/* スムーズなアニメーションのために追加 */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-300px * 8)); /* 画像1枚分の幅 × 画像枚数 */
    }
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* オプション：ホバー時にアニメーションを一時停止 */
.location-slider:hover .slide-track {
    animation-play-state: paused;
}
/* PCでのホバー時停止はそのまま残し、モバイルでは無効化 */
@media (hover: hover) {
    /* PCやマウス環境でのみホバー効果を適用 */
    .location-slider:hover .slide-track {
        animation-play-state: paused;
    }
}

/* スマートフォンではホバー効果を明示的に無効化 */
@media (max-width: 768px) {
    .location-slider:hover .slide-track {
        animation-play-state: running;
    }
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0 0;
    }

    .about-container {
        padding: 0 20px;
    }

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

    .about-lead {
        font-size: 14px;
    }

    .slide {
        flex: 0 0 250px;
    }

    @keyframes scroll {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-250px * 8)); /* スマホ用の画像幅 × 画像枚数 */
        }
    }

    .slide-track {
        animation: scroll 15s linear infinite; /* スマホ用にアニメーション時間を調整 */
    }
    .about-content {
flex-wrap: wrap;
    }
    
    .about-text-area {
        width: 100%;
    }
    .about-btn-area{
        width: 100%;
    }
    
}
/* ==========================================================================
   3. network
   ========================================================================== */
   
   .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;
  }

  .network-section {
    padding: 100px 0 300px;
    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) {
    .network-section::before {
        height: 100px;
    }
    .network-section {
        padding: 100px 0 150px;
    }
    .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;
   }
}

/* ==========================================================================
   4. hamon
   ========================================================================== */
 
/* ==========================================================================
   4. 院長インタビュー セクション
   ========================================================================== */
   .doctor-interview {
    padding: 0 0 300px;
    background: #eef6ee;
    position:relative;
}
.doctor-interview::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 200px;
    background: url(/honbu/wp-content/themes/kohokai/img/common/nami-w.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;
}

.doctor-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.doctor-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    margin-bottom:30px;
}

.doctor-card:hover {
    transform: translateY(-5px);
}

.doctor-image {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1のアスペクト比 */
    overflow: hidden;
    margin-bottom: 15px;
}

.doctor-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.specialty-badge {
    position: absolute;
    left: 0;
    bottom: 0;
    background: #45be2e;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 0 4px 0 0;
}

.doctor-info {
    text-align: center;
}

.doctor-clinic {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.doctor-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

@media (max-width: 1024px) {
    .doctor-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .doctor-interview::before {
        height: 100px;
    }
    .section-title {
        font-size: 24px;
    }

    .doctor-grid {
        gap: 20px;
    }
    .doctor-interview {
        padding: 0 0 150px;
    }
}

@media (max-width: 480px) {
    .doctor-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   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: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.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);
}

.clinic-card:hover {
    transform: translateY(-5px);
}

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

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

.clinic-info {
    padding: 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-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;
}
@media (max-width: 1024px) {
    .clinic-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .clinic-section {
        padding: 0 0 150px;
      }
      .clinic-section::before {
        height: 100px;
      }
    .section-title {
        font-size: 24px;
    }

    .clinic-grid {
        gap: 20px;
    }
}

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

    .clinic-image {
        height: 200px;
    }
}
/* ==========================================================================
   6. Recruit セクション
   ========================================================================== */
   .recruit-section {
    padding: 0 0 300px;
    background: #FAF8F4;
    position: relative;

}
.recruit-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-w.svg) center bottom/100% 100% no-repeat; 
    z-index: 10;
  }

.recruit-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* 左側テキストエリア */
.recruit-text {
    width: 35%;
    padding-right: 20px;
}

.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 {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}



/* 右側画像エリア */
.recruit-images {
    width: 65%;
    display: flex;
    gap: 10px;
}

.image-column {
    flex: 1;
    aspect-ratio: 1/2;
}

.image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .recruit-section::before {
        height: 100px;
    }
    .section-lead {
        text-align: left;
      }
    .recruit-content {
        flex-direction: column;
        gap: 30px;
    }
    .recruit-section {
        padding: 0 0 200px;
    }
    .recruit-text,
    .recruit-images {
        width: 100%;
    }

    .section-title {
        font-size: 24px;
    }
}
/* ==========================================================================
   10. company セクション-relation
   ========================================================================== */
   .relation{
    margin: 50px auto;
   }
   .relation h4{
    font-size: 1.6rem;
   }
.relation-content{
   background: #f0f1f6;
  border-radius: 20px;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
}
.relation-title{
    display: flex;
  flex-direction: column;
  width: 30%;
}
.relation-title span{
    display:block;
    font-weight: bold;
}
.relation-title span:nth-of-type(1){
    font-size: 13px;
}
.relation-title span:nth-of-type(2){
    font-size: 16px;
    margin: 2px 0 5px;
}
.relation-title img{
    width: 150px;
}
.relation-text{
    width: 70%;
}
.relation-text p{
    margin-bottom: 15px;
    font-size: 14px;
}
.relation-text img{
    width: 15px;
  margin-left: 5px;

}
.relation-text a{
    border: 1px solid #ccc;
  text-decoration: none;
  color: #000;
  border-radius: 3px;
  padding: 8px 15px;
  background: #fff;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0px 4px 5px 0px rgba(0, 0, 0, 0.08),0px 1px 2px 0px rgba(0, 0, 0, 0.20),0px 0px 2px 0px rgba(0, 0, 0, 0.10);
  transition: all 300ms ease;
}
.relation-text a:hover{
background:#dbdbdb;
}

@media (max-width: 768px) {
.relation-content {
    flex-direction: column;
  }  
  .relation-title {
    width: 100%;
    margin-bottom: 30px;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #ccc;
  padding-bottom: 30px;
  }
  .relation-text {
    width: 100%;
    text-align: center;
  }
  .relation-text p {
    text-align: left;
  }
}
