/* common.css - 全ページ共通のスタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background-color: #121212;
    background-image: linear-gradient(45deg, #121212 0%, #1a1a1a 100%);
}

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

header {
    background: linear-gradient(135deg, #00c853, #009637);
    color: white;
    text-align: center;
    padding: 30px 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

header h1 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 300;
}

main {
    background: #212121;
    padding: 35px;
    margin: 25px 0;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
    min-height: 500px;
}

section {
    margin-bottom: 40px;
}

h2 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.8rem;
    border-bottom: 2px solid #00c853;
    padding-bottom: 12px;
    margin-bottom: 25px;
    color: #00e676;
    font-weight: 600;
}

h3 {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.4rem;
    margin: 24px 0 12px;
    color: #00e676;
    font-weight: 600;
}

p {
    margin-bottom: 15px;
    line-height: 1.8;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

li {
    margin-bottom: 12px;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #2a2a2a;
}

.btn {
    padding: 12px 28px;
    background-color: #00c853;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 200, 83, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    background-color: #00e676;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 230, 118, 0.3);
}

.btn:disabled {
    background-color: #2a5238;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-back {
    background-color: #424242;
}

.btn-back:hover {
    background-color: #616161;
}

footer {
    text-align: center;
    padding: 25px;
    color: #aaaaaa;
    font-size: 0.9rem;
    background: #212121;
    border-radius: 12px;
    margin-top: 15px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-content p {
    margin-bottom: 0;
}

.footer-content i {
    color: #00c853;
    margin-right: 8px;
}

.highlight {
    background-color: #1e332a;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #00c853;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(0, 200, 83, 0.1);
}

.warning {
    background-color: #332a1e;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #fb6340;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(251, 99, 64, 0.1);
}

/* アニメーション */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.7s ease-out;
}

/* 応募フォーム用スタイル */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #525f7f;
}

input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.2);
}

.required::after {
    content: "*";
    color: #fb6340;
    margin-left: 5px;
}

.error {
    border-color: #fb6340;
}

.error-message {
    color: #fb6340;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* フォーム要素の基本スタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #ddd;
    border-radius: 6px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #00c853;
    box-shadow: 0 0 8px rgba(0, 200, 83, 0.5);
}

/* チェックボックスコンテナ */
.checkbox-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center; /* チェックボックスとラベルを垂直中央揃え */
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    width: 18px; /* チェックボックスのサイズ調整 */
    height: 18px;
    accent-color: #00c853; /* チェック時の色 */
}

.checkbox-container label {
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

/* 同意チェックエラー時のハイライトスタイル */
label.error,
.checkbox-container label.error { /* 両方のセレクタで指定 */
    color: #dc3545; /* エラーを示す赤色 */
    font-weight: bold;
    /* 必要に応じて他のスタイルを追加 */
    /* text-decoration: underline; */
    /* border-left: 3px solid #dc3545; */
    /* padding-left: 5px; */
}

/* ステップナビゲーション */
.step-nav {
    display: flex;
    justify-content: space-between;
    margin: 25px 0;
    background: #212121;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.step {
    flex: 1;
    text-align: center;
    padding: 12px 5px;
    margin: 0 5px;
    border-radius: 8px;
    color: #aaaaaa;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.step i {
    margin-right: 5px;
    color: #b8c4db;
}

.step.active i, .step:hover i {
    color: inherit;
}

.step:hover {
    background-color: #1e332a;
    color: #00c853;
}

.step.active {
    background-color: #00c853;
    color: white;
    box-shadow: 0 3px 6px rgba(0, 200, 83, 0.2);
}

/* フロー図用スタイル */
.flow {
    position: relative;
    margin: 35px 0;
}

.flow-item {
    position: relative;
    padding: 20px;
    background: #1e332a;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.flow-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 200, 83, 0.1);
}

.flow-item:last-child {
    margin-bottom: 0;
}

.flow-item::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #1e332a;
}

.flow-item:last-child::after {
    display: none;
}

.flow-title {
    font-weight: 600;
    color: #00c853;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header {
        padding: 25px 0;
        border-radius: 0 0 10px 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    main {
        padding: 25px;
        margin: 20px 0;
    }
    
    .step-nav {
        flex-wrap: wrap;
        border-radius: 10px;
    }
    
    .step {
        flex: 0 0 calc(50% - 10px);
        margin-bottom: 10px;
    }
}

/* ページ6 (サンクスページ/ネタバラシ) のスタイル */
.thank-you-container {
    text-align: center;
    padding: 40px 20px;
}

.thank-you-icon i {
    font-size: 4rem;
    color: #00c853; /* 元の緑色を維持、または変える */
    margin-bottom: 20px;
}

.thank-you-message {
    font-size: 2rem;
    color: #eee;
    margin-bottom: 15px;
}

/* エイプリルフール ネタバラシ用スタイル */
.april-fools-reveal {
    text-align: center;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px dashed #555;
    border-radius: 8px;
    margin-top: 30px;
}

.april-fools-icon i {
    font-size: 3.5rem;
    color: #ffeb3b; /* 目立つ黄色 */
    margin-bottom: 15px;
}

.april-fools-reveal h3 {
    color: #ffeb3b;
    margin-bottom: 20px;
}

.april-fools-reveal p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.horror-highlight {
    color: #f44336; /* ホラー感を出す赤色 */
    font-weight: bold;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 2px 4px;
    border-radius: 3px;
}

.april-fools-reveal hr {
    border-top: 1px dashed #555; /* 罫線のスタイル変更 */
    margin: 25px auto;
    width: 80%;
}

/* 既存のボタンスタイルを使うが、必要なら調整 */
/* .april-fools-reveal .btn {} */

/* タイムライン用スタイル */
.timeline {
    margin: 30px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 4px;
    background: #00c853;
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-date {
    display: inline-block;
    padding: 5px 10px;
    background: #009637;
    color: white;
    border-radius: 5px;
    margin-bottom: 10px;
}

.timeline-content {
    background: #1e332a;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #00c853;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    border: 4px solid #00c853;
}

/* テーブルスタイル */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    border: 1px solid #333;
}

th {
    background-color: #1e332a;
    font-weight: bold;
    text-align: left;
}

tr:nth-child(even) {
    background-color: #212121;
}

/* 契約書スタイル */
.contract-box {
    background-color: #1e332a;
    border: 1px solid #333;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.contract-box h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.accordion {
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #1e332a;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: '+';
    font-size: 1.5rem;
}

.accordion-header.active::after {
    content: '-';
}

.accordion-content {
    padding: 15px;
    border: 1px solid #1e332a;
    border-top: none;
    border-radius: 0 0 5px 5px;
    display: none;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    margin: 15px 0;
}

.checkbox-container input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
    width: auto;
}

/* モバイル表示用の調整 */
@media (max-width: 768px) {
    /* モバイル用のスタイル */
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav li {
        margin: 5px 0;
    }

    .button-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin: 5px 0;
    }

    /* ステップナビゲーションのモバイル表示 */
    .step-nav {
        display: none; /* PC用のナビゲーションは非表示 */
    }

    .step-nav-mobile {
        display: block; /* モバイル用ナビゲーションを表示 */
        text-align: center;
        margin-bottom: 20px;
        padding: 10px;
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 5px;
        color: #bbb;
    }

    .step-nav-mobile .step.current {
        /* モバイルでは current クラスで現在のステップを表示 */
        display: inline-block; 
        font-weight: bold;
        color: #00c853;
    }

    /* フォームのラベルを少し小さく */
    .form-group label {
        font-size: 0.95rem;
    }

    /* その他のモバイル調整 */
    .warning p,
    section p {
        font-size: 0.95rem;
    }

    .highlight {
        padding: 15px;
    }

    .thank-you-icon i {
        font-size: 3rem;
    }
    .april-fools-icon i {
        font-size: 3rem;
    }
}

/* ページ1 (概要ページ) スタイル */
.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #00c853;
    font-size: 2.2rem;
}

/* 概要ページの2カラムレイアウト */
.overview-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
}

/* テキストコンテンツ部分 */
.overview-text {
    flex: 1;
    max-width: 60%;
}

/* キャラクター画像コンテナ */
.character-container {
    flex: 1;
    max-width: 40%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* キャラクター画像 */
.character-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    z-index: 2;
    position: relative;
}

/* キャラクター画像の影効果 */
.character-shadow {
    position: absolute;
    bottom: -10px;
    width: 80%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
    z-index: 1;
}

/* モバイル表示用の調整 */
@media (max-width: 768px) {
    .overview-container {
        flex-direction: column;
    }
    .overview-text {
        max-width: 100%;
        margin-bottom: 20px;
    }
    .character-container {
        max-width: 100%;
    }
}