/* 『ダービースタリオン2』アップデート情報ページ
   ガイドラインページのレイアウト／背景／戻るリンクに統一 */

.update-page {
    margin: 0;
    color: #fff;
    background-color: #111;
    background-image: url("../images/icon/img_icon_back.webp");
    background-position: center top;
    background-repeat: repeat;
    background-size: 1024px auto;
}

.update-main {
    width: min(100%, 1600px);
    margin: 0 auto;
    padding: 40px 20px 0;
    box-sizing: border-box;
}

.update-header {
    margin-bottom: 24px;
    color: #fff;
    text-align: center;
    -webkit-text-stroke: 2px #000;
    paint-order: stroke fill;
}

.update-title {
    margin: 0;
}

.update-title picture,
.update-title img {
    display: block;
}

.update-title img {
    width: min(48vw, 820px);
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.update-lead {
    padding: 24px 20px 0;
}

.update-lead h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: .08em;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
}

.update-panel {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.update-panel .content__inner {
    box-sizing: border-box;
    padding: clamp(28px, 5vw, 56px);
    /* FAQと同じ白85%の半透明背景。文字の不透明度は維持 */
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d8d0c1;
    border-radius: 8px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .18);
}

.update-section + .update-section {
    margin-top: clamp(36px, 6vw, 60px);
    padding-top: clamp(36px, 6vw, 60px);
    border-top: 1px solid #ddd6cb;
}

.update-section p,
.update-section li {
    color: #34312c;
    font-size: 16px;
    font-weight: 400;
    line-height: 2;
}

.update-section p {
    margin: 0 0 1em;
}

.update-section p:last-child {
    margin-bottom: 0;
}

.update-section a {
    color: #7d5019;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.update-section-title {
    margin: 0 0 28px;
    padding: 0 0 14px;
    border-bottom: 3px solid #87642f;
    color: #2d2b27;
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 700;
    line-height: 1.45;
}

.update-note {
    margin-top: 30px;
    padding: 24px 28px;
    background: #f6f2e9;
    border-left: 5px solid #87642f;
}

.update-note h3,
.update-note .update-note-title,
.update-subtitle {
    margin: 0 0 14px;
    color: #413727;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.7;
}

.update-note ul,
.update-steps {
    margin: 0;
    padding-left: 1.4em;
}

.update-subtitle {
    margin-top: 28px;
}

.update-steps li + li {
    margin-top: .35em;
    margin-bottom: .35em;
}

.update-closing {
    text-align: left;
}

.update-date {
    margin-top: 22px !important;
    text-align: right;
}

.update-back {
    margin-top: 32px;
    margin-bottom: 0;
    text-align: center;
}

.update-back a {
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    -webkit-text-stroke: 1px #000;
    paint-order: stroke fill;
}

.update-page .l-footer__guide {
    padding-top: 4vw;
}

.update-page .l-footer__bottom-area {
    margin-top: 0;
    padding-top: 40px;
}

@media (max-width: 767px) {
    .update-page {
        background-position: center top;
        background-repeat: repeat-y;
        background-size: 100% auto;
    }

    .update-main {
        padding: 72px 0 0;
    }

    .update-header {
        margin-bottom: 16px;
        padding: 0 16px;
    }

    .update-title img {
        width: min(78vw, 420px);
        max-width: 100%;
    }

    .update-lead {
        padding: 18px 16px 0;
    }

    .update-panel {
        padding: 0 12px;
    }

    .update-panel .content__inner {
        padding: 26px 16px;
        border-radius: 0;
    }

    .update-section p,
    .update-section li {
        font-size: 16px;
        line-height: 1.75;
    }

    .update-note {
        padding: 20px 14px;
    }

    .update-note p {
        font-size: 16px;
        font-weight: 400;
        line-height: 1.6;
    }

    .update-note li {
        font-size: 16px;
        line-height: 1.7;
    }

    .update-back a {
        font-size: 18px;
        -webkit-text-stroke: 1px #000;
    }

    .update-page .l-footer__guide {
        padding-top: 6vw;
    }
}

/* 更新内容は1項目ずつ余白と区切りを設けて読みやすく表示 */
.update-note ul {
    list-style: disc outside;
    padding-left: 1.25em;
}

.update-note li {
    padding: 14px 0;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.update-note li + li {
    border-top: 1px solid #dcd4c5;
}

.update-note li:last-child {
    padding-bottom: 0;
}

.update-note li::marker {
    color: #87642f;
}

/* 本文中の強調は通常の文字と同じ太さ・色に統一 */
.update-section p strong,
.update-section p b,
.update-section li strong,
.update-section li b {
    color: inherit;
    font-weight: inherit;
}

.update-history {
    margin-top: 24px;
}

.update-history a {
    display: block;
    padding: 16px 18px;
    border: 1px solid #d8d0c1;
    border-radius: 4px;
    background: #faf8f3;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.update-history a:hover {
    background: #f0e9db;
}

.update-history a:focus-visible {
    outline: 3px solid #87642f;
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .update-note .update-note-title {
        font-size: 18px;
    }

    .update-history a {
        padding: 14px;
    }
}

/* 共通の見出し指定より優先し、淡い背景上の更新内容見出しを濃色に固定 */
.update-page .update-main .update-panel .update-note > .update-note-title {
    color: #413727 !important;
    -webkit-text-fill-color: #413727;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

