@charset "UTF-8";

/* ==================================================
   Sub Page Common (Hero & Breadcrumb)
================================================== */
.page-hero {
    position: relative;
    height: 300px;
    padding-top: 90px;
}

.page-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
}

.page-hero__inner {
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.page-title {
    font-size: 36px;
    color: var(--text-main);
    letter-spacing: 0.1em;
}

/* 共通グレー背景 */
.bg-light {
    background-color: #f5f5f5;
}

/* ==================================================
   History & Philosophy Page: タブナビゲーション
================================================== */
.page-tabs {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--green);
    margin: 0;
}

.tab-item {
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: var(--text-main);
    text-align: center;
    position: relative;
    width: 50%;
    max-width: 300px;
    transition: color 0.3s;
}

.tab-item.is-active {
    color: var(--green);
}

/* アクティブなタブの下線 */
.tab-item.is-active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--green);
}

.tab-item:hover {
    color: var(--green);
}

/* コンテンツの切り替えアニメーション */
.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

/* ==================================================
   History: 沿革
================================================== */
.history-row {
    display: flex;
    padding: 40px;
}

.history-row.bg-light {
    background-color: #f9f9f9;
}

.history-row__decade {
    width: 25%;
    font-size: 40px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
    color: var(--blue);
    letter-spacing: 0.1em;
}

.history-row__events {
    width: 75%;
}

.event-item {
    display: flex;
    margin-bottom: 20px;
}

.event-item:last-child {
    margin-bottom: 0;
}

.event-item dt {
    width: 250px;
    padding-right: 40px;
    font-weight: bold;
    flex-shrink: 0;
    text-align: right;
}

.event-item dd {
    flex-grow: 1;
}

/* ==================================================
   Philosophy: 理念
================================================== */
/* リード文：他ページに合わせ16pxに変更 */
.philosophy-intro {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 80px;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.philosophy-sub {
    margin-bottom: 8px;
    padding: 8px 0;
    text-align: center;
    font-weight: bold;
    color: #fff;
    background-color: var(--blue);
}
.philosophy-date {
    margin-bottom: 40px;
    text-align: right;
    font-size: 0.9rem;
}

.philosophy-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 50px;
}

/* デフォルトでは背景色なし（透明/白） */
.philosophy-card {
    padding: 50px 40px;
    text-align: center;
}

.philosophy-card__title {
    color: var(--green);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

/* カード内のテキスト：他ページに合わせ16pxに変更し、太字を維持 */
.philosophy-card__text {
    font-size: 16px;
    font-weight: bold;
    line-height: 2;
    color: var(--text-main);
}

/* 引用文 */
.philosophy-quote {
    text-align: center;
    margin-top: 60px;
}

.philosophy-quote p {
    font-size: 18px;
    font-weight: bold;
    color: var(--green);
    margin-bottom: 15px;
}

.philosophy-quote .author {
    display: block;
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

/* ==================================================
   Creed: 社訓
================================================== */
.creed-area {
    margin-bottom: 80px;
    text-align: center;
}

.creed-img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto 40px;
}

/* 社訓テキスト：基本サイズの16px */
.creed-text {
    font-size: 16px;
    font-weight: normal;
    line-height: 2;
    color: var(--text-main);
}
/* ==================================================
   769 〜 1024px
================================================== */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .history-row {
        padding: 28px 20px;
    }
    .history-row__decade {
        width: 16%;
        font-size: 28px;
    }
    .history-row__events {
        width: 84%;
    }
    .event-item dt {
        width: 220px;
        padding-right: 24px;
    }
}
/* ==================================================
   スマホ用レスポンシブ設定
================================================== */
@media screen and (max-width: 768px) {
    .page-hero {
        height: 250px;
        padding-top: 70px;
    }
    
    .page-title {
        font-size: 28px;
    }

    /* タブ */
    .page-tabs {
        margin: 20px 0;
    }
    
    .tab-item {
        font-size: 15px;
        padding: 10px 0;
        width: 50%;
    }

    /* 沿革 */
    .history-row {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .history-row__decade {
        width: 100%;
        font-size: 32px;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .history-row__events {
        width: 100%;
    }
    
    .event-item {
        flex-direction: column;
        margin-bottom: 25px;
    }
    
    .event-item dt {
        width: 100%;
        margin-bottom: 5px;
        color: var(--blue);
        text-align: left;
    }
    
    /* 理念 */
    .philosophy-intro {
        font-size: 14px;
    }

    .philosophy-card {
        padding: 30px 20px;
    }

    .philosophy-card__title {
        font-size: 16px;
    }
    
    .philosophy-card__text {
        font-size: 14px;
        text-align: left; /* SP時は読みやすく左寄せ */
    }
    
    .philosophy-quote p {
        font-size: 15px;
    }

    /* 社訓 */
    .creed-text {
        font-size: 14px;
    }
}