/* ==========================================================================
   GLAPentertainment Corporate Site - Common Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #E8C800;
    --color-primary-dark: #D4B700;
    --color-orange: #ff9200;
    --color-black: #1a1a1a;
    --color-white: #FFFFFF;
    --color-gray: #f7f7f7;
    --color-gray-dark: #666666;
    --font-en: 'CircularXX', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    --header-height: 8rem;
    --side-padding-left: 6rem;
    --side-padding-right: 0;
}

@media screen and (max-width: 768px) {
    :root {
        --header-height: 6.5rem;
        --side-padding-left: 0;
        --side-padding-right: 0;
    }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Loading
   -------------------------------------------------------------------------- */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Non-front pages need background */
body:not(.page-front) .loading {
    background: var(--color-gray);
}

.loading.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loading__circle {
    position: relative;
    width: clamp(100px, 20vw, 160px);
    height: clamp(100px, 20vw, 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading__ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.loading__ring-bg {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 1.5;
}

.loading__ring-progress {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.05s linear;
}

.loading__number {
    position: relative;
    font-family: var(--font-en);
    font-size: clamp(2rem, 5vw, 4.8rem);
    font-weight: 400;
    color: var(--color-black);
    transition: opacity 0.3s ease;
}

.loading__text {
    display: none;
}

/* Loading number fade out when animation starts */
.loading.is-animating .loading__number {
    opacity: 0;
}

.loading.is-animating .loading__ring {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* --------------------------------------------------------------------------
   Side Bar (Left)
   -------------------------------------------------------------------------- */
.side-bar {
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    background: transparent;
    height: 100%;
    width: 6rem;
    z-index: 100;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8rem;
    transition: background 0.3s ease;
}

.side-bar.is-scrolled {
    background: var(--color-white);
}

/* SNS icons group */
.side-bar__sns {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.side-bar__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    color: var(--color-black);
    transition: color 0.3s ease;
}

.side-bar__link:hover {
    color: var(--color-primary-dark);
    opacity: 1;
}

/* --- Front page: SNS at bottom only --- */
body.page-front .side-bar {
    justify-content: flex-end;
}

/* --- Subpages: sidebar always white bg --- */
body:not(.page-front) .side-bar {
    background: var(--color-white);
}

/* Subpage header: show mark instead of full logo */
.header__mark {
    display: none;
}

.header__mark svg {
    width: 2.6rem;
    height: auto;
}

body:not(.page-front) .header__mark {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center in sidebar (6rem): offset left padding */
    margin-left: calc(var(--side-padding-left) * -1);
    width: var(--side-padding-left);
    flex-shrink: 0;
}

body:not(.page-front) .header__logo {
    display: none;
}

body:not(.page-front) .header__l {
    gap: 1.5rem;
}

@media screen and (max-width: 768px) {
    .side-bar {
        display: none;
    }

    /* SP: show full logo, hide mark on all pages */
    body:not(.page-front) .header__mark {
        display: none;
    }

    body:not(.page-front) .header__logo {
        display: flex;
    }

    body:not(.page-front) .header__inner {
        justify-content: space-between;
    }
}

/* Side URL (Right) */
.side-url {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.side-url span {
    font-family: var(--font-en);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--color-black);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: transparent;
    z-index: 1000;
    transition: background 0.3s ease;
}

.header.is-scrolled {
    background: var(--color-white);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 var(--side-padding-left) 0 var(--side-padding-left);
}

.header__l {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__logo {
    display: flex;
    align-items: center;
}

.header__logo a {
    display: flex;
    align-items: center;
}

.header__logo svg {
    height: 4rem;
    width: auto;
}

.header__logo-img {
    height: 4rem;
    width: auto;
}

.header__address {
    font-family: var(--font-en);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-black);
}

.header__nav-list {
    display: flex;
    gap: 4rem;
}

.header__nav-item a {
    font-family: var(--font-en);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--color-black);
    letter-spacing: 0.05em;
}

@media screen and (max-width: 768px) {
    .header__inner {
        padding: 0 2rem;
    }

    .header__logo svg,
    .header__logo-img {
        height: 3rem;
    }

    .header__address {
        display: none;
    }
}

/* Mobile Menu Button */
.header__menu-btn {
    width: 3rem;
    height: 1.4rem;
    position: relative;
}

.header__menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 0.2rem;
    background: var(--color-black);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.header__menu-btn span:nth-child(1) { top: 0.2rem; }
.header__menu-btn span:nth-child(2) { bottom: 0.2rem; }

.header__menu-btn.is-active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.header__menu-btn.is-active span:nth-child(2) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-white);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav__inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 10rem 2rem;
}

.mobile-nav__list {
    text-align: center;
}

.mobile-nav__list li {
    margin-bottom: 3rem;
}

.mobile-nav__list a {
    font-family: var(--font-en);
    font-size: 2.4rem;
    font-weight: 500;
}

.mobile-nav__sns {
    margin-top: 4rem;
    display: flex;
    gap: 3rem;
}

.mobile-nav__sns a {
    font-family: var(--font-en);
    font-size: 1.4rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 3rem;
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 500;
    border-radius: 10rem;
    transition: all 0.3s ease;
        width: 20rem;
}
.btn svg {width: 1.8rem;height: 1.8rem;}

.btn--outline {
    position: relative;
    background: var(--color-primary);
    color: var(--color-black);
    border: none;
    overflow: hidden;
}

.btn--outline::before,
.btn--primary::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, var(--color-primary) 0%, var(--color-orange) 100%);
    opacity: 0;
    transition: opacity 0.3s ease, box-shadow 0.3s ease;
    border-radius: inherit;
    box-shadow: inset 0 0 0 rgba(0, 0, 0, 0);
}

.btn--primary::before{
    background: linear-gradient(to right, var(--color-orange) 0%,var(--color-orange) 65%, var(--color-black) 120%);
}

.btn--outline:hover {
    opacity: 1;
}

.btn--outline:hover::before,
.btn--primary:hover::before {
    opacity: 1;
    box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn--outline span,
.btn--outline svg,
.btn--primary span,
.btn--primary svg {
    position: relative;
    z-index: 1;
}

.btn--primary {
    position: relative;
    background: var(--color-black);
    color: var(--color-primary);
}

.btn--primary:hover {
    color: var(--color-black);
    opacity: 1;
    background: transparent;
}
.btn--primary svg line ,
.btn--primary svg polyline {
    transition:  0.3s ease;
}

.btn--primary:hover svg line ,
.btn--primary:hover svg polyline {
    stroke:var(--color-black);
}

/* --------------------------------------------------------------------------
   Footer CTA Section
   -------------------------------------------------------------------------- */
.footer-cta {
    background: var(--color-gray);
    padding: 8rem var(--side-padding-right) 8rem var(--side-padding-left);
    text-align: center;
}

.footer-cta__inner {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
}

.footer-cta__logo img {
    height: 6rem;
    width: auto;
    margin-bottom: 1rem;
}



@media screen and (max-width: 768px) {
    .footer-cta {
        padding: 6rem 2rem;
    }

    .footer-cta__logo img {
        height: 5rem;
    }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #000;
    color: #fff;
}

.footer a {
    color: #fff;
}

.footer__inner {
    max-width: 120rem;
    margin: 0 auto;
    padding: 8rem var(--side-padding-right) 6rem var(--side-padding-left);
}

.footer__columns {
    display: flex;
    gap: 6rem;
}

.footer__menu {
    flex: 2;
}

.footer__social {
    flex: 1;
}

.footer__heading {
    font-family: var(--font-en);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.footer__menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}

.footer__menu-grid > a,
.footer__menu-grid > div {
    width: calc(33.333% - 1rem);
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.footer__menu-label {
    font-size: 1.4rem;
    display: block;
    line-height: 1.2;
}

.footer__menu-sub {
    margin-left: 0.2rem;
    border-left: 1px solid rgba(255,255,255,0.4);
    margin-top: 0.6rem;
    padding-left: 1rem;
}

.footer__menu-sub li {
    line-height: 1.8;
}

.footer__menu-sub a {
    font-size: 1.4rem;
    opacity: 0.8;
}

.footer__menu-sub a:hover {
    opacity: 1;
}

.footer__menu-item {
    display: inline-block;
    line-height: 1.2;
}

.footer__menu-grid a {
    transition: transform 0.2s ease;
}

.footer__menu-grid a:hover {
    opacity: 1;
    transform: translateX(0.3rem);
}

.footer__social-links {
    display: flex;
    gap: 3rem;
}

.footer__social-links a {
    font-size: 1.4rem;
}

.footer__bottom {
    padding: 0 var(--side-padding-right) 0 var(--side-padding-left);
    margin-bottom: 2.5rem;
}

.footer__bottom-inner {
    max-width: 120rem;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 3rem;
}

.footer__privacy,
.footer__pagetop {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.7);
    transition: color 0.3s ease;
}

.footer__privacy:hover,
.footer__pagetop:hover {
    color: #fff;
    opacity: 1;
}

.footer__copyright {
    text-align: right;
    padding: 0 var(--side-padding-right) 4rem var(--side-padding-left);
}

.footer__copyright small {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.5);
    max-width: 120rem;
    margin: 0 auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .footer__inner {
        padding: 5rem 2rem 3rem;
    }

    .footer__columns {
        flex-direction: column;
        gap: 4rem;
    }

    /* Single column stack in design */
    .footer__menu-grid {
        flex-direction: column;
        gap: 0;
    }

    .footer__menu-grid > a,
    .footer__menu-grid > div {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .footer__heading {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .footer__social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer__bottom {
        padding: 0 2rem;
    }

    .footer__bottom-inner {
        justify-content: center;
    }

    .footer__copyright {
        padding: 0 2rem 3rem;
        text-align: center;
    }
}

/* ==========================================================================
   Subpage Common Styles
   ========================================================================== */
main {
    padding-bottom: 10rem;
}

/* --------------------------------------------------------------------------
   Page Header (Subpage common header)
   -------------------------------------------------------------------------- */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 16rem var(--side-padding-right) 10rem var(--side-padding-left);
    text-align: center;
}

.page-header__title {
    font-family: var(--font-en);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.1;
    color: var(--color-black);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* Disable default fadeInUp for title (reveal animation replaces it) */
.page-header__title.animate-on-scroll {
    opacity: 1;
    transform: none;
}

.page-header__title-text {
    position: relative;
    z-index: 1;
}

.page-header__title-bg {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    height: 110%;
    width: var(--bg-width);
    z-index: 0;
}

.page-header__title-bg--yellow {
    --bg-width: 100%;
    background: var(--color-primary);
}

.page-header__title-bg--orange {
    --bg-width: 60%;
    background: var(--color-orange);
    animation-delay: 0.15s;
}

.page-header__title.is-visible .page-header__title-bg {
    animation: pageHeaderTitleReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageHeaderTitleReveal {
    0% { width: var(--bg-width); }
    100% { width: 0; }
}

.page-header__subtitle {
    font-family: var(--font-en);
    font-size: clamp(2rem, 4vw, 5rem);
    font-weight: 400;
    margin-top: 10rem;
    color: var(--color-black);
}

.page-header__desc {
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 2.5;
    margin-top: 3rem;
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 768px) {
    .page-header {
        padding: 12rem 2rem 4rem;
        text-align: center;
    }

    .page-header__title {
        text-align: center;
        font-size: 4.8rem;
    }

    .page-header__desc {
        margin-top: 2rem;
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Section (Subpage common section)
   -------------------------------------------------------------------------- */
.section {
    padding: 10rem var(--side-padding-right) 10rem var(--side-padding-left);
}
.page-header+.section {
    padding-top: 0 
}

.section--white {
    background: var(--color-white);
}

.section--gray {
    background: var(--color-gray);
}

.section--yellow {
    background: var(--color-primary);
}

.section--dark {
    background: var(--color-black);
    color: var(--color-white);
}

.section__inner {
    max-width: 120rem;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .section {
        padding: 6rem 2rem;
    }
}

/* --------------------------------------------------------------------------
   Section Title (Left-aligned heading - MISSION/VISION etc)
   -------------------------------------------------------------------------- */
.section-heading {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.section-heading__title {
    font-family: var(--font-en);
    font-size: clamp(3.2rem, 5vw, 5.6rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    min-width: 24rem;
    flex-shrink: 0;
    position: relative;
    padding-bottom: 2rem;
}

.section-heading__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 6rem;
    height: 0.3rem;
    background: var(--color-primary);
}

.section-heading__body {
    flex: 1;
}

.section-heading__lead {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.section-heading__text {
    font-size: 1.4rem;
    line-height: 2;
}

@media screen and (max-width: 768px) {
    .section-heading {
        flex-direction: column;
        gap: 3rem;
    }

    .section-heading__title {
        min-width: unset;
    }
}

/* --------------------------------------------------------------------------
   Numbered List (1, 2, 3)
   -------------------------------------------------------------------------- */
.numbered-list {
    counter-reset: numbered-item;
}

.numbered-item {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.numbered-item:first-child {
    padding-top: 0;
}

.numbered-item:last-child {
    border-bottom: none;
}

.numbered-item__number {
    font-family: var(--font-en);
    font-size: clamp(4rem, 6vw, 7.2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-primary);
    flex-shrink: 0;
    min-width: 6rem;
}

.numbered-item__content {
    flex: 1;
    padding-top: 0.5rem;
}

.numbered-item__title {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.numbered-item__text {
    font-size: 1.4rem;
    line-height: 2;
}

@media screen and (max-width: 768px) {
    .numbered-item {
        gap: 2rem;
        padding: 3rem 0;
    }

    .numbered-item__number {
        min-width: 4rem;
    }
}

/* --------------------------------------------------------------------------
   Value Item (Quote block - VALUE etc)
   -------------------------------------------------------------------------- */
.value-item {
    padding: 3rem 0;
}

.value-item + .value-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.value-item__quote {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 2rem;
}

.value-item__quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-en);
    font-size: 2.4rem;
    color: var(--color-primary);
    line-height: 1;
}

.value-item__text {
    font-size: 1.4rem;
    line-height: 2;
    padding-left: 2rem;
}

/* --------------------------------------------------------------------------
   Two Column Layout
   -------------------------------------------------------------------------- */
.two-col {
    display: flex;
    gap: 6rem;
    align-items: flex-start;
}

.two-col__left {
    flex: 1;
}

.two-col__right {
    flex: 1;
}

.two-col--reverse {
    flex-direction: row-reverse;
}

@media screen and (max-width: 768px) {
    .two-col {
        flex-direction: column;
        gap: 3rem;
    }

    .two-col--reverse {
        flex-direction: column;
    }
}

/* --------------------------------------------------------------------------
   Scroll Animations
   -------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Body states */
body.is-menu-open {
    overflow: hidden;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   Archive Grid (汎用アーカイブ)
   -------------------------------------------------------------------------- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.archive-grid__link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}

.archive-grid__link:hover {
    opacity: 0.7;
}

.archive-grid__img {
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.archive-grid__img img {
    width: 100%;
    height: auto;
    display: block;
}

.archive-grid__title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.6;
}

@media screen and (max-width: 768px) {
    .archive-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .archive-grid__title {
        font-size: 1.1rem;
    }
}
