@charset "UTF-8";

/* =========================================
   RELATED LINKS PAGE
========================================= */


/* =========================================
   導入
========================================= */

.link-intro{
    width:100%;
    max-width:900px;
    margin:55px auto 80px;
    padding:0 25px;
    box-sizing:border-box;
    text-align:center;
}

#CONTENT .link-kicker{
    margin:0 0 10px;
    padding:0;
    text-indent:0;
    text-align:center;
    font-family:"Times New Roman", serif;
    font-size:13px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.30em;
    color:#71869a;
}

#CONTENT .link-main-title{
    position:relative;
    display:block;
    margin:0;
    padding:0;
    text-align:center;
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "MS Mincho",
        serif;
    font-size:clamp(32px,3vw,46px);
    font-weight:700;
    line-height:1.4;
    letter-spacing:.08em;
    color:#002b55;
    background:none;
    border:none;
    text-shadow:none;
}

#CONTENT .link-main-title::before{
    display:none;
}

#CONTENT .link-main-title::after{
    content:"";
    display:block;
    width:80px;
    height:3px;
    margin:18px auto 0;
    background:
        linear-gradient(
            90deg,
            #003366 0%,
            #00b5e2 100%
        );
}

#CONTENT .link-lead{
    max-width:800px;
    margin:24px auto 0;
    padding:0;
    text-indent:0;
    text-align:center;
    font-size:16px;
    font-weight:400;
    line-height:1.9;
    letter-spacing:.04em;
    color:#465461;
}


/* =========================================
   カテゴリセクション
========================================= */

.link-section{
    position:relative;
    width:100%;
    max-width:1100px;
    margin:0 auto 90px;
    padding:0 25px;
    box-sizing:border-box;
}


/* =========================================
   カテゴリ見出し
========================================= */

.link-section-head{
    position:relative;
    display:flex;
    align-items:center;
    gap:22px;
    margin:0 0 32px;
    padding:0 0 20px;
    border-bottom:1px solid #ccdbe5;
}

.link-section-head::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-1px;
    width:130px;
    height:3px;
    background:
        linear-gradient(
            90deg,
            #003366 0%,
            #00b5e2 100%
        );
}

.link-section-number{
    flex-shrink:0;
    font-family:"Times New Roman", serif;
    font-size:54px;
    font-weight:700;
    line-height:1;
    color:rgba(0,51,102,.13);
}

#CONTENT .link-section-en{
    margin:0 0 4px;
    padding:0;
    text-indent:0;
    text-align:left;
    font-family:"Times New Roman", serif;
    font-size:11px;
    font-weight:700;
    line-height:1.2;
    letter-spacing:.25em;
    color:#00a1cd;
}

#CONTENT .link-section-head h2{
    position:relative;
    display:block;
    margin:0;
    padding:0;
    text-align:left;
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "MS Mincho",
        serif;
    font-size:28px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:.06em;
    color:#003366;
    background:none;
    border:none;
    text-shadow:none;
}

#CONTENT .link-section-head h2::before,
#CONTENT .link-section-head h2::after{
    display:none;
}


/* =========================================
   リンクカード グリッド
========================================= */

.link-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:22px;
}


/* =========================================
   リンクカード
========================================= */

#CONTENT .link-card{
    position:relative;
    display:flex;
    align-items:stretch;
    min-width:0;
    min-height:150px;
    padding:27px 58px 25px 27px;
    box-sizing:border-box;
    overflow:hidden;
    color:inherit;
    text-decoration:none;
    text-align:left;
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f8fbfd 100%
        );
    border:1px solid #d1dee7;
    box-shadow:
        0 8px 22px rgba(0,43,75,.06);
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

/* 上辺アクセント */
#CONTENT .link-card::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:4px;
    background:
        linear-gradient(
            90deg,
            #003366 0%,
            #00b5e2 100%
        );
    transform:scaleX(.30);
    transform-origin:left center;
    transition:transform .35s ease;
}

/* 右下L字 */
#CONTENT .link-card::after{
    content:"";
    position:absolute;
    right:10px;
    bottom:10px;
    width:29px;
    height:29px;
    box-sizing:border-box;
    border-right:1px solid rgba(0,181,226,.38);
    border-bottom:1px solid rgba(0,181,226,.38);
    transition:
        width .3s ease,
        height .3s ease,
        border-color .3s ease;
}

#CONTENT .link-card:hover{
    transform:translateY(-5px);
    color:inherit;
    background:#ffffff;
    border-color:rgba(0,181,226,.55);
    box-shadow:
        0 15px 32px rgba(0,43,75,.12);
}

#CONTENT .link-card:hover::before{
    transform:scaleX(1);
}

#CONTENT .link-card:hover::after{
    width:38px;
    height:38px;
    border-color:rgba(0,181,226,.7);
}


/* =========================================
   カード内部
========================================= */

.link-card-content{
    display:flex;
    flex-direction:column;
    width:100%;
    min-width:0;
}

#CONTENT .link-card-category{
    display:inline-block;
    align-self:flex-start;
    margin:0 0 11px;
    padding:3px 8px;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size:9px;
    font-weight:700;
    line-height:1.3;
    letter-spacing:.15em;
    color:#006b95;
    background:#e8f6fb;
}

#CONTENT .link-card h3{
    display:block;
    margin:0 0 13px;
    padding:0;
    text-align:left;
    font-family:
        "Yu Mincho",
        "YuMincho",
        "Hiragino Mincho ProN",
        "MS Mincho",
        serif;
    font-size:18px;
    font-weight:700;
    line-height:1.55;
    letter-spacing:.04em;
    color:#003366;
    background:none;
    border:none;
    text-shadow:none;
}

#CONTENT .link-card h3::before,
#CONTENT .link-card h3::after{
    display:none;
}

#CONTENT .link-card p{
    margin:auto 0 0;
    padding:0;
    text-indent:0;
    text-align:left;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size:11px;
    font-weight:400;
    line-height:1.5;
    letter-spacing:.02em;
    color:#74818b;
    overflow-wrap:anywhere;
}


/* =========================================
   外部リンク矢印
========================================= */

.link-arrow{
    position:absolute;
    top:24px;
    right:22px;
    display:flex;
    align-items:center;
    justify-content:center;
    width:29px;
    height:29px;
    box-sizing:border-box;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
    font-size:17px;
    font-weight:400;
    line-height:1;
    color:#007ba6;
    border:1px solid #bdd7e4;
    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s ease;
}

#CONTENT .link-card:hover .link-arrow{
    color:#ffffff;
    background:#007da7;
    border-color:#007da7;
    transform:translate(2px,-2px);
}


/* =========================================
   セクションごとの控えめな色分け
========================================= */

/* 防衛省関係 */
.link-section:nth-of-type(2) .link-section-number{
    color:rgba(0,51,102,.13);
}

/* 関係省庁等 */
.link-section:nth-of-type(3) .link-section-number{
    color:rgba(0,103,145,.13);
}

/* 国際連合等機関 */
.link-section:nth-of-type(4) .link-section-number{
    color:rgba(0,126,156,.13);
}

/* 部外関係機関等 */
.link-section:nth-of-type(5) .link-section-number{
    color:rgba(0,147,170,.13);
}


/* =========================================
   外部リンクについて
========================================= */

.link-notice{
    width:100%;
    max-width:1050px;
    margin:0 auto 100px;
    padding:0 25px;
    box-sizing:border-box;
}

.link-notice-inner{
    position:relative;
    display:flex;
    align-items:center;
    gap:23px;
    padding:27px 30px;
    box-sizing:border-box;
    background:#f4f8fb;
    border:1px solid #d3e0e8;
    border-left:4px solid #00a6d2;
}

.link-notice-mark{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    box-sizing:border-box;
    font-family:
        "Times New Roman",
        serif;
    font-size:24px;
    font-weight:700;
    font-style:italic;
    line-height:1;
    color:#ffffff;
    background:#003f70;
    border-radius:50%;
}

#CONTENT .link-notice h2{
    position:relative;
    display:block;
    margin:0 0 7px;
    padding:0;
    text-align:left;
    font-family:
        "Yu Mincho",
        "YuMincho",
        serif;
    font-size:18px;
    font-weight:700;
    line-height:1.5;
    letter-spacing:.04em;
    color:#003366;
    background:none;
    border:none;
}

#CONTENT .link-notice h2::before,
#CONTENT .link-notice h2::after{
    display:none;
}

#CONTENT .link-notice p{
    margin:0;
    padding:0;
    text-indent:0;
    text-align:left;
    font-size:13px;
    line-height:1.8;
    letter-spacing:.03em;
    color:#53616c;
}


/* =========================================
   キーボード操作
========================================= */

#CONTENT .link-card:focus{
    outline:3px solid rgba(0,181,226,.45);
    outline-offset:3px;
}

#CONTENT .link-card:focus-visible{
    outline:3px solid #00a9d5;
    outline-offset:3px;
}


/* =========================================
   タブレット
========================================= */

@media screen and (max-width:1000px){

    .link-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

}


/* =========================================
   スマホ版
========================================= */

@media screen and (max-width:819px){

    /* =====================================
       導入
    ===================================== */

    .link-intro{
        margin:35px auto 55px;
        padding:0 18px;
    }

    #CONTENT .link-kicker{
        margin-bottom:8px;
        font-size:10px;
        letter-spacing:.25em;
    }

    #CONTENT .link-main-title{
        font-size:clamp(25px,6.5vw,31px);
        line-height:1.45;
        letter-spacing:.05em;
    }

    #CONTENT .link-main-title::after{
        width:60px;
        margin-top:13px;
    }

    #CONTENT .link-lead{
        margin-top:18px;
        font-size:14px;
        line-height:1.8;
        text-align:left;
    }


    /* =====================================
       セクション
    ===================================== */

    .link-section{
        margin-bottom:65px;
        padding:0 15px;
    }


    /* =====================================
       セクション見出し
    ===================================== */

    .link-section-head{
        gap:13px;
        margin-bottom:22px;
        padding-bottom:14px;
    }

    .link-section-head::after{
        width:90px;
    }

    .link-section-number{
        font-size:42px;
    }

    #CONTENT .link-section-en{
        margin-bottom:3px;
        font-size:9px;
        letter-spacing:.18em;
    }

    #CONTENT .link-section-head h2{
        font-size:22px;
        letter-spacing:.04em;
    }


    /* =====================================
       グリッド
    ===================================== */

    .link-grid{
        grid-template-columns:1fr;
        gap:14px;
    }


    /* =====================================
       カード
    ===================================== */

    #CONTENT .link-card{
        min-height:0;
        padding:22px 50px 20px 20px;
    }

    #CONTENT .link-card::before{
        height:3px;
    }

    #CONTENT .link-card:hover{
        transform:none;
    }

    #CONTENT .link-card-category{
        margin-bottom:8px;
        padding:3px 7px;
        font-size:8px;
    }

    #CONTENT .link-card h3{
        margin-bottom:10px;
        font-size:16px;
        line-height:1.5;
    }

    #CONTENT .link-card p{
        font-size:10px;
    }

    .link-arrow{
        top:20px;
        right:17px;
        width:26px;
        height:26px;
        font-size:15px;
    }

    #CONTENT .link-card:hover .link-arrow{
        transform:none;
    }


    /* =====================================
       外部リンクについて
    ===================================== */

    .link-notice{
        margin-bottom:60px;
        padding:0 15px;
    }

    .link-notice-inner{
        align-items:flex-start;
        gap:14px;
        padding:21px 18px;
        border-left-width:3px;
    }

    .link-notice-mark{
        width:36px;
        height:36px;
        font-size:20px;
    }

    #CONTENT .link-notice h2{
        margin-bottom:6px;
        font-size:16px;
    }

    #CONTENT .link-notice p{
        font-size:12px;
        line-height:1.75;
    }

}


/* =========================================
   小さいスマホ
========================================= */

@media screen and (max-width:480px){

    .link-section-head{
        align-items:flex-start;
    }

    .link-section-number{
        font-size:36px;
        margin-top:2px;
    }

    #CONTENT .link-section-en{
        font-size:8px;
        line-height:1.4;
    }

    #CONTENT .link-section-head h2{
        font-size:20px;
    }

    #CONTENT .link-card{
        padding:
            20px
            46px
            18px
            18px;
    }

    .link-arrow{
        top:18px;
        right:15px;
    }

    .link-notice-inner{
        display:block;
    }

    .link-notice-mark{
        margin-bottom:12px;
    }

}