h2 {
    margin: 0 0 var(--space-xl) 0;
    font-size: var(--font-size32);
    font-weight: 900;
    color: var(--color-navy);
    text-align: center;
    line-height: 1.8;
    letter-spacing: 0.05em;
}

h3 {
    font-size: var(--font-size24);
    font-weight: 900;
    text-align: center;
}

p {
    letter-spacing: 0.05em;
    line-height: 1.6;
}

a {
    color: var(--font-color);
}

.btn {
    padding: var(--space-2xs) var(--space-lg);
    border-radius: var(--radius-pill);
    font-weight: 500;
    color: var(--color-white);
    background-color: var(--color-navy);
    text-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.btn a {
    color: var(--color-white);
}


/* header：ヘッダー */
.header {
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: min(92%, var(--container-width));
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: var(--space-xs) 0;
    gap: var(--space-xs);
}

.header-container h1 img {
    width: min(80%, 220px);
}

@media (min-width: 768px) {
    a[href^="tel:"] {
        pointer-events: none;
    }

    .header-container {
        height: 72px;
        padding: 0;
    }

    .header-container h1 img {
        width: min(85%, 220px);
    }
}

.fa-solid {
    margin-right: 0.5em;
}

/* hero：ヒーロー */
.hero {
    margin: var(--space-md) auto var(--space-2xl) auto;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 2em;
}

.hero .w-container {
    margin-top: 0;
}

.hero-title {
    max-width: 410px;
    margin: 0 auto;
    text-align: center;
}

.hero-title h2 {
    font-size: clamp(32px, 7vw, 48px);
    color: var(--color-navy);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.20);
    white-space: normal;
    margin-bottom: 1em;
    display: inline-block;
    line-height: 1.4;
}

.hero-title h2>span {
    display: block;
    text-align: left;
}

.hero-title p {
    width: 100%;
    margin: 0 auto;
    padding: var(--space-xs) var(--space-sm);
    font-size: var(--font-size16);
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.5;
    color: #ffffff;
    background-color: var(--color-navy);
}

.hero img {
    width: min(100%, 420px);
    height: auto;
    margin: 0 auto;
}

@media (min-width: 1000px) {
    .hero-container {
        justify-content: center;
        align-items: center;
        flex-direction: row-reverse;
        gap: 2em;
    }

    .hero .w-container {
        margin-top: 64px;
    }

    .hero-title {
        text-align: left;
    }

    .hero-title h2 {
        text-align: left;
        white-space: nowrap;
    }

    .hero-title p {
        max-width: 500px;
        padding: var(--space-sm) var(--space-lg);
        font-size: var(--font-size18);
        text-align: center;
    }

    .hero-container img {
        margin: 0;
    }
}


/* intoroduction：こんなお悩みありませんか？ */
#introduction {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
}

#introduction h2 {
    margin-bottom: 0;
}

#introduction img {
    width: min(100%, 360px);
    height: auto;
    margin: 0 auto;
}

.introduction-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
}

.introduction-lists {
    width: min(100%, 310px);
    padding: var(--space-md);
    background: url(../img/introduction.svg) no-repeat center;
    background-size: contain;
    color: var(--color-navy);
}

.introduction-lists h3 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size24);
    font-weight: 900;
    text-align: center;
    line-height: 1.5;
}

.introduction-lists p {
    font-size: var(--font-size16);
    text-align: center;

}

@media screen and (min-width: 790px) {
    .introduction-container {
        flex-direction: row;
        align-items: flex-start;
    }

    .introduction-lists {
        flex: 1;
    }
}


/* point：３つのポイント */
.point-container {
    background-color: var(--color-orange);
}

.point-container>.w-container {
    margin-top: 0;
}

.point-title {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: end;
    gap: var(--space-md);
    margin: 0 0 var(--space-xl) 0;
    font-size: clamp(24px, 4.5vw, 32px);
}

.point-title h2 {
    margin-bottom: 0;
}

.point-title::before {
    content: '\\';
    position: relative;
    display: inline-block;
    font-size: clamp(44px, 6vw, 56px);
    color: var(--color-navy);
    font-weight: 700;
}

.point-title::after {
    content: '/';
    position: relative;
    display: inline-block;
    font-size: clamp(44px, 6vw, 56px);
    color: var(--color-navy);
    font-weight: 700;
}

.accent-point {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: clamp(44px, 6vw, 56px);
    border-radius: 50%;
    color: var(--color-white);
    background-color: var(--color-red);
}

.point-lists {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 1em;
    padding: var(--space-xl) 0;
}

.point-list {
    display: grid;
    gap: var(--space-sm);
    max-width: 320px;
    padding: var(--space-lg) var(--space-md);
    border-radius: var(--radius-md);
    background-color: var(--color-white);
}

.point-no {
    font-size: var(--font-size32);
    color: var(--color-red);
}

.point-list h3 {
    font-size: var(--font-size18);
    font-weight: 700;
    color: var(--color-navy);
    text-align: left;
    line-height: 1.5;
}

.point-list img {
    width: min(100%, 220px);
    height: auto;
    margin: 0 auto;
}

.point-list p {
    font-size: var(--font-size-lg);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .point-list {
        width: 100%;
        min-height: 100%;
    }
}

@media (min-width: 1000px) {
    .point-lists {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* support：充実の就職支援 */
#support h2 {
    margin-bottom: 0;
}

#support>img {
    width: min(100%, 400px);
    height: auto;
    margin: var(--space-xl) auto;
}

#support h3 {
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.rate-container {
    display: grid;
    gap: 1em;
}

.rate-container>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xs);
}

.rate-container p {
    color: var(--color-text-muted);
    font-size: var(--font-size16);
    text-align: center;
}

.rate-container img {
    width: min(100%, 220px);
    height: auto;
}


@media (min-width: 768px) {
    .rate-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .rate-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* skill：学べるスキル */
.skill-course img {
    width: min(100%, 400px);
    height: auto;
    margin: 0 auto;
}


/* curriculum：カリキュラム */
.curriculum-flier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.flier {
    width: min(100%, 360px);
}

.flier img {
    width: 100%;
    height: auto;
}

.curriculum-container {
    max-width: 100%;
    margin: 0 auto;
}

dl {
    font-size: 16px;
    display: grid;
    grid-template-columns: 4em 1fr;
    gap: 20px;
    margin-bottom: .5em;
}

dl dt::after {
    content: '';
    background-color: var(--font-color);
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    width: 1px;
    height: 80%;
}

dt {
    text-align-last: left;
    position: relative;
}

table {
    border-collapse: collapse;
    width: 100%;
    background-color: #fff;
}

@media screen and (min-width: 768px) {
    .curriculum-flier {
        flex-direction: row;
        align-items: center;
    }

    .curriculum-container {
        max-width: 480px;
    }

    dl {
        font-size: 18px;
        gap: 20px;
    }

    dt {
        text-align-last: justify;
    }
}

tr:nth-child(odd) {
    background-color: var(--table-color);
}

th,
td {
    padding: 1em;
}

th {
    text-align: left;
    min-width: 260px;
    position: relative;
}

th::after {
    content: '';
    background-color: #c1c7c6;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
}

@media screen and (max-width: 768px) {
    tr {
        display: flex;
        flex-direction: column;
    }

    th {
        background-color: var(--table-color);
    }

    th::after {
        display: none;
    }

    td {
        background-color: #ffffff;
    }
}


/* work：受講生作品 */
#work h2 {
    margin-bottom: 0;
}

#work > p {
    font-size: var(--font-size14);
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-md);
}

.category h3 {
    font-size: var(--font-size24);
    color: var(--color-navy);
    text-align: start;
    margin: var(--space-xl) auto var(--space-lg) auto;
}

/* Gallery Grid banner */
.gallery-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.gallery-banner-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-banner-cover {
    aspect-ratio: 3/2.5;
    overflow: hidden;
}

.gallery-banner-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-banner-item:hover img {
    transform: scale(1.05);
}

/* Gallery Grid contents */
.gallery-contents {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.gallery-contents-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-contents-cover {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.gallery-contents-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-contents-item:hover img {
    transform: scale(1.05);
}

/* Gallery Grid Flier */

.gallery-flier {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}

.gallery-flier-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-flier-cover {
    aspect-ratio: 1/1.4;
    overflow: hidden;
}

.gallery-flier-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-flier-item:hover img {
    transform: scale(1.05);
}

/* Gallery Grid Site */

.gallery-site {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1em;
}

.gallery-site-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-site-cover {
    aspect-ratio: 2.25/1;
    overflow: hidden;
}

.gallery-site-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-site-item:hover img {
    transform: scale(1.05);
}

@media screen and (min-width: 1000px) {

    .gallery-banner,
    .gallery-contents,
    .gallery-flier {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-site {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* voice：修了生の声 */
#voice {
    padding: 60px 0;
    background-color: rgb(244, 153, 114, 25%);
}

.voice-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.voice-container img {
    width: 180px;
    background-color: #fff;
    border-radius: 50%;
}

.voice-text h3 {
    margin-bottom: .5em;
    text-align: center;
    font-size: var(--font-size18);
    font-weight: 700;
    color: var(--color-navy);
}

@media screen and (min-width: 612px) {
    .voice-container {
        flex-direction: row-reverse;
        align-items: flex-start;
        gap: var(--space-2xl);
        margin-bottom: 1em;
    }

    .voice-text h3 {
        text-align: start;
    }
}


/* facility：施設について */
.room-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.room-item {
    display: flex;
    flex-direction: column;
}

.room-img {
    display: flex;
    gap: var(--space-xs);
    flex-direction: column-reverse;
    align-items: center;
}

.room-img h3 {
    font-size: var(--font-size16);
    font-weight: 500;
    color: var(--color-text-muted);
}

.room-img img {
    width: 250px;
}

.facility-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2em;
    margin-bottom: var(--space-4xl);
}

iframe {
    width: 100%;
}

#facility dl {
    grid-template-columns: 80px 1fr;
    margin-bottom: .5em;
}

.facility-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0 auto;
}

.facility-list dl dt {
    width: 80px;
}

.facility-list dl:first-child dd {
    display: flex;
}

.facility-list dl:first-child dd img {
    height: 24px;
    margin-right: var(--space-xs);
}

@media screen and (min-width: 960px) {
    .room-container {
        flex-direction: row;
    }

    .facility-container {
        flex-direction: row;
    }

    iframe {
        width: 50%;
    }
}


/* トップへ戻るボタン */
.page-top {
    position: fixed;
    right: var(--space-md);
    bottom: var(--space-md);
    width: 56px;
    height: 56px;
    background: var(--color-navy);
    color: #ffffff;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    transition: background 0.1s ease, transform 0.1s ease;
    z-index: 1000;
}

.page-top:hover {
    background: var(--color-red);
    transform: translateY(-2px);
}

.page-top:active {
    transform: translateY(0);
}

/* footer */
footer {
    height: var(--space-4xl);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.20);
    background-color: var(--color-navy);
    display: flex;
    justify-content: center;
    align-items: center;
}