@charset "utf-8";

/* ========================
   レイアウト共通スタイル
======================== */

/* 基本コンテナ（フロントページ用） */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding-inline: var(--space-sm); */
}

/* ========================
   下層ページ共通レイアウト
======================== */

/* 下層ページのコンテンツ幅制限 */
.container--subpage {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    /* パディングは削除 */
}

/* 下層ページのセクションコンテンツ余白 */
.section__content--subpage {
    padding: 0 var(--space-lg);
}

/* タブレット: 768px〜1439px */
@media screen and (min-width: 768px) {
    .container--subpage {
        max-width: 1000px;
    }
}

/* PC: 1440px以上 */
@media screen and (min-width: 1440px) {
    .container--subpage {
        max-width: 1200px;
        /* パディング削除 */
    }

    .section__content--subpage {
        padding: 0;
        /* PCのみパディングなし */
    }
}

/* ========================
   下層ページヒーローセクション共通
======================== */
.hero--subpage {
    background: linear-gradient(90deg, #00984F 50%, #B2E0C4 100%);
    min-height: 120px;
    height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero--subpage .hero__container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
}

.hero--subpage .hero__content {
    padding-left: var(--space-lg);
    padding-right: calc(var(--space-xl) * 1.5);
}

.hero--subpage .hero__title {
    color: #fff;
    font-size: var(--font-2xl);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero--subpage .hero__title::before {
    content: "";
    width: var(--font-lg);
    margin-right: var(--space-md);
    border-top: 2px solid #fff;
}

/* タブレット: 768px〜1439px */
@media screen and (min-width: 768px) {
    .hero--subpage {
        height: 140px;
    }

    .hero--subpage .hero__container {
        max-width: 1000px;
    }

    .hero--subpage .hero__content {
        padding: 0 var(--space-lg);
    }

    .hero--subpage .hero__title {
        font-size: var(--font-2xl);
    }

    .hero--subpage .hero__title::before {
        width: var(--font-xl);
    }
}

/* PC: 1440px以上 */
@media screen and (min-width: 1440px) {
    .hero--subpage {
        height: 200px;
    }

    .hero--subpage .hero__container {
        max-width: 1200px;
    }

    .hero--subpage .hero__content {
        padding: 0;
    }
}

/* ========================
   サブページタイトル共通
======================== */
.subpage__title {
    position: relative;
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
    padding-bottom: var(--space-sm);
    font-size: var(--font-xl);
    font-weight: 700;
    color: var(--text-color);
    text-align: center;
    border-bottom: 2px solid var(--primary-green);
    /* テキストサイズに応じたボーダー長さを維持 */
    display: inline-block;
    /* 中央配置のための設定 */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: calc(var(--space-xl) * 1.2);
}

.subpage__title::before,
.subpage__title::after {
    position: absolute;
    top: 100%;
    left: 50%;
    content: "";
    height: 0;
    width: 0;
}

.subpage__title::before {
    border: 12px solid;
    border-color: transparent;
    border-top-color: var(--primary-green);
    margin-left: -12px;
}

.subpage__title::after {
    border: 9px solid;
    border-color: transparent;
    border-top-color: white;
    margin-left: -9px;
    transform: translateX(-50%);
    margin-left: 0;
}

/* ========================
   パンくずリスト
======================== */
.breadcrumb-area {
    padding: var(--space-lg);
}

.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    font-size: var(--font-sm);
}

.breadcrumb li {
    display: flex;
    align-items: center;
    color: var(--text-light);
    flex-shrink: 0;
}

.breadcrumb li:last-child {
    flex-shrink: 1;
    min-width: 0;
    max-width: 90%;
    /* flexをblockに変更してtext-overflowを有効化 */
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.5;
    /* flex要素のalign-items: centerの代替 */
}

.breadcrumb li:not(:last-child)::after {
    content: '>';
    margin-left: var(--space-sm);
    margin-right: var(--space-sm);
    color: var(--text-light);
    flex-shrink: 0;
}

.breadcrumb a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.breadcrumb a:hover {
    color: var(--text-dark);
}

/* Font Awesomeアイコン */
.breadcrumb li:first-child::before {
    margin-right: 0.4rem;
    color: var(--primary-green);
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: var(--font-xs);
    content: '\f015';
}

/* タブレット: 768px以上 */
@media screen and (min-width: 768px) {
    .breadcrumb-area {
        padding: var(--space-lg);
    }

    .breadcrumb {
        max-width: 1000px;
        white-space: normal;
        /* タブレット以上では自然な折り返し */
        overflow: visible;
    }

    .breadcrumb li:last-child {
        flex-shrink: 0;
        /* タブレット以上では省略しない */
        overflow: visible;
        text-overflow: unset;
        white-space: normal;
    }
}

/* PC: 1440px以上 */
@media screen and (min-width: 1440px) {
    .breadcrumb-area {
        padding-left: 0;
        padding-right: 0;
    }

    .breadcrumb {
        max-width: 1200px;
    }
}