/* --------------------------------------------------

    2025 初めての方へ

-------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

img {
    object-fit: contain;
    vertical-align: top;
}

#about_keiba a,
#about_baken a,
#about_race a {
    line-height: 1;
}


/* - レイアウト
-------------------------------------------------- */

.w940 {
	max-width: min(100%, 940px);
	margin: 0 auto;
}

.w1200 {
	max-width: min(100%, 1200px);
	margin: 0 auto;
}

a { color: #0155AD; }

.w940[id] {
    margin-top: 60px;
    margin-top: clamp(40px, 10vw, 80px);
    scroll-margin-top: 70px;
}

#about_keiba {
    margin-top: 20px;
}

.w940[id] h2 {
    font-size: 2rem;
    font-size: clamp(1.8rem, 0.0266rem + 2.3121vw, 2.2rem);
}

h2.heading-underline + * {
    margin-top: 30px;
    margin-top: clamp(24px, 6vw, 40px);
}

.w940[id] h3 {
    margin-top: 30px;
    margin-top: clamp(24px, 6vw, 40px);
    font-size: 1.8rem;
    font-size: clamp(1.6rem, -0.1734rem + 2.3121vw, 2rem);
}

.w940[id] h3 + .unit_list{
    margin-top: 24px;
    margin-top: clamp(16px, 4vw, 30px);
}

.btn-round{
    line-height: 1;
}



/* - コンテンツヘッダーエリア
-------------------------------------------------- */

.shadow_wrap {
    position: relative;
    overflow: hidden;
    /* 擬似要素のの高さの半分 */
    padding-bottom: 4vw;
    width: 100%;
}

.head_area {
    position: relative;
    padding-bottom: 20px;
}

.head_area::before {
    content: "";
    width: 160vw;
    height: 8vw;
    border-radius: 50%;
    position: absolute;
    display: block;
    left: 50%;
    top: 100%;
    bottom: 0;
    transform: translateX(-50%);
    box-shadow: inset 0px 0 2vw rgba(0, 120, 83, 0.2);
    box-shadow: inset 0px 0 clamp(1.5rem, 4vw, 2rem) rgb(from var(--main-color) r g b / 20%);
}

.head_area .heading-simple.h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    margin-top: clamp(16px, 3vw, 24px);
    font-size: 2rem;
    font-size: clamp(1.8rem, 0.0266rem + 2.3121vw, 2.2rem);
}

.head_area .heading-simple.h2 .icon{
    height: 1.2em;
}

.head_area .nav_beginner_local {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 0;
    margin-top: 16px;
}

.head_area .nav_beginner_local > div {
    margin-right: 8px;
}

.head_area .nav_beginner_local a {
    padding: 8px 10px;
    font-size: 1.1rem;
    font-size: clamp(1rem, 0.8240rem + 0.4000vw, 1.2rem);
}

/* 
.round {
    top: 1px;
    left: 50%;
    width: 100%;
    aspect-ratio: 1920 / 22.15;
    display: block;
} */


/* --- ボタンリスト・注記 --- */

.btn_group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    gap: clamp(10px, 2vw, 20px);
    margin-top: 30px;
    margin-top: clamp(24px, 6vw, 40px);
    font-size: 1.6rem;
}

.unit_list + .note {
    margin-top: 30px;
    margin-top: clamp(24px, 6vw, 40px);
}

.note {
    inline-size: fit-content;
    margin-inline: auto;
}

.note + .btn_group {
    margin-top: 20px;
    margin-bottom: 20px;
    margin-top: clamp(16px, 4vw, 24px);
    margin-bottom: clamp(16px, 4vw, 24px);
}




/* - ユニットリスト
------------------------------------------------------------ */
.unit_list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-gap: clamp(24px, 4vw, 60px) clamp(8px, 4vw, 60px);
    justify-items: center;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.unit_list .unit a{
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px;
	box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.unit_list .unit > a {
	text-decoration: none;
	color: #333;
	position: relative;
	display: block;
}

.unit_list .unit > a .img + .title { margin-top: 15px; }

.unit_list .unit > a .title {
    display: flex;
	align-items: center;
    justify-content: center;
	gap: 10px;
    font-size: 1.4rem;
    font-size: clamp(1.2rem, 0.8480rem + 0.8000vw, 1.6rem);
	font-weight: bold;
}

.unit_list .unit > a .title i { color: var(--base-green); }



.unit_list .unit {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 2;
    gap: 15px;
    gap: clamp(12px, 2vw, 24px);
}

/* --- 大サイズ --- */
.unit_list .unit.wide {
    grid-column: 1 / -1;
    grid-template-rows: auto auto;
    max-width: 720px;
}


/* --- 上部テキスト無し  --- */
.unit_list .unit.row1 {
    grid-row: span 1;
}


/* --- 上部テキスト --- */
.unit_list .unit .catch {
    align-self: end;
    font-size: 1.3rem;
    font-size: clamp(1.1rem, 0.3080rem + 1.8000vw, 2rem);
    font-size: clamp(1.2rem, 0.6690rem + 1.4159vw, 2rem);
    font-weight: bold;
    color: #007853;
    /*改行*/
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* --- ビギナーズセミナー  --- */
.unit_list .unit.seminar img{
    width: 100%;
    max-width: 580px;
}

.unit_list .unit.seminar a .img{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 720 / 272;
    background-color: #27A639;
}

.unit_list .unit.seminar a .img img{
    width: auto;
    width: 60%;
}

.unit_list .unit .shadow img {
    max-height: 100%;
    border: 1px solid #ddd;
}


/* ------------------------------------------------------------
	959px以下
------------------------------------------------------------ */
@media screen and ( max-width : 959px ) {
	.w940 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* ------------------------------------------------------------

	767px以下

------------------------------------------------------------ */

@media screen and ( max-width : 767px ) {

    .head_area .nav_beginner_local {
        width: calc(100% + 8px);
    }
    .head_area .nav_beginner_local a {
        padding: 6px 6px;
    }
    .head_area .nav_beginner_local > div {
        margin-right: 6px;
    }
    .link-icon {
        gap: 3px;
    }

    .btn_group {
        font-size: 1.3rem;
    }
}

/* ------------------------------------------------------------

	360px以下

------------------------------------------------------------ */

@media screen and ( max-width : 360px ) {

    .heading-underline.heading-underline {
        font-size: 2rem;
    }

    .heading-leftline.h2 {
        font-size: 1.8rem;
    }

    .unit_list{
        grid-template-columns: 1fr;
        gap: 30px;
    }
}