/* styles.css */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

.header {
    width: 100%;
    background-color: white;
    display: flex;
    justify-content: flex-start; /* 左寄せ */
    align-items: center;
    padding: 15px 30px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s, box-shadow 0.3s;
    height: 70px; /* ヘッダーの高さを固定 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* シャドウを追加 */
}

.header.sticky {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* スクロール時に強調されるシャドウ */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%; /* 左寄せ調整 */
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.sub-title {
    color: #e60000;
    font-size: 14px;
    margin-left: 5px;
}

.nav {
    margin-left: auto; /* メニューを右側に寄せる */
}

.nav a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

.nav a:hover {
    color: #e60000;
}

.apply-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.hero {
    background: url('./img/head.jpg') center/cover no-repeat;
    height: 500px;
    position: relative;
    margin: 20px 20px 0 20px; /* 上部の余白を調整 */
    border-radius: 25px; /* 角を丸く */
    overflow: hidden; /* 子要素がはみ出さないようにする */
    margin-top: 120px; /* ヘッダーの高さを考慮して余白を設定 */
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.5); /* 背景を少し暗くして見やすく */
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start; /* 上から配置 */
    justify-content: flex-start; /* 左寄せ */
    flex-direction: column;
    color: white;
    padding: 40px; /* コンテンツに余白を持たせる */
    border-radius: inherit; /* 背景の角丸に合わせる */
}

.hero-text .tagline {
    font-size: 18px;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.3); /* 半透明の背景 */
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 15px;
}

.hero-text .subtext {
    margin: 10px 0 20px;
    font-size: 20px;
    color: #ff4d4d; /* 赤色で目立たせる */
}

.cta-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
}

/* alive promotion のスタイル */
.caption {
    font-size: 136px;
    color: #ffffff;
    text-align: center;
    position: relative;
    top: -85px; /* ヘッダー画像に半分かかるように調整 */
    z-index: 1;
    text-shadow: 1px 1px 0 #fe7979, -1px -1px 0 #fe7979, 1px -1px 0 #fe7979, -1px 1px 0 #fe7979; /* 縁取り効果 */
    letter-spacing: 15px;
}

/* Aboutセクションのスタイル */
.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 50px 100px;
    margin: -100px auto;
    max-width: 1200px;
    margin-bottom: 30px;
}

.about-container {
    display: flex;
    gap: 40px;
}

.about-image img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

.about-content {
    max-width: 600px;
}

.about-title {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}


.about-subtitle {
    font-size: 20px;
    color: #e60000;
    margin-bottom: 20px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

@media (max-width: 768px) {
    .about-section {
        flex-direction: column;
        padding: 20px;
    }

    .about-container {
        flex-direction: column;
        gap: 20px;
    }

    .about-title {
        font-size: 36px;
    }

    .about-subtitle {
        font-size: 18px;
    }
}


@media (max-width: 768px) {
    .hero {
        height: 400px;
        margin: 20px; /* モバイルでも余白を確保 */
        margin-top: 90px; /* ヘッダーの高さに合わせて調整 */
    }

    .hero-text h1 {
        font-size: 32px;
    }

    .caption {
        font-size: 28px; /* モバイル用にフォントサイズを調整 */
        top: -40px;
    }

    .nav a {
        margin-right: 10px;
        font-size: 14px;
    }

    .apply-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .cta-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Messageセクションのスタイル */
.message-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 50px 100px;
    margin: 50px auto;
    max-width: 1200px;
    background: #f9f5f3;
}

.message-container {
    display: flex;
    gap: 40px;
}

.message-content {
    max-width: 600px;
}

.message-title {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
    position: relative;
}

.message-subtitle {
    font-size: 20px;
    color: #e60000;
    margin-bottom: 20px;
}

.message-text {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

.message-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

@media (max-width: 768px) {
    .message-section {
        flex-direction: column;
        padding: 20px;
    }

    .message-container {
        flex-direction: column;
        gap: 20px;
    }

    .message-title {
        font-size: 36px;
    }

    .message-subtitle {
        font-size: 18px;
    }
}

/* Requirementsセクションのスタイル */
.requirements-section {
    background-color: #f9f5f3;
    padding: 50px 100px;
    border-radius: 25px;
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
}

.requirements-container {
    margin: 0 auto;
}

.requirements-title {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
}

.requirements-subtitle {
    font-size: 20px;
    color: #e60000;
    margin-bottom: 30px;
}

.requirements-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.requirements-table th,
.requirements-table td {
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.requirements-table th {
    width: 30%;
    color: #333;
    font-weight: bold;
}

.requirements-table td {
    color: #666;
    line-height: 1.6;
}

.apply-now-btn {
    background-color: #e60000;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 18px;
    transition: background-color 0.3s;
}

.apply-now-btn:hover {
    background-color: #cc0000;
}

@media (max-width: 768px) {
    .requirements-section {
        padding: 30px 20px;
    }

    .requirements-title {
        font-size: 36px;
    }

    .requirements-subtitle {
        font-size: 18px;
    }

    .apply-now-btn {
        padding: 10px 20px;
        font-size: 16px;
    }
}

/* FAQセクションのスタイル */
.faq-section {
    background-color: #ffffff;
    padding: 50px 100px;
    border-radius: 25px;
    margin: 50px auto;
    max-width: 800px;
    text-align: center;
}

.faq-container {
    margin: 0 auto;
}

.faq-title {
    font-size: 48px;
    color: #333;
    margin-bottom: 10px;
}

.faq-subtitle {
    font-size: 20px;
    color: #e60000;
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 20px;
}

.faq-question {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    font-size: 18px;
    transition: transform 0.3s;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    font-size: 16px;
    color: #666;
    display: none;
    padding: 10px 0;
}

/* 折りたたみ時のアニメーション */
.faq-answer {
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}


/* フッターセクションのスタイル */
.footer {
    background-color: #f9f5f3;
    padding: 30px 100px;
    margin-top: 50px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.footer-content {
    max-width: 300px;
}

.footer-logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.footer-address,
.footer-contact {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    margin-bottom: 5px;
}

.footer-links a:hover {
    color: #e60000;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .faq-section {
        padding: 30px 20px;
    }

    .faq-title {
        font-size: 36px;
    }

    .faq-subtitle {
        font-size: 18px;
    }

    .footer {
        padding: 20px 10px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        text-align: center;
    }
}
.logo {
    display: flex;
    align-items: flex-end; /* 下部で揃える */
}

.logo img {
    max-height: 50px; /* 画像サイズを調整 */
    margin-right: 10px; /* 画像とテキストの間に余白 */
}

.menu-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    background-color: #e60000;
    padding: 10px;
    border-radius: 5px;
    color: white;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle span {
    font-size: 12px;
    margin-top: 5px;
}


@media (max-width: 768px) {
    .logo_img {
        width: 190px;
    }

    .header-container {
        width: 90%;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white;
        position: absolute;
        top: 70px;
        left: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding: 10px 0;
    }

    .nav a {
        padding: 15px;
        border-bottom: 1px solid #ddd;
        color: #333;
    }

    .apply-btn {
        display: none; /* スマホ時にはメニュー内に配置するため */
    }
}
