@charset "UTF-8";
/* 画像ホバー時オーバーレイエフェクト */
.image-hover-overlay {
    position: relative;
}
.image-hover-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0);
    transition: background-color 0.2s ease-in-out;
}
.image-hover-overlay:hover::after {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ページの基本レイアウトとフォント設定 */
body.front {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

body .l-main {
    width: auto;
}

/* ヘッダーのスタイル */
.front header {
    background-color: white;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.front .a-billboard {
    display: none;
}

/* PC・スマホで表示を切り替えるレスポンシブなロゴ */
.header-logo {
    height: 60px; /* スマホ用ロゴの高さ */
    width: 183px; /* スマホ用ロゴの幅 */
    background-image: url('https://www.itojuku.co.jp/shiho_column/_src/1120473/2025_logo_sp02.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
@media (min-width: 640px) {
    .header-logo {
        height: 48px; /* PC用ロゴの高さ */
        width: 300px; /* PC用ロゴの幅 */
        background-image: url('https://www.itojuku.co.jp/shiho_column/_src/1097899/2025_logo_tag-line0612.webp');
    }
}

/* メインコンテンツのスタイル */
.front main {
    flex-grow: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

/* タイトルのスタイル（PC・スマホでサイズを調整） */
.title {
    font-size: 1.75rem; /* スマホ用のフォントサイズ */
    font-weight: 700;
    text-align: center;
    color: #1f2937;
    margin-bottom: 2rem;
}
@media (min-width: 640px) {
    .title {
        font-size: 2.25rem; /* PC用のフォントサイズ */
    }
}

/* 画像リンクのグリッドレイアウト */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.image-link {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
}
.image-link img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* フッターのスタイル */
footer {
    background-color: #e8e8e8;
    color: #4b5563;
    padding: 2rem 1rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ページトップへ戻るボタン */
.button-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background-color: transparent;
    color: #4b5563;
    border: 1px solid #4b5563;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    box-shadow: none;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
    margin-bottom: 2rem;
    cursor: pointer;
}
.button-top:hover {
    background-color: #4b5563;
    color: white;
}
.button-top svg {
    margin-right: 0.5rem;
    width: 1.5rem;
    height: 1.5rem;
}

/* フッター区切り線 */
.divider {
    border-top: 1px solid #9ca3af;
    width: 66.666667%;
    margin: 1rem 0;
}

/* クレジット表示のフォントサイズ */
.credit {
    font-size: 0.875rem;
}