/* Modern RBC homepage, independently scoped; existing header/footer untouched */
.home-page {
    --hm-blue: #3f43ff;
    --hm-ink: #14203e;
    color: var(--hm-ink)
}

.home-page .sr-only {
    position: absolute;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
    width: 1px;
    height: 1px;
    white-space: nowrap
}

.home-main {
    padding-top: 22px
}

.home-main a {
    text-decoration: none;
    color: inherit
}

.home-main a:focus-visible,
.home-main button:focus-visible {
    outline: 3px solid var(--hm-blue);
    outline-offset: 3px
}

.hm-maintenance-notice {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0 auto 20px;
    padding: 8px 15px;
    color: #50617e;
    background: linear-gradient(110deg, #f3f6fb, #eef2f8);
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em
}

.hm-maintenance-notice[hidden] {
    display: none
}

.hm-maintenance-notice p {
    margin: 0;
    line-height: 1.6
}

.hm-maintenance-notice__icon {
    display: block;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    color: #74829c
}

.hm-maintenance-notice__close {
    width: 26px;
    height: 26px;
    margin-left: auto;
    padding: 0;
    color: #7a88a2;
    background: transparent;
    border: 0;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer
}

.hm-maintenance-notice__close:hover {
    color: var(--hm-blue);
    opacity: 1
}

.hm-container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto
}

.hm-top {
    display: grid;
    grid-template-columns: minmax(0, 1.82fr) minmax(0, 1fr);
    gap: 16px
}

.hm-hero {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #f2f3fa;
    aspect-ratio: 1906 / 825;
    align-self: start
}

.hm-hero__slides,
.hm-hero__slide {
    display: block;
    width: 100%;
    height: 100%
}

.hm-hero__slide[hidden] {
    display: none
}

.hm-hero__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.hm-hero__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 100px;
    width: 40px;
    height: 40px;
    background: #fffE;
    color: #18234a;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    box-shadow: 0 2px 8px #09133124
}

/* The glyphs are optically lower than their line boxes; keep the button itself centered. */
.hm-hero__arrow span {
    display: block;
    transform: translateY(-2px)
}

.hm-hero__arrow--prev {
    left: 14px
}

.hm-hero__arrow--next {
    right: 14px
}

.hm-hero__dots {
    position: absolute;
    bottom: 13px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
    background: #fffB;
    padding: 7px 12px;
    border-radius: 20px
}

.hm-hero__dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 50%;
    background: #b4bdd4;
    cursor: pointer;
    padding: 0
}

.hm-hero__dots button[aria-current="true"] {
    background: var(--hm-blue)
}

.hm-top__aside {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    min-height: 0
}

.hm-promo {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
    background: #a2d3f6
}

.hm-promo>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s
}

.hm-promo:hover>img,
.hm-feature:hover img,
.hm-program-card:hover img {
    transform: scale(1.04)
}

.hm-promo__overlay {
    position: absolute;
    inset: 0;
    padding: 17px 21px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(180deg, #ffffffD9 0%, transparent 39%, #001e5aA0 100%)
}

.hm-promo__overlay>strong {
    color: #0b1e43;
    font-size: 23px
}

.hm-promo__overlay small {
    font: 700 11px Roboto, sans-serif;
    color: var(--hm-blue);
    margin-left: 7px;
    letter-spacing: .05em
}

.hm-promo__bottom {
    font-weight: 700;
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px
}

.hm-promo__bottom b,
.hm-feature__caption b,
.hm-link-block>b {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--hm-blue);
    font-size: 18px;
    flex-shrink: 0
}

.hm-band {
    padding: 72px 0
}

.hm-band--program {
    background: #f2f7fc;
    margin-top: 32px
}

.hm-programs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px
}

.hm-program-group+.hm-program-group {
    border-left: 1px solid #cbd8e8;
    padding-left: 36px
}

.hm-program-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 14px;
    margin-bottom: 22px
}

.hm-title {
    min-width: 0
}

.hm-title__line {
    display: block;
    background: var(--hm-blue);
    width: 42px;
    height: 3px;
    border-radius: 3px;
    margin-bottom: 13px
}

.hm-title h2 {
    font-size: clamp(24px, 2.25vw, 32px);
    line-height: 1.4;
    letter-spacing: .025em;
    margin: 0;
    font-weight: 800;
    color: #111f40
}

.hm-title__en {
    display: block;
    font: 700 12px Roboto, sans-serif;
    letter-spacing: .14em;
    color: var(--hm-blue);
    margin-top: 5px
}

.hm-more {
    font-size: 12px;
    color: var(--hm-blue) !important;
    font-weight: 700;
    white-space: nowrap;
    padding-bottom: 4px
}

.hm-program-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px
}

.hm-program-card {
    display: block;
    min-width: 0;
    background: white;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 5px 15px #2047780A;
    transition: box-shadow .2s
}

.hm-program-card:hover {
    box-shadow: 0 8px 20px #20477819
}

.hm-program-card__image {
    display: block;
    aspect-ratio: 4/3;
    background: #edf1f7;
    overflow: hidden
}

.hm-program-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .25s
}

.hm-program-card__name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    display: block;
    padding: 12px
}

.hm-band--information {
    background: #fff
}

.hm-split {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    align-items: start;
    gap: 42px
}

.hm-notices {
    border-top: 1px solid #d9e1ed
}

.hm-notice {
    display: flex;
    gap: 24px;
    align-items: baseline;
    padding: 20px 6px;
    border-bottom: 1px solid #d9e1ed;
    font-size: 14px
}

.hm-notice__date {
    flex: 0 0 100px;
    color: #6b7893;
    font-size: 12px
}

.hm-band--special {
    background: #eaf5fc
}

.hm-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px
}

.hm-feature {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 24px #1e45700F
}

.hm-feature__image {
    display: block;
    aspect-ratio: 2.32;
    overflow: hidden;
    background: #e9eff7
}

.hm-band--special .hm-feature__image {
    aspect-ratio: 720 / 393;
}

.hm-feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s
}

.hm-feature__caption {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.hm-feature__caption strong {
    font-size: 15px
}

.hm-feature__caption b {
    background: #eff4fc
}

.hm-band--event {
    background: white
}

.hm-event-content .hm-feature__image {
    aspect-ratio: 2.32
}

.hm-band--links {
    background: #eff6fc;
    padding: 30px 0
}

.hm-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.hm-link-block {
    display: flex;
    align-items: center;
    gap: 14px;
    background: white;
    border-radius: 12px;
    padding: 22px 26px;
    min-height: 104px
}

.hm-link-block__icon {
    font-size: 30px;
    color: var(--hm-blue)
}

.hm-link-block strong {
    display: block;
    font-size: 22px
}

.hm-link-block small {
    display: block;
    font: 700 11px Roboto, sans-serif;
    letter-spacing: .1em;
    color: var(--hm-blue);
    margin-top: 4px
}

.hm-link-block>b {
    margin-left: auto;
    background: #edf2ff
}

.hm-sns-hint {
    font-size: 12px;
    color: #67748c;
    margin-left: auto
}

.hm-band--event+.hm-band--links {
    margin-top: 0
}

@media(max-width:1020px) {
    .hm-container {
        width: min(1200px, calc(100% - 32px))
    }

    .hm-band {
        padding: 56px 0
    }

    .hm-split {
        grid-template-columns: 190px 1fr;
        gap: 24px
    }

    .hm-programs {
        gap: 20px
    }

    .hm-program-group+.hm-program-group {
        padding-left: 20px
    }

    .hm-promo__overlay {
        padding: 13px
    }

    .hm-promo__overlay>strong {
        font-size: 18px
    }
}

@media(max-width:767px) {
    .home-main {
        padding-top: 12px
    }

    .hm-maintenance-notice {
        align-items: flex-start;
        gap: 12px;
        min-height: 0;
        margin: 0 auto 18px;
        padding: 13px 14px;
        border-radius: 10px;
        font-size: 13px
    }

    .hm-maintenance-notice__icon {
        width: 21px;
        height: 21px;
        margin-top: 1px
    }

    .hm-maintenance-notice__close {
        width: 22px;
        height: 22px;
        font-size: 25px
    }

    .hm-container {
        width: calc(100% - 28px)
    }

    .hm-top {
        display: block
    }

    .hm-hero {
        aspect-ratio: 1906 / 825
    }

    .hm-hero__arrow {
        width: 30px;
        height: 30px;
        font-size: 24px
    }

    .hm-top__aside {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        gap: 10px;
        margin-top: 12px
    }

    .hm-promo {
        aspect-ratio: 1.5
    }

    .hm-promo__overlay {
        padding: 9px
    }

    .hm-promo__overlay>strong {
        font-size: 16px
    }

    .hm-promo__overlay small {
        display: block;
        margin-left: 0;
        font-size: 9px
    }

    .hm-promo__bottom {
        font-size: 11px
    }

    .hm-promo__bottom b {
        width: 22px;
        height: 22px
    }

    .hm-band--program {
        margin-top: 32px
    }

    .hm-band {
        padding: 44px 0
    }

    .hm-programs,
    .hm-links {
        grid-template-columns: 1fr
    }

    .hm-program-group+.hm-program-group {
        border-left: none;
        border-top: 1px solid #cbd8e8;
        padding: 30px 0 0
    }

    .hm-program-heading {
        margin-bottom: 15px
    }

    .hm-program-grid {
        gap: 8px
    }

    .hm-program-card__name {
        font-size: 12px;
        padding: 8px
    }

    .hm-title h2 {
        font-size: 25px
    }

    .hm-split {
        grid-template-columns: 1fr;
        gap: 25px
    }

    .hm-features {
        gap: 12px
    }

    .hm-feature__caption {
        padding: 10px
    }

    .hm-feature__caption strong {
        font-size: 12px
    }

    .hm-notice {
        padding: 15px 3px;
        gap: 14px;
        font-size: 13px
    }

    .hm-notice__date {
        flex-basis: 74px
    }

    .hm-link-block {
        min-height: 80px
    }

    .hm-sns-hint {
        font-size: 10px
    }
}

/* Compact SNS/app card: matches the two-column card reference. */
@media (min-width: 768px) {
    .hm-sns-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        gap: 14px 22px
    }

    .hm-sns-panel__resources { display: contents; }
    .hm-sns-panel__copy { grid-column: 1; grid-row: 1; }
    .hm-sns-panel .hm-sns-icons { grid-column: 1; grid-row: 2; justify-content: flex-start; padding: 0; border: 0; }
    .hm-sns-panel .hm-app-guide { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; padding-left: 22px; border-left: 1px solid #d9e1ed; }

    .hm-app-guide {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        align-content: center;
        justify-content: initial;
        gap: 3px 10px
    }

    .hm-app-guide__icon { grid-row: 1 / span 2; width: 52px; height: 52px; }
    .hm-app-guide__title { display: block; }
    .hm-app-guide__title strong { font-size: clamp(17px, 1.75vw, 24px); white-space: nowrap; }
    .hm-app-guide__description { margin: 0; color: #65728b; font-size: clamp(12px, 1.25vw, 16px); line-height: 1.5; }
    .hm-app-guide__link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 10px; padding: 8px 14px; color: #fff; background: var(--hm-blue); border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; }
    .hm-app-guide__link span { margin-left: auto; font-size: 28px; line-height: .6; }
}

@media (max-width: 767px) {
    .hm-sns-panel__resources { display: contents; }
    .hm-sns-panel { display: grid; grid-template-columns: 1fr; }
    .hm-sns-panel__copy { grid-row: 1; }
    .hm-sns-panel .hm-sns-icons { grid-row: 2; margin: 20px 0; padding: 0; border: 0; }
    .hm-sns-panel .hm-app-guide { display: grid; grid-template-columns: 48px 1fr; grid-row: 3; justify-content: initial; padding-top: 20px; border-top: 1px solid #d9e1ed; }
    .hm-app-guide__icon { grid-row: 1 / span 2; }
    .hm-app-guide__title { display: block; min-width: 0; }
    .hm-app-guide__description { margin: 3px 0 0; color: #65728b; font-size: 14px; line-height: 1.5; }
    .hm-app-guide__link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 14px; padding: 8px 14px; color: #fff; background: var(--hm-blue); border-radius: 999px; font-weight: 700; text-decoration: none; }
    .hm-app-guide__link span { margin-left: auto; font-size: 28px; line-height: .6; }
}

@media (max-width: 768px) {
    .hm-top__aside .hm-promo { aspect-ratio: 1906 / 825; }
}

/* App guide button: preserve white text and keep its label optically centered. */
.home-main .hm-app-guide__link {
    position: relative;
    color: #fff;
    text-align: center
}

.home-main .hm-app-guide__link span {
    position: absolute;
    right: 16px;
    margin: 0
}

@media(max-width:380px) {
    .hm-top__aside {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .hm-promo {
        aspect-ratio: 2.5
    }

    .hm-features {
        grid-template-columns: 1fr
    }
}

@media(prefers-reduced-motion:reduce) {

    .hm-promo img,
    .hm-feature img,
    .hm-program-card img {
        transition: none
    }
}

/* Homepage section icons, shop images and supplied social media icons */
.hm-program-heading .hm-title {
    display: grid;
    grid-template-columns: 34px auto;
    column-gap: 10px;
    align-items: center
}

.hm-program-heading .hm-title__line {
    grid-column: 1 / -1
}

.hm-heading-icon {
    width: 31px;
    height: 31px;
    grid-column: 1;
    grid-row: 2 / span 2;
    object-fit: contain
}

.hm-program-heading .hm-title h2 {
    grid-column: 2;
    grid-row: 2
}

.hm-program-heading .hm-title__en {
    grid-column: 2;
    grid-row: 3
}

.hm-links {
    align-items: stretch
}

.hm-shop-panel,
.hm-sns-panel {
    background: #fff;
    border-radius: 14px;
    padding: 26px;
    min-width: 0;
    box-shadow: 0 7px 24px #2047780c
}

.hm-link-heading {
    display: flex;
    align-items: center;
    gap: 13px
}

.hm-link-icon {
    height: 36px;
    width: 36px;
    object-fit: contain;
    flex-shrink: 0
}

.hm-link-heading h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    color: #111f40
}

.hm-link-en {
    display: block;
    font: 700 12px Roboto, sans-serif;
    letter-spacing: .12em;
    color: #3f43ff;
    margin-top: 5px
}

.hm-shop-description {
    margin: 16px 0;
    color: #56637b;
    font-size: 14px;
    line-height: 1.7
}

.hm-shop-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.hm-shop-photo {
    display: block;
    aspect-ratio: 1.35;
    border-radius: 9px;
    overflow: hidden;
    background: #edf2f7
}

.hm-shop-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s
}

.hm-shop-photo:hover img {
    transform: scale(1.035)
}

.hm-shop-more {
    display: inline-block;
    margin-top: 17px;
    color: #3f43ff !important;
    font-size: 13px;
    font-weight: 700
}

.hm-shop-more--photos { display: none; }

.hm-sns-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 28px
}

.hm-sns-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: #f3f6fb;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s
}

.hm-sns-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain
}

.hm-sns-icon:is(a):hover {
    background: #e5ebff;
    transform: translateY(-3px)
}

.hm-sns-icon--pending {
    opacity: .55;
    cursor: default
}

@media(max-width:767px) {

    .hm-shop-panel,
    .hm-sns-panel {
        padding: 22px
    }

    .hm-link-heading h2 {
        font-size: 22px
    }

    .hm-shop-photo {
        aspect-ratio: 1.4
    }
}

/* RBCお知らせ：文章中のリンクのみ強調 */
.hm-notice__text {
    margin: 0;
    line-height: 1.9;
    min-width: 0;
    flex: 1
}

.home-main .hm-notice__text a {
    color: var(--hm-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px
}

.home-main .hm-notice__text a:hover {
    text-decoration-thickness: 2px;
    opacity: .78
}

@media(max-width:767px) {
    .hm-notice {
        align-items: flex-start
    }

    .hm-notice__date {
        flex: 0 0 84px
    }
}

/* Design alignment: Japanese primary headings, inline English labels, clear section spacing */
.hm-program-heading .hm-title {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 42px;
    flex-wrap: wrap
}

.hm-program-heading .hm-title__line {
    display: none
}

.hm-program-heading .hm-title .hm-heading-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: block;
    object-fit: contain
}

.hm-program-heading .hm-title h2 {
    font-size: 28px;
    line-height: 1.3;
    white-space: nowrap
}

.hm-program-heading .hm-title .hm-title__en {
    display: inline-block;
    margin: 0 0 0 2px;
    font-size: 12px;
    letter-spacing: .1em;
    color: #4d67c6
}

.hm-title--editorial .hm-title__en {
    margin-top: 9px
}

.hm-band--program {
    background: #f2f7fc
}

.hm-band--information {
    background: #fff
}

.hm-band--special {
    background: #eaf5fc
}

.hm-band--event {
    background: #fff
}

/* Shop and SNS: text left / thumbnails or icons right */
.hm-links {
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.hm-shop-panel,
.hm-sns-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    min-width: 0
}

.hm-shop-panel__copy,
.hm-sns-panel__copy {
    min-width: 0;
    flex: 1 1 48%
}

.hm-shop-panel .hm-shop-photos {
    flex: 0 1 48%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-width: 0
}

.hm-shop-panel .hm-shop-photo {
    aspect-ratio: 1/1
}

.hm-sns-panel .hm-sns-icons {
    margin: 0;
    flex: 0 1 49%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px
}

.hm-sns-panel .hm-sns-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px
}

.hm-sns-panel .hm-sns-icon img {
    width: 29px;
    height: 29px
}

.hm-shop-panel .hm-shop-description,
.hm-sns-panel .hm-shop-description {
    margin: 10px 0;
    font-size: 13px
}

.hm-link-heading h2 {
    font-size: 22px
}

/* Event: real carousel with arrows and dots; no cropping of poster-like assets */
.hm-event-carousel {
    position: relative;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #edf2f9
}

.hm-event-carousel__slides {
    width: 100%;
    aspect-ratio: 2.32
}

.hm-event-carousel__slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: block
}

.hm-event-carousel__slide[hidden] {
    display: none
}

.hm-event-carousel__slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block
}

.hm-event-carousel__caption {
    position: absolute;
    left: 20px;
    bottom: 16px;
    padding: 7px 13px;
    border-radius: 6px;
    background: #fffffff2;
    color: #152849;
    font-weight: 700;
    font-size: 14px
}

.hm-event-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    width: 42px;
    border: 0;
    border-radius: 50%;
    background: #fffffff0;
    color: #283eb4;
    box-shadow: 0 2px 10px #15204033;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    z-index: 1
}

.hm-event-carousel__arrow--prev {
    left: 14px
}

.hm-event-carousel__arrow--next {
    right: 14px
}

.hm-event-carousel__dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: #ffffffdd;
    padding: 7px 10px;
    border-radius: 20px;
    z-index: 2
}

.hm-event-carousel__dots button {
    width: 9px;
    height: 9px;
    border: 0;
    background: #b6c3da;
    border-radius: 50%;
    padding: 0;
    cursor: pointer
}

.hm-event-carousel__dots button[aria-current="true"] {
    background: #3f43ff
}

@media(max-width:1100px) {

    .hm-shop-panel,
    .hm-sns-panel {
        gap: 12px;
        padding: 18px
    }

    .hm-sns-panel .hm-sns-icons {
        gap: 6px
    }

    .hm-sns-panel .hm-sns-icon {
        height: 35px;
        width: 35px;
        flex-basis: 35px
    }

    .hm-sns-panel .hm-sns-icon img {
        height: 26px;
        width: 26px
    }

    .hm-link-heading h2 {
        font-size: 19px
    }
}

@media(max-width:767px) {
    .hm-links {
        grid-template-columns: 1fr
    }

    .hm-shop-panel,
    .hm-sns-panel {
        display: flex;
        gap: 14px;
        padding: 18px
    }

    .hm-shop-panel .hm-shop-photos {
        flex-basis: 46%
    }

    .hm-sns-panel .hm-sns-icons {
        flex-basis: 50%
    }

    .hm-program-heading .hm-title h2 {
        font-size: 24px
    }

    .hm-program-heading .hm-title .hm-title__en {
        font-size: 11px
    }

    .hm-event-carousel__arrow {
        height: 32px;
        width: 32px;
        font-size: 24px
    }

    .hm-event-carousel__arrow--prev {
        left: 6px
    }

    .hm-event-carousel__arrow--next {
        right: 6px
    }

    .hm-event-carousel__caption {
        bottom: 10px;
        left: 10px;
        font-size: 11px;
        padding: 4px 8px
    }
}

@media(max-width:430px) {

    .hm-shop-panel,
    .hm-sns-panel {
        align-items: flex-start
    }

    .hm-link-heading {
        gap: 7px
    }

    .hm-link-icon {
        width: 27px;
        height: 27px
    }

    .hm-link-heading h2 {
        font-size: 17px
    }

    .hm-shop-panel .hm-shop-photos {
        grid-template-columns: 1fr 1fr;
        gap: 4px
    }

    .hm-sns-panel .hm-sns-icons {
        gap: 5px
    }

    .hm-sns-panel .hm-sns-icon {
        height: 28px;
        width: 28px;
        flex-basis: 28px
    }

    .hm-sns-panel .hm-sns-icon img {
        height: 22px;
        width: 22px
    }
}

/* 2026-10-26: image-only NEWS / WEATHER shortcuts */
.hm-top__aside .hm-promo {
    display: block;
    position: relative;
    line-height: 0;
    overflow: hidden;
}

.hm-top__aside .hm-promo>img {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Program section layout stays unchanged; only image backgrounds are white. */
.hm-program-card__image {
    background: #fff;
}

/* Homepage refinement: 2026-10-26 */
/* Reduced vertical rhythm while preserving section background colors. */
.hm-band {
    padding-top: 56px;
    padding-bottom: 56px
}

.hm-band--program {
    margin-top: 22px
}

.hm-band--links {
    padding-top: 24px;
    padding-bottom: 24px
}

.hm-program-heading {
    margin-bottom: 16px
}

.hm-notice {
    padding-top: 15px;
    padding-bottom: 15px
}

.hm-feature__caption {
    padding-top: 12px;
    padding-bottom: 12px
}

/* Align the shop and SNS headings on one baseline. */
.hm-shop-panel,
.hm-sns-panel {
    align-items: stretch
}

/* Official SNS and app guide card */
.hm-sns-panel {
    grid-column: auto;
    align-items: center;
    min-height: 0;
    padding: 26px;
    gap: 22px
}

.hm-sns-panel__copy {
    flex: 0 1 35%
}

.hm-sns-panel .hm-link-heading h2 { font-size: 22px }

.hm-sns-panel .hm-link-en { font-size: inherit }

.hm-sns-panel .hm-link-icon { width: 40px; height: 40px }

.hm-sns-panel .hm-shop-description { margin: 10px 0; color: #65728b; font-size: 13px }

.hm-sns-panel__resources {
    display: grid;
    flex: 0 1 63%;
    min-width: 0;
    gap: 14px
}

.hm-sns-panel .hm-sns-icons {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 9px;
    margin: 0;
    padding: 0 0 14px;
    border-bottom: 1px solid #d9e1ed
}

.hm-sns-panel .hm-sns-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    border-radius: 12px
}

.hm-sns-panel .hm-sns-icon img {
    width: 76%;
    height: 76%
}

.hm-app-guide {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px
}

.hm-app-guide__icon {
    width: 42px;
    height: 42px
}

.hm-app-guide__title {
    display: grid;
    min-width: 0;
    line-height: 1.2
}

.hm-app-guide__title strong { font-size: 18px; }
.hm-app-guide__title span { margin-top: 2px; color: var(--hm-blue); font-size: 14px; font-weight: 700; letter-spacing: .12em; }
.hm-app-guide__stores { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.hm-app-guide__stores a { display: block; }
.hm-app-guide__stores img { display: block; width: min(92px, 20vw); height: auto; }

@media (min-width: 768px) and (max-width: 1100px) {
    .hm-sns-panel { padding: 18px; gap: 12px; }
    .hm-sns-panel .hm-sns-icons { gap: 6px; }
    .hm-sns-panel .hm-sns-icon { width: 35px; height: 35px; }
    .hm-app-guide__icon { width: 34px; height: 34px; }
    .hm-app-guide__title strong { font-size: 15px; }
    .hm-app-guide__title span { font-size: 12px; }
    .hm-app-guide__stores img { width: 76px; }
}

@media(max-width: 767px) {
    .hm-sns-panel { display: block; min-height: 0; padding: 28px 22px; }
    .hm-sns-panel__copy { display: block; }
    .hm-sns-panel .hm-link-heading h2 { font-size: 26px; }
    .hm-sns-panel .hm-link-en { font-size: 18px; }
    .hm-sns-panel .hm-link-icon { width: 48px; height: 48px; }
    .hm-sns-panel .hm-shop-description { margin-top: 16px; font-size: 16px; margin: 0 !important;}
    .hm-sns-panel__resources { margin-top: 24px; gap: 20px; }
    .hm-sns-panel .hm-sns-icons { justify-content: center; padding-bottom: 20px; }
    .hm-app-guide { justify-content: center; gap: 10px; }
    .hm-app-guide__icon { width: 46px; height: 46px; }
    .hm-app-guide__title { min-width: 82px; }
    .hm-app-guide__title strong { font-size: 18px; }
    .hm-app-guide__title span { margin-top: 2px; font-size: 14px; }
    .hm-app-guide__stores { gap: 6px; }
    .hm-app-guide__stores img { width: clamp(70px, 20vw, 92px); }
}

.hm-shop-panel__copy,
.hm-sns-panel__copy {
    display: flex;
    flex-direction: column;
    justify-content: center
}

.hm-shop-panel .hm-link-heading,
.hm-sns-panel .hm-link-heading {
    min-height: 48px;
    align-items: center
}

.hm-shop-panel .hm-shop-description,
.hm-sns-panel .hm-shop-description {
    margin-top: 10px;
    margin-bottom: 10px
}

/* Product photos are visual examples, not individual links. */
.hm-shop-photos .hm-shop-photo {
    cursor: default
}

.hm-shop-photos .hm-shop-photo:hover img {
    transform: none
}

@media(max-width:1020px) {
    .hm-band {
        padding-top: 45px;
        padding-bottom: 45px
    }
}

@media(max-width:767px) {
    .hm-band {
        padding-top: 34px;
        padding-bottom: 34px
    }

    .hm-band--program {
        margin-top: 22px
    }

    .hm-band--links {
        padding-top: 20px;
        padding-bottom: 20px
    }

    .hm-program-group+.hm-program-group {
        padding-top: 24px
    }

    .hm-split {
        gap: 20px
    }

    .hm-shop-panel .hm-link-heading,
    .hm-sns-panel .hm-link-heading {
        min-height: 42px
    }
}

/* Keep the SNS/app update inside the existing right-hand card. */
@media (min-width: 768px) {
    .hm-sns-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0px 22px; }
    .hm-sns-panel__resources { display: contents; }
    .hm-sns-panel__copy { grid-column: 1; grid-row: 1; }
    .hm-sns-panel .hm-sns-icons { grid-column: 1; grid-row: 2; justify-content: flex-start; margin: 0; padding: 0; border: 0; }
    .hm-sns-panel .hm-app-guide { display: grid; grid-column: 2; grid-row: 1 / span 2; grid-template-columns: 52px minmax(0, 1fr); align-content: center; align-self: stretch; justify-content: initial; gap: 3px 10px; padding-left: 22px; border-left: 1px solid #d9e1ed; }
    .hm-app-guide__icon { grid-row: 1 / span 2; width: 52px; height: 52px; background: #d9f1f9; border-radius: 8px; }
    .hm-app-guide__title { display: block; min-width: 0; }
    .hm-app-guide__title strong { font-size: 18px; white-space: nowrap; }
    .hm-app-guide__description { margin: 0; color: #65728b; font-size: 13px; line-height: 1.5; }
    .hm-app-guide__link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 10px; padding: 8px 14px; color: #fff; background: var(--hm-blue); border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; }
    .hm-app-guide__link span { margin-left: auto; font-size: 28px; line-height: .6; }
}

@media (max-width: 767px) {
    .hm-sns-panel { display: grid; grid-template-columns: 1fr; gap: 0;}
    .hm-sns-panel__resources { display: contents; }
    .hm-sns-panel__copy { grid-row: 1; }
    .hm-sns-panel .hm-sns-icons { grid-row: 2; justify-content: center; margin: 10px 0; padding: 0; border: 0; }
    .hm-sns-panel .hm-app-guide { display: grid; grid-template-columns: 48px 1fr; grid-row: 3; justify-content: initial; padding-top: 20px; border-top: 1px solid #d9e1ed;gap: 0; }
    .hm-app-guide__icon { grid-row: 1 / span 2; }
    .hm-app-guide__title { display: block; min-width: 0; }
    .hm-app-guide__description { margin: 3px 0 0; color: #65728b; font-size: 14px; line-height: 1.5; }
    .hm-app-guide__link { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 42px; margin-top: 14px; padding: 8px 14px; color: #fff; background: var(--hm-blue); border-radius: 999px; font-weight: 700; text-decoration: none; }
    .hm-app-guide__link span { margin-left: auto; font-size: 28px; line-height: .6; }
}

/* Tablet: keep the two outer cards, but stack the SNS and app content within its card. */
@media (min-width: 768px) and (max-width: 1100px) {
    .hm-shop-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        align-items: start;
        gap: 14px;
    }

    .hm-shop-panel__copy,
    .hm-shop-panel .hm-shop-photos { width: 100%; }
    .hm-shop-panel .hm-shop-photos { grid-row: 2; }
    .hm-shop-more--copy { display: none; }
    .hm-shop-more--photos { display: inline-block; grid-row: 3; margin-top: 0; }

    .hm-sns-panel {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 0;
    }

    .hm-sns-panel__copy { grid-column: 1; grid-row: 1; }
    .hm-sns-panel .hm-sns-icons { grid-column: 1; grid-row: 2; justify-content: center; margin: 0; }
    .hm-sns-panel .hm-app-guide {
        grid-column: 1;
        grid-row: 3;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px 0 0;
        border-top: 1px solid #d9e1ed;
        border-left: 0;
    }
    .hm-app-guide__icon { width: 42px; height: 42px; }
    .hm-app-guide__title strong { font-size: 17px; }
}
