@charset "UTF-8";

/* =========================================
   Application Page - 申請ページ専用スタイル
   ========================================= */

/* --- Layout & Utilities --- */
.application-container {
    padding-bottom: 80px;
    max-width: 1200px;
    /* 読みやすさ重視でstyle.cssの最大幅より少しタイトに */
    margin: 0 auto;
}

.text-primary {
    color: var(--primary-color);
}

.text-alert {
    color: #c5221f;
    font-weight: 900;
    font-size: 1.1em;
}

.mt-3 { margin-top: 16px; }
.mt-6 { margin-top: 48px; }

/* --- Anchor Navigation --- */
.anchor-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 60px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
}

.anchor-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: #f1f3f4;
    color: var(--text-color-dark);
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    text-decoration: none;
}

.anchor-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.anchor-btn i {
    font-size: 16px;
}

/* --- Section Common --- */
.app-section {
    margin-bottom: 80px;
    scroll-margin-top: 100px; /* ヘッダー被り防止 */
}

.section-desc {
    margin-bottom: 32px;
}

.sub-heading {
    font-size: 18px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 12px;
    margin-bottom: 24px;
    color: var(--text-color-dark);
}

.half-section {
    margin-bottom: 0;
}

/* --- Document List Section --- */
.document-list-wrapper {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

.list-heading-inline {
    font-size: 20px;
    color: var(--text-color-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ZIPダウンロードボタン */
.btn-zip-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-zip-dl i { font-size: 18px; }

.btn-zip-dl:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .list-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .btn-zip-dl {
        width: 100%;
        padding: 12px;
        box-sizing: border-box;
    }
}

/* 書類リスト本体 */
.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list > li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px dashed var(--light-gray);
}

.document-list > li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doc-name {
    font-weight: 700;
    color: var(--text-color-dark);
    font-size: 18px;
}

.doc-name::before {
    content: '・';
    color: var(--primary-color);
    font-weight: 900;
    margin-right: 4px;
}

.doc-note {
    font-size: 16px;
    color: var(--text-color);
    margin: 4px 0 0 1.2em;
    line-height: 1.6;
}

/* 入れ子リスト（添付書類など） */
.doc-group ul {
    list-style: none;
    padding-left: 20px;
    margin-top: 12px;
}

.doc-group-label {
    display: inline-block;
    background: #e8f0fe;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 8px;
}

/* 注意書きボックス */
.highlight-box {
    background-color: #fff8fa;
    border: 1px solid #f7a8b8;
    border-radius: 12px;
    margin-top: 8px; /* 微調整 */
    padding: 12px;   /* パディング調整 */
}

.box-note {
    font-size: 14px;
    color: #c5221f;
    font-weight: 700;
    margin: 0;
}

/* 参考リンク集 */
.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    margin-bottom: 12px;
}

.link-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: underline;
    text-underline-offset: 4px;
    color: var(--text-color-dark);
    transition: color 0.2s;
}

.link-list a:hover { color: #ea4335; }
.link-list i { color: #ea4335; }


/* --- Application Period (Vertical Stack) --- */
.bg-light-section-inner {
    background-color: #f8f9fa;
    padding: 40px;
    border-radius: 20px;
}

.period-vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.period-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s, box-shadow 0.3s;
}

.period-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-title-bar {
    margin: 0;
    padding: 16px 24px;
    font-size: 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
}

.card-title-bar i {
    font-size: 24px;
    opacity: 0.9;
}

.main-color { background-color: var(--primary-color); }
.sub-color { background-color: var(--secondary-color); }

/* Combined Card Layout */
.card-body-row {
    padding: 24px 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 32px;
}

.date-area {
    flex: 1;
    min-width: 280px;
    text-align: center;
    border-right: 2px dashed #eee;
}

.action-area {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

@media (max-width: 768px) {
    .card-body-row {
        flex-direction: column;
        gap: 24px;
        padding: 24px;
    }
    .date-area {
        border-right: none;
        border-bottom: 2px dashed #eee;
        padding-bottom: 24px;
        width: 100%;
    }
    .action-area { width: 100%; }
}

/* Single Card Layout */
.card-body-column {
    padding: 24px 32px;
}

.card-lead {
    text-align: center;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-color-dark);
}

.exam-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.exam-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #f8f9fa;
    padding: 16px 24px;
    border-radius: 8px;
    border-left: 6px solid var(--secondary-color);
}

.exam-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 240px;
    margin-bottom: 8px;
}

.exam-target {
    font-weight: 700;
    color: var(--text-color-dark);
}

.exam-deadline {
    text-align: right;
    flex-shrink: 0;
}

.deadline-prefix {
    font-size: 13px;
    color: var(--text-color);
}

.deadline-val {
    font-size: 22px;
    font-weight: 700;
    color: #ea4335;
    margin-left: 8px;
    font-family: 'Roboto', sans-serif;
}

.deadline-small { font-size: 14px; }

@media (max-width: 600px) {
    .exam-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .exam-deadline {
        text-align: left;
        width: 100%;
        border-top: 1px solid #eee;
        padding-top: 8px;
    }
}

/* Period Common Elements */
.deadline-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    display: inline-block;
    background: #f1f3f4;
    padding: 2px 10px;
    border-radius: 10px;
}

.area-desc {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-color);
}

.btn-training-link {
    display: inline-block; /* 追加: aタグ用 */
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 15px;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
    text-decoration: none; /* 追加 */
    font-weight: 700; /* 追加 */
}

.btn-training-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* --- Method (Post/Bring) Section --- */
.period-location-grid {
    display: grid;
    gap: 40px;
}

@media (min-width: 768px) {
    .period-location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.method-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.method-title {
    font-size: 20px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
    color: var(--text-color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.method-lead {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-color-dark);
}

.badge-postmark {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: #c5221f;
    border: 1px solid #c5221f;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
    background-color: #fff;
    letter-spacing: 0.5px;
    white-space: nowrap;
    position: relative;
    top: -2px;
}

@media (max-width: 600px) {
    .badge-postmark {
        display: block;
        width: fit-content;
        margin: 4px auto 0;
    }
}

/* Address & Map */
.submission-address-area {
    margin-top: 60px;
}

.address-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.address-info .org-name {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.address-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin-bottom: 8px;
}

.tel-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color-dark);
    margin: 16px 0 24px;
}

.map-frame {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .address-card { padding: 20px; }
    .address-text { font-size: 16px; }
    .tel-text { font-size: 20px; }
    .map-frame iframe { height: 250px; }
}


/* --- Flow Section --- */
.flow-container {
    text-align: center;
}

.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

@media (min-width: 768px) {
    .flow-steps {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
    }
}

.flow-box {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 280px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.step-num {
    display: block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.flow-box h4 {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--text-color-dark);
}

.flow-arrow {
    font-size: 24px;
    color: #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .flow-arrow i { transform: rotate(90deg); }
}


/* --- Other / Checklist --- */
.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
}

.check-list li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--secondary-color);
}


/* --- Contact Section --- */
.contact-section {
    background-color: #fff;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    padding: 40px;
    margin-top: 100px;
    overflow: hidden;
}

.contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 200px;
}

.contact-title {
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-org {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color-dark);
}

.contact-email {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.email-note {
    font-size: 13px;
    color: var(--text-color);
    display: block;
    margin-top: 4px;
}

.contact-address {
    font-size: 15px;
    line-height: 1.6;
}

.contact-image {
    flex-shrink: 0;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    background: #f1f3f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: scale-down;
}

/* Contact Mobile Optimization */
@media (max-width: 768px) {
    .contact-section {
        padding: 32px 20px;
        margin-top: 60px;
    }

    .contact-inner {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .contact-info {
        width: 100%;
        min-width: auto;
    }

    .contact-image { margin: 0 auto; }
    
    .img-placeholder {
        width: 160px;
        height: 160px;
    }
}