/* ====================================
   Footer Styling 
   ==================================== */
/* Base settings */
.footer-section {
    background-color: #ffffff;
    padding: 60px 0 20px;
    color: #333;
    font-family: "Noto Sans JP", sans-serif; /* Japanese font */
}
/* Class for English font (Jost) */
.en {
    font-family: "Jost", sans-serif, Helvetica, Arial;
    font-weight: 800;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* ▼ Basic settings for Smartphone (SP): Vertical stacking */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Common settings for each link */
.footer-section a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
.footer-section a:hover { opacity: 0.7; }
.footer-nav, .address-list { list-style: none; padding: 0; margin: 0; }

/* Common for headings */
.footer-heading {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 800;
}

.footer-heading-caption{
    display:block;
    font-size: 12px;
    font-weight: 600;
}

.col-logo-sns {
}
.col-address {
    margin-top:20px;
    order: 3;
}
.col-service {
    order: 1;
}
.col-other {
    order: 2;
}

/* ----------------------------------
   [1st column] Logo & SNS
   ---------------------------------- */
.footer-logo img {
    max-width: 180px;
    margin-bottom: 12px;
}
.footer-sns {
    display: flex;
    gap: 15px;
}
.footer-sns img {
    width: 40px;
    height: auto;
    padding-bottom:30px;
}

/* ----------------------------------
   [2nd column] Address & Privacy
   ---------------------------------- */
.address-list li {
    margin-bottom: 20px;
    padding-bottom: 20px;
}
.address-list dl {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
}
.address-list dt {
    font-weight: 800;
    width: 140px; /* Label width */
}
.address-list dd {
    margin: 0;
    width: calc(100% - 140px); /* Remaining width */
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    margin-top: 10px;
}
.icon-external {
    width: 14px;
    height: auto;
    margin-right: 8px;
}

/* ----------------------------------
   [3rd column] Service (Vertical line design)
   ---------------------------------- */
.service-sub-group {
    border-left: 1px solid #333; /* Black line on the left */
    padding-left: 20px;
    padding-bottom: 8px;
}

.service-sub-group:last-child{
    margin-bottom: 0;
    padding-bottom: 0;
}

.footer-sub-heading {
    font-size: 16px;
    margin-bottom: 15px;
}
.footer-nav li {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 800;
}

/* ----------------------------------
   [4th column] Works & Company
   ---------------------------------- */
.footer-block {
    margin-bottom: 0; /* Spacing between Works and Company */
}

.footer-block:last-child { margin-bottom: 0; }

/* Copyright */
.copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
    font-weight: 800;
}

/* ====================================
   PC Size (768px and above)
   ==================================== */
@media screen and (min-width: 768px) {
    
    /* Change the whole to horizontal alignment (4 columns) */
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 30px; /* Margin between columns */
    }

    /* Width ratio of each column (adjusted to be close to 100% in total) and order */
    .col-logo-sns {
        width: 20%;
    }
    .col-address {
        width: 30%;
        margin-top:0;
        order: 1;
    }
    .col-service {
        width: 25%;
        order: 2;
    }
    .col-other {
        width: 15%;
        order: 3;
    }

    /* Fine adjustments for PC */
    .footer-logo img {
        margin-bottom: 25px;
    }

    .footer-heading {
        margin-bottom: 25px;
    }

    .footer-inner {
        gap: 50px;
    }

    .footer-sns img {
        padding-bottom:10px;
    }

    .address-list li {
        border-bottom: none; /* Remove separator line on PC? */
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 1px solid #333; /* Black line on the left */

    }

    .address-list li:last-child{
        border:none;
    }

    .service-sub-group {
        padding-bottom: 35px;
    }

    .footer-block {
        margin-bottom: 50px; /* Spacing between Works and Company */
    }

    .address-list li {
        border-bottom: 1px solid #ddd; /* Separator line */
    }



    /* Copyright */
    .copyright {
        margin-top: -18px;
    }
}