/* ========================================
   Front Page - Hero / Search
   ======================================== */
.site-main--front {
    max-width: 100%;
    padding: 0 0 120px;
}

.front-hero {
    position: relative;
    isolation: isolate;
    z-index: 10;
    overflow: hidden;
    background: #EDF4F8;
    min-height: var(--front-hero-height);
    padding: 0 20px 0;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.front-hero:has(.site-header.is-fixed)::before {
    content: "";
    display: block;
    height: var(--header-height);
}

.front-hero--center {
    display: flex;
    flex-direction: column;
    height: calc(var(--front-hero-height) - var(--header-height) - var(--mv-display-height));
    align-items: center;
    justify-content: center;
}

.front-hero--mv-top-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    pointer-events: none;
    width: clamp(300px, 37vw, 530px);
    height: auto;
}

.front-hero--mv-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
    width: clamp(300px, 35vw, 645px);
    height: auto;
}

.front-hero--title {
    font-size: 28px;
    font-weight: normal;
    padding: 0 0 16px 0;
    color: #000;
}

/* 検索フォーム + Support siteラベルのラッパー */
.front-hero--search-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.front-hero--support-label {
    position: absolute;
    bottom: -8px;
    right: -8px;
    font-family: 'Meow Script', cursive;
    font-size: 32px;
    font-weight: 400;
    color: #43C4F6;
    line-height: 1;
    transform: rotate(-8deg);
    transform-origin: right bottom;
    pointer-events: none;
}


/* Hero内カテゴリテキストナビ */
.front-hero--cat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 28px 0 0 0;
}

.front-hero--cat-link {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    padding: 0;
    transition: color 0.15s;
}

.front-hero--cat-link:hover {
    color: #000;
    text-decoration: none;
}

.front-hero--cat-link + .front-hero--cat-link::before {
    content: "|";
    color: #aaa;
    margin-right: 12px;
}

/* ========================================
   Front Page - セクションタイトルと中身のgap
   ======================================== */
.front-columns--main .section {
    display: flex;
    flex-direction: column;
    gap: var(--front-section-gap, 32px);
}

.front-columns--main .section--header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.front-columns--main .section--body {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ========================================
   Front Page - 2カラムレイアウト
   ======================================== */
.front-columns {
    width: 100%;
    background: #fff;
    display: flex;
    margin: 0 auto;
    gap: 60px;
    padding: 60px 40px 0;
    max-width: 1200px;
}

.front-columns--main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.front-columns--sidebar {
    flex-shrink: 0;
    width: 300px;
    position: sticky;
    top: 200px;
    align-self: flex-start;
}

/* ========================================
   初めての方へセクション
   ======================================== */
.section--beginner {
    display: flex;
    align-items: center;
    height: 380px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    gap: 40px;
    box-sizing: border-box;
}

.beginner--icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45%;
}

.beginner--icon img {
    max-width: 100%;
    max-height: 240px;
}

.beginner--content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--beginner-content-gap, 32px);
    min-width: 0;
}

.beginner--body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.beginner--text {
    font-size: 14px;
    color: #555;
    line-height: 1.8;
}

.beginner--btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border: 1.5px solid #000;
    color: #000;
    font-size: 14px;
    text-decoration: none;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: color .35s ease;
}

.beginner--btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left .4s ease;
    z-index: -1;
}

.beginner--btn:hover::before {
    left: 0;
}

.beginner--btn:hover {
    color: #fff;
    text-decoration: none;
}

.beginner--btn-arrow {
    font-size: 18px;
    line-height: 1;
}

/* タグ一覧 */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}


/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1023px) {
    .front-hero {
        padding: 0 16px 0;
    }

    .front-hero--title {
        font-size: 18px;
        padding: 0 0 12px 0;
    }

    .front-hero--search-wrap {
        max-width: 560px;
    }

    .front-hero--support-label {
        font-size: 18px;
    }

    .front-hero--cat-nav {
        padding: 16px 0 0 0;
    }

    .front-hero--cat-link {
        font-size: 16px;
    }

    .front-hero--mv-top-right,
    .front-hero--mv-bottom-left {
        width: clamp(300px, 60%, 450px);
    }

    .section--beginner {
        flex-direction: column;
        height: auto;
        padding: 60px 24px;
        gap: 24px;
        align-items: center;
    }

    .section--beginner .section-title {
        align-items: center;
        text-align: center;
    }

    .beginner--content {
        align-items: center;
    }

    .beginner--btn {
        align-self: center;
    }

    .beginner--icon {
        display: none;
    }

    .front-columns {
        flex-direction: column;
        gap: 40px;
        padding: 60px 24px 0;
    }

    .front-columns--sidebar {
        width: 100%;
        order: -1;
        position: static;
    }
}

/* ========================================
   Section Footer / More Button
   ======================================== */
.section--footer {
    text-align: center;
}
