/* Reset and base styles */
html{
    margin: 0 !important;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:  'Hiragino Kaku Gothic ProN','Hiragino Sans', 'Noto Sans JP', sans-serif;
}

body {
    color: #3B4043;
    line-height: 1.6;
    background-color: #F7F7F7;
    font-size: 1rem;
}

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

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

.not-mobile-768{
    display: block;
}
.only-mobile-768{
    display: none;
}
@media (max-width: 768px) {
.not-mobile-768{
    display: none;
}
.only-mobile-768{
    display: block;
}
}


/* Header & Navigation */
header {
    padding: 15px 0 10px;
    border-bottom: 1px solid #3B4043;
    background-color: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.container__card{
    background-color: #fff;
    border: 1px solid #707070;
    padding: 80px 5%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.logo {
    font-size: 1.5rem;
    font-weight: normal;
    /* margin-top: 0;
    margin-bottom: .1em; */
    margin: 0;
    line-height: 0;
}
.logo img{
        width: 200px;
    height: 100%;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: #3B4043;
    font-weight: normal;
}

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

.nav-menu li {
    margin-left: 12px;
}

.nav-menu a {
    color: #3B4043;
    font-size: 1rem;
    padding: 10px 15px;
    border-radius: 30px;
    transition: .3s;
}
.nav-menu a:hover{
    color: #fff;
    background-color: #356598;


}


.nav-menu a.active {
    background-color: #356598;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
}

.hamburger-area {
    display: none;
    cursor: pointer;
}


/* ハンバーガーアイコン */
.hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 2rem;
  height: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.hamburger .line {
  display: block;
  width: 100%;
  height: 0.2rem;
  background: #333;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease;
}

/* ×（バツ）に変形 */
.hamburger.active .line:nth-child(1) {
  transform: translateY(0.65rem) rotate(45deg);
}
.hamburger.active .line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .line:nth-child(3) {
  transform: translateY(-0.65rem) rotate(-45deg);
}

/* サイドバー */
.menu-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 500px;
  height: 100vh;
  background: #fafafa;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.4s ease-out, opacity 0.4s ease-in-out;
  z-index: 1000;
  opacity: 0;
  padding-top: 4rem; /* ハンバーガーボタンと重ならないように */
      padding-left: 5%;
}
.menu-sidebar.active {
  transform: translateX(0);
  opacity: 1;
}

/* メニュー項目 */
.menu{
    margin-top: 3rem;
}
.menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.menu li + li {
  margin-top: 1rem;
}
.menu a {
  text-decoration: none;
  color: #333;
  font-size: 1.1rem;
  padding: 0.5rem 0;
  display: block;
}
.menu a:hover {
  background: #eee;
}
.link-text{
    color: #356598;
}
/* arrow */
.arrow-container {
    padding: 40px;
    background-color: #f5f5f5;
    position: relative;
}
.arrow-link {
    position: relative;
    margin-right: 4.5em;
    display: inline-block;
    font-family: sans-serif;
    color: #4a6ea9;
    text-decoration: none;
    position: relative;

}

.arrow-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4a6ea9;
}

.arrow {
    position: absolute;
    top: 65%;
    left: calc(100% + 1em);
    width: 3em;
    height: 3px;
    background-color: #4a6ea9;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.arrow::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1.1em;
    height: 3px;
    background-color: #4a6ea9;
    transform-origin: right bottom;
    transform: rotate(45deg);
}

.arrow-link:hover .arrow {
    transform: translateY(-50%) translateX(1em);
}
/* ===================
   Common
   =================== */
   .card-box{
    background-color: #fff;
    border: 1px solid #3B4043;
    padding: 40px;
   }
   .page-index {
    font-weight: 500;
    color: #3B4043;
    letter-spacing: .02em;
}
@media (max-width: 768px) {
    .card-box{
        padding-right: 5%;
        padding-left: 5%;
    }
}

/* ===================
   Post Contents
   =================== */
.post-contents p{
    line-height:2 !important;
    margin-bottom: 1rem;
}
.post-contents h1,
.post-contents h2,
.post-contents h3,
.post-contents h4,
.post-contents h5,
.post-contents h6{
    line-height: 1.5;
    margin: 3rem 0 1.5rem;
}

/* Hero Section */
.hero {
    padding: 50px 0;
}

.hero .container {
    display: flex;
    align-items: start;
    justify-content: space-between;
}

.hero-text {
    /* width: 55%; */
    position: relative;

}
/* 
   .hero-text::before {
   content: '';
   position: absolute;
   left: 0;
   top: 10px;
   width: 8px;
   height: 8px;
   background-color: #356598;
   border-radius: 50%;
   }
 */
.hero-text h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: normal;
    letter-spacing: .02em;
}

.hero-text p {
    font-size: 1rem;
    line-height: 1.8;
    letter-spacing: .02em;
}

.hero-image {
    width: 45%;
    overflow: hidden;
}



/* Slider */

.slideshow-container {
            position: relative;
            width: 100%;
        }

        .slides-wrapper {
            position: relative;
            width: 100%;
            height: 400px;
            overflow: hidden;
            max-height: 500px;
            min-height: 300px;
        }

        @media (min-width: 768px) {
            .slides-wrapper {
                height: 100vh;
                
            }
        }

        .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 1s ease-in-out;
        }

        .slide.active {
            opacity: 1;
        }

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

        .dots-container {
            display: flex;
            justify-content: center;
            margin-top: 24px;
            gap: 12px;
        }

        .dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background-color: rgba(255, 255, 255, 1);
            border: none;
            cursor: pointer;
            transition: all 0.3s ease-in-out;
        }

        .dot:hover {
            background-color: rgba(255, 255, 255, 0.75);
        }

        .dot.active {
            background-color: #356598;
        }



/* Section */
.page-divider{
    width: 100%;
    height: 1px;
    background-color: #3B4043;
}

.section{
    padding: 60px 0 ;
}
.section-staff{
    padding-top: 0;
}
.section-contact{
   padding-top: 0; 
}
/* News Section */
.news-section {

}

.section-title {
    display: flex;
    align-items: baseline;
    margin-bottom: 20px;
    font-weight: normal;
    font-size: 2.25rem;
}

.section-title-ja {
    font-size: 1.25rem;
    color: #3B4043;
    margin-left: 10px;
}

@media (max-width: 768px) {
.section{
    padding: 30px 0;
}
.section-title{
    flex-direction: column;
    font-size: 2rem;
}
.section-title-ja{
    font-size: 1.125rem;
}
}

.news-item {
    border: 1px solid #3B4043;
    padding: 50px;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-date {
    font-size: 1rem;
    color: #3B4043;
}

.news-category {
    font-size: 0.875rem;
    background-color: #356598;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 10px;
}

.news-title {
    font-size: 1rem;
}

.news-actions {
    color: #3B4043;
}

/* Works Section */
.works-section {

}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

}

.works-grid > .work-item {
    border-top: 1px solid #3B4043;
    border-left: 1px solid #3B4043;
    border-bottom: 1px solid #3B4043;
}

/* 右端のアイテムに右枠線を追加 */
.works-grid > .work-item:nth-child(3n) {
    border-right: 1px solid #3B4043;
}

.works-grid > .work-item:last-child {
    border-right: 1px solid #3B4043;
}

/* 最終行のアイテムに下枠線を追加 */
/* ※アイテム数が常に3の倍数の場合 */
.works-grid > .work-item:nth-last-child(-n+3) {
    border-bottom: 1px solid　#3B4043;
}

.work-item {
    display: flex;
    flex-direction: column;

    background-color: #FFFFFF;
    padding: 40px 10%;
    justify-content: space-between;
}
.square-container {
    width: 100%; /* 親要素の幅を指定（例えば50%など） */
    height: 0;
    padding-bottom: 100%; /* 幅と高さを同じ比率に保つ */
    position: relative;
    overflow: hidden;
}

.square-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;  /* 画像が親要素を覆うように調整 */
}
/* work scroll */
.work-scroll{
    width: 100%;
    display: flex;
    transition: transform 0.5s ease;
}
a[data-point]{
    padding: 2px 6px;
    border: 2px dotted #356598;
    border-radius: 0px;
    transition: background-color 0.3s;
}

a[data-point].active{
    background: #356598;
    color: #fff;
}
.work-description a[href]:not([href^="##"]){
	color:#356598;
	text-decoration:underline;
}
.photo-slider__item{
        width: 100%;
    height: 100%;
    /* padding-bottom: 100%; */
    position: relative;
    overflow: hidden;
}


.work-image {
    
    overflow: hidden;
    margin-bottom: 20px;
}

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

.work-meta {
    display: flex;
    font-size: 0.875rem;
    color: #3B4043;
    margin-bottom: 15px;
    gap: 12px;
    height: 60px;
    align-items: start; display: flex;
    font-size: 0.875rem;
    color: #3B4043;
    margin-bottom: 15px;
    gap: 12px;
}
.work-category__wrap{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .75rem
}

.work-category {
    border: 1px solid #3B4043;
    padding: 2px 8px;
}

.work-date {
    text-align: right;
    flex-grow: 1;
    font-weight: 700;
}

.work-title {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 15px;
    border-bottom: 1px solid #3B4043;
}

.work-content {
    font-size: 1rem;
    color: #3B4043;
    margin-bottom: 15px;
    flex-grow: 1;
}

.work-more {
    text-align: right;
    color: #356598;
    font-size: 1rem;
}

.all-works-link {
    text-align: right;
    margin-top: 20px;
}

.all-works-link a {
    color: #356598;
}

.all-link{
    font-size:1.5rem;
    margin-top: 30px;
    text-align: right;
}
.work-item__card-link .link-move-img{
    transition: .3s;
    overflow: hidden;
}
.work-item__card-link .link-move-img img{
    transform: scale(1);
    transition: .3s;
}

.work-item__card-link:hover .link-move-img img{
    transform: scale(1.15);
}

@media (max-width: 768px) {
.work-item{
    padding-left: 5%;
    padding-right: 5%;
}
.works-grid > .work-item{
        border-top: 1px solid #3B4043;
    border-left: 1px solid #3B4043;
    border-right: 1px solid #3B4043;
    border-bottom: none;
}
.works-grid > .work-item:last-child{
   border-bottom: 1px solid #3B4043; 
}
.work-title{
        display: inline-block;
        font-weight: 700;
}
.work-meta{
    height: auto;
    margin-bottom: 2rem;
}
}
/* ===================
   News Switcher
   =================== */
.news-switcher {
      width: 100%;
      position: relative;
      border: 1px solid #e0e0e0;
      background-color: #fff;
    }

.news-switcher .news-switcher-content {
    position: relative;
    overflow: hidden;
    height: 120px;
}

.news-switcher .news-item {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    justify-content: start;
}

.news-switcher .news-item.active {
    opacity: 1;
}

.news-switcher .news-date {
    font-size: 16px;
    color: #333;
    margin-right: 15px;
    white-space: nowrap;
}

.news-switcher .news-category {
    background-color: #3b5998;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
}

.news-switcher .news-title {
    font-size: 16px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-switcher .news-navigation {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.news-switcher .nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #3b5998;
    background-color: transparent;
    cursor: pointer;
}

.news-switcher .nav-dot.active {
    background-color: #3b5998;
}
/* Places Section */
.places-section {

}

.places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
}

.place-item {
    display: flex;
    background-color: #FFFFFF;
    border-top: 1px solid #3B4043;
    border-left: 1px solid #3B4043;
    border-bottom: 1px solid #3B4043;
    padding: 40px  8%;
}
.places-grid .place-item:last-child{
    border-right: 1px solid #3B4043;
}
.place-info {
    width: 50%;
    padding-right: 25px;
}

.place-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: normal;
    padding-bottom: 15px;
    border-bottom: 1px solid #3B4043;
}

.place-description {
    font-size: 1rem;
    margin-bottom: 15px;
}

.place-details {
    font-size: 1rem;
    color: #3B4043;
    margin-bottom: 20px;
}

.place-social {
    display: flex;
    gap: 10px;
}

.place-social a {
    display: inline-block;
    width: 22px;
    height:auto;
   
}

.place-image {
    width: 50%;
    padding-left: 25px;
}

.place-image img {

}

@media (max-width: 768px) {
.place-item{
    padding-left: 5%;
    padding-right: 5%;
    flex-direction: column;
}
.places-grid .place-item{
        border-top: 1px solid #3B4043;
    border-left: 1px solid #3B4043;
    border-right: 1px solid #3B4043;
    border-bottom: none;
}
.places-grid .place-item:last-child{

    border-bottom:  1px solid #3B4043;
}
.place-title{
    border: none;
            padding: 0;
}
.place-image_mobile{
    margin-bottom: 1rem;
}
.place-info{
    width: 100%;
    padding: 0;
}
}

/* Profile Section */
.profile-heading{
        font-size: 1.25rem;
    font-weight: normal;
    line-height: 1.8;
    letter-spacing: .02em;
    margin-bottom: .5em;
}
.profile-text{
    font-size: 1rem;
    color: #3B4043;
    letter-spacing: .02em;
    line-height: 1.8;
}
.profile-list {
    padding-left: 14px;
    margin-bottom: 1rem;
}
.profile-list li{
    line-height: 1.8;
    letter-spacing: .02em;
    /* margin-bottom: .5rem; */
}
.text-block{
    margin-bottom: 2rem;
}

.contact-link {
    text-align: right;
    margin-top: 20px;
}

.contact-link a {
    color: #356598;
}

/* Footer */
footer {
    padding: 50px 0 100px;
    background-color: #FFFFFF;
    border-top: 1px solid #3B4043;
    margin-top: 5rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    font-weight: normal;
}

.footer-column p {
    font-size: 1rem;
    color: #3B4043;
    margin-bottom: 5px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 1rem;
    color: #3B4043;
}

.footer-contact {
    font-size: 1rem;
    color: #3B4043;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-social a {
    display: inline-block;
    width: 22px;
    height: auto;
    
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger-area {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-text, .hero-image {
        width: 100%;
       
    }
    
    .works-grid, .places-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}
/* Category filter */
.category-filter {
    display: flex;
    align-items: center;
    margin: 30px 0;
    /* border-bottom: 1px solid #3B4043; */
    padding-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.category-filter-label {
    font-size: 1rem;
    margin-right: 10px;
    border-bottom: 1px solid #3B4043;
}

.category-filter-arrow {
    width: 10px;
    height: 10px;
    border-right: 1px solid #3B4043;
    border-bottom: 1px solid #3B4043;
    transform: rotate(45deg);
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.category-filter.open .category-filter-arrow {
    transform: rotate(-135deg);
}

.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 90%;
    max-width: 400px;
    background-color: #FFFFFF;
    border: 1px solid #3B4043;
    z-index: 100;
    display: none;
}

.category-dropdown.show {
    display: block;
}

.category-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

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

.category-item-icon {
    margin-right: 15px;
}

.category-item-text {
    font-size: 1rem;
    text-decoration: underline;
}




/* Content Layout */
.content-wrapper {
    display: flex;

}

/* Sidebar */
.sidebar {
    width: 250px;
    background-color: #F7F7F7;
    border-right: 1px solid #E0E0E0;
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: normal;
    padding: 30px 20px;
    border-bottom: 1px solid #E0E0E0;
}

.sidebar-list {
    list-style-type: none;
    padding: 20px;
}

.sidebar-item {
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
}

.sidebar-item.active {
    color: #356598;

}
.sidebar-contact__inner {
    padding: 50px 10px;
}

.sidebar-nav {
    list-style-type: none;
    padding: 20px 0 ;
}

.sidebar-nav__item {
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
}

.sidebar-nav__item.active {
    color: #356598;

}
/* Main Content */
.main-content {
    flex-grow: 1;
    padding: 50px;
}

.contact-intro {
    margin-bottom: 40px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    font-size: 0.9rem;
}

.form-control:focus {
    outline: none;
    border-color: #356598;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-radio {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.form-radio input[type="radio"] {
    margin-right: 10px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.form-checkbox input[type="checkbox"] {
    margin-right: 10px;
}

.submit-button {
    background-color: #FFFFFF;
    border: 1px solid #3B4043;
    color: #3B4043;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
    border-radius: 50px;
    width: 200px;
    text-align: center;
}

.submit-button:hover {
    background-color: #F0F0F0;
}

.contact-sub {
    border-top: 1px solid #E0E0E0;
    padding-top: 40px;
    margin-top: 60px;
}

.contact-sub-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 15px;
}

.contact-sub-text {
    font-size: 0.9rem;
}

/* Email with icon */
.email-group {
    position: relative;
}

.email-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #CCCCCC;
    font-size: 1.2rem;
}

/* Select with arrow */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 1px solid #3B4043;
    border-bottom: 1px solid #3B4043;
    pointer-events: none;
    transform: translateY(-50%) rotate(45deg);
}

select.form-control {
    appearance: none;
    padding-right: 30px;
}

.ct-form label{
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
}
.ct-form input[type="text"],
.ct-form textarea,
.ct-form input[type="email"]{
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    font-size: 0.9rem;
}

.ct-form select{
        appearance: none;
    padding-right: 30px;
        width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    font-size: 0.9rem;
}
.ct-form .wpcf7-radio{
display: flex;
    flex-direction: column;
}
.ct-form .form-select .wpcf7-form-control-wrap::after{
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 1px solid #3B4043;
    border-bottom: 1px solid #3B4043;
    pointer-events: none;
    transform: translateY(-50%) rotate(45deg);
}
.ct-form .wpcf7-submit{
    background-color: #FFFFFF;
    border: 1px solid #3B4043;
    color: #3B4043;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: block;
    margin: 0 auto;
    border-radius: 50px;
    width: 200px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar-contact__inner{
        padding: 0;
    }
    .main-content__inner.main-content__inner_contact{
        padding: 20px 0;
    }
    .content-wrapper {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .main-content {
        padding: 30px 20px;
    }
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}


/* Content Layout */
.content-wrapper {
    display: flex;
}
.staff__content-wrapper{
    height: 80vh
}
/* Sidebar */
.sidebar {
    width: 370px;
    background-color: #F7F7F7;
    overflow-y: auto;
    border-right: 1px solid #E0E0E0;
}
aside.sidebar.staff___sidebar{
        max-width: 300px;
    width: 100%;
	z-index:100;
}

.sidebar-section {
    position: relative;
}

.sidebar-title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    height: 100%;
    font-size: 1rem;
    font-weight: normal;
    color: #FFFFFF;
    background-color: #356598;
    padding: 20px 10px;
    text-align: center;
    width: 45px;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar-list {
    list-style-type: none;
    padding: 20px 20px 20px 80px;
}

.sidebar-item {
    margin-bottom: 15px;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    display: inline-block;
    padding: 5px;
}

.sidebar-item.active {
    color: #fff;

    background: #356598;
}

/* Main Content */
.main-content {

    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
    padding-left: 30px;
}
.main-content__inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 50px 30px;
}
.content-card {
    padding: 40px;
    margin-bottom: 20px;
    background-color: #FFFFFF;
    border: 1px solid #707070;
    margin: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.member-info {
    flex-grow: 1;
}

.card-title {
    font-size: 1rem;
    font-weight: normal;
    margin-bottom: 10px;
    color: #3B4043;
}

.card-name {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 20px;
}

.card-subtitle {
    font-size: 0.8rem;
    color: #777;
    /* margin-left: 10px; */
}
.place-card  .card-content p{
    margin-bottom: 1rem;
}
.card-links {
    min-width: 200px;
    border-left: 1px solid #356598;
    padding-left: 30px;
}

.card-links h4 {
    font-size: 0.9rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.card-links ul {
    list-style-type: none;
}

.card-links li {
    margin-bottom: 5px;
}

.card-links a {
    color: #356598;
    font-size: 0.9rem;
}

.card-content {
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.8;
}

.card-images {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.card-image {
    width: 48%;
}

.card-image img {
    /* width: 100%;
    height: auto; */
    /* background-color: #E0E0E0; */
}

.image-caption {
    font-size: 0.75rem;
    color: #777;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        height: auto;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .sidebar-title {
        writing-mode: horizontal-tb;
        height: auto;
        width: auto;
        position: relative;
        padding: 10px;
    }
    
    .sidebar-list {
        padding: 20px;
    }
    
    .main-content {
        height: auto;
        padding:0;
    }
    
    .card-header {
        flex-direction: column;
    }
    
    .card-links {
        text-align: left;
        margin-top: 20px;
    }
    
    .card-images {
        flex-direction: column;
    }
    
    .card-image {
        width: 100%;
    }
    aside.sidebar.staff___sidebar{
            position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    }
    .content-card{
        margin-right: 0;
        margin-left: 0;
        padding: 30px 8%;
    }
}

/* staff tab  */

   .tab__container {

            overflow: hidden;
            display: flex;
        }

        .tab__nav-wrapper {
            position: relative;

        }

        .tab__nav {
            display: flex;
            flex-direction: column;
            overflow-y: auto;
            scrollbar-width: thin;
        }

        .tab__nav::-webkit-scrollbar {
            width: 6px;
        }

        .tab__nav::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        .tab__nav::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .tab__button {
            flex-shrink: 0;
            padding: 24px 16px;
            background: none;
            border: none;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            color: #6c757d;
            transition: all 0.3s ease;
            position: relative;
            white-space: nowrap;
            text-align: center;
            border-bottom: 1px solid #e9ecef;
            writing-mode: vertical-rl;
            text-orientation: mixed;
            height: 120px;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
        }

        .tab__button:hover {
            /* color: #495057; */
            background: rgba(0,0,0,0.03);
        }

        .tab__button.active {
                color: #FFFFFF;
    background-color: #356598;
        }

        /* .tab__button.active::after {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, #667eea, #764ba2);
            border-radius: 3px 0 0 3px;
        } */

        .tab__content {
            flex: 1;
            padding: 32px;
            /* min-height: 400px; */
            overflow-y: auto;
        }

        .tab__panel {
            display: none;
        }

        .tab__panel.active {
            display: block;
            animation: fadeIn 0.3s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .tab__panel ul {
            display: flex;
            flex-direction: column;
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .tab__panel li {
            /* padding: 16px 0; */
            /* border-bottom: 1px solid #e9ecef; */
            font-size: 16px;
            line-height: 1.6;
            color: #495057;
            transition: color 0.3s ease;
        }

        .tab__panel li:last-child {
            border-bottom: none;
        }

        .tab__panel li:hover {
            color: #667eea;
        }

        .tab__panel h2 {
            margin-bottom: 24px;
            color: #333;
            font-size: 24px;
        }

        .tab__scroll-indicator {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            color: #667eea;
            font-size: 18px;
            pointer-events: none;
            opacity: 0;
            transition: opacity 0.3s ease;
            transform: rotate(90deg);
        }

        .tab__scroll-indicator.show {
            opacity: 1;
        }

        /* モバイル用スタイル */
        @media (max-width: 768px) {

            .tab__container {
                /* border-radius: 12px; */
                flex-direction: column;
            }

            .tab__nav-wrapper {
                border-right: none;
                border-bottom: 1px solid #e9ecef;
                min-width: auto;
            }

            .tab__nav {
                flex-direction: row;
                overflow-x: auto;
                overflow-y: visible;
                scrollbar-width: none;
                -ms-overflow-style: none;
            }

            .tab__nav::-webkit-scrollbar {
                display: none;
            }

            .tab__button {
                padding: 12px 16px;
                font-size: 14px;
                min-width: 120px;
                text-align: center;
                border-bottom: none;
                border-right: 1px solid #e9ecef;
                writing-mode: horizontal-tb;
                text-orientation: initial;
                height: auto;
                display: block;
            }

            .tab__button.active::after {
                top: auto;
                right: auto;
                bottom: 0;
                left: 0;
                right: 0;
                width: auto;
                height: 3px;
                background: linear-gradient(90deg, #667eea, #764ba2);
                border-radius: 3px 3px 0 0;
            }

            .tab__scroll-indicator {
                bottom: auto;
                right: 16px;
                top: 50%;
                left: auto;
                transform: translateY(-50%) rotate(0deg);
            }

            .tab__content {
                padding: 10px;
                overflow-y: visible;
            }

            .tab__panel ul {
                display: flex;
                gap: 16px;
                overflow-x: auto;
                padding-bottom: 10px;
                margin: 0;
                flex-direction: row;
            }

            .tab__panel li {
                flex-shrink: 0;
                padding: 16px;
                background: #f8f9fa;
                border-bottom: none;
                margin: 0;
            }
        }

        @media (max-width: 480px) {
            .tab__button {
                /* min-width: 100px; */
                padding: 15px 12px;
                font-size: 13px;
            }

            .tab__panel li {
                padding: 12px;
                margin: 0;
            }
        }

/* ====================
   info
   ==================== */
.p-info__news-list {
    border: 1px solid #3B4043;
    background-color: #FFFFFF;
    margin-bottom: 100px;
}

.news-list__item {
    padding: 25px 30px;
    border-bottom: 1px solid #3B4043;
    /* display: flex;
       justify-content: space-between;
       align-items: center; */
}

.news-list__item:last-child {
    border-bottom: none;
}

.news-list__date {
    width: 100px;
    font-size: 0.9rem;
    color: #3B4043;
    flex-shrink: 0;
}

.news-list__content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-list__tags {
    display: flex;
    gap: 10px;
}

.news-list__tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border: 1px solid #3B4043;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 5px;
}
.news-tags {
    display: flex;
    gap: 10px;
}

.news-tags .tag {
    font-size: 0.75rem;
    padding: 3px 10px;
    border: 1px solid #3B4043;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 5px;
}

.news-list__title {
    font-size: 1rem;
    font-weight: normal;
}

.news-list__arrow {
    flex-shrink: 0;
    margin-left: 20px;
}
.news-list__meta-area{
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 1rem;
}
.news-list__title-area{
    margin-bottom: 1rem;
}
.news-list__title{
    text-decoration: underline;
    font-size: 1.125rem;
}
.news-list__arrow-area{
    text-align: right;
}
@media (max-width: 768px) {
    .news-list__arrow-area{
        display: none;
    }
}
/* ==================
   work detail
   ================= */
.work-detail {
    position: relative;
    display: flex;
    gap: 16px;
}

.work-detail .work-info {
    flex: 1;
    padding: 40px;
    border: 1px solid #3B4043;
    overflow-y: auto; /* 左側だけスクロール可能に */
    height: 100%;
    background-color: #fff;
    
}

.work-detail .work-image {
    flex: 1;
   
    max-width: 600px; /* 正方形に近い形を維持 */
    position: sticky;
    height: 500px;
    top: 0;
    /* border: 1px solid #3B4043; */
}

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

.work-detail .pagination-dots {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.work-detail .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #3B4043;
    cursor: pointer;
}

.work-detail .dot.active {
    background-color: #356598;
    border-color: #356598;
}

.work-detail .work-date {
    font-size: 1.125rem;
    margin-bottom: 15px;
    color: #777;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1.5rem;

}

.work-detail .work-title {
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 25px;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    color: #3B4043;
}

.work-detail .tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 3rem;
}

.work-detail .tag {
    font-size: 0.8rem;
    padding: 5px 15px;
    border: 1px solid #3B4043;
    border-radius: 50px;
}

.work-detail .work-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.work-detail .work-subtitle {
    font-size: 1rem;
    font-weight: normal;
    margin: 30px 0 15px;
    line-height: 1.5;
}

.work-detail .collapsible {
    margin-top: 30px;
}

.work-detail .collapsible-header {
    background-color: #356598;
    color: white;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.work-detail .collapsible-header .read-more {
    font-size: 0.8rem;
}

.work-detail .collapsible-content {
    padding: 15px;
    font-size: 0.9rem;
    border: 1px solid #E0E0E0;
    border-top: none;
}

.work-detail .work-divider {
    height: 1px;
    background-color: #707070;
    margin: 3rem 0 1rem;

}

.work-detail .staff-info {
    font-size: 0.8rem;
    line-height: 1.8;
    margin-top: 40px;
    color: #777;
}

.work-detail .staff-item {
    margin-bottom: 10px;
}

.work-detail .all-works {
    text-align: right;
    margin-top: 40px;
}

.work-detail .all-works a {
    display: inline-flex;
    align-items: center;
    color: #356598;
    font-size: 0.9rem;
}

.work-detail .arrow-icon {
    width: 30px;
    height: 1px;
    background-color: #356598;
    margin-left: 10px;
    position: relative;
}

.work-detail .arrow-icon::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 1px solid #356598;
    border-right: 1px solid #356598;
    transform: rotate(45deg);
} 
.work-description .wp-block-image{
    margin-bottom: 1.5rem;
} 

@media (max-width: 768px) {
.work-detail{
    flex-direction: column;
}
.work-detail .work-image{
    display: none;
}
.work-detail .work-info{
    padding-left: 3%;
    padding-right: 3%;
}
}

/* =====================
   Info Detail
   ===================== */
 /* News Detail Styles */
        .news-detail-container {
            max-width: 700px;
            margin: 0 auto;
            background-color: #FFFFFF;
            border: 1px solid #707070;
            padding: 30px;
            margin-bottom: 50px;
        }

.news-detail-container .news-header {
    margin-bottom: 20px;
}

.news-detail-container .news-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}

.news-detail-container .news-tag {
    display: inline-block;
    font-size: 0.8rem;
    padding: 3px 15px;
    border: 1px solid #3B4043;
    border-radius: 50px;
    margin-bottom: 15px;
}

.news-detail-container .news-title {
    font-size: 1.2rem;
    font-weight: normal;
    margin-bottom: 25px;
    line-height: 1.5;
}

.news-detail-container .news-image {
    width: 100%;
    margin-bottom: 25px;
    border: 1px solid #E0E0E0;
}

.news-detail-container .news-content {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-detail-container .news-content p {
    margin-bottom: 1rem;
}
.news-detail-container .news-content figure{
    margin-bottom: 1rem;
}


.news-detail-container .news-button {
    text-align: center;
    margin: 30px 0;
}

.news-detail-container .news-button a {
    display: inline-block;
    border: 1px solid #3B4043;
    padding: 8px 25px;
    font-size: 0.9rem;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.news-detail-container .news-button a:hover {
    background-color: #F0F0F0;
}


.taxonomy__page-title{
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
}


 .left-timeline {
    position: relative;
    /* width: 60%; */
    padding: 0 20px;
    
  }
  
  /* 縦線（タイムラインの基準線） */
  .vertical-line {
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #356598;
  }
  
  /* テキスト行（pタグ） */
  .text-lines p {
    font-size: 1.125rem;
    margin:  0;
    padding-left: 10px; /* 縦線と丸分の余白 */
    position: relative;
    line-height: 2;
  }
  
  /* spanタグ（データポイントを示す部分） */
  .text-lines p span[data-point] {
    /* background: #eee; */
    padding: 2px 4px;
    border-radius: 0px;
    transition: background-color 0.3s;
  }
  
  /* activeクラス付与時のスタイル（ラベル風に強調） */
  .text-lines p span[data-point].active {
    background: #356598;
    color: #fff;
  }
  
  
  /* 移動する丸 */
  .circle {
    position: absolute;
    left: -1px; /* 縦線（left:40px）の中央に合わせる（丸の幅16px） */
    width: 12px;
    height: 12px;
    background: #356598;
    border-radius: 50%;
    /* 初期位置はJSで設定 */
  }
  
  /* ===== 右側：写真スライダー ===== */
  .right-photos {
    width: 40%;
    overflow: hidden;
    position: relative;
  }
  .photo-slider {
    display: flex;
    transition: transform 0.5s ease;
    /* 画像が3枚の場合。必要に応じて枚数に合わせて調整 */
    width: 300%;
    height: 100%;
  }
  .photo-slider{
    height: 100%;
  }
  .photo-slider__item{
    width: 100%;;
  }
.photo-slider img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}
