.p-100years {
    position: relative;
    float:right;
}

.p-100years-message-box01 {
    position: absolute;
    left: -84px;
}
@media (max-width: 960px) {
    .p-100years-message-box01 {
        position: relative;
        left: 0;
    }
    .p-100years-message-box01 h1 {
        width: 100% !important;
    }
}
@media (max-width: 960px) {
    .p-100years-message-box01 h1 img {
        display: none;
    }
}
.p-100years-message-box01 h1 span {
    display: none;
}
@media (max-width: 960px) {
    .p-100years-message-box01 h1 span {
        font-size: 32px;
        display: block;
        text-align: center;
        padding-bottom: 16px;
    }
}


.p-100years-message-box02 {
    max-width: 880px;
}
.p-100years-message-box02-image img {
    width: 100%;
    padding-top: 32px;
}
.p-100years-message-box02 h2 {
    width: 100%;
    display: inline-block;
    font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "メイリオ", Meiryo, serif;
    padding-top: 32px;
}
.p-100years-message-box02 p {
    font-size: 16px !important;
    line-height: 1.8 !important;

}
.p-100years-message-box02-images {
    width: 100%;
    margin-top: 32px;
    display: flex;
    justify-content: space-between; /* 左端と右端 */
    align-items: center;
}
.p-100years-message-box02-images img {
    width: 48%;
}
.p-100years-message-box02 hr {
    margin: 32px 0 0 !important;
    border-bottom: 1px dotted #000;
}


.p-100years-message-space {
    height: 100px;
}
@media (max-width: 960px) {
    .p-100years-message-space {
        height: 0;
    }
}





.p-100years-message h2 {
    padding: 0;
}
.p-100years-message-title {
}
.p-100years-message-text1 {
    margin: 0 !important;
    width: calc(100% - 120px) !important;
    float: right;
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
}
@media (max-width: 960px) {
    .p-100years-message-text1 {
        width: 100% !important;
        margin-top: 0px !important;
    }
}
.p-100years-message-images img {
    float: right;
    width: 87%;
    margin-top: 32px;
}
@media (max-width: 960px) {
    .p-100years-message-images img  {
        width: 100%;
        margin-top: 32px !important;
    }
}



.p-100years-message-sign {
    clear: both;
}
.p-100years-message-sign-photo {
    margin: 32px 0 0 120px;
    clear: both;
}
@media (max-width: 960px) {
    .p-100years-message-sign-photo {
        margin: 0 auto !important;
        text-align: center;
        display: block;
        padding-top: 32px;
    }
}
.p-100years-message-sign-text {
    margin: 128px 64px 0 0 !important;
    float: right;
    font-size: 24px !important;
    line-height: 2 !important;
    font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "メイリオ", Meiryo, serif !important;
}
@media (max-width: 960px) {
    .p-100years-message-sign-text {
        margin: 0 !important;
        font-size: 16px !important;
        float: none;
        text-align: center;
        padding-top: 32px !important;
    }
}
.p-100years-message-sign span {
    float: right;
    font-size: 48px !important;
}
@media (max-width: 960px) {
    .p-100years-message-sign span {
        font-size: 16px !important;
        text-align: center;
        float: none;
    }
}




.p-100years-chronicle {}
.p-100years-chronicle h2 {
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
    text-align: left;
    font-size: 28px !important;
    clear: both;
}
.p-100years-chronicle-pickup {
    width: 330px;
    float: left;
}
@media (max-width: 960px) {
    .p-100years-chronicle-pickup {
        display: none;
    }
}
.p-100years-chronicle-pickup-text1 {
    margin: 128px 0 0 !important;
    font-size: 48px !important;
    font-family: "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", "メイリオ", Meiryo, serif !important;
}
.p-100years-chronicle-pickup-text1 span {
    font-size: 24px !important;
}
.p-100years-chronicle-pickup-text2 {
    margin: 0 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
    line-height: 1.4 !important;
}
.p-100years-chronicle-arrow {
    float: left;
}
@media (max-width: 960px) {
    .p-100years-chronicle-arrow {
        display: none;
    }
}
.p-100years-chronicle-detail {
    width: 560px !important;
    float: right;
    color: white !important;
    margin-top: 0 !important;
    padding-bottom: 32px;
}
@media (max-width: 960px) {
    .p-100years-chronicle-detail {
        width: 100% !important;
    }
}
.p-100years-chronicle-detail dt {
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
    background-color: white;
    color: black;
    font-weight: bold;
    padding: 4px 8px;
    width: 74px;
    text-align: center;
    font-size: 16px !important;
    margin-top: 12px;
}
.p-100years-chronicle-detail dd {
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
    font-size: 16px !important;
    padding: 4px 8px;
    margin-top: 12px;
    width: 84%;
    margin-left: 100px;
}
.p-100years-chronicle-100 {
    text-align: center !important;
    font-size: 42px !important;
    font-family: 'Noto Sans Japanese', 'メイリオ', 'Meiryo', verdana, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', Sans-Serif !important;
    border: 1px solid;
    padding: 24px 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    clear: both;
}
@media (max-width: 960px) {
    .p-100years-chronicle-100 {
        font-size: 32px !important;
    }
}

.p-100years-photo {
    margin: 64px 0 0 ;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 64px;
}
.p-100years-photo img {
    margin-top: 24px;
    width: 32%;
}
.p-100years-photo:after {
    content: "";
    display: block;
    width: 32%;  /* .boxに指定したwidthと同じ幅を指定する */
}



/* アニメーション */

.box-opacity {
    opacity: 0;
}

.fadeUp {
    animation-name:fadeUpAnime;
    animation-duration:0.5s;
    animation-fill-mode:forwards;
    opacity: 0;
}
@keyframes fadeUpAnime{
    from {
        opacity: 0;
        transform: translateY(100px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* アニメーションスタートの遅延時間を決めるCSS*/

.delay-time02{
    animation-delay: 0.2s;
}

.delay-time04{
    animation-delay: 0.4s;
}


.test {
    font-size: 50px !important;
    }



/*  cards  */
.card-100years-wrapper-right {
    margin-right: 80px;
}
@media (max-width: 960px) {
    .card-100years-wrapper-right {
        margin-right: 0;
    }
}
.card-100years-wrapper {
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    width: 100vw;
    background-color: #0E3868;
    padding: 0 16px;
    margin-top: 100px;
    margin-bottom: 32px;
}
.card-100years-title {
    font-size: 28px !important;
    text-align: center;
    color: white;
}
.cards-100years {
    display: flex;
    flex-wrap: wrap; /* 折り返しを有効にする */
    gap: 16px; /* 要素間の余白 */
    padding-top: 32px;
    padding-bottom: 32px;
    max-width:960px;
    margin: 0 auto;
}
.card-100years {
    flex: 1 1 calc(25% - 16px); /* PC時は4列（100% ÷ 4 = 25%） */
    box-sizing: border-box;
    text-align: center;
    padding: 0px;
    border-radius: 8px;
}
.card-100years-text {
    font-size: 15px !important;
    text-align: center;
    color: white !important;
    line-height: 1.5;
    height: 88px;
    padding: 8px 0 24px;
    display: block;
}

/* スマホ（768px以下）の場合は2列 */
@media (max-width: 768px) {
    .card-100years {
        flex: 1 1 calc(50% - 16px);
    }
}






/* 既存の float レイアウトは無効化 */
dl.dialogue > dt,
dl.dialogue > dd {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 1ターン（dt+dd）を2カラムに */
dl.dialogue {
    display: grid;
    grid-template-columns: 4em 1fr; /* ← dt幅 / dd */
    column-gap: 1em;
    row-gap: 12px;                 /* ← ターン間の縦余白 */
    color: black;
}

/* dtは上揃え（先頭行に揃う） */
dl.dialogue > dt {
    align-self: start;
    font-weight: 600;
    line-height: 1.7;
}

/* dd */
dl.dialogue > dd {
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    line-break: loose;
}







/* まず dl 自体を「必ず親幅いっぱい」に固定 */
dl.timeline{
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    /* 親が flex でも伸びるように保険 */
    flex: 1 1 auto !important;
    align-self: stretch !important;
    min-width: 0 !important;

    grid-template-columns: clamp(11em, 22vw, 18.5em) minmax(0, 1fr);
    column-gap: 0;   /* 中央の切れ（隙間）を無くす */
    row-gap: 0;

    justify-items: stretch !important; /* ★これが重要 */
    margin: 0;
    padding: 0;
    color: #000;
}

/* dt/dd を「セルいっぱいに必ず伸ばす」 */
dl.timeline > dt,
dl.timeline > dd{
    display: block !important;
    justify-self: stretch !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;

    /* 行区切りは top にして複数行でもズレない */
    border-top: 1px dotted rgba(0,0,0,0.35);

    padding: 0.55em 0;
    line-height: 1.7;
    margin: 0;
}

/* 先頭行の線を消す（必要なら） */
dl.timeline > dt:first-of-type,
dl.timeline > dd:first-of-type{
    border-top: none;
}

/* 年号：左揃え・太字なし・折らない */
dl.timeline > dt{
    font-weight: 400;
    text-align: left;
    white-space: nowrap;

    /* gap の代わり（線は切れない） */
    padding-right: 1em;
}

/* 内容 */
dl.timeline > dd{
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal;
    line-break: loose;
}

.p-100years-message-box02-image-logo{
    position: absolute;
    top: 0;
    right: 0;
}
@media (max-width: 960px) {
    .p-100years-message-box02-image-logo {
        display: none;
    }
}

.company-photos {
    padding-top: 32px;
      display:flex;          /* 横並び開始 */
      gap:4px;
  }
.company-photo {
      flex:1 1 0;            /* 3等分（均等幅） */
      min-width:0;           /* はみ出し対策（長文/画像で崩れにくい） */
  }
.company-photo p {
    text-align: center;
    font-size: 14px !important;
    font-weight: bold;
    line-height: 1.4 !important;
    padding-top: 8px !important;
}
.company-photo p span {
    font-size: 18px;
}