@charset "UTF-8";

/* ==========================================================================
   Common Component Styles (Header, Nav, Footer)
   ========================================================================== */

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    min-height: 80px;
    flex-wrap: wrap;
    padding: 10px 4% !important;
}

.logo img {
    height: 50px;
    filter: drop-shadow(0px 2px 5px rgba(0, 0, 0, 0.4));
}

.global-nav {
    margin-left: auto;
    margin-right: 2.5rem;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    justify-content: flex-end;
}

.global-nav a {
    font-weight: bold;
    font-size: 0.85rem;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.global-nav a:hover {
    opacity: 0.7;
}

.header-actions {
    display: flex;
    gap: 0.85rem;
    flex-shrink: 0;
}

.btn-login,
.btn-reg {
    padding: 0.42rem 1.02rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: bold;
}

.btn-login {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-reg {
    background: var(--primary-color);
    color: white;
}

@media (max-width: 1280px) and (min-width: 993px) {
    .header-inner {
        padding: 10px 5% !important;
    }

    .global-nav {
        flex-basis: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 10px;
        order: 3;
    }

    .global-nav ul {
        justify-content: center;
    }
}

@media (max-width: 992px) {

    .global-nav,
    .header-actions {
        display: none;
    }
}

/* Footer */
footer {
    background-color: #ebefea;
    color: #022e1d;
    padding: var(--space-md) 0 var(--space-sm);
    margin-top: var(--space-xl);
}

.footer-sns {
    text-align: center;
    width: 100%;
    margin-bottom: var(--space-md);
}

.footer-sns-label {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-sns-icon {
    font-size: 2rem;
    transition: opacity var(--transition-speed) var(--transition-ease);
}

.footer-sns-icon:hover {
    opacity: 0.7;
}

.footer-nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    list-style: none;
    padding: 0;
}

.footer-nav li {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(2, 46, 29, 0.1);
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ------------------------------------------------------------
 * Field Navigation Grid
 * ------------------------------------------------------------ */
.field-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.field-nav-item {
    border-radius: 12px;
    background: #fff;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.field-nav-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    height: 100%;
    text-align: center;
}

.field-nav-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.field-nav-item h2 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.field-nav-item p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: background-color 0.3s;
}

.field-nav-item:hover .nav-action-btn {
    background-color: var(--accent-color);
}

@media (max-width: 768px) {
    .field-nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .field-nav-item a {
        padding: 2.5rem 1.5rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 10px 0;
    width: 100%;
    margin-top: 92px;
    /* Offset for fixed header */
}

.breadcrumbs ul {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    font-size: smaller;
}

.breadcrumbs li {
    color: #333333;
}

.breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 0.5rem;
    color: rgba(51, 51, 51, 0.6);
}

.breadcrumbs a {
    color: #333333;
    transition: opacity 0.3s;
}

.breadcrumbs a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Page Header */
.page-header {
    padding: 57px 0;
    /* 60px reduced by 5% */
    overflow: hidden;
}

.page-title-wrap {
    text-align: center;
}

.page-title-en {
    font-size: 3.5rem;
    font-weight: 800;
    color: #000000;
    margin: 0;
    line-height: 1;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease-out forwards;
}

.page-title-jp {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-light);
    margin: 10px 0 0;
    opacity: 0;
    transform: translateY(30px);
    animation: slideIn 0.8s ease-out 0.3s forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.title-line {
    width: 100%;
    height: 1px;
    background-color: #333333;
    margin: 15px 0;
    transform: scaleX(0);
    transform-origin: center;
    animation: lineExtend 0.8s ease-out 0.6s forwards;
}

@keyframes lineExtend {
    to {
        transform: scaleX(1);
    }
}

@media (max-width: 768px) {
    .page-title-en {
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   SNS Links Component
   ========================================================================== */
.sns-links {
    margin-top: 3rem;
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 8px;
}

.sns-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 0.3rem;
}

.sns-links ul {
    list-style: none;
    padding: 0;
}

.sns-links li {
    margin-bottom: 1rem;
}

.sns-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 500;
    transition: color 0.3s;
}

.sns-links a:hover {
    color: var(--accent-color);
}

.sns-links i {
    font-size: 1.4rem;
}

.sns-links .fa-youtube {
    color: #FF0000;
}

.sns-links .fa-instagram {
    color: #E4405F;
}

.sns-links .fa-facebook {
    color: #1877F2;
}

/* ==========================================================================
   Video Infrastructure
   ========================================================================== */
.youtube-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 600px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Carousel Customization (Swiper)
   ========================================================================== */
.c-carousel-wrap {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.c-carousel {
    padding-bottom: 40px !important;
}

.c-carousel .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.c-carousel .swiper-pagination-bullet-active {
    background: var(--primary-color);
}

.c-carousel .swiper-button-next,
.c-carousel .swiper-button-prev {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.8);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}

.c-carousel .swiper-button-next:after,
.c-carousel .swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: bold;
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    #back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   Call to Action Buttons
   ========================================================================== */
.cta-container {
    margin-top: var(--space-xl);
    text-align: center;
}

.btn-cta {
    display: inline-block;
    padding: 1.2rem 4rem;
    font-size: 1.2rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    opacity: 0.8;
}