@charset "utf-8";

.bread-dust {
    font-size: 12px;
    margin-bottom: 40px;
}
.bread-dust span a {
    color: var(--corporate-brown);
}

.term_list {
    display: flex;
    gap: 24px;
    padding: 24px 0;
}

/* FAQ LIST SECTION */
.faq-list-section {
    /* background: var(--clinical-white); */
    margin: 0 auto;
    padding: 60px 0;
}

.faq-list-section .faq-list {
    margin: 0 auto;
}

.faq-list-section .faq-item {
    border-bottom: 1px solid var(--skin-beige);
    padding: 20px 0;
}

.faq-list-section .faq-item:first-child {
    border-top: 1px solid var(--skin-beige);
}

.faq-list-section .faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    text-align: left;
    font-size: 0.95rem;
    color: var(--corporate-brown);
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-list-section .faq-question:hover .faq-question-text {
    color: var(--skin-beige);
}

.faq-list-section .faq-question-text {
    flex: 1;
    display: block;
    transition: color 0.3s ease;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.faq-list-section .faq-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-list-section .faq-open-btn,
.faq-list-section .faq-close-btn {
    background: transparent;
    color: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.faq-list-section .faq-open-btn::before,
.faq-list-section .faq-close-btn::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--skin-beige);
    border-bottom: 2px solid var(--skin-beige);
    transform: rotate(45deg);
    transition: all 0.3s ease;
}

.faq-list-section .faq-open-btn:hover::before,
.faq-list-section .faq-close-btn:hover::before {
    border-right-color: var(--corporate-brown);
    border-bottom-color: var(--corporate-brown);
}

.faq-list-section .faq-close-btn {
    display: none;
}

.faq-list-section .faq-item.active .faq-open-btn {
    display: none;
}

.faq-list-section .faq-item.active .faq-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-list-section .faq-item.active .faq-close-btn::before {
    transform: rotate(-135deg);
}

.faq-list-section .faq-answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, max-height 0.3s ease;
    font-size: 0.95rem;
    color: var(--font-color);
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.faq-list-section .faq-item.active .faq-answer {
    max-height: 1000px;
    opacity: 1;
    margin-top: 15px;
}

.faq-list-section .faq-item.active .faq-question-text {
    color: var(--skin-beige);
}

.faq-list-section .faq-item.active .faq-question {
    color: var(--skin-beige);
}

/* NEWS HERO SECTION */
/* newsページ専用: --clinical-whiteを解除（透明に） */
body.post-type-archive-news,
body.single-news,
body.taxonomy-news-cat,
body.page-news {
    --clinical-white: transparent;
}

.news {
    margin: 0 auto;
}

/* Newsページのコンテナを中央揃えに */
body.post-type-archive-news .news .container,
body.single-news .news .container,
body.taxonomy-news-cat .news .container,
body.page-news .news .container,
body.post-type-archive-news .news-detail,
body.single-news .news-detail {
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 1280px !important; /* paddingを削除したため、直接1280pxに設定 */
}

@media screen and (min-width: 1025px) {
    body.post-type-archive-news .news .container,
    body.single-news .news .container,
    body.taxonomy-news-cat .news .container,
    body.page-news .news .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 1280px !important; /* paddingを削除したため、直接1280pxに設定 */
        box-sizing: border-box;
    }
}

.news-hero {
    padding: 80px 0 0 0;
    margin-bottom: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Newsページのsection-headerをCareers/FAQと同じ位置に */
body.post-type-archive-news .lower-page-hero .section-header,
body.single-news .lower-page-hero .section-header,
body.taxonomy-news-cat .lower-page-hero .section-header,
body.page-news .lower-page-hero .section-header {
    text-align: left !important;
    width: 100%; /* 右端まで伸ばす */
    max-width: 1440px; /* コンテンツ幅1280px + padding左右80px×2 = 1440px（メディアクエリ内で上書き） */
    margin-bottom: 0;
}

body.post-type-archive-news .lower-page-hero .section-header .section-title,
body.single-news .lower-page-hero .section-header .section-title,
body.taxonomy-news-cat .lower-page-hero .section-header .section-title {
    text-align: left !important;
}

body.post-type-archive-news .lower-page-hero .section-header .section-subtitle,
body.single-news .lower-page-hero .section-header .section-subtitle,
body.taxonomy-news-cat .lower-page-hero .section-header .section-subtitle {
    text-align: left !important;
}

.section-title-large {
    font-size: 72px;
    font-weight: 300;
    letter-spacing: 8px;
    margin: 0 0 20px 0;
    color: var(--clinical-white);
    -webkit-text-stroke: 1px #ddd;
    text-stroke: 1px #ddd;
    font-family: 'Shippori Mincho', serif;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.news-hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    min-width: 0;
    box-sizing: border-box;
}

.news-subtitle {
    font-size: 14px;
    color: var(--font-color);
    letter-spacing: 2px;
    margin: 0;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.news-divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background-color: var(--font-color);
}

.news-hero-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #ddd;
    margin: 0;
}

.term-list {
    color: var(--font-color);
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.term-list.positive {
    color: var(--black);
    font-weight: 900;
}

.news-content h2{
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.news-content p {
    font-size: 1rem;
    color: var(--font-color);
    line-height: 1.8;
    margin-bottom: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.nav-links {
    text-align: center;
}

.page-numbers {
    padding: 8px 12px;
    margin: 0 4px;
}

.news-content {
    margin: 40px 0 80px 0;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

.news-sub-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 30px;
    line-height: 2;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.c-label {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--skin-beige);
    margin: 16px 0;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-top: 20px;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.news-detail {
    max-width: 1440px; /* コンテンツ幅1280px + padding左右80px×2 = 1440px（メディアクエリ内で上書き） */
    margin: 0 auto;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* 1025px以上（PC）：コンテンツ幅を1280pxに */
@media screen and (min-width: 1025px) {
    body.post-type-archive-news .lower-page-hero .section-header,
    body.single-news .lower-page-hero .section-header,
    body.taxonomy-news-cat .lower-page-hero .section-header,
    body.page-news .lower-page-hero .section-header {
        max-width: 1440px !important; /* コンテンツ幅1280px + padding左右80px×2 = 1440px */
    }
    
    /* Newsページのコンテナの幅を1280pxに（padding削除済み） */
    body.post-type-archive-news .news .container,
    body.single-news .news .container,
    body.taxonomy-news-cat .news .container,
    body.page-news .news .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 1280px !important; /* paddingを削除したため、直接1280pxに設定 */
        box-sizing: border-box;
    }
    
    .news-detail {
        max-width: 1440px !important; /* コンテンツ幅1280px + padding左右80px×2 = 1440px */
    }
}

/* PC時のnews-title.text-mainを32pxに */
body.single-news .news-detail .news-title.text-main {
    font-size: 32px !important;
    line-height: 1.4;
}

/* news-detail section-container-wrapperのmargin調整 */
/* SP：左右margin 20px */
body.single-news .news-detail.section-container-wrapper {
    margin-left: 20px;
    margin-right: 20px;
}

/* タブレット：左右margin 40px */
@media screen and (min-width: 769px) and (max-width: 1024px) {
    body.single-news .news-detail.section-container-wrapper {
        margin-left: 40px;
        margin-right: 40px;
    }
}

/* PC：左右margin 80px */
@media screen and (min-width: 1025px) {
    body.single-news .news-detail.section-container-wrapper {
        margin-left: 80px;
        margin-right: 80px;
    }
}

/* SP時のnews-detail section-container-wrapperの調整 */
@media screen and (max-width: 768px) {
    body.single-news .news-detail.section-container-wrapper {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 0 !important;
        box-sizing: border-box;
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
    
    /* SP時のフォントサイズ調整 */
    body.single-news .news-detail .news-title {
        font-size: 1.2rem !important;
    }
    
    /* SP時のnews-title.text-mainを28pxに */
    body.single-news .news-detail .news-title.text-main {
        font-size: 28px !important;
    }
    
    body.single-news .news-detail .news-sub-title {
        font-size: 1.1rem !important;
    }
    
    body.single-news .news-detail .news-content {
        font-size: 0.9rem !important;
    }
    
    body.single-news .news-detail .news-content h2 {
        font-size: 1.2rem !important;
    }
    
    body.single-news .news-detail .news-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    /* SP時のその他の要素の調整 */
    body.single-news .news-detail .c-label {
        font-size: 0.7rem !important;
        padding: 3px 10px !important;
        margin-top: 16px !important;
        margin-bottom: 12px !important;
    }
    
    body.single-news .news-detail .news-title {
        margin-bottom: 12px !important;
        line-height: 1.4 !important;
    }
    
    body.single-news .news-detail .news-sub-title {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
        line-height: 1.6 !important;
    }
    
    body.single-news .news-detail .news-content {
        margin-top: 30px !important;
        margin-bottom: 60px !important;
    }
    
    body.single-news .news-detail .news-content img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    body.single-news .news-detail .news-content ul,
    body.single-news .news-detail .news-content ol {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
    
    body.single-news .news-detail .news-content li {
        margin-bottom: 8px !important;
    }
}
