/* ==========================================================
   style.css
   第95回 日本学生陸上競技対校選手権大会
========================================================== */

/* ==========================================================
   Root
========================================================== */

:root{
    --navy:#072b61;
    --gold:#caa64b;
    --bg:#f5f7fb;
    --white:#ffffff;
    --text:#222;
    --border:#e8edf5;
    --header-height:84px;
    --container:1700px;
    --radius:18px;
    --shadow:0 6px 20px rgba(0,0,0,.08);
}

/* ==========================================================
   Reset
========================================================== */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:"Yu Gothic","Yu Gothic UI",sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.7;
}

img{
    display:block;
    max-width:100%;
}

a{
    color:inherit;
    text-decoration:none;
}

ul{
    list-style:none;
}

/* ==========================================================
   Common
========================================================== */

.container{
    width:min(92%,var(--container));
    margin:auto;
}

.center{
    text-align:center;
}

.section-title{
    margin-bottom:35px;
}

.section-title span{
    color:var(--gold);
    letter-spacing:3px;
    font-size:14px;
    font-weight:bold;
}

.section-title h2{
    margin-top:8px;
    font-size:36px;
    color:var(--navy);
}

/* ==========================================================
   Header
========================================================== */

.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:84px;
    background:rgba(7,43,97,.95);
    backdrop-filter:blur(10px);
    z-index:999;
}

.header-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:100%;
    width:100%;
}

.header-left{
    display:flex;
    align-items:center;
    gap:18px;
    flex:1;
    justify-content:flex-start;
}

.logo{
    display:flex;
    align-items:center;
    gap:12px;
    color:#fff;
    font-weight:bold;
    white-space:nowrap;
}

.logo img{
    height:50px;
}

.header-social{
    display:flex;
    align-items:center;
    gap:10px;
}

.header-social img{
    width:34px;
    height:34px;
}

.nav{
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
}

.nav ul{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:30px;
    flex-wrap:nowrap;
}

.nav a{
    display:block;
    color:#fff;
    font-weight:bold;
    text-decoration:none;
    white-space:nowrap;
    padding:10px 0;
    border-radius:8px;
    transition:all .25s ease;
}

.nav a:hover{
    background:rgba(255,255,255,0.18);
    color:#ffd54d;
}

.nav a:active{
    transform:scale(0.96);
}

.menu-toggle{
    display:none;
    width:44px;
    height:44px;
    background:none;
    border:none;
    cursor:pointer;
    position:relative;
    z-index:1001;
}

.menu-toggle span{
    position:absolute;
    left:8px;
    width:28px;
    height:3px;
    background:#fff;
    border-radius:2px;
    transition:.35s;
}

.menu-toggle span:nth-child(1){
    top:12px;
}

.menu-toggle span:nth-child(2){
    top:20px;
}

.menu-toggle span:nth-child(3){
    top:28px;
}

.menu-toggle.active span:nth-child(1){
    transform:rotate(45deg);
    top:20px;
}

.menu-toggle.active span:nth-child(2){
    opacity:0;
}

.menu-toggle.active span:nth-child(3){
    transform:rotate(-45deg);
    top:20px;
}

.header-right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:18px;
    flex:1;
}

.header-sponsor{
    width:170px;
    height:48px;
    position:relative;
}

.header-sponsor img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:contain;
}

.countdown{
    color:#ffd54d;
    font-weight:bold;
    white-space:nowrap;
}

.countdown-mobile{
    display:none;
}

/* ==========================================================
   top
========================================================== */

.top{
    margin-top:var(--header-height);
    width:100%;
    height:clamp(400px,40vw,650px);
    background:url("../images/topimg57.png")
        center/cover no-repeat;
    display:flex;
    align-items:flex-end;
}

/* ==========================================================
   NEWS
========================================================== */

.news-section{
    padding:80px 0;
    background:#fff;
}

.news-wrapper{
    display:grid;
    grid-template-columns:2.8fr 1.5fr 2fr;
    gap:30px;
    align-items:start;
}

.news-list{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.news-item{
    display:grid;
    grid-template-columns:120px 1fr;
    gap:20px;
    align-items:center;
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    padding:20px 24px;
    transition:.3s;
}

.news-item:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow);
}

.date{
    color:#666;
    font-size:15px;
}

.category{
    background:var(--navy);
    color:#fff;
    text-align:center;
    border-radius:999px;
    padding:6px 12px;
    font-size:13px;
    font-weight:bold;
}

.text{
    font-size:16px;
}

.news-more{
    margin-top:25px;
}

.news-more a{
    color:var(--navy);
    font-weight:bold;
}

/* ==========================================================
   Poster
========================================================== */

.poster-area{
    background:#f8f9fc;
    border-radius:var(--radius);
    padding:20px;
    position:sticky;
    top:110px;
    box-shadow:var(--shadow);
}

.poster-area h3{
    color:var(--navy);
    text-align:center;
    margin-bottom:18px;
    font-size:18px;
}

.poster-area img{
    width:100%;
    border-radius:12px;
    transition:.3s;
}

.poster-area img:hover{
    transform:scale(1.02);
}

/* ==========================================================
   Partner
========================================================== */

.partner-area{
    background:#f8f9fc;
    border-radius:var(--radius);
    padding:20px;
    box-shadow:var(--shadow);
}

.partner-area h3{
    color:var(--navy);
    text-align:center;
    margin-bottom:18px;
    font-size:18px;
}

.partner-area a{
    display:block;
    background:#fff;
    border-radius:12px;
    padding:14px;
    margin-bottom:15px;
    transition:.3s;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
}

.partner-area a:last-child{
    margin-bottom:0;
}

.partner-area a:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.partner-area img{
    width:100%;
    max-height:55px;
    object-fit:contain;
}


.partner-layout{
    display:grid;
    grid-template-columns:2fr 2fr;
    grid-template-areas:
        "special special"
        "sponsor support";
    gap:15px;
}

.partner-special{
    grid-area:special;
}

.partner-sponsor{
    grid-area:sponsor;
}

.partner-support{
    grid-area:support;
}

.partner span{
    display:block;
    margin-top:10px;
    font-size:13px;
    text-align:center;
    line-height:1.4;
    color:#555;
}

.partner-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:12px;
    padding:18px 15px;
    text-align:center;
    transition:.3s;
    box-shadow:0 3px 10px rgba(0,0,0,.05);
}

.partner-card:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
}

.partner-card img{
    width:100%;
    max-height:55px;
    object-fit:contain;
    margin-bottom:12px;
}

.partner-card span{
    font-size:13px;
    line-height:1.5;
    color:#555;
    font-weight:600;
}

/* ==========================================================
   INFORMATION
========================================================== */

.info-section{
    padding:90px 0;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:28px;
    margin-top:45px;
}

.info-card{
    background:#fff;
    border-radius:var(--radius);
    padding:35px 28px;
    transition:.3s;
    box-shadow:var(--shadow);
}

.info-card:hover{
    transform:translateY(-6px);
}

.icon{
    font-size:40px;
    margin-bottom:18px;
}

.info-card h3{
    color:var(--navy);
    margin-bottom:12px;
}

.link-underline{
    color:#0000EE;
    text-decoration:underline;
}

/* ==========================================================
   SNS
========================================================== */

.sns-section{
    padding:90px 0;
    background:#fff;
}

.sns-grid{
    display:grid;
    grid-template-columns:500px 500px;
    gap:40px;
    margin-top:45px;
    place-content:center;
}

.sns-card{
    background:#f7f8fb;
    border-radius:var(--radius);
    padding:25px;
}

.sns-card h3{
    color:var(--navy);
    margin-bottom:20px;
}

.sns-text{
    margin-bottom:25px;
}

.sns-button{
    display:inline-block;
    background:var(--navy);
    color:#fff;
    padding:12px 28px;
    border-radius:999px;
    transition:.3s;
}

.sns-button:hover{
    background:var(--gold);
    color:#000;
}

.sns-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:18px;
    color:var(--navy);
    font-size:24px;
}

.sns-title img{
    width:36px;
    height:36px;
    object-fit:contain;
}

.sns-profile{
    width:100%;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    transition:.3s;
}

.sns-profile:hover{
    transform:scale(1.02);
}


/* ==========================================================
   ACCESS
========================================================== */

.access-section{
    padding:90px 0;
}

.access-grid{
    display:grid;
    grid-template-columns:1.5fr 1fr;
    gap:40px;
    margin-top:45px;
}

.map iframe{
    width:100%;
    max-width:800px;
    height:450px;
    border:none;
    border-radius:var(--radius);
}

.access-text{
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.access-text h3{
    color:var(--navy);
    margin-bottom:20px;
}

.access-text p{
    margin-bottom:15px;
}

/* ==========================================================
   FOOTER
========================================================== */

.footer{
    margin-top:80px;
    background:var(--navy);
    color:#fff;
}

.footer-grid{
    display:grid;
    grid-template-columns:2fr 1fr 1fr;
    gap:60px;
    padding:70px 0;
}

.footer-logo img{
    width:90px;
    margin-bottom:18px;
}
.footer h4{
    margin-bottom:18px;
    color:#ffd54d;
}

.footer li{
    margin-bottom:10px;
}

.footer a:hover{
    color:#ffd54d;
}

.footer-contact p{
    margin-bottom:10px;
}

.copyright{
    text-align:center;
    padding:18px;
    border-top:1px solid rgba(255,255,255,.15);
    font-size:14px;
}

/* ==========================================================
   Animation
========================================================== */

.fade{
    opacity:0;
    transform:translateY(40px);
    transition:1s;
}

.fade.show{
    opacity:1;
    transform:none;
}

/* ==========================================================
   Tablet/Smartphone
========================================================== */

/* ==========================================
   Tablet
========================================== */

@media (max-width:1024px){

.container{
    width:94%;
}

.news-wrapper,
.access-grid,
.footer-grid{
    grid-template-columns:1fr;
}

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

.header-social img{
    width:30px;
    height:30px;
}

.logo img{
    height:46px;
}

.nav ul{
    gap:24px;
}

.nav a{
    padding:8px 12px;
    font-size:15px;
}

.sns-grid{
    grid-template-columns:1fr;
}

}

/* ==========================================
   Smartphone
========================================== */

@media (max-width:767px){

.header{
    height:70px;
}

.top{
    margin-top:70px;
    width:100%;
    height:52vw;
    min-height:180px;
    max-height:280px;
    background-size:100% auto;
    background-position:center top;
    background-repeat:no-repeat;
    background-color:#fff;
}

.countdown-mobile{
    display:block;
    width:100%;
    padding:18px 0 10px;
    text-align:center;
}

.countdown-mobile .countdown{
    display:inline-block;
    padding:12px 24px;
    border-radius:999px;
    background:#072b61;
    color:#fff;
    font-weight:bold;
    font-size:18px;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}

.logo{
    gap:8px;
}

.logo img{
    height:42px;
}

.logo span{
    display:block;
    font-size:14px;
    line-height:1.3;
    white-space:nowrap;
}

.header-social{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
    margin-right:14px;
}

.header-right{
    display:none;
}

.header-social img{
    width:26px;
    height:26px;
    display:block;
}

.menu-toggle{
    display:block;
}

.nav{
    display:flex;
}

@media (max-width:767px){
.nav{
    display:block;
    position:fixed;
    top:70px;
    right:0;
    width:240px;
    max-width:85vw;
    background:#072b61;
    border-radius:0 0 0 12px;
    box-shadow:-6px 8px 20px rgba(0,0,0,.25);
    transform:translateX(100%);
    transition:.35s ease;
    z-index:9999;
}

.nav.open{
    transform:translateX(0);
}
}

.section-title h2{
    font-size:30px;
}

.section-title span{
    font-size:14px;
}

.news-wrapper,
.access-grid,
.footer-grid{
    grid-template-columns:1fr;
}

.sns-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}

.sns-card{
    padding:20px;
}

.sns-title{
    font-size:22px;
}

.sns-title img{
    width:32px;
    height:32px;
}

.sns-profile{
    width:100%;
    border-radius:12px;
}

.news-wrapper{
    display:flex;
    flex-direction:column;
    gap:28px;
    width:100%;
}

.news-main{
    width:100%;
}

.poster-area{
    width:100%;
    position:static;
    order:2;
}

.poster-area img{
    width:100%;
    height:auto;
    display:block;
    border-radius:12px;
}

.news-main{
    order:1;
}

.poster-area{
    order:2;
}

.partner-area{
    order:3;
}

.info-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:20px;
}

.info-card{
    padding:24px;
    border-radius:16px;
}

.info-card h3{
    font-size:20px;
    margin-bottom:16px;
}

.info-card a{
    line-height:1.9;
    word-break:break-word;
}

.partner-area{
    position:static;
    width:100%;
    margin:0;
    order:3;
}

.partner-layout{
    display:flex;
    flex-direction:column;
    gap:16px;
    width:100%;
}

.partner-card{
    width:100%;
    padding:18px;
}

.partner-card img{
    max-height:60px;
    object-fit:contain;
}

.partner-card span{
    margin-top:10px;
}

.partner-special,
.partner-sponsor,
.partner-support{
    width:100%;
}

.partner-sponsor{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.poster-area img{
    width:100%;
}

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

.map iframe{
    width:100%;
    height:300px;
    border-radius:16px;
}

.access-text{
    width:100%;
}

.footer-grid{
    display:flex;
    flex-direction:column;
    gap:30px;
}

.footer-logo img{
    margin:auto;
}

.footer h4{
    margin-bottom:10px;
}

.nav ul{
    display:flex;
    flex-direction:column;
    margin:0;
    padding:0;
    list-style:none;
}

.nav li{
    border-top:1px solid rgba(255,255,255,.15);
}

.nav a{
    display:block;
    padding:18px 22px;
    color:#fff;
    text-align:left;
    font-weight:bold;
    transition:.25s;
}

.nav a:hover{
    background:rgba(255,255,255,.12);
}

.header-inner{
    justify-content:space-between;
}

.header-left{
    gap:10px;
}

.logo img{

    height:38px;

}

.logo span{
    font-size:13px;
}

.news-item{
    grid-template-columns:1fr;
    gap:10px;
}

.date{
    font-size:14px;
}

.text{
    font-size:15px;
}

.section-title{
    text-align:center;
}

img{
    max-width:100%;
    height:auto;
}

iframe{
    max-width:100%;
}

body{
    overflow-x:hidden;
}

}