/* ========================================
   Reset & Base Styles
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    line-height: 1.8;
    font-size: 16px;
    background-color: #fff;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

address {
    font-style: normal;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 500px;
    background-image: url('../images/mechanical-parts.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.8;
}

.hero-free {
    font-size: 1.5rem;
    font-weight: 900;
    color: #F1C40F;
    margin-bottom: 30px;
    letter-spacing: 0.1em;
}

.btn-hero {
    display: inline-block;
    padding: 15px 50px;
    background-color: #F1C40F;
    color: #333;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background-color: #F39C12;
    transform: translateY(-2px);
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    padding-top: 60px;
}

.section-title-dark {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    padding-top: 60px;
}

/* ========================================
   Courses Section
   ======================================== */
.courses {
    padding: 0 0 60px 0;
    background-color: #fff;
}

.course-card {
    display: flex;
    align-items: stretch;
    margin-bottom: 30px;
    background-color: #fff;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-3px);
}

/* 通常のカード（テキスト左、画像右） */
.course-content {
    flex: 1;
    padding: 30px 40px 30px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
}

/* 反転カード用（画像左、テキスト右） */
.course-card-reverse .course-content {
    padding: 30px 50px 30px 40px;
    align-items: center;
    text-align: center;
}

.course-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
    position: relative;
    align-self: flex-start;
    text-align: left;
}

.course-title::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    width: 6px;
    height: 100%;
    background-color: #333;
}

.course-card-reverse .course-title::before {
    left: auto;
    right: -30px;
}

.course-card-reverse .course-title {
    align-self: flex-end;
    text-align: right;
}

.course-card-reverse .course-description {
    align-self: flex-end;
    text-align: right;
}

.course-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
    align-self: flex-start;
    text-align: left;
}

.btn-course {
    display: inline-block;
    padding: 12px 30px;
    background-color: #F1C40F;
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-course:hover {
    background-color: #F39C12;
    transform: translateY(-2px);
}

.course-image {
    flex: 0 0 50%;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* figure要素用のスタイル追加 */
figure.course-image {
    margin: 0;
}

/* ========================================
   Access Section
   ======================================== */
.access {
    padding: 0 0 60px 0;
    background-color: #2D3748;
}

.access .section-title {
    color: #fff;
}

.section-subtitle-en {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-align: center;
    color: #9CA3AF;
    letter-spacing: 0.2em;
    margin-bottom: 60px;
    margin-top: -30px;
    text-transform: uppercase;
}

.access-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.access-card {
    background-color: #3F4A5C;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px 15px 30px;
    background-color: #3F4A5C;
}

.access-location {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    position: relative;
    padding-left: 20px;
}

.access-location::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 30px;
    background-color: #F1C40F;
}

.access-icon {
    flex-shrink: 0;
}

.access-info {
    padding: 10px 30px 25px 30px;
    background-color: #3F4A5C;
    font-style: normal;
}

.access-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    font-style: normal;
}

.access-postal {
    font-size: 0.9rem;
    color: #D1D5DB;
    margin-bottom: 5px;
    font-style: normal;
}

.access-address {
    font-size: 0.9rem;
    color: #D1D5DB;
    line-height: 1.8;
    border: 1px solid #4B5563;
    padding: 10px 15px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    font-style: normal;
}

.access-map {
    width: 100%;
    height: 300px;
    background-color: #4B5563;
}

.access-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* ========================================
   Outline Section
   ======================================== */
.outline {
    padding: 0 0 60px 0;
    background-color: #2D3748;
}

.outline .section-title {
    color: #fff;
    padding-top: 60px;
}

.outline .section-subtitle-en {
    color: #9CA3AF;
}

.outline-box {
    background-color: #4A5568;
    border-radius: 8px;
    padding: 50px 60px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.outline-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.outline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.outline-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.outline-label {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #F1C40F;
    margin-bottom: 0;
    min-width: 120px;
    flex-shrink: 0;
}

.outline-content {
    flex: 1;
}

.outline-text {
    font-size: 1rem;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 8px;
}

.outline-note {
    font-size: 0.85rem;
    color: #D1D5DB;
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 0 0 60px 0;
    background-color: #f5f5f5;
}

.contact-description {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

.form-container {
    max-width: 700px;
    margin: 0 auto;
}

.application-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Noto Sans JP', sans-serif;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #F1C40F;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    padding: 15px 60px;
    background-color: #8B4789;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #6d366b;
    transform: translateY(-2px);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0;
    background-color: #1A2533;
    color: #fff;
    text-align: center;
}

.footer address {
    font-style: normal;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-company {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-email {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
}

/* ========================================
   Responsive Design
   ======================================== */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-free {
        font-size: 1.3rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.6rem;
        padding-top: 50px;
    }

    .course-card {
        flex-direction: column;
    }

    .course-card-reverse {
        flex-direction: column;
    }

    .course-image {
        flex: 0 0 200px;
        order: -1;
    }

    .course-content {
        padding: 25px 20px 25px 35px;
    }

    .course-card-reverse .course-content {
        padding: 25px 35px 25px 20px;
    }

    .course-title::before {
        left: -25px;
        width: 5px;
    }

    .course-card-reverse .course-title::before {
        right: -25px;
        left: auto;
    }

    .course-title {
        font-size: 1.2rem;
    }

    .access-wrapper,
    .outline-box {
        grid-template-columns: 1fr;
    }

    .outline-box {
        padding: 30px 20px;
    }

    .outline-item {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 35px;
    }

    .outline-label {
        font-size: 1.1rem;
    }

    .application-form {
        padding: 30px 20px;
    }

    .btn-submit {
        padding: 12px 40px;
        font-size: 0.95rem;
    }

    .footer-phone {
        font-size: 1.3rem;
    }

    .footer-email {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-free {
        font-size: 1.1rem;
    }

    .btn-hero {
        padding: 12px 35px;
        font-size: 0.9rem;
    }

    .section-title,
    .section-title-dark {
        font-size: 1.4rem;
    }

    .course-content {
        padding: 20px 15px 20px 30px;
    }

    .course-title::before {
        left: -20px;
        width: 4px;
    }

    .course-title {
        font-size: 1.1rem;
    }

    .course-description {
        font-size: 0.9rem;
    }

    .btn-course {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
}
