.philosophy__section{
    padding-top: 80px;
}


.philosophy .philosophy__head{
    border-top: 1px solid #3165A7;
    border-bottom: 1px solid #3165A7;
    text-align: center;
    font-size: 4.2rem;
    font-family: 'Shippori Mincho', serif;
    padding: 0.3em 0;
}

@media screen and (max-width: 767px)
{
    .philosophy .philosophy__head{
        font-size: 2.5rem;
    }
}
.philosophy .philosophy__head span{
    color: #1567AC;
}

.philosophy__wrap{
    /*background-color: #F2F3F4;*/
    padding: 4rem;
    margin: 2rem 0;
}

@media screen and (max-width: 767px){
    .philosophy__wrap{
        padding: 2rem 1rem;
    }
}

.philosophy__items-head{
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.5;
    margin: 3rem 0;
    color: #1567AC;
    
}

.philosophy__items-head p{
    display: inline-block;
    padding: 0 40px;
    position: relative;
    
    

}

.philosophy__items-head p:before,
.philosophy__items-head p:after{
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 2px;
    background-color: #1567AC;
}

.philosophy__items-head p:before{
    left: -16px;
}

.philosophy__items-head p:after{
    right: -16px;
}



.philosophy__items{
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 8rem;
}

@media screen and (max-width: 767px){
    .philosophy__items{
        gap: 1rem;
    }
}

.philosophy__item{
    width: calc(20% - 1.6rem);
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #F2F3F4;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1);
}

@media screen and (max-width: 1280px){
    .philosophy__item{
        width: calc(25% - 1.5rem);
    }
}

@media screen and (max-width: 1024px){
    .philosophy__item{
        width: calc(33.333% - 1.34rem);
    }
}

@media screen and (max-width: 767px){
    .philosophy__item{
        width: calc(50% - 1rem);
    }
}


.philosophy__item-img{
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.philosophy__item-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy__item-content{
    padding: 0.5rem 1.5rem;
    text-align: center;
    font-family: 'Noto Sans JP', serif;
    font-weight: bold;
    line-height: 1.8;
    color: #262626;
    font-size: 1.3rem;
}

@media screen and (max-width: 1280px){
    .philosophy__item-content{
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }
}

@media screen and (max-width: 480px){
    .philosophy__item-content{
        font-size: 1rem;
    }
}



/* Philosophy Modal Styles - BEM */
.philosophy__item.modal-trigger {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.philosophy__item.modal-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.philosophy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.philosophy-modal--show {
    display: flex;
    opacity: 1;
}

.philosophy-modal__content {
    background: white;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    position: relative;
}

.philosophy-modal--show .philosophy-modal__content {
    transform: scale(1);
}

.philosophy-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 3rem;
    color: #666;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    line-height: 1;
}

.philosophy-modal__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: scale(1.1);
}

.philosophy-modal__body {
    padding: 2rem;
    text-align: center;
    overflow-y: auto;
    max-height: 80vh;
}

.philosophy-modal__img {
    margin-bottom: 1.5rem;
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.philosophy-modal__img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.philosophy-modal__title {
    margin: 0 0 1.5rem 0;
    font-size: 2.5rem !important;
    font-weight: bold;
    color: #3165A7;
    font-family: 'Noto Sans JP', serif;
    line-height: 1.4;
}

.philosophy-modal__text {
    text-align: left;
}

.philosophy-modal__description {
    font-size: 1.5rem;
    line-height: 1.8;
    margin: 0;
    color: #333;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .philosophy-modal__content {
        width: 95%;
        max-height: 90vh;
    }
    
    .philosophy-modal__close {
        top: 10px;
        right: 15px;
        font-size: 2.5rem;
        width: 45px;
        height: 45px;
    }
    
    .philosophy-modal__body {
        padding: 1.5rem;
    }
    
    .philosophy-modal__title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }

    
    .philosophy-modal__description {
        font-size: 1.2rem;
        line-height: 1.7;
    }
}


