:root {
    --top-design-red: var(--mirai-theme-red);
    --top-design-text: var(--mirai-theme-text);
    --top-design-border: var(--mirai-theme-border);
    --top-design-placeholder: var(--mirai-theme-surface-warm);
}

.top-design,
.product-kbn-top__content {
    color: var(--top-design-text);
}

.top-design figure,
.product-kbn-top__content figure {
    margin: 0;
}

.top-design__image-placeholder,
.product-kbn-top__image-placeholder {
    position: relative;
    overflow: hidden;
    background: var(--top-design-placeholder);
}

.top-design__image-placeholder img,
.product-kbn-top__image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
}

.top-design__image-placeholder figcaption,
.product-kbn-top__image-placeholder figcaption {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(100% - 40px);
    color: var(--top-design-red);
    font-family: var(--mirai-theme-font-en);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    letter-spacing: 0.05em;
    transform: translate(-50%, -50%);
}

.top-design__branch-image,
.product-kbn-top__royal-image {
    display: block;
    width: 100%;
    height: auto;
}

.top-design__branch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.top-design__branch-card a {
    display: block;
}

.top-design__branch-card a:hover,
.top-design__branch-card a:focus {
    opacity: 0.85;
}

.top-design__branch-figure {
    overflow: hidden;
    border-radius: var(--mirai-theme-radius-sm);
}

.top-design__important-notice,
.top-design__about {
    padding: 24px 20px 48px;
    text-align: center;
}

.top-design--general .top-design__important-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
    padding: 0 20px 0 0;
    background: #d7e987;
    text-align: left;
}

.top-design--general .top-design__important-notice h2 {
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 16px 24px;
    background: #b8d933;
    font-size: 18px;
}

.top-design--general .top-design__important-notice p {
    margin: 0;
    font-size: 13px;
}

.top-design--general .top-design__important-notice .top-design__outline-button {
    min-width: 150px;
    min-height: 36px;
    font-size: 12px;
}

.top-design__important-notice h2,
.top-design__about h2 {
    margin: 0 0 10px;
    color: var(--top-design-red);
    font-family: var(--mirai-theme-font-en);
    font-size: 28px;
    font-weight: 600;
}

.top-design__important-notice p,
.top-design__about p {
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.9;
}

.top-design__outline-button,
.product-kbn-top__outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 190px;
    min-height: 44px;
    padding: 8px 24px;
    border: 1px solid var(--top-design-red);
    border-radius: var(--mirai-theme-radius-pill);
    color: var(--top-design-red);
    background: #ffffff;
    font-size: 14px;
    text-decoration: none;
}

.top-design__outline-button:hover,
.top-design__outline-button:focus,
.product-kbn-top__outline-button:hover,
.product-kbn-top__outline-button:focus {
    color: #ffffff;
    background: var(--top-design-red);
    text-decoration: none;
}

.top-design__wide-promotion {
    width: 100%;
    margin: 0 0 48px;
}

.top-design__wide-visual {
    aspect-ratio: 10 / 3;
    overflow: hidden;
    border-radius: var(--mirai-theme-radius-sm);
}

.top-design__wide-visual picture,
.product-kbn-top__hero picture,
.product-kbn-top__lineup-figure picture {
    display: block;
    width: 100%;
    height: 100%;
}

.top-design__wide-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.top-design__section-subtitle {
    margin-top: -10px;
    color: var(--top-design-red);
    font-size: 12px !important;
}

.top-design__button-row,
.product-kbn-top__button-row {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.top-design-product-sections .ec-secHeading__en,
.top-design-product-sections .ec-secHeading__ja {
    color: var(--top-design-red) !important;
}

.top-design-product-sections .ec-secHeading {
    justify-content: center;
}

.top-design-product-sections .content-arrows {
    display: none !important;
}

.top-design-product-sections h2.ec-secHeading__en {
    margin: 0;
}

.top-design-product-sections .content-arrows button {
    background: var(--top-design-red) !important;
}

.top-design-product-sections .ec-contentRole__listItem img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--mirai-theme-radius-sm);
    background: var(--top-design-placeholder);
}

.top-design-product-sections__promotions {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 72px;
}

.top-design-product-sections__promotion {
    display: block;
}

.top-design-product-sections__promotion figure {
    aspect-ratio: 16 / 10;
    border-radius: var(--mirai-theme-radius-sm);
}

.top-design-product-sections__promotion:nth-child(1) figure {
    background: #b9df4a;
}

.top-design-product-sections__promotion:nth-child(2) figure {
    background: #dff0b1;
}

.top-design-product-sections__promotion:nth-child(3) figure {
    background: #eef1f3;
}

.product-kbn-top__hero {
    margin-bottom: 44px;
}

.product-kbn-top__hero figure {
    aspect-ratio: 2 / 1;
    overflow: hidden;
}

.product-kbn-top__hero--static img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
}

.product-kbn-top__hero figcaption {
    font-size: 34px;
}

.product-kbn-top__royal-grid,
.product-kbn-top__pet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 32px;
}

.product-kbn-top__feature-card,
.product-kbn-top__pet-lineup {
    position: relative;
    padding: 16px;
    border: 1px solid var(--top-design-border);
    border-radius: var(--mirai-theme-radius-sm);
    background: #ffffff;
    text-align: center;
}

.product-kbn-top__feature-card figure,
.product-kbn-top__pet-lineup figure {
    aspect-ratio: 16 / 7;
    margin-bottom: 18px;
    border-radius: var(--mirai-theme-radius-sm);
}

.product-kbn-top__feature-card:nth-child(1) figure {
    background: #c5eeee;
}

.product-kbn-top__feature-card:nth-child(2) figure {
    background: #fde0c7;
}

.product-kbn-top__feature-card {
    overflow: hidden;
    padding: 0;
    border: 0;
}

.product-kbn-top__feature-card .product-kbn-top__royal-figure {
    aspect-ratio: auto;
    margin-bottom: 0;
}

.product-kbn-top__pet-lineup figcaption span {
    font-family: var(--mirai-theme-font-ja);
    font-size: 13px;
}

.product-kbn-top__important-notice {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-bottom: 56px;
    padding: 14px 20px;
    background: #d7e987;
}

.product-kbn-top__important-notice h2,
.product-kbn-top__important-notice p {
    margin: 0;
}

.product-kbn-top__important-notice h2 {
    color: var(--top-design-red);
    font-size: 18px;
}

.product-kbn-top__important-notice p {
    font-size: 13px;
    line-height: 1.7;
}

.product-kbn-top__important-notice .product-kbn-top__outline-button {
    min-width: 150px;
    min-height: 36px;
    font-size: 12px;
}

.product-kbn-top__pet-lineup figure {
    background: #f7f2eb;
}

.product-kbn-top__pet-lineup .product-kbn-top__lineup-figure {
    aspect-ratio: 117 / 44;
    overflow: hidden;
}

.product-kbn-top__lineup-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-kbn-top__lineup-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.product-kbn-top__lineup-button-row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.product-kbn-top__lineup-buttons .product-kbn-top__outline-button {
    min-width: 0;
    width: 45%;
    max-width: 280px;
    min-height: 38px;
    padding: 6px 12px;
    color: #ffffff;
    background: var(--top-design-red);
    font-size: 12px;
}

.product-kbn-top__about {
    padding: 24px 20px 72px;
    text-align: center;
}

.product-kbn-top__about h2,
.product-kbn-top__section-heading h2 {
    margin: 0;
    color: var(--top-design-red);
    font-family: var(--mirai-theme-font-en);
    font-size: 28px;
    font-weight: 600;
}

.product-kbn-top__about > p:not(.product-kbn-top__section-subtitle) {
    margin: 20px 0 24px;
    font-size: 14px;
    line-height: 1.9;
}

.product-kbn-top__section-subtitle,
.product-kbn-top__section-heading p {
    margin: 2px 0 0;
    color: var(--top-design-red);
    font-size: 12px;
}

.product-kbn-top__catalog-section {
    margin-bottom: 72px;
}

.product-kbn-top__section-heading {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    text-align: center;
}

.product-kbn-top__slider-arrows {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    transform: translateY(-50%);
}

.product-kbn-top__slider-arrows button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: var(--top-design-red);
}

.product-kbn-top__slider-arrows button:first-child {
    margin-right: 10px;
}

.product-kbn-top__slider-arrows button.slick-disabled {
    cursor: default;
    background: #cccccc;
}

.product-kbn-top__slider-arrows button img {
    width: 12.3px;
}

.product-kbn-top__product-grid:not(.slick-initialized) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.product-kbn-top__product-grid.slick-initialized .slick-list {
    margin: 0 -12px;
}

.product-kbn-top__product-grid.slick-initialized .slick-slide {
    box-sizing: border-box;
    padding: 0 12px;
}

.product-kbn-top__product-card img {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 16px;
    object-fit: contain;
    border-radius: var(--mirai-theme-radius-sm);
    background: var(--top-design-placeholder);
}

.product-kbn-top__product-card h3,
.product-kbn-top__product-card p {
    color: var(--top-design-text);
    font-size: 13px;
    line-height: 1.7;
}

.product-kbn-top__product-card h3 {
    margin: 0 0 4px;
    font-weight: 500;
}

.product-kbn-top__product-card p {
    margin: 0;
}

.front_page .ec-layoutRole__mainBottom .ec-newsRole {
    padding: 24px 20px 52px;
}

.front_page .ec-layoutRole__mainBottom .ec-secHeading,
.front_page .ec-layoutRole__mainBottom .ec-secHeading > div {
    display: block;
    text-align: center;
}

.front_page .ec-layoutRole__mainBottom .ec-secHeading {
    margin-bottom: 28px;
}

.front_page .ec-layoutRole__mainBottom .ec-secHeading__en,
.front_page .ec-layoutRole__mainBottom .ec-secHeading__ja {
    display: block;
    color: var(--top-design-red) !important;
}

.front_page .ec-layoutRole__mainBottom .ec-secHeading__en {
    padding: 0;
    font-family: var(--mirai-theme-font-en) !important;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
}

.front_page .ec-layoutRole__mainBottom .ec-secHeading__ja {
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: normal;
}

.front_page .ec-layoutRole__mainBottom .ec-slash {
    display: none;
}

.front_page .ec-layoutRole__mainBottom .ec-newsRole__news {
    max-width: 860px;
    margin: 0 auto;
}

.front_page .ec-layoutRole__mainBottom .ec-newsRole__newsDate {
    color: var(--top-design-red);
    font-weight: 400;
}

.front_page .ec-layoutRole__mainBottom .ec-newsRole__newsTitle {
    color: var(--top-design-text);
    font-weight: 400;
}

.front_page .ec-layoutRole__mainBottom .ec-calendarRole {
    margin-bottom: 72px;
    text-align: center;
}

.front_page .ec-layoutRole__mainBottom .ec-calendarRole .ec-secHeading {
    display: block;
    margin-bottom: 12px;
}

.front_page .ec-layoutRole__mainBottom .ec-calendarRole .ec-secHeading__en,
.front_page .ec-layoutRole__mainBottom .ec-calendarRole .ec-secHeading__ja {
    display: block;
    color: var(--top-design-red);
}

.front_page .ec-layoutRole__mainBottom .ec-calendarRole .ec-calendar {
    justify-content: center;
    gap: 24px;
}

.top-design-sidebar-promotions {
    margin-top: 20px;
}

.top-design-sidebar-promotion {
    position: relative;
    margin: 0 0 18px;
    overflow: hidden;
    border-radius: var(--mirai-theme-radius-sm);
    background: #eff0e3;
}

.top-design-sidebar-promotion:first-child {
    background: #dceea1;
}

.top-design-sidebar-promotion > a {
    display: block;
}

.top-design-sidebar-promotion img {
    display: block;
    width: 100%;
    height: auto;
}

@media only screen and (max-width: 1023px) {
    .product-kbn-top__lineup-button-row {
        flex-direction: column;
        align-items: center;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
    .product-kbn-top__lineup-buttons .product-kbn-top__outline-button {
        width: 100%;
    }

    .top-design--general .top-design__important-notice {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 20px;
        text-align: center;
    }

    .top-design--general .top-design__important-notice h2 {
        display: block;
        margin: 0;
        padding: 0;
        background: transparent;
    }
}

@media only screen and (max-width: 767px) {
    .front_page .ec-layoutRole__contents {
        box-sizing: border-box;
    }

    .top-design__image-placeholder figcaption,
    .product-kbn-top__image-placeholder figcaption {
        font-size: 22px;
    }

    .top-design__branch-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .top-design__important-notice,
    .top-design__about {
        padding: 20px 0 40px;
    }

    .top-design--general .top-design__important-notice {
        display: block;
        margin-bottom: 0;
        padding: 20px 0 40px;
        background: transparent;
        text-align: center;
    }

    .top-design--general .top-design__important-notice h2 {
        display: block;
        margin: 0 0 10px;
        padding: 0;
        background: transparent;
    }

    .top-design--general .top-design__important-notice p {
        margin-bottom: 24px;
        font-size: 12px;
    }

    .top-design__important-notice h2,
    .top-design__about h2 {
        font-size: 22px;
    }

    .top-design__important-notice p,
    .top-design__about p {
        font-size: 12px;
    }

    .top-design__wide-promotion {
        max-width: 360px;
        margin-right: auto;
        margin-bottom: 36px;
        margin-left: auto;
    }

    .top-design__wide-visual {
        aspect-ratio: 64 / 55;
    }

    .top-design__button-row,
    .product-kbn-top__button-row {
        gap: 14px;
    }

    .top-design__outline-button,
    .product-kbn-top__outline-button {
        min-width: 0;
        width: 100%;
    }

    .top-design__button-row .top-design__outline-button {
        flex: 1 1 0;
        width: auto;
    }

    .top-design-product-sections__promotions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 52px;
    }

    .top-design-product-sections__promotion figure {
        aspect-ratio: 335 / 210;
    }

    .top-design-product-sections .ec-secHeading {
        justify-content: space-between;
    }

    .top-design-product-sections .content-arrows {
        display: flex !important;
    }

    .product-kbn-top__hero {
        max-width: 360px;
        margin: 0 auto 24px;
    }

    .product-kbn-top__hero figure,
    .product-kbn-top__pet-lineup .product-kbn-top__lineup-figure {
        aspect-ratio: 1;
    }

    .product-kbn-top__hero figcaption {
        font-size: 24px;
    }

    .product-kbn-top__royal-grid,
    .product-kbn-top__pet-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 360px;
    }

    .product-kbn-top__important-notice {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
        text-align: center;
    }

    .product-kbn-top__lineup-buttons {
        flex-direction: column;
    }

    .product-kbn-top__lineup-buttons .product-kbn-top__outline-button {
        width: 100%;
        max-width: 280px;
    }

    .product-kbn-top__about {
        padding: 24px 0 52px;
    }

    .product-kbn-top__about h2,
    .product-kbn-top__section-heading h2 {
        font-size: 24px;
    }

    .product-kbn-top__about > p:not(.product-kbn-top__section-subtitle) {
        font-size: 12px;
    }

    .front_page .ec-layoutRole__mainBottom {
        margin-top: 0;
    }

    .front_page .ec-layoutRole__mainBottom .ec-newsRole {
        padding: 20px 0 40px;
    }

    .front_page .ec-layoutRole__mainBottom .ec-secHeading {
        margin-bottom: 24px;
    }

    .front_page .ec-layoutRole__mainBottom .ec-secHeading > div > .ec-secHeading__en {
        width: 100%;
        font-size: 22px;
    }

    .product-kbn-top__product-grid:not(.slick-initialized) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 14px;
    }

    .product-kbn-top__product-grid.slick-initialized .slick-list {
        margin: 0 -7px;
    }

    .product-kbn-top__product-grid.slick-initialized .slick-slide {
        padding: 0 7px;
    }

    .front_page .ec-layoutRole__mainBottom .ec-calendarRole .ec-calendar {
        flex-direction: column;
        align-items: center;
    }
}
