@charset "UTF-8";

/* ===================================
   Foreigner ページ 共通
   =================================== */
.fgn-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 56px;
}

.fgn-section-title {
    font-size: 34px;
    color: #516881;
    margin: 8px 0 14px;
    letter-spacing: 0.03em;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

.fgn-section-sub {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ===================================
   ① Hero — スプリットレイアウト
   =================================== */
.fgn-hero {
    width: 100%;
    background-color: #9fd9f6;
    padding: 56px 40px 48px;
    position: relative;
    overflow: hidden;
}

/* 背景国旗 */
.fgn-hero-flags {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.fgn-hero-flags .fi {
    position: absolute;
    font-size: 48px;
    opacity: 0.13;
    border-radius: 4px;
}

.fgn-hero-flags .fi:nth-child(1) { top: 10%; left:  2%; transform: rotate(-12deg); }
.fgn-hero-flags .fi:nth-child(2) { top: 65%; left:  4%; transform: rotate(8deg); }
.fgn-hero-flags .fi:nth-child(3) { top: 15%; left: 90%; transform: rotate(10deg); }
.fgn-hero-flags .fi:nth-child(4) { top: 68%; left: 87%; transform: rotate(-7deg); }
.fgn-hero-flags .fi:nth-child(5) { top:  4%; left: 48%; transform: rotate(5deg);  font-size: 34px; }
.fgn-hero-flags .fi:nth-child(6) { top: 78%; left: 44%; transform: rotate(-9deg); font-size: 34px; }
.fgn-hero-flags .fi:nth-child(7) { top: 42%; left:  1%; transform: rotate(14deg); font-size: 30px; }
.fgn-hero-flags .fi:nth-child(8) { top: 42%; left: 94%; transform: rotate(-5deg); font-size: 30px; }

/* 内側 */
.fgn-hero-inner {
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 56px;
    position: relative;
    z-index: 1;
}

/* テキスト側 */
.fgn-hero-content {
    flex: 1;
    min-width: 0;
}

.fgn-hero-icon {
    width: 80px;
    margin-bottom: 12px;
    display: block;
}

.fgn-hero-en {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35em;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 10px;
    font-family: 'Roboto', sans-serif;
}

.fgn-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #516881;
    margin: 0 0 20px;
    line-height: 1.25;
    letter-spacing: 0.01em;
    font-family: 'Roboto', sans-serif;
}

.fgn-hero-sub {
    font-size: 15px;
    color: #516881;
    line-height: 1.9;
    margin: 0 0 28px;
    font-family: 'Roboto', sans-serif;
}

.fgn-hero-sub strong {
    color: #fe4c7f;
    font-weight: 700;
}

/* CTA ボタン */
.fgn-hero-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f5f29f;
    border-radius: 30px;
    padding: 12px 28px 12px 8px;
    box-shadow: 4px 4px #898787;
    transition: transform 0.1s, box-shadow 0.1s;
    color: #333;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: 'Roboto', sans-serif;
}

.fgn-hero-btn img {
    height: 42px;
    width: auto;
    margin-right: 10px;
}

.fgn-hero-btn:hover {
    box-shadow: none;
    transform: translate(4px, 4px);
    opacity: 1;
}

/* 写真側 */
.fgn-hero-photo {
    width: 460px;
    flex-shrink: 0;
    border-radius: 28px;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 16px 48px rgba(81, 104, 129, 0.28);
}

.fgn-hero-photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

/* ===================================
   ② Why Join
   =================================== */
.fgn-why {
    width: 100%;
    background-color: #fff;
    padding: 80px 20px 90px;
}

.fgn-why-inner {
    max-width: 940px;
    margin: 0 auto;
}

.fgn-why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fgn-why-card {
    background-color: #f7fbfe;
    border-radius: 20px;
    padding: 32px 20px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 2px solid #e3f3fb;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fgn-why-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(81, 104, 129, 0.12);
}

.fgn-why-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-family: 'Roboto', sans-serif;
}

.fgn-why-icon {
    margin-bottom: 14px;
}

.fgn-why-title {
    font-size: 15px;
    font-weight: 700;
    color: #516881;
    margin: 0 0 12px;
    font-family: 'Roboto', sans-serif;
}

.fgn-why-text {
    font-size: 13px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ===================================
   ③ Photo Gallery — フォトモザイク
   =================================== */
.fgn-gallery {
    width: 100%;
    background-color: #fff;
    padding: 0;
    overflow: hidden;
}

.fgn-gallery-grid {
    display: flex;
    height: 400px;
    gap: 4px;
}

.fgn-gallery-main {
    flex: 2;
    overflow: hidden;
    position: relative;
}

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

.fgn-gallery-main:hover img {
    transform: scale(1.04);
}

.fgn-gallery-sub {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.fgn-gallery-item {
    flex: 1;
    overflow: hidden;
    position: relative;
}

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

.fgn-gallery-item:hover img {
    transform: scale(1.06);
}

/* オーバーレイ：数字ラベル */
.fgn-gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 32px 20px 18px;
    background: linear-gradient(transparent, rgba(30, 58, 90, 0.65));
    display: flex;
    flex-direction: column;
    gap: 2px;
    pointer-events: none;
}

.fgn-gallery-stat {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    font-family: 'Roboto', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fgn-gallery-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.1em;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

/* ===================================
   ④ Activities — 2×2 フォトカード
   =================================== */
.fgn-activities {
    width: 100%;
    background-color: #9fd9f6;
    padding: 80px 20px 90px;
}

.fgn-activities-inner {
    max-width: 920px;
    margin: 0 auto;
}

.fgn-activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.fgn-activity-card {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(81, 104, 129, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fgn-activity-card:hover {
    transform: translateY(-6px);
    box-shadow: 5px 11px 0 rgba(81, 104, 129, 0.18);
}

/* 写真エリア */
.fgn-activity-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.fgn-activity-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fgn-activity-card:hover .fgn-activity-photo img {
    transform: scale(1.06);
}

/* アイコンバッジ（写真右下に重なる） */
.fgn-activity-icon-badge {
    position: absolute;
    bottom: -18px;
    right: 20px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    border: 3px solid #fff;
    z-index: 2;
}

/* テキストエリア */
.fgn-activity-body {
    padding: 28px 24px 26px;
}

.fgn-activity-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
}

.fgn-activity-title {
    font-size: 18px;
    font-weight: 700;
    color: #516881;
    margin: 0 0 10px;
    font-family: 'Roboto', sans-serif;
}

.fgn-activity-text {
    font-size: 13px;
    color: #666;
    line-height: 1.85;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* ===================================
   ⑤ Voices — 顔写真付き
   =================================== */
.fgn-voice {
    width: 100%;
    background-color: #fff;
    padding: 80px 20px 90px;
}

.fgn-voice-inner {
    max-width: 860px;
    margin: 0 auto;
}

.fgn-voice-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fgn-voice-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background-color: #f7fbfe;
    border-radius: 20px;
    padding: 30px 36px;
    border-left: 5px solid #9fd9f6;
    transition: box-shadow 0.2s;
}

.fgn-voice-card:hover {
    box-shadow: 0 6px 20px rgba(81, 104, 129, 0.1);
}

/* 顔写真 ＋ 国旗バッジ */
.fgn-voice-avatar-wrap {
    flex-shrink: 0;
    position: relative;
    width: 76px;
    height: 76px;
}

.fgn-voice-img {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    display: block;
}

.fgn-voice-flag {
    position: absolute;
    bottom: -2px;
    right: -4px;
    font-size: 20px;
    border-radius: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    line-height: 1;
}

/* テキスト */
.fgn-voice-body {
    flex: 1;
    padding-top: 4px;
}

.fgn-voice-quote {
    font-size: 14px;
    color: #444;
    line-height: 1.95;
    margin: 0 0 12px;
    position: relative;
    padding-left: 22px;
    font-family: 'Roboto', sans-serif;
    font-style: italic;
}

.fgn-voice-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -6px;
    font-size: 32px;
    color: #9fd9f6;
    line-height: 1;
    font-family: Georgia, serif;
    font-style: normal;
}

.fgn-voice-name {
    font-size: 12px;
    color: #888;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.06em;
    font-family: 'Roboto', sans-serif;
}

/* ===================================
   ⑥ Requirements — テーブル ＋ 写真パネル
   =================================== */
.fgn-requirements {
    width: 100%;
    background-color: #9fd9f6;
    padding: 80px 20px 90px;
}

.fgn-requirements-inner {
    max-width: 960px;
    margin: 0 auto;
}

.fgn-req-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* テーブル */
.fgn-req-table-wrap {
    flex: 1;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(81, 104, 129, 0.15);
}

.fgn-req-table {
    width: 100%;
    border-collapse: collapse;
}

.fgn-req-table tbody tr {
    border-bottom: 1px solid #e8f4fb;
}

.fgn-req-table tbody tr:last-child {
    border-bottom: none;
}

.fgn-req-table th {
    width: 170px;
    padding: 18px 22px;
    background-color: #f0f9ff;
    color: #516881;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    vertical-align: top;
    white-space: nowrap;
    font-family: 'Roboto', sans-serif;
}

.fgn-req-table td {
    padding: 18px 26px;
    font-size: 13px;
    color: #444;
    line-height: 1.75;
    vertical-align: top;
    font-family: 'Roboto', sans-serif;
}

/* 写真パネル */
.fgn-req-photo-panel {
    width: 260px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 5px 5px 0 rgba(81, 104, 129, 0.2);
    background-color: #1e3a5a;
    display: flex;
    flex-direction: column;
}

.fgn-req-photo-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    opacity: 0.88;
    transition: opacity 0.3s;
}

.fgn-req-photo-panel:hover .fgn-req-photo-img {
    opacity: 1;
}

.fgn-req-photo-caption {
    padding: 18px 20px 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.fgn-req-caption-icon {
    color: #9fd9f6;
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.fgn-req-photo-caption p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    margin: 0;
    font-style: italic;
    font-family: 'Roboto', sans-serif;
}

/* 顔写真グループ */
.fgn-req-photo-faces {
    padding: 0 20px 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fgn-req-photo-faces img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    margin-left: -8px;
    display: block;
}

.fgn-req-photo-faces img:first-child {
    margin-left: 0;
}

.fgn-req-faces-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.65);
    margin-left: 6px;
    font-family: 'Roboto', sans-serif;
    white-space: nowrap;
}

/* ===================================
   ⑦ How to Apply — フロー ＋ フォトストリップ
   =================================== */
.fgn-flow {
    width: 100%;
    background-color: #fff;
    padding: 80px 20px 100px;
}

.fgn-flow-inner {
    max-width: 920px;
    margin: 0 auto;
}

.fgn-flow-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 60px;
}

.fgn-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 180px;
    flex-shrink: 0;
}

.fgn-flow-num {
    font-size: 11px;
    font-weight: 700;
    color: #9fd9f6;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    font-family: 'Roboto', sans-serif;
}

.fgn-flow-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 4px 4px 0 rgba(81, 104, 129, 0.2);
}

.fgn-flow-title {
    font-size: 15px;
    font-weight: 700;
    color: #516881;
    margin: 0 0 10px;
    font-family: 'Roboto', sans-serif;
}

.fgn-flow-text {
    font-size: 12px;
    color: #666;
    line-height: 1.8;
    margin: 0;
    padding: 0 4px;
    font-family: 'Roboto', sans-serif;
}

.fgn-flow-arrow {
    color: #9fd9f6;
    font-size: 20px;
    margin: 0 4px;
    padding-top: 30px;
    flex-shrink: 0;
}

/* フォトストリップ */
.fgn-flow-photostrip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 56px;
    border-radius: 16px;
    overflow: hidden;
}

.fgn-flow-photo-item {
    height: 160px;
    overflow: hidden;
}

.fgn-flow-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.fgn-flow-photo-item:hover img {
    transform: scale(1.07);
}

/* CTA */
.fgn-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fgn-cta-text {
    font-size: 20px;
    font-weight: 700;
    color: #516881;
    margin: 0;
    letter-spacing: 0.03em;
    font-family: 'Roboto', sans-serif;
}

.fgn-cta-btn {
    display: inline-flex;
    align-items: center;
    background-color: #f5f29f;
    border-radius: 30px;
    padding: 14px 36px 14px 8px;
    box-shadow: 5px 5px #898787;
    transition: transform 0.1s, box-shadow 0.1s;
    color: #333;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-family: 'Roboto', sans-serif;
}

.fgn-cta-btn img {
    height: 48px;
    width: auto;
    margin-right: 12px;
}

.fgn-cta-btn:hover {
    box-shadow: none;
    transform: translate(5px, 5px);
    opacity: 1;
}

.fgn-cta-note {
    font-size: 13px;
    color: #888;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.fgn-cta-link {
    color: #30b9bf;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fgn-cta-link:hover {
    opacity: 0.7;
}

/* ===================================
   レスポンシブ
   =================================== */

/* Hero */
@media (max-width: 900px) {
    .fgn-hero {
        padding: 40px 24px 40px;
    }

    .fgn-hero-inner {
        flex-direction: column;
        gap: 32px;
    }

    .fgn-hero-photo {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
    }

    .fgn-hero-photo img {
        height: 280px;
    }

    .fgn-hero-title {
        font-size: 30px;
    }
}

@media (max-width: 600px) {
    .fgn-hero-title {
        font-size: 24px;
    }

    .fgn-hero-photo img {
        height: 220px;
    }
}

/* Why Join */
@media (max-width: 900px) {
    .fgn-why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .fgn-why-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
@media (max-width: 700px) {
    .fgn-gallery-grid {
        height: 280px;
    }

    .fgn-gallery-stat {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .fgn-gallery-grid {
        flex-direction: column;
        height: auto;
    }

    .fgn-gallery-main {
        height: 220px;
        flex: none;
    }

    .fgn-gallery-sub {
        flex-direction: row;
    }

    .fgn-gallery-item {
        height: 130px;
        flex: 1;
    }
}

/* Activities */
@media (max-width: 700px) {
    .fgn-activity-grid {
        grid-template-columns: 1fr;
    }
}

/* Voices */
@media (max-width: 600px) {
    .fgn-voice-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px 20px;
    }
}

/* Requirements */
@media (max-width: 860px) {
    .fgn-req-layout {
        flex-direction: column;
    }

    .fgn-req-photo-panel {
        width: 100%;
        flex-direction: row;
        border-radius: 16px;
    }

    .fgn-req-photo-img {
        width: 200px;
        height: 100%;
        flex-shrink: 0;
    }

    .fgn-req-photo-caption {
        padding: 20px;
    }

    .fgn-req-photo-faces {
        padding: 0 20px 20px;
    }
}

@media (max-width: 560px) {
    .fgn-req-photo-panel {
        flex-direction: column;
    }

    .fgn-req-photo-img {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 600px) {
    .fgn-req-table th {
        display: block;
        width: 100%;
        white-space: normal;
        padding-bottom: 4px;
        border-bottom: none;
    }

    .fgn-req-table td {
        display: block;
        width: 100%;
        padding-top: 4px;
    }
}

/* Flow */
@media (max-width: 768px) {
    .fgn-flow-steps {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        margin-bottom: 40px;
    }

    .fgn-flow-arrow {
        display: none;
    }

    .fgn-flow-step {
        width: 140px;
    }
}

/* Photo strip */
@media (max-width: 600px) {
    .fgn-flow-photostrip {
        grid-template-columns: repeat(2, 1fr);
    }

    .fgn-flow-photo-item {
        height: 120px;
    }
}
