* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
img {
    display: block;
    max-width: 100%;
}
body {
    font-family: 'メイリオ', 'Hiragino Kaku Gothic Pro', 'ヒラギノ角ゴ Pro W3', 'Meiryo', 'Osaka', 'ＭＳ Ｐゴシック', sans-serif;
}

a:hover {
  color: inherit; /* 親要素の色を引き継ぐ（赤くならない） */
}
/* ↓ 既存のstyle.cssにを上書きしている部分 ↓ */
.h2_lead {
    font-weight: bold;
}
.index h3 {
    background-image: linear-gradient(-45deg, #42a1e9, #38d8ea);
}
#term {
    background-color: #0e93fe;
}
/* ↑ 既存のstyle.cssにを上書きしている部分 ↑ */

/* ↓ 既存のcommon.cssにを上書きしている部分 ↓ */
.courseArea ul.anker-5 li {
    width: calc(100% / 6);
}
@media screen and (max-width: 1080px) {
    .courseArea ul.anker-5 li {
        width: calc(100% / 3);
    }
}
@media screen and (max-width: 640px) {
    .courseArea ul.anker-5 li {
        width: calc(100% / 2);
    }
}
/* ↑ 既存のcommon.cssにを上書きしている部分 ↑ */

.attention-black {
    font-weight: bold;
}
.flex-container {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: 30px;
    column-gap: 50px;
    row-gap: 120px;
    padding-top: 65px;
}
.course-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    vertical-align: top;
}
.course-img {
    width: 100%;
    cursor: pointer;
}
.course-link {
    position: relative;
    display: inline-block;
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
}
.course-thumbnail {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: 10px;
}
.course-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 0.1em;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.course-img:hover .course-mask {
    opacity: 1;
}
.course-img:hover .course-thumbnail {
    transform: scale(1.05);
}
.course-title {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
    padding-block: 20px;
}
.course-title:hover {
    opacity: .7;
}
.course-name {
    display: inline-block;
    width: 100%;
    color: #000000;
    text-decoration: none;
    font-size: 20px;
}
.course-name:link, .course-name:visited {
    color: #000000;
}

/* ↓ ボタン関連のスタイル ↓ */
.course-button {
    width: 100%;
    margin-top: auto;
}
.status-btn {
    display: block;
    text-decoration: none;
    padding-block: 15px;
    width: 100%;
    border-radius: 10px;
    margin: 0 auto;
    text-align: center;
    font-weight: bold;
    color: #ffffff;
    background: #f67b0f;
    outline: 1px solid;
    outline-color: #f67b0f;
    outline-offset: 0px;
    transition: .3s;
    font-size: 20px;
}
.status-btn:first-child {
    display: block;
}
.status-btn:last-child {
    display: none;
}
.status-btn:hover {
    color: #ffffff;
}
@media (hover: hover) {
    .status-btn:hover {
        animation: light .8s infinite;
    }
}
@keyframes light {
    100% {
        outline-color: transparent;
        outline-offset: 12px;
    }
}
.status-btn--off {
    background-color: #565656;
    outline: none;
}
.status-btn--grand {
    background-color: #956000;
    background-image: linear-gradient(180deg, rgba(206, 153, 27, 1.00) 0%, rgba(171, 127, 23, 1.00) 46.11%, rgba(158, 118, 21, 1.00) 53.37%, rgba(148, 110, 20, 1.00) 100%);
    outline: 1px solid;
    outline-color: #956000;
    outline-offset: 0px;
    transition: .3s;
}
/* ↑ ボタン関連のスタイル ↑ */

/* 都道府県の部分 */
.course-pref {
    content: "";
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    right: 15px;
    right: 30px;
    transform: translate(50%, -50%);
    background-image: linear-gradient(0deg, #d7a728, #ca4a0d);
    background-image: linear-gradient(-45deg, #42a1e9, #38d8ea);
    width: 25%;
    width: clamp(50px, calc(95px / 1260px) * 100vw, 95px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    text-align: center;
    font-size: 1em;
    font-weight: bold;
    color: #fff;
}
.course-pref__text {
    line-height: 1em;
    font-size: clamp(20px, 0.485vw + 16.892px, 23px);
}
.course-pref__text--small {
    font-size: clamp(16px, 0.808vw + 10.822px, 21px);
}

/* 1080px以下の挙動 */
@media screen and (max-width: 1080px) {
    
    .flex {
        grid-template-columns: repeat(2, 1fr);
        padding-inline: calc((30px / 1080px) * 100vw);
        padding-top: calc(((50px / 1080px) * 100vw) + 20px);
    }
    .course-pref {
        width: clamp(75px, 3.75vw + 49.5px, 90px);
    }
    .status-btn:active {
        color: #ffffff;
    }
}
/* 640px以下の挙動 */
@media screen and (max-width: 640px) {
    .flex {
        grid-template-columns: 1fr;
        /* padding: calc((30px / 640px) * 100vw); */
    }
    .flex-container {
        gap: clamp(0px, calc(36.23px - 5.66vw), 15px);
    }
    .course-card {
        width: 100%;
        height: 100%;
        margin: 6% 0 1% 0;
        vertical-align: top;
        font-size: 17px;
        font-weight: bold;
        padding-bottom: 10vw;
    }
    .course-title {
        padding-bottom: 0;
    }
    .course-name {
        font-size: clamp(20px, 1.509vw + 14.34px, 24px);
    }
    .course-button {
        margin-top: clamp(10px, 3.774vw - 4.151px, 20px);;
    }
    .course-pref {
        top: 15px;
        right: 30px;
        width: clamp(75px, 9.43vw + 39.62px, 100px);
    }
    .course-pref__text {
        font-size: clamp(14px, 1.51vw + 8.34px, 18px);
        font-size: clamp(18px, 3.019vw + 6.679px, 26px);
    }
    .course-pref__text--small {
        font-size: clamp(16px, 2.264vw + 7.509px, 22px);
    }
    .status-btn {
        width: 100%;
    }
    .status-btn:first-child {
        display: none;
    }
    .status-btn:last-child {
        display: block;
    }
}