/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Roboto, "Droid Sans", "Yu Gothic", Meiryo, "Meiryo UI", sans-serif;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.sp-only {
    display: inline;
}

.lg-hidden {
    display: inline;
}

/* ============================================
     Footer Link Mega Section
     ============================================ */
.footer-links {
    background: #F7F6F2;
}

/* ---------- SP アコーディオン ---------- */
.footer-links-sp {
    display: block;
    width: 100%;
}

.footer-links-pc {
    display: none;
}

/* アコーディオン */
.footer-accordion {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-accordion-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: all 0.2s;
}

.footer-accordion-summary::-webkit-details-marker {
    display: none;
}

.footer-accordion-caret {
    font-size: 14px;
    transition: transform 0.2s;
}

.footer-accordion[open] .footer-accordion-caret {
    transform: rotate(180deg);
}

.footer-accordion-body {
    padding: 0 20px 16px;
}

.footer-accordion-title-link {
    margin-bottom: 0;
}

.footer-accordion-title-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    transition: opacity 0.2s;
}

.footer-accordion-title-link a:hover {
    opacity: 0.7;
}

.footer-accordion-body ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-accordion-body ul li a {
    font-size: 13px;
    color: #374151;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: opacity 0.2s;
}

.footer-accordion-body ul li a:hover {
    opacity: 0.8;
}

/* シンプルリンク（ビジョン、社会貢献、スポーツ事業） */
.footer-simple-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: opacity 0.2s;
}

.footer-simple-link:hover {
    opacity: 0.7;
}

.footer-accordion-border-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.gt {
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s;
}

a:hover .gt {
    transform: translateX(4px);
}

/* ---------- PC グリッド ---------- */
.footer-links-pc-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.footer-grid-top {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
}

.footer-grid-bottom {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-pc-category {}

.footer-pc-title {
    display: flex;
    align-items: center;
    border-top: 1px solid #d1d5db;
    padding-top: 16px;
    padding-bottom: 8px;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    transition: opacity 0.2s;
}

.footer-pc-title:hover {
    opacity: 0.7;
}

.footer-pc-title .gt {
    margin-left: 4px;
}

.footer-pc-category ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 0;
}

.footer-pc-category ul li a {
    font-size: 14px;
    color: #374151;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: opacity 0.2s;
}

.footer-pc-category ul li a:hover {
    opacity: 0.8;
}

/* ============================================
     Footer Contact
     ============================================ */
.footer-contact {
    width: 100%;
    position: relative;
}

.footer-contact-bg {
    position: relative;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    overflow: hidden;
}

.footer-contact-img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-contact-img-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

.footer-contact-content {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-contact-inner {
    width: 100%;
    padding: 40px 0;
    background-color: #ffffff;
    background-image: url('web/public/images/common/mask-group.webp');
    background-repeat: repeat;
}

.footer-contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-contact-heading {
    text-align: center;
    font-weight: 600;
    font-size: 24px;
    color: #131B3F;
    line-height: 1.2;
}

.footer-contact-desc {
    text-align: center;
    line-height: 1.625;
    max-width: 90%;
    margin: 16px 0;
    font-size: 14px;
    color: #475569;
}

.footer-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 95%;
}

.footer-contact-phone {
    font-family: "Barlow Condensed", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    transition: opacity 0.2s;
}

.footer-contact-phone:hover {
    opacity: 0.8;
}

.phone-icon {
    color: #131B3F;
    width: 24px;
    height: 24px;
}

.phone-number {
    font-weight: 500;
    font-size: 42px;
    letter-spacing: 1px;
    color: #131B3F;
}

.footer-contact-form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 90%;
    height: 48px;
    background: #1c468d;
    transition: opacity 0.2s;
    color: #ffffff;
}

.footer-contact-form-btn:hover {
    opacity: 0.9;
}

.envelope-icon {
    color: #ffffff;
    width: 22px;
    height: 22px;
}

.footer-contact-form-btn span {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.7px;
    color: #ffffff;
}

/* ============================================
     Footer Bottom
     ============================================ */
.footer-bottom {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    background: #131B3F;
    overflow: hidden;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
}

/* 認証ロゴ */
.footer-logos {
    width: 100%;
    padding: 64px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 0;
}

.footer-logos a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25%;
    padding: 0 8px;
}

.footer-logos a img {
    width: 100%;
    max-width: 80px;
    height: auto;
    object-fit: contain;
}

/* DYMロゴ */
.footer-dym-logo {
    display: block;
    width: 128px;
    margin: 0 auto;
}

/* ナビゲーション */
.footer-bottom-nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
    padding: 24px 0;
    border-bottom: 1px solid #ffffff;
}

.footer-bottom-nav a {
    display: inline-block;
    white-space: nowrap;
    font-size: 14px;
    color: #ffffff;
    transition: opacity 0.2s;
}

.footer-bottom-nav a:hover {
    opacity: 0.8;
}

/* コピーライト */
.footer-copyright {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 60px;
}

.footer-copyright p {
    font-weight: 700;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
}

/* ============================================
     Responsive
     ============================================ */

/* md: 768px */
@media (min-width: 768px) {
    .sp-only {
        display: none;
    }

    .footer-contact-bg .footer-contact-img-overlay {
        display: block;
    }

    .footer-contact-content {
        position: absolute;
        inset: 0;
        justify-content: flex-end;
    }

    .footer-contact-inner {
        padding: 0;
        background-color: transparent;
        background-image: none;
    }

    .footer-contact-container {
        padding: 0 8px;
    }

    .footer-contact-heading {
        font-size: 28px;
        color: #ffffff;
    }

    .footer-contact-desc {
        font-size: 18px;
        color: #ffffff;
    }

    .footer-contact-actions {
        flex-direction: row;
        gap: 24px;
        margin-bottom: 16px;
    }

    .footer-contact-phone {
        flex: 1;
        height: 80px;
        gap: 16px;
    }

    .phone-icon {
        display: none;
    }

    .phone-number {
        font-size: 40px;
        letter-spacing: 2px;
        color: #ffffff;
    }

    .footer-contact-form-btn {
        flex: 1;
        width: auto;
        height: 60px;
        gap: 16px;
    }

    .envelope-icon {
        width: 36px;
        height: 36px;
    }

    .footer-contact-form-btn span {
        font-size: 20px;
    }

    .footer-bottom-container {
        padding: 0 8px;
    }

    .footer-logos {
        justify-content: space-between;
        gap: 0;
    }

    .footer-logos a {
        width: auto;
        flex: 1;
    }

    .footer-logos a img {
        max-width: 120px;
    }

    .footer-dym-logo {
        width: 160px;
    }
}

/* lg: 1024px */
@media (min-width: 1024px) {
    .lg-hidden {
        display: none;
    }

    .footer-links-sp {
        display: none;
    }

    .footer-links-pc {
        display: block;
        padding: 80px 0;
    }

    .footer-bottom-nav {
        justify-content: space-between;
    }

    .footer-contact-heading {
        font-size: 32px;
    }

    .footer-contact-desc {
        font-size: 20px;
    }
}

/* xl: 1280px */
@media (min-width: 1280px) {
    .footer-contact-actions {
        max-width: 1200px;
        gap: 40px;
        margin-bottom: 32px;
    }

    .footer-contact-phone {
        height: 120px;
    }

    .phone-icon {
        display: block;
        color: #ffffff;
        width: 46px;
        height: 46px;
    }

    .phone-number {
        font-size: 74px;
        letter-spacing: 3.7px;
    }

    .footer-contact-form-btn {
        width: 520px;
        flex: none;
        height: 80px;
    }

    .envelope-icon {
        width: 46px;
        height: 46px;
    }

    .footer-contact-form-btn span {
        font-size: 32px;
    }

    .footer-bottom-container {
        padding: 0;
    }

    .footer-logos a img {
        max-width: 140px;
    }
}