
@media(min-width:1001px) {
    .header a.nav-link,
    .header div.logo a img {
        filter: brightness(50);
    }

    .header.is-scrolled a.nav-link,
    .header.is-scrolled div.logo a img {
        filter: brightness(1);
    }   
}



#top-floating {
    display:block;
    width:25%;
    max-width:350px;
    position: fixed;
    bottom:5rem;
    right:7rem;
    z-index: 100;
    filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.3));
    pointer-events: none;
    opacity:0;
    transition:opacity 0.3s linear;
}
#top-floating.show {
    opacity:1;
    pointer-events: auto;
}
#top-floating .close-button {
    background:none;
    border:none;
    border-radius: 0;
    width:2rem;
    aspect-ratio: 1 / 1;
    padding:0;
    position: absolute;
    bottom:0;
    right:0;
    transform: translate(50%, 50%);
    cursor: pointer;
}
#top-floating .close-button img {
    width:100%;
    height:100%;
}

#top-floating.hide {
    display:none !important;
}

@media(max-width:1000px) {
    #top-floating {
        max-width: none;
        width:60vw;
        right:1.5rem;
        bottom:6.5rem;
    }
}

/* Section Header Layout */
.section-header { gap: 1.254rem; margin-bottom: 2.5rem; }
.section-headings { display: flex; flex-direction: column; width:60%;}
.section-headings + div {flex:1;}
.section-headings + div > .btn:first-child {
    margin-left:auto;
}

@media(max-width:1000px) {
    .section-header { margin-bottom: 2.5rem; }
}


/* Generic: header split layout (title block | right-side item) */
.section-header--split {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.section-header--split > * {
    
}

@media(max-width:1000px) {
    .section-header--split {
        flex-direction: column;
        gap: 2.5rem;
    }
    .section-header--split > * {
        width:100%;
        max-width: none;
    }
}

.section-content > .btn:last-child {
    margin-top:3rem;
}

/* Typography */
.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 4.010rem;
    line-height: 1;
    margin-bottom:0.3em;
}

.section-subtitle {
    display: flex;
    align-items: center;
    gap: 0.501rem;
    font-weight: 700;
    font-size: 1.128rem;
}

.section-icon {
    width: 1.629em;
    height: 1.629em;
}

.section-icon svg,
.section-icon img {
    width: 100%;
    height: 100%;
}

.gxp-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media(max-width:1000px) {
    .section-title {
        font-size:2.5rem;
        margin-bottom: 0.3em;
    }
    .section-subtitle {
        font-size:0.5625rem;
    }
}


/* Hero Section */
.hero {
    position: relative;
    height: 51rem;
    padding-top:8rem;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    overflow: hidden;
}


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top, rgba(0,0,0,0) 50%, rgb(0, 0, 0) 70%);
    opacity: 0.9;
    transform:scaleX(300%);
    width:100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-title {
    font-size: 2.506rem;
    line-height: 1.4;
    color: #000000;
    margin-bottom: 0;
    text-align: center;
}

.hero-decoration {
    position: absolute;
    bottom: 3rem;
    left: 0;
    right: 0;
    z-index: 1;
}

.decoration-img {
    width: 100%;
    height: auto;
}

@media(max-width:1000px) {
    .hero {
        height: auto;
        background-image: url('../images/hero-bg-sp.webp');
        aspect-ratio: 375 / 420;
        padding: 0;
    }
    .hero-title {
        font-size: 1.25rem;
        top: 2rem;
        transform: none;
        margin-top:4.3rem;
    }
    .hero-content {
        position: static;
        padding-left:1.25rem;
        padding-right:1.25rem;
    }
    .hero-overlay {
        opacity:0.9;
        height: 80vw;
        /*! margin-top:66vw; */
        transform: scaleX(4);
        top:auto;
        bottom:0vh;
    }
    .hero-decoration {
        bottom:1rem;
    }
}


.whats-new {
    background:var(--color_main);
    color:#ffffff;
    padding:0.5rem 1rem;
}
.whats-new a {
    color:inherit;
}
.whats-new .container {
    display:flex;
    justify-content: center;
}
.whats-new .container h2.whats-new-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    line-height: 1;
}
.whats-new .container div.whats-new-content {
    margin-left:1em;
    padding-left:1em;
    border-left:1px solid #fff;
    align-self: center;
}
.whats-new .container div.whats-new-content p {
    line-height: 1.4;
}
.whats-new .container div.whats-new-content p a {
    display:flex;
    gap:1em;
    line-height: inherit;
}

@media(max-width:1000px) {
    .whats-new .container {
        padding:0;
    }
    .whats-new .container h2.whats-new-title {display:none;}
    .whats-new .container div.whats-new-content {
        border:none;
        padding:0;
        margin:0;
    }
    .whats-new .container div.whats-new-content p {font-size:0.7rem;}
}


/* About Section */

.section.magazine + .section.about {
    margin-top:5rem;
}
.about-wrap {
    display: flex;
    justify-content: space-between;
    /*! align-items: flex-end; */
    gap: 2.506rem;
}

.about .section-header {
    display: block;
    margin-bottom: 2.506rem;
}

.about-visual {
    flex: 0 0 auto;
    width: 50%;        /* ≒512px */
    /*! max-width: 40%; */
    aspect-ratio: 1 / 1; /* keep it square */
}
.about-visual > img { 
    display: block; 
    width: 110%;
    max-width:none;
    height: auto;
    margin-top:-8rem;
    mix-blend-mode: multiply;
}

.about-btn-area {
    display:flex;
    gap:2rem;
    justify-content: center;
    margin-top:3rem;
    margin-left:5%;
}

.about-body {
    flex: 1 1 auto;
    min-width: 0;
}

.about-graph {
    width:100%;
    position: relative;
}

.about-graph-bg {
    width:82%;
}

.about-graph a {
    display:block;
    height: 5.4rem;
    position: absolute;
    transition: transform 0.3s ease-out;
}
.about-graph a:hover {
    transform:scale(1.1);
}
.about-graph a img {
    width:auto;
    height: 100%;
}
.about-graph a.dx {
    top:9.5rem;
    left:2rem;
}
.about-graph a.gx {
    top:2rem;
    left:19.5rem;
}
.about-graph a.make {
    top:17rem;
    left:23rem;
}

@media(max-width:1000px) {
    .section.magazine + .section.about {
        margin-top:2rem;
    }
    .about-graph a {height:3.4rem;}
    .about-graph a.dx {
        top:7rem;
        left:1.5rem;
    }
    .about-graph a.gx {
        top:1.5rem;
        left:8.5rem;
    }
    .about-graph a.make {
       top:13rem;
        left:13rem;
    }
}

.about-movie-wrap {
   position: relative;
   margin-top:7rem;
}
.about-movie-wrap .about-movie-inner {
    aspect-ratio: 1440 / 810;
    background:url(../images/movie_graph_s.webp) center center;
    background-size: cover;
    display:flex;
    align-items: center;
    justify-content: center;
    position:relative;
    left:50%;
    transform:translateX(-50%);
    width:100vw;
    z-index: 1;
    cursor: pointer;
}
.about-movie-wrap .play-button {
    position: relative;
    width:fit-content;
}
.about-movie-wrap .play-button::after {
    content:"";
    width:100%;
    aspect-ratio: 1 / 1;
    display:block;
    background:rgba(255, 255, 255, 0.8);
    position: absolute;
    top:50%;
    left:50%;
    border-radius: 1000px;
    mix-blend-mode: overlay;
    transform:translate(-50%,-50%);
}
.about-movie-wrap .movie-tit {
    transform:translateY(-50%);
    position: absolute;
    z-index: 2;
    width:100%;
    text-align: center;
}
.about-movie-wrap .movie-tit img {
    height:2.8rem;
    width:auto;
}

@media(max-width:1000px) {
    
    .about-wrap {
        flex-direction: column;
        position: relative;
    }
    .about-body {
        
    }
    .about-visual {
        width:100%;
        max-width: none;
        aspect-ratio: auto;
    }
    .about-visual > img {
        width:100%;
        transform: none;
        margin:0;
        position: absolute;
        top:1rem;
    }
    
    .about .section-content {
        padding-top:12.5rem;
    }
    
    .about-btn-area {
        margin:0;
        flex-direction: column;
        align-items: center;
        margin-inline: auto;
    }
    
    
    .about-movie-wrap {
        margin-top:5rem;
    }
    .about-movie-wrap::after {
        top:-3rem;
    }
    .about-movie-wrap .about-movie-inner {
        aspect-ratio: 375 / 211;
    }
    .about-movie-wrap .play-button {
        width:4rem;
    }
    .about-movie-wrap .play-button svg {
        width:100%;
    }
}


/* Section Content Utilities */
.section-description {
  font-size: 1.125rem;
  line-height: 1.8;
  color: inherit;
  margin-bottom: 2.506rem;
}
.section-description + .btn { /*! margin-top: 2rem; */}
.section-description:last-child {
    margin-bottom:0;
}

@media(max-width:1000px) {
    .section-description {
        font-size:0.875rem;
    }
    .section-description + .btn {
        margin-top:2.5rem;
    }
}

/* News Section */


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

/* GXP Section */
.gxp-project .section-content {
    display:flex;
    flex-direction: column;
}
.gxp-project .section-content .section-description {
    position: relative;
}
.gxp-project .map {
    width:fit-content;
    margin-left:auto;
    display: block;
    width:65%;
    margin-top:-20rem;
    margin-right: 7rem;
    position: relative;
}

.map-item {
    display:flex;
    align-items: center;
    justify-content: flex-start;
    font-size:1.09rem;
    text-decoration: none;
    height: 4em;
    padding:0 1em;
    border-radius: 0.8em;
    background:#eaf3e5;
    position: absolute;
    z-index: 1;
    border:2px solid transparent;
    transition: border-color 0.3s linear;
}
.map-item:hover {
    border:2px solid var(--color_main);
}
.map-item.tosu {
    bottom:4%;
    left:18%;
}
.map-item.shiraoka {
    top:51%;
    left:74%;
}
.map-item.tsukubamirai {
    top:60.5%;
    left:74%;
}
.map-item.kanegasaki {
    top:39.5%;
    left:74%;
}
.map-item.kamiseya {
    bottom:18.5%;
    right:12%;
}
.map-item.kasuya {
    top:53%;
    left:7%;
}


.map-item .square + .square {
    margin-left:0.2rem;
}

.map-item-title {
    margin-left:0.35em;
    white-space: nowrap;
}

.square {
    display:block;
    width:1em;
    aspect-ratio: 1 / 1;
}
.square.blue {background:#7fb5e5;}
.square.green {background:#6ba8a2;}
.square.light-green {background:#b3cb31;}
.square.yellow {background:#f1d165;}


@media(max-width:1000px) {
    .gxp-project .map {
        margin-top:0;
        width: 100%;
    }
    .gxp-project .map img {
        width:100%;
    }
    .gxp-project .section-content .btn {order:1;margin-inline: auto;}
    .gxp-project .section-description {
        margin-bottom:0;
    }
    
    .map-item {
        font-size:0.5rem;
        padding-left:1em;
        padding-right:1em;
    }
    
    .map-item.tosu {
        bottom:4%;
        left:18%;
    }
    .map-item.shiraoka {
        top:47%;
        left:74%;
    }
    .map-item.tsukubamirai {
        top:59.5%;
        left:74%;
    }
    .map-item.kanegasaki {
        top:34.5%;
        left:74%;
    }
    .map-item.kamiseya {
        bottom:18.5%;
        right:12%;
    }
    .map-item.kasuya {
        top:50%;
        left:7%;
    }
    
}

/* Magazine Section */
.magazine .article-series {display:none;}
.magazine .articles-swiper {
    position: relative;
}
.magazine .articles-swiper .swiper-nav {
    top:5rem;
}
.magazine .articles-swiper .swiper-nav > a.btn-nav.js-swiper-next {
    transform:translateX(50%);
}
.magazine .articles-swiper .swiper-nav > a.btn-nav.js-swiper-prev {
    transform:translateX(-50%);
}

@media(min-width:1001px) {
    .magazine .articles-swiper .swiper:not(.swiper-initialized) .article-card {
        width:33%;
    }
}
@media(max-width:1000px) {
    .magazine .articles-swiper .swiper:not(.swiper-initialized) .article-card {
        width:80%;
    }
    .magazine .articles-swiper + .btn {
        margin-top:2rem;
    }
}

/* Special Section */
.section.special {
    background:url(../images/news_bg.webp) #f3f4f5;
    background-size:5%;
}

.special-content {
    display: flex;
    gap: 3.008rem;
    justify-content: center;
}

.section.special .section-headings {
    width:65%;
}

.special-image {
    width: 34.587rem;
    aspect-ratio: 34.587 / 13.471;
    overflow: hidden;
}

.special-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media(max-width:1000px) {
    .special-content {
        flex-direction:column;
        width:100%;
        gap: 1rem;
    }
    .special-image {
        width:100%;
    }
}

/* Download Section */
.download {
    position: relative;
    background-color: #000000;
    color: white;
    padding-top:3rem;
}

.download-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/download-bg.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.download .container {
    position: relative;
    z-index: 2;
}

.download .download-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.8em;
    text-align: center;
}

/* New Download Section */
.download-content-new {
    display: flex;
    flex-direction: column;
    gap: 3.25rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.download-head {
    display: flex;
    flex-direction: column;
    /*! gap: .5rem; */
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.download-year {
    
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    color: white;
}

.download-title-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 0 0 1rem 0;
    border-bottom: 1px solid white;
}

.download-title-main h3 {
    
    font-weight: 700;
    font-size: 2.5rem;
    line-height: normal;
    text-align: center;
    color: white;
    margin: 0;
    width: 100%;
}

.download-subtitle {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.decoration-line {
    width: 0.844rem;
    height: 0.125rem;
    background-color: white;
}

.subtitle-text {
    
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.6;
    text-align: center;
    color: white;
    white-space: nowrap;
}

.download-body {
    display: flex;
    gap: 5.313rem;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    margin-bottom:1rem;
}

.download-image {
    flex: 0 0 auto;
    width: 42.5%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.download-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-description {
    
    font-weight: 500;
    font-size: 1.125rem;
    line-height: 1.8;
    color: white;
    /*! white-space: pre-line; */
}

.download-description p:nth-child(n+2) {
    margin-top:0.3em;
}

.download-button {
    width:30%;
}


@media(max-width: 1000px) {
    .download .download-title {
        font-size:2rem;
    }
    .download-content-new {
        gap: 1.5rem;
    }
    
    .download-head {
        gap: 0.5rem;
    }
    
    .download-year {
        font-size: 0.9375rem;
    }
    
    .download-title-main h3 {
        font-size: 1.5rem;
        line-height: 1.4;
    }
    
    .download-subtitle {
        margin-top:0.5em;
        gap:0.5rem;
    }
    .subtitle-text {
        font-size: 0.9rem;
    }
    
    .download-body {
        flex-direction: column;
        gap: 1rem;
        height: auto;
    }
    
    .download-image {
        width: 100%;
        height: auto;
        aspect-ratio: 510 / 289;
    }
    
    .download-description {
        font-size: 0.9375rem;
        text-align: center;
    }
    
    .download-button {
        width:85%;
    }
    
}


/* Seminar Section */
.seminar {
    background-color: #000000;
    color: white;
}
.seminar .section-header {
    color:#ffffff;
}

/* Events Section */
.events {
    background-color: #000000;
    color: white;
}

.articles-grid.type-events .article-card {
    background-color: transparent;
}

.articles-grid.type-events .article-card > *:first-child {
    margin-top:0;
}

.articles-grid.type-events .article-image {
    aspect-ratio: 416 / 234;
    overflow: hidden;
}

/* Events as a variant of Articles grid */
@media(min-width:1001px) {
    .articles-grid.type-events {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.003rem;
        color:#ffffff;
    }
}



@media(max-width:1000px) {
    .seminar .section-description {
        margin-bottom:0;
    }
}

/* Date with label "開催日" */
.articles-grid.type-events .article-date {
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 0.939rem;
    color: white;
    display: block;
}
.articles-grid.type-events .article-date::before {
    content: "開催日";
    display: inline-block;
    margin-right: 1.003rem;
    font-weight: 500;
    font-size: 1rem;
    color: white;
}

.articles-grid.type-events .article-title {
    font-size: 1rem;
    line-height: 1.45;
    color: white;
    margin-top:1em;
    margin-bottom:1em;
}

/* Light tags on dark background */
.articles-grid.type-events .article-tags .tag {
    background-color: #f0f0f0;
    color: #3e3e3e;
    font-size:0.75rem;
}

/* Registration Section */
.registration-wrap {
    background:#000;
    padding:2rem;
}
.registration-wrap .container {
    padding:5rem 0;
    background: linear-gradient(135deg, #38cb21 0%, #0a9404 100%);
    color: white;
    position: relative;
}
.registration-wrap .container::before {
    content:"";
    width:100%;
    height: 100%;
    position: absolute;
    bottom:0;
    left:0;
    background:url(../images/benefit-bg.webp) center bottom no-repeat !important;
    background-size:100% auto !important;
    mix-blend-mode: multiply;
}

.registration-wrap .container > * {
    position: relative;
    z-index: 1;
}

.registration-content {
    text-align: center;
}

.registration-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 5.514rem;
    line-height: 1;
    color: white;
    margin-bottom: 2.506rem;
}

.registration-subtitle {
    
    font-weight: 700;
    font-size: 2.506rem;
    line-height: 1.65;
    color: white;
    margin-bottom: 4.511rem;
}

.registration-description {
    
    font-weight: 700;
    font-size: 1.254rem;
    line-height: 1.8;
    color: white;
    max-width: 72.243rem;
    margin: 0 auto;
}

@media(max-width:1000px) {
    .registration-wrap {
        padding:0;
    }
    .registration-wrap .container {
        padding:2.5rem 1.25rem 10rem;
    }
    .registration-wrap .container::before {
        background-size:200% !important;
    }
    .registration-title {
        font-size:2rem;
        margin-bottom:0.5rem;
    }
    .registration-subtitle {
        font-size:1.125rem;
        margin-bottom:2rem;
    }
    .registration-description {
        text-align: left;
        font-size: 0.875rem;
    }
}




@media(min-width:1001px) {
    .sp-swiper .swiper-wrapper {
        display:grid;
    }
}

