/* ================================================

history プライバシーポリシーページ

================================================ */


.history {
    background-color: var(--color-bg-l-pink);
}

.history__desc {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.history__box {
    background-color: #fff;
    --min-size: 20;
    --max-size: 64;
    padding: var(--space-4xl) var(--clamp-size) var(--space-5xl);
    /* border-radius: 3.44cqi; */
    border-radius: var(--border-radius-lg);
    width: 100%;
}

.history__head {
    display: flex;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 2em;
}

.history__title {
    background-color: #222222;
    color: #fff;
    padding: 0.5em 1.5em 0.7em;
    width: clamp(300px, 29vw, 380px);
    border-radius: 999px;
    text-align: center;
}

.history__title:nth-of-type(2) {
    background-color: var(--color-main);
}

/* 年表 */
.timeline {
    position: relative;
}

/* 年表線 */
.timeline::after {
    content: "";
    position: absolute;
    top: 27px;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: calc(100% - 38px);
    background-color: #222222;
    translate: -50% 0;
}

/* 最後の年表線を短く */
.timeline__block:last-of-type::before {
    content: "";
    background-color: #fff;
    width: 2px;
    height: calc(100% - 38px);
    position: absolute;
    top: 0;
    left: 50%;
    translate: -50% 27px;
    z-index: 2;
}

.timeline__block {
    display: flex;
    gap: clamp(60px, 10.3vw, 114px);
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline__block::after {
    position: absolute;
    content: "";
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #222222;
    top: 16px;
    right: 50%;
    translate: 50% 0;
    z-index: 3;
}

/* 中央に向かう点線 */
.timeline__column:has(.year)::before {
    position: absolute;
    content: "";
    width: clamp(30px, 5.15vw, 57px);
    height: 4px;
    top: 24px;
    left: calc(50% - calc(clamp(30px, 5.25vw, 57px) /2));
    background-image: repeating-radial-gradient(circle, #222222 0px, #222222 2px, transparent 2px, transparent 8px);
    background-size: 8px 4px;
    /* 横8pxごとに4pxのドット */
    background-repeat: repeat-x;
    background-position: bottom;
    z-index: 0;
    translate: -50% -50%;
}

.timeline__block-sakura::after {
    background: var(--color-main);
}

/* 中央に向かう点線 */
.timeline__block-sakura .timeline__column:has(.year)::before {
    background-image: repeating-radial-gradient(circle, var(--color-main) 0px, var(--color-main) 2px, transparent 2px, transparent 8px);
    left: calc(50% + calc(clamp(30px, 5.25vw, 57px) /2));
}

.timeline__column {
    flex: 1;
}

.timeline__column:first-child {
    text-align: right;
}

/* 年代 */
.year {
    font-size: 14px;
    font-weight: var(--fontWeight-medium);
    line-height: 1;
    position: relative;
}

/* 数字 */
.year span {
    font-size: 38px;
    font-family: var(--fontFamily-en);
    display: inline-block;
    margin-right: 3px;
}

@media (width < 768px) {

    /* タイトル */
    .history__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 1em;
    }

    .history__title {
        width: 100%;
    }

    /* 年表を縦並びに */
    .timeline__block {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* 年表軸線 */
    .timeline::after {
        top: 14px;
        left: 0.5em;
        height: calc(100% - 78px);
    }

    /* 最後の年表線を短く(白で潰す） */
    .timeline__block:last-of-type::before {
        height: calc(110%);
        left: 0.5em;
        z-index: 100;
        translate: -50% 14px;
        z-index: 1;
    }

    /* 年表点 */
    .timeline__block::after {
        width: 10px;
        height: 10px;
        top: 9px;
        left: calc(0.25em - 6px);
    }


    /* 点線 */
    .timeline__column:has(.year)::before {
        left: 1.5em;
        top: 13px;
        background-image: repeating-radial-gradient(circle, #222222 0px, #222222 1px, transparent 1px, transparent 4px);
        background-size: 4px 2px;
    }

    /* 中央に向かう点線(さくらホーム) */
    .timeline__block-sakura .timeline__column:has(.year)::before {
        background-image: repeating-radial-gradient(circle, var(--color-main) 0px, var(--color-main) 1px, transparent 1px, transparent 4px);
        left: 1.5em;
    }

    .timeline__column {
        width: calc(100% - 3.5em);
        margin-left: auto;
    }

    /* 年代 */
    .year {
        font-size: 10px;
        text-align: left;
    }

    /* 数字 */
    .year span {
        font-size: 27px;
    }

    .timeline__column:first-child {
        text-align: left;
    }
}

/* 上向の吹き出しデザイン */
.timeline__column .timeline__caption {
    position: relative;
    background-color: #ffaac133;
    padding: 1em 1.5em;
    border-radius: var(--border-radius-md);
    display: inline-block;
    max-width: 400px;
    text-align: left;
    margin: 0;
    line-height: 1.8;
    margin-top: 1.5em;
    --min-size: 14;
    --max-size: 16;
    font-size: var(--clamp-size);
}

.timeline__column .timeline__caption::after {
    content: "";
    position: absolute;
    top: -20px;
    left: 4em;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 20px solid #ffaac133;
    translate: -50% 0;
}

.timeline__text {
    line-height: 1.6;
    margin-top: 0.5em;
}

/* 個別指定 */
/* 上向の吹き出しデザイン */
/* .timeline__block-2004 .timeline__column .timeline__caption {
    position: relative;
} */

.timeline img {
    margin-top: 1em;
}

/* 個別指定 */
.timeline__block-1994 {
    margin-top: -324px;
}

.timeline__block-2013 {
    margin-top: -160px;
}

@media (width < 768px) {
    .timeline__block-1994 {
        margin-top: 0px;
    }

    .timeline__block-2013 {
        margin-top: 0px;
    }

}


.timeline__column:nth-child(2) .year {
    color: var(--color-main);
}




/* 沿革 */
.history__wrap {
    display: flex;
    flex-direction: column;
    gap: 1em;
    padding-top: 1em;
    border-top: 1px solid var(--color-border-brown);
}

/* 詳細リストを囲むdiv */
.history__detail {
    display: flex;
    gap: 0.5em 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid var(--color-border-brown);
    line-height: 1.8;
}

.history__detail:last-child {
    border-bottom: none;
}


.history__type .history__detail {
    border-bottom: none;
    padding-bottom: 0em;
}

.history__type {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    border-bottom: 1px solid var(--color-border-brown);
    padding-bottom: 1em;
}

/* dt */
.history__label {
    width: 8em;
    letter-spacing: 0;
    margin-left: 1.5em;
    position: relative;
    font-weight: var(--fontWeight-medium);
}

.history__label .number {
    position: absolute;
    left: -1.5em;
    top: 0;
}

/* dd */
.history__data {
    flex: 1;
    line-height: 1.8;
}

.number {
    width: 1.5em;
    display: inline-block;
}

/* リンク */
.history__data a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    text-decoration-color: currentColor;
    text-underline-position: under;
}

.history__data p:nth-of-type(2) {
    margin-top: 1em;
}

.history__data ul li::before {
    content: "・";
}

@media (max-width: 767px) {
    .history__detail {
        display: flex;
        flex-direction: column;
    }

    /* dt */
    .history__label {
        width: 100%;
    }
}