/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* ---- Tablet (max: 1024px) ---- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .top-about__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .top-about__image {
        order: -1;
    }

    .top-about__image img {
        max-width: 360px;
        margin: 0 auto;
    }

    .about-message__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-message__image img {
        max-width: 400px;
        margin: 0 auto;
    }

    .about-message__signature {
        text-align: center;
    }

    .about-label__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-label__logo img {
        max-width: 250px;
        margin: 0 auto;
    }

    .liver-grid,
    .liver-grid--full {
        grid-template-columns: repeat(3, 1fr);
    }

    .liver-profile__content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .liver-profile__image img {
        max-width: 400px;
        margin: 0 auto;
    }

    .liver-profile__sns {
        justify-content: center;
    }
}

/* ---- Mobile Large (max: 768px) ---- */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 16px;
    }

    /* Header */
    .site-header__nav,
    .site-header__cta {
        display: none;
    }

    .site-header__hamburger {
        display: flex;
    }

    /* Hero - 一枚画風レイヤー合成 */
    .hero {
        height: auto;
        min-height: auto;
        position: relative;
        padding-bottom: 30vw;
    }

    .hero__emomo {
        position: absolute !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60vw !important;
        z-index: 2;
    }

    .hero__content {
        position: relative !important;
        z-index: 3;
        text-align: center;
        padding: 56px 16px 16px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .hero__victory-img.hero__victory-img--large {
        max-width: none;
        width: 90vw;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }

    .hero__logo-img {
        max-width: 80px;
    }

    .hero__content .btn {
        position: relative;
        z-index: 10;
        margin-top: 4px;
    }

    .hero__scroll-indicator {
        display: none;
    }

    .sp-only {
        display: inline;
    }

    /* Section title image */
    .section-title__img {
        max-height: 40px;
        margin-bottom: 28px;
    }

    /* Section titles */
    .section-title {
        margin-bottom: 40px;
    }

    /* Liver grid */
    .liver-grid,
    .liver-grid--full {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Flow */
    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .flow-step__number {
        min-width: auto;
    }

    /* News */
    .news-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 20px 0;
    }

    .news-item__date {
        min-width: auto;
    }

    /* News Nav */
    .news-nav {
        grid-template-columns: 1fr;
    }

    .news-nav__next {
        text-align: left;
    }

    /* Tables */
    .about-office__table th,
    .about-label__table th {
        width: 120px;
        padding: 16px 12px;
    }

    .about-office__table td,
    .about-label__table td {
        padding: 16px 12px;
    }

    /* Footer */
    .site-footer__inner {
        flex-direction: column;
        gap: 32px;
        align-items: center;
        text-align: center;
    }

    .site-footer__nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    /* Page header */
    .page-header {
        padding: 120px 0 60px;
    }

    /* CTA */
    .cta-section {
        padding: 60px 0;
    }

    .btn--lg {
        padding: 16px 40px;
        font-size: 0.9375rem;
    }
}

/* ---- Mobile Small (max: 480px) ---- */
@media (max-width: 480px) {
    .liver-grid,
    .liver-grid--full {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .about-office__table table,
    .about-label__table table {
        display: block;
    }

    .about-office__table tbody,
    .about-label__table tbody {
        display: block;
    }

    .about-office__table tr,
    .about-label__table tr {
        display: flex;
        flex-direction: column;
        padding: 16px 0;
    }

    .about-office__table th,
    .about-office__table td,
    .about-label__table th,
    .about-label__table td {
        width: 100%;
        padding: 4px 0;
    }

    .about-office__table th,
    .about-label__table th {
        font-size: 0.75rem;
    }

    .news-tags {
        gap: 8px;
    }

    .news-tags__item {
        padding: 6px 14px;
        font-size: 0.75rem;
    }
}

/* ---- Large Desktop (min: 1440px) ---- */
@media (min-width: 1440px) {
    :root {
        --container-width: 1320px;
    }
}
