/*
  ニコンダイレクト 25周年記念 特集ページ 個別CSS
  配置想定パス： /ec/css/usr/page/25thcp_style.css
  「フリー記述エリア」への読み込みは event.html とは別に「インポートCSS」として登録してください。
  スコープはすべて .anniv25 配下（グローバルCSSと衝突しないよう固有プレフィックスを使用）。

  デザイントーンは既存ページに準拠：
  - https://nij.nikon.com/shop/e/ereco-bino/（アンカーカード＋下向き矢印）
  - https://nij.nikon.com/campaign/cbcp_summer_2026/（黄帯見出し・白枠ボックス・黄マーカー強調）
*/

.anniv25 {
    width: 1200px;
    max-width: 100%;
    margin: 0 auto 80px;
    padding: 0 16px;
    box-sizing: border-box;
    color: #303030;
    font-size: 14px;
    line-height: 1.7;
}

.anniv25 *,
.anniv25 *::before,
.anniv25 *::after {
    box-sizing: border-box;
}

.anniv25 ul,
.anniv25 ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.anniv25 .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* フォーカス可視化（2.4.7） */
.anniv25 a:focus-visible,
.anniv25 [tabindex]:focus-visible {
    outline: 3px solid #1a73e8;
    outline-offset: 2px;
}

/* ===== MV（1920×830 画像差し替え） ===== */
.anniv25-hero {
    margin: 24px 0 64px;
}

.anniv25-hero__img {
    display: block;
    width: 100%;
    height: auto;
}

/* ===== アニバーサリーラベル（金色・飾り線つき） ===== */
.anniv25-anniv-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0 0 12px;
    color: #8a6a1a;
    font-size: 15px;
    font-style: italic;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    text-align: center; /* 折り返して2行になっても中央寄せ */
}

.anniv25-anniv-label::before,
.anniv25-anniv-label::after {
    content: "";
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c8a24d);
}

.anniv25-anniv-label::after {
    background: linear-gradient(90deg, #c8a24d, transparent);
}

/* ===== リード文（黄帯見出しの上） ===== */
.anniv25-lead {
    margin: 0 0 32px;
    font-size: 16px;
    line-height: 2;
    text-align: center;
}

/* ===== セクション見出し（黄帯＋傾けた正方形の紙吹雪。文字にはかぶせない） ===== */
.anniv25-heading {
    position: relative;
    margin: 0 0 32px;
    padding: 18px 8px;
    background: #111111;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    overflow: hidden;
}

/* 左端の紙吹雪（1つずつ角度の違う正方形をSVG背景で散らす） */
.anniv25-heading::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 0;
    width: 220px;
    height: 100%;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(15 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(52 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(78 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(30 10 10)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 4px 10px, 62px 40px, 124px 6px, 178px 36px;
    background-size: 22px 22px, 17px 17px, 16px 16px, 19px 19px;
}

/* 右端の紙吹雪 */
.anniv25-heading::after {
    content: "";
    position: absolute;
    right: 40px;
    top: 0;
    width: 220px;
    height: 100%;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(66 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(24 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(8 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(45 10 10)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px 34px, 66px 8px, 130px 42px, 186px 14px;
    background-size: 17px 17px, 22px 22px, 16px 16px, 19px 19px;
}

/* ===== アンカーリンク（reco-binoのアンカーカードに準拠） ===== */
.anniv25-jumpnav {
    margin: 0 0 56px;
}

.anniv25-jumpnav__list {
    display: flex;
    gap: 24px;
}

.anniv25-jumpnav__item {
    flex: 1 1 0;
}

.anniv25-jumpnav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 20px 16px 16px;
    background: #fff;
    border: 1px solid #e3e3e3;
    text-decoration: none;
    color: #303030;
}

.anniv25-jumpnav__link:hover,
.anniv25-jumpnav__link:focus-visible {
    border-color: #111111;
}

.anniv25-jumpnav__label {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.anniv25-jumpnav__arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #111111;
}

/* ===== キャンペーンカード（縦積み1カラム／左上リボンで附番） ===== */
.anniv25-campaigns {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 56px;
}

.anniv25-card {
    position: relative;
    padding: 36px 40px 32px;
    background: #fff;
    border: 1px solid #e3e3e3;
    overflow: hidden;
    scroll-margin-top: 100px; /* サイト共通ヘッダーの高さに応じて調整してください */
}

/* カード見出し帯の右端に紙吹雪（黄帯上なので白＋金。タイトル文字にはかぶらない右端のみ） */
.anniv25-card::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 24px;
    width: 160px;
    height: 46px;
    pointer-events: none;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(20 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(63 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(40 10 10)'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(5 10 10)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 8px 4px, 58px 22px, 104px 2px, 136px 24px;
    background-size: 16px 16px, 12px 12px, 14px 14px, 11px 11px;
}

.anniv25-card__header {
    margin: -36px -40px 28px;
    padding: 0;
}

.anniv25-card__tag {
    display: inline-block;
    margin: 0 0 10px;
    padding: 4px 16px;
    background: #111111;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.anniv25-card__title {
    margin: 0;
    padding: 22px 40px;
    background: #ffe200;
    color: #111111;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
}

/* 期間表記（3カード共通フォーマット：黒ラベル＋太字日付） */
.anniv25-card__period {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
}

.anniv25-card__period-label {
    flex: 0 0 auto;
    padding: 2px 12px;
    border: 1px solid #111111;
    color: #111111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.anniv25-card__period-value {
    font-size: 18px;
    font-weight: 700;
}

.anniv25-card__period-small {
    font-size: 14px;
}

/* 期間表記の配置：01=説明エリア最上部／02・03=詳細説明の最上部 */
.anniv25-card__content .anniv25-card__period,
.anniv25-card__detail .anniv25-card__period {
    margin: 0 0 32px;
}

.anniv25-card__body {
    display: flex;
    gap: 40px;
    align-items: center;
}

.anniv25-card__visual {
    flex: 0 0 240px;
}

.anniv25-card__image img {
    display: block;
    width: 100%;
    height: auto;
}

.anniv25-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    background: #f6f6f6;
    border-radius: 50%;
}

/* アイコンはタグ制限のあるCMSでも通るようテキスト＋CSSで表現（SVG不使用） */
.anniv25-card__icon-star {
    font-size: 26px;
    letter-spacing: 4px;
    text-indent: 4px;
    color: #111111;
}

.anniv25-card__icon-p {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border: 3px solid #111111;
    border-radius: 50%;
    color: #111111;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.anniv25-card__content {
    flex: 1 1 auto;
    min-width: 0;
}

/* 商品ページへの遷移ボタン（既存「購入はこちらから」のピル型を強調アレンジ） */
.anniv25-card__btn-wrap {
    margin: 24px 0 0;
}

.anniv25-buy-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 56px;
    background: #ffe600;
    border: 1px solid #ffe600;
    border-radius: 50px;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.8;
    text-decoration: none;
}

.anniv25-buy-btn::after {
    content: "";
    position: absolute;
    right: 24px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    transform: translateY(-50%) rotate(45deg);
}

.anniv25-buy-btn:hover {
    opacity: 0.8;
}

.anniv25-card__desc {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.8;
}

/* ポイント数字は黄マーカーで強調（cbcpの金額表現に準拠） */
.anniv25-card__point {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.8;
}

.anniv25-card__point-value {
    display: inline-block;
    padding: 0 4px;
    background: linear-gradient(transparent 62%, #ffe200 62%);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    color: #111111;
}

.anniv25-card__point-unit {
    font-size: 18px;
    margin-left: 2px;
}

.anniv25-card__point-small {
    font-size: 14px;
    font-weight: 700;
}

.anniv25-card__notes {
    font-size: 14px;
    line-height: 1.7;
    color: #555555;
}

.anniv25-card__notes li {
    position: relative;
    padding-left: 1.2em;
}

.anniv25-card__notes li::before {
    content: "※";
    position: absolute;
    left: 0;
}

/* ===== 文中テキストリンク ===== */
.anniv25 .anniv25-textlink,
.anniv25-card__detail-dd a {
    color: blue;
    text-decoration: underline;
}

.anniv25 .anniv25-textlink:hover,
.anniv25-card__detail-dd a:hover {
    text-decoration: none;
}

/* ===== 詳細説明エリア（パワポの項目表に準拠：項目名セル＋内容セル） ===== */
.anniv25-card__detail {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e3e3e3;
}

.anniv25-card__detail-heading {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
}

.anniv25-card__detail-list {
    margin: 0;
    border: 1px solid #e3e3e3;
}

.anniv25-card__detail-row {
    display: flex;
}

.anniv25-card__detail-row + .anniv25-card__detail-row {
    border-top: 1px solid #e3e3e3;
}

.anniv25-card__detail-dt {
    flex: 0 0 160px;
    padding: 12px 16px;
    background: #f6f6f6;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.7;
}

.anniv25-card__detail-dd {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.7;
}

.anniv25-card__detail-notes li {
    position: relative;
    padding-left: 1.2em;
}

.anniv25-card__detail-notes li::before {
    content: "※";
    position: absolute;
    left: 0;
}

/* 本文テキストリンクは下線必須（1.4.1）、hoverで下線を外す */
.anniv25-card__detail-links li {
    position: relative;
    padding-left: 1.2em;
}

.anniv25-card__detail-links li::before {
    content: "・";
    position: absolute;
    left: 0;
}

.anniv25-card__detail-links a {
    color: #303030;
    text-decoration: underline;
}

.anniv25-card__detail-links a:hover {
    text-decoration: none;
}

/* ===== 今後のキャンペーン情報（特別キャンペーンとは別セクションの見た目：グレー帯） ===== */
.anniv25-next {
    margin-top: 72px;
    padding: 48px;
    background: #f6f6f6;
    text-align: center;
}

.anniv25-next__badge-wrap {
    margin: 0 0 12px;
}

.anniv25-badge {
    display: inline-block;
    padding: 4px 18px;
    background: #555555;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.anniv25-next__heading {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.anniv25-next__lead {
    margin: 0;
    font-size: 14px;
}

/* ===== 実施中のキャンペーン（お買い物TOPの「キャンペーン一覧を見る」ボタンを流用） ===== */
.anniv25-current {
    margin-top: 56px;
    text-align: center;
}

.anniv25-current__heading {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
}

.anniv25-current__lead {
    margin: 0 0 24px;
    font-size: 14px;
}

.anniv25-current__btn-wrap {
    margin: 0;
}

.anniv25-list-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 427px;
    max-width: 100%;
    height: 44px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 62px;
    color: #000;
    font-size: 14px;
    text-decoration: none;
}

.anniv25-list-btn::after {
    content: "";
    position: absolute;
    right: 21px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 1px solid #000;
    border-right: 1px solid #000;
    transform: translateY(-50%) rotate(45deg);
}

.anniv25-list-btn:hover {
    opacity: 0.8;
}

/* ─────────────────────────────────────────────
   レイアウト切替：
   1080px未満 → コンテナ幅を可変に
   640px未満 → アンカー縦積み／カード内を縦積み
   ───────────────────────────────────────────── */
@media (max-width: 1079.98px) {
    .anniv25 {
        width: 100%;
        padding: 0 16px;
    }

    /* カードの紙吹雪は文字と重なるため非表示。見出しはコンパクト配置で表示を継続 */
    .anniv25-card::before {
        content: none;
    }

    .anniv25-heading::before {
        left: 4px;
        width: 64px;
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(15 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(52 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(78 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(30 10 10)'/%3E%3C/svg%3E");
        background-position: 2px 6px, 40px 20px, 10px 48px, 44px 66px;
        background-size: 15px 15px, 11px 11px, 12px 12px, 10px 10px;
    }

    .anniv25-heading::after {
        right: 4px;
        width: 64px;
        background-image:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(66 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(24 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23b8860b' transform='rotate(8 10 10)'/%3E%3C/svg%3E"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='6' y='6' width='8' height='8' fill='%23ffffff' transform='rotate(45 10 10)'/%3E%3C/svg%3E");
        background-position: 42px 8px, 6px 18px, 38px 44px, 8px 62px;
        background-size: 11px 11px, 15px 15px, 10px 10px, 12px 12px;
    }

    .anniv25-card {
        padding: 32px 24px 28px;
    }

    .anniv25-card__header {
        margin: -32px -24px 24px;
    }

    .anniv25-card__title {
        padding: 18px 24px;
    }

    .anniv25-card__body {
        gap: 24px;
    }
}

@media (max-width: 639.98px) {
    .anniv25-lead {
        font-size: 14px;
        text-align: left;
    }

    .anniv25-lead br {
        display: none;
    }

    .anniv25-heading {
        font-size: 20px;
    }

    .anniv25-jumpnav__list {
        flex-direction: column;
        gap: 12px;
    }

    .anniv25-jumpnav__link {
        flex-direction: row;
        padding: 14px 16px;
    }

    .anniv25-jumpnav__label {
        justify-content: flex-start;
        text-align: left;
        font-size: 14px;
    }

    .anniv25-jumpnav__label br {
        display: none;
    }

    .anniv25-jumpnav__arrow {
        margin-left: auto;
    }

    .anniv25-card {
        padding: 24px 20px 28px;
    }

    .anniv25-card__header {
        margin: -24px -20px 20px;
    }

    .anniv25-card__title {
        padding: 16px 20px;
        font-size: 20px;
    }

    .anniv25-card__body {
        flex-direction: column;
        align-items: stretch;
    }

    .anniv25-card__visual {
        flex: 0 0 auto;
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .anniv25-card__point-value {
        font-size: 32px;
    }

    .anniv25-card__detail-row {
        flex-direction: column;
    }

    .anniv25-card__detail-dt {
        flex: 0 0 auto;
    }

    .anniv25-buy-btn {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .anniv25-next {
        margin-top: 48px;
        padding: 32px 20px;
    }

    .anniv25-next__heading {
        font-size: 20px;
    }

    .anniv25-current__heading {
        font-size: 20px;
    }
}
