/* ===========================================
 * 電話番号(ページ下部に固定)
 * stickyで追従、上部からXpxで表示開始(jsで設定)
 * ======================================== */
.fixed-number {
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: #222;
    color: #fff;
    padding: 4px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.4em;
    font-weight: bold;
    box-shadow: 0 -3px 6px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #222;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    justify-content: space-around;
}

.fixed-number.visible {
    opacity: 1;
    transform: translateY(0);
}

.phone-wrapper {
    /* 左側の電話番号欄 */
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1em;
}

.phone-icon {
    font-size: 1.4em;
    color: #fff;
}

.phone-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.phone-number {
    font-weight: bold;
    font-size: 1.4em;
    line-height: 1;
}

.support-hours {
    font-size: 0.7em;
    color: #fff;
    line-height: 1;
}

#page-top-btn {
    /* ページトップへの遷移ボタン */
    background-color: #222;
    color: white;
    font-size: 1.5em;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease;
}

/* ===========================================
 * footerエリア
 * 左に会社情報、右にページ遷移
 * ======================================== */
.footer {
    background-color: #333;
    color: #fff;
    padding: 60px 60px;
    font-size: 0.9em;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.3);
}

.footer-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-left {
    /* 左側会社情報 */
    flex: 1 1 300px;
}

.footer-left h3 {
    margin-top: 0;
    margin-bottom: 0;
    font-weight: bold;
    font-size: 1.6em;
    line-height: 1;
}

.footer-left address {
    font-style: normal;
    line-height: normal;
    line-height: 1;
    white-space: pre-line;
}

.footer-nav {
    /* 右側ページ遷移 */
    flex: 1 1 300px;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px 12px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    display: inline-block;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.25s ease;
}

.footer-nav a:hover {
    background-color: #808080;
    color: #fff;
}



/* モバイル用レスポンシブ調整 */
@media (max-width: 768px) {
    .fixed-number {
        flex-direction: column;
        padding: 10px 20px 0;
        font-size: 1.2em;
    }

    .phone-wrapper {
        flex-direction: row;
        gap: 6px;
        font-size: 1em;
    }

    .fixed-number .page-top-btn-wrapper {
        order: 2;
        margin-top: 10px;
        align-self: center;
    }

    .footer {
        padding: 5%;
    }    

    .footer-nav {
        order: 3;
        width: 100%;
    }

    .footer-left {
        order: 4;
        width: 100%;
    }

    .footer-nav ul {
        display: block;
    }

    .footer-nav ul li {
        margin-bottom: 3px;
    }
}