/* Footer Section */
.footer-section {
    background-color: #9DD6EA; /* Figma Rectangle 17:21667 */
    /* PC版(9771:25) ロゴy:97.5. コピーライトy:247.5, h:28 -> end:275.5. セクションh:397 */
    /* padding-top: 97.5px. padding-bottom: 397 - 275.5 = 121.5px */
    padding: 97.5px 0 121.5px; 
    color: #1B1464;
    font-family: "Noto Sans JP", sans-serif;
}

.footer-content {
    /* PC版ロゴx:177. TOPボタンx:1184, w:80 -> end:1264. max-width: 1264-177 = 1087px */
    max-width: 1087px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: stretch; 
    padding: 0 20px; /* 左右の基本的な余白 */
    box-sizing: border-box;
}

.footer-left {
    /* Figma 17:19593 (ロゴ) x:177, y:97.5 (親9771:25から) */
    /* Figma 17:19618 (タグライン) x:557, y:109.5 (親9771:25から) */
    /* ロゴとタグラインは縦に並べる */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 239.84px; /* Figma 17:19593 dimensions.width */
    height: auto;
    /* ロゴ(y:97.5)とタグライン(y:109.5)はFigma上では少しずれて横方向にも見えるが、デザイン的には縦積みが自然 */
    margin-bottom: 28px; /* タグラインとの間隔を調整 */
}

.footer-tagline {
    font-weight: 700;
    font-size: 25px;
    line-height: 28px;
}

.footer-center {
    /* PC版 タグライン(x:557, y:109.5), ナビ(x:557, y:209.5), コピーライト(x:557, y:247.5) */
    /* footer-left と同じx座標に配置されているように見えるが、実際はロゴの右側 */
    /* デザインカンプを見ると、ロゴの右にタグライン、その下にナビ、コピーライト */
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.footer-nav {
    /* ナビ(y:209.5)とコピーライト(y:247.5)の差 247.5 - (209.5 + 28 line-height) = 10px */
    margin-bottom: 10px; 
}

.footer-nav a {
    font-weight: 700;
    font-size: 16px;
    line-height: 28px;
    color: #1B1464;
    text-decoration: none;
    margin-right: 2em; /* Figmaの全角スペース2つ分を表現 */
}

.footer-nav a:last-child {
    margin-right: 0;
}

.footer-copyright {
    font-weight: 500;
    font-size: 12px;
    line-height: 28px;
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-to-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-star;
    width: 80px; /* Figma Ellipse 17:19619 dimensions.width */
    height: 80px; /* Figma Ellipse 17:19619 dimensions.height */
    background-color: #FFFFFF; /* Figma Ellipse 17:19619 fills */
    border: 2px solid #1B1464; /* Figma Ellipse 17:19619 strokes */
    border-radius: 50%;
    text-decoration: none;
    color: #1B1464;
    transition: opacity 0.3s ease;
    padding-top: 22.87%;
}

.footer-to-top:hover {
    opacity: 0.8;
}

.footer-to-top-arrow {
    width: 17px; /* Figma Group 10 (17:19623) dimensions.width */
    height: auto;
    /* 矢印(y:20.3 relative)とテキスト(y:21 relative)はほぼ同じ高さ。矢印がテキストの上 */
    margin-bottom: -9.78px; /* テキストとの間隔を詰める */
}

.footer-to-top-text {
    font-family: "RiiCookieTest", cursive;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 1.28px;
    line-height: 3.1875; /* アイコンなので詰める */
}

/* SP版スタイル */
@media (max-width: 900px) {
    .footer-section{
        padding: 66px 0 22px;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        margin-bottom: 30px;
    }
    .footer-left{
        align-items: center;
    }

    .footer-logo {
        /* SP版ロゴ(27:18944) y:66(親から). タグライン(27:16878) y:335(親から) */
        /* ロゴh:174. ロゴ下端: 66+174 = 240. タグライン上端:335. margin-bottom: 335-240 = 95px */
        margin-bottom: 95px; 
        width: 239.84px; /* SPでもPCと同じサイズ */
    }

    .footer-tagline {
        font-size: 25px; /* SPでもPCと同じサイズ */
        line-height: 1.44em; /* SP版Figma 27:16878 lineHeight */
        text-align: left; /* SPでは中央揃え */
        margin: 0 auto;
        margin-bottom: 63px;
    }

    .footer-center-bottom{
        margin: 0 auto;
    }
    
    .footer-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* ナビ(27:16877) y:470, h:152 -> end:622. コピーライト(27:16876) y:796. */
        /* margin-bottom: 796 - 622 = 174px (これは大きすぎるので調整) */
        margin-bottom: 20px; /* コピーライトとの間隔 (仮) */
    }

    .footer-nav a {
        margin-right: 0;
        font-size: 16px; /* SPでもPCと同じサイズ */
        line-height: 2.375em; /* SP版のlineHeight (2.375emは大きすぎるので調整) */
    }

    .footer-copyright {
        font-size: 12px; /* SPでもPCと同じサイズ */
        /* コピーライト(y:796, h:28 -> end:824). TOPボタン(y:669)より下 */
        /* TOPボタンとのマージンはTOPボタン側で調整 */
    }

    .footer-right {
        margin-bottom: 0; 
        display: flex;
        justify-content: center;
        margin-top: 40px; /* コピーライトとの間隔 (仮) */
    }

    .footer-to-top {
        width: 80px; /* SPでもPCと同じサイズ */
        height: 80px; /* SPでもPCと同じサイズ */
    }
    .footer-to-top-arrow {
        width: 17px; /* SPでもPCと同じサイズ */
    }
    .footer-to-top-text {
        font-size: 16px; /* SPでもPCと同じサイズ */
    }
}