/* css/footer-common.css */
/* サイト全体で共通のページフッターに関するスタイル */

.page-footer {
    position: relative;
    background-color: #111;
    color: #a9b5c2;
    padding: 80px 20px 0px;
    margin-top: 0px;
    text-align: center;
	z-index:100;
}

/* フッター上部の曲線的な区切りデザイン */
.footer-divider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: translateY(-1px); /* 隙間ができないように調整 */
}

.footer-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px; /* 曲線の高さ */
}

.footer-divider .shape-fill {
    fill: #111; /* フッターの背景色と同じ */
}

.footer-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-logo {
    position: relative; /* ::before要素の配置基準にする */
}

.footer-logo::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background-image: url('../images/footerText-created.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


.footer-logo a {
    display: block;
    width: 50%;
    max-width: 220px;
    height: 60px;
    /* 上に配置した画像分のマージンを追加 */
    margin: 0px auto 25px;
    background-image: url('../images/headerNewMainLogo.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-logo a:hover {
    opacity: 0.75;
}


/* --- SNSリンク --- */
.footer-social-links {
    list-style: none;
    padding: 0;
    margin: 10px 0 36px; /* 上の画像との間隔を調整 */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.social-icon {
    display: block;
    width: 35px;
    height: 35px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.social-icon:hover {
    opacity: 0.7;
    transform: translateY(-3px);
}

.social-icon.social-x {
    background-image: url('../images/footerIcon_x.svg');
}
.social-icon.social-line {
    background-image: url('../images/footerIcon_line.svg');
}
.social-icon.social-youtube {
    background-image: url('../images/footerIcon_youtube.svg');
}
.social-icon.social-facebook {
    background-image: url('../images/footerIcon_facebook.svg');
}
.social-icon.social-instagram {
    background-image: url('../images/footerIcon_instagram.svg');
}

/* ★修正: キャッチフレーズ画像用のスタイル（親要素） */
.footer-catchphrase {
    position: relative; /* 子要素を絶対配置するための基準 */
    margin: 0 auto;
    width: 280px;
    height: 70px;
	margin-bottom:-12px;
}

/* ★追加: キャッチフレーズ画像用のスタイル（子要素） */
.footer-catchphrase-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 40px;
    background-image: url('../images/footerText-catchphrase-text.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.footer-catchphrase-character {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 240px;
    height: 40px;
    background-image: url('../images/footerText-catchphrase-character.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}


/* --- 塾生・検討中の方向けリンク --- */
.footer-primary-links {
    list-style: none;
    padding: 0;
    margin: 6px auto 40px; /* 上の画像との間隔を調整 */
    display: flex;
    justify-content: center;
    gap: 20px; /* ボタン間の隙間 */
    flex-wrap: nowrap; /* スマホでも折り返さない */
    max-width: 600px; /* PCでの最大幅を指定 */
}

.footer-primary-links li {
    flex-grow: 1; /* 利用可能なスペースを均等に分け合う */
    flex-basis: calc(50% - 10px); /* 基本幅を50%弱に設定 */
    display: flex; /* aタグの高さを揃えるため */
    min-width: 130px; /* 極端に狭い画面での最小幅を確保 */
}

.footer-primary-links a {
    display: flex; /* 内部要素の配置のため */
    flex-direction: column; /* strongとspanを縦に並べる */
    justify-content: center; /* 垂直方向中央揃え */
    width: 100%; /* liいっぱいに広がる */
    padding: 12px 10px; /* 内側余白を調整 */
    border: 1px solid #fff;
    border-radius: 40px; /* 少し角丸を小さく */
    color: #e9ecef;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px; /* 文字サイズを少し小さく */
    line-height: 1.4;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.footer-primary-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ★追加箇所: このクラスで改行を防ぎます */
.footer-primary-links .link-maintext {
    white-space: nowrap;
}

.footer-primary-links strong {
    font-size: 1.2em; /* 親の文字サイズに対する倍率を調整 */
}

.footer-primary-links .link-subtitle {
    display: block;
    font-size: 0.85em;
    margin-top: 2px; /* 間隔を調整 */
    font-weight: bold;
    opacity: 0.8;
}


/* --- フッターナビゲーション --- */
.footer-nav-container {
    display: flex;
    justify-content: space-around;
    gap: 30px; /* PCでのカラム間隔 */
    margin-top: 50px;
    text-align: left;
}

.footer-nav-group {
    flex: 1;
    min-width: 0; /* flex-basisと合わせて伸縮させるため */
    flex-basis: 50%; /* PCでも均等幅を意識 */
}

.footer-nav-group h4 {
    color: #fff;
    font-size: 13px; /* 文字サイズを調整 */
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
	opacity:0.7;
}

.footer-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav-list li {
    margin-bottom: 10px;
}

.footer-nav-list a {
    color: #e9ecef;
    text-decoration: none;
    font-size: 13px; /* 文字サイズを調整 */
    position: relative;
    padding: 2px 0;
    transition: color 0.3s ease;
}

.footer-nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: #588ec4;
    transition: width 0.3s ease;
}

.footer-nav-list a:hover {
    color: #fff;
}

.footer-nav-list a:hover::after {
    width: 50%;
}

.footer-utility-nav {
    margin-top: 50px;
    padding-top: 0px;
    border-top:;none
}

.footer-utility-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-start; /* 左揃えに変更 */
    flex-wrap: wrap; /* 画面が狭い時に折り返す */
    gap: 12px 25px; /* リンク間の隙間 (縦 横) */
}

.footer-utility-list a {
    color: #999;
    text-decoration: none;
    font-size: 12px; /* .footer-nav-list と同じサイズ */
    transition: color 0.3s ease;
}

.footer-utility-list a:hover {
    color: #fff; /* ホバー時に白くする */
}

/* --- 公式サイトリンクボタン --- */
.footer-official-site-link {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start; /* ボタンを左に寄せる */
}

.footer-official-site-link a {
    display: block;
    width: 220px;
    height: 70px;
    background-color: #fff;
    border-radius: 35px;
    box-shadow: 0 4px 0px #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* 複数の背景画像をまとめて指定 */
    background-image: url('../images/icon_blank.svg'), url('../images/footer_OfficialLogo.svg');
    background-repeat: no-repeat, no-repeat;
    background-size: 20px 20px, 115px auto; /* アイコンサイズ、ロゴサイズ */
    background-position: calc(100% - 18px), left 30px center, center; /* アイコンの位置、ロゴの位置 */
}

.footer-official-site-link a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


/* --- フッターアプリロゴ --- */
.footer-app-logo {
    margin-top: 50px;
    display: flex;
    justify-content: flex-end; /* ロゴを右に寄せる */
}


.footer-copyright {
    font-size: 12px; /* 文字サイズを調整 */
    color: #777;
    margin-top: 50px;
}

/* --- フッターアプリロゴ --- */
.footer-app-logo {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end; /* ロゴを右に寄せる */
}

.footer-app-logo a {
    display: block;
    width: 50%;
    max-width: 200px;
    height: 60px;
    background-image: url('../images/footerLogo_W.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.footer-app-logo a:hover {
    opacity: 0.7;
}


.footer-copyright {
    font-size: 12px; /* 文字サイズを調整 */
    color: #777;
    margin-top: 20px;
	text-align:right;
	padding-bottom:90px;
}

/* --- フッターキャラクター --- */
.footer-character-container {
    position: absolute;
    bottom: 0px;
    left: 0px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px; /* 吹き出しとキャラクターの間隔 */
    z-index: 2; /* 他の要素より手前に表示 */
}

.footer-character {
    width: 100px;
    height: 70px;
    background-image: url('../images/footerBottom_vispo.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.footer-character-bubble {
    position: relative;
    background-color: #444;
    color: #fff; /* 文字色を白にすると見やすいです */
    font-size: 12px;
    font-weight: bold;
    padding: 16px 24px;
    border-radius: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 吹き出しのしっぽ（画像に変更） */
.footer-character-bubble::after {
    content: '';
    position: absolute;
    bottom: -18px; /* 画像の高さに合わせて調整 */
    left: 80px; /* 左から30pxの位置に配置 */
    width: 40px; /* 画像の幅 */
    height: 20px; /* 画像の高さ */
    background-image: url('../images/footerBottom_balloonTail.svg');
    background-size: contain;
    background-repeat: no-repeat;
    transform: none; /* 不要な変形をリセット */
    border: none; /* 不要なボーダーをリセット */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .footer-nav-container {
        gap: 20px;
    }
}

@media (max-width: 400px) {
    /* ナビゲーションリンクの文字サイズをさらに小さくする */
    .footer-nav-list a {
        font-size: 12px;
    }
    /* プライマリーリンクの文字サイズも調整 */
    .footer-primary-links a {
        font-size: 12px;
        padding: 10px 8px;
    }
    .footer-nav-container {
        gap: 20px;
    }
    /* ユーティリティリンクのフォントサイズを調整 */
    .footer-utility-list a {
        font-size: 11px;
    }
}