/*
 * Peakina - Base CSS
 * CSS変数、リセット、共通スタイル
 */

/* ===========================================
   CSS Variables
=========================================== */
:root {
    --color-primary: #BCD331;
    --color-primary-20: rgba(188, 211, 49, 0.2);
    --color-black: #333333;
    --color-gray-900: #1e293b;
    --color-gray-800: #334155;
    --color-gray-700: #475569;
    --color-gray-600: #64748b;
    --color-gray-500: #94a3b8;
    --color-gray-400: #cbd5e1;
    --color-gray-300: #e2e8f0;
    --color-gray-200: #f1f5f9;
    --color-gray-100: #f8fafc;
    --color-white: #ffffff;
    
    --font-clash: 'Clash Display', sans-serif;
    --font-noto: 'Noto Sans JP', sans-serif;
    
    --section-padding-x: 1.5rem;
    --section-padding-y: 3.5rem;
    
    /* ヘッダー高さ（JSで動的に上書きされる、これはフォールバック） */
    --header-height: 60px;
    
    /* 余白システム */
    --gap-xs: 1rem;
    --gap-sm: 2rem;
    --gap-md: 3rem;
    --gap-lg: 4rem;
    --gap-xl: 6rem;
    
    /* グリッド余白 */
    --grid-gap: 3rem;
}

@media (min-width: 768px) {
    :root {
        --header-height: 96px;
        
        --section-padding-y: 5rem;
        
        --gap-xs: 1.5rem;
        --gap-sm: 2.5rem;
        --gap-md: 4rem;
        --gap-lg: 5rem;
        --gap-xl: 8rem;
        
        --grid-gap: 4rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-padding-x: 4rem;
        --section-padding-y: 7rem;
        
        --gap-xs: 2rem;
        --gap-sm: 3rem;
        --gap-md: 5rem;
        --gap-lg: 6rem;
        --gap-xl: 10rem;
        
        --grid-gap: 5rem;
    }
}

@media (min-width: 1366px) {
    :root {
        --section-padding-x: 8rem;
        --section-padding-y: 10rem;
        
        --gap-xs: 2rem;
        --gap-sm: 4rem;
        --gap-md: 6rem;
        --gap-lg: 8rem;
        --gap-xl: 14rem;
        
        --grid-gap: 8rem;
    }
}

/* ===========================================
   Reset & Base
=========================================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    font-family: var(--font-noto);
    background-color: var(--color-white);
    color: var(--color-gray-900);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.fv-locked {
    overflow: hidden;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ===========================================
   Site Header
=========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 1.5rem;
    pointer-events: none;
    background-color: var(--color-white);
}

@media (min-width: 768px) {
    .site-header {
        padding: 2rem 3rem;
    }
}

.site-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}

.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-header__logo:hover {
    opacity: 0.8;
}

.site-header__logo-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

@media (min-width: 768px) {
    .site-header__logo-img {
        width: 32px;
        height: 32px;
    }
}

.site-header__logo-text {
    font-family: var(--font-noto);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-gray-900);
    letter-spacing: 0.2em;
}

.site-header__nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .site-header__nav {
        display: flex;
    }
}

.site-header__nav-link {
    position: relative;
    font-family: var(--font-noto);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.site-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-black);
    transition: width 0.3s ease;
}

.site-header__nav-link:hover {
    color: var(--color-primary);
}

.site-header__nav-link:hover::after {
    width: 100%;
}

.site-header__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-noto);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-white);
    background-color: var(--color-black);
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.site-header__cta:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* スクロール時の表示/非表示（PCのみ） */
@media (min-width: 768px) {
    .site-header {
        transition: transform 0.3s ease;
    }
    
    .site-header--hidden {
        transform: translateY(-100%);
    }
}

/* ===========================================
   Hamburger Menu (Mobile)
=========================================== */
.hamburger {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1.5rem;
    z-index: 1001;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    cursor: pointer;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    pointer-events: auto;
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
    margin: 0;
    transform: translateY(-6px);
}

.hamburger:focus,
.hamburger:active,
.hamburger:hover {
    background: none !important;
    background-color: transparent !important;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-gray-900);
    transition: transform 0.3s, opacity 0.3s, width 0.3s;
}

.hamburger__line:nth-child(1) {
    margin-bottom: 6px;
}

.hamburger__line:nth-child(2) {
    width: 16px;
    margin-bottom: 6px;
}

.hamburger--open .hamburger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger--open .hamburger__line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger--open .hamburger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ===========================================
   Mobile Menu Overlay
=========================================== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    clip-path: circle(0px at calc(100% - 44px) 44px);
    transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-menu--open {
    clip-path: circle(150% at calc(100% - 44px) 44px);
    pointer-events: auto;
    transition: clip-path 0.8s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.mobile-menu__list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-gray-700);
    transition: color 0.3s;
}

.mobile-menu__link:hover {
    color: var(--color-primary);
}

.mobile-menu__link-ja {
    font-family: var(--font-noto);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.mobile-menu__link-en {
    font-family: var(--font-clash);
    font-size: 0.625rem;
    letter-spacing: 0.3em;
    margin-top: 0.25rem;
    color: var(--color-gray-400);
}

.mobile-menu__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    font-family: var(--font-noto);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background-color: var(--color-black);
    text-decoration: none;
    transition: background-color 0.3s;
}

.mobile-menu__cta:hover {
    background-color: var(--color-primary);
}

/* ===========================================
   Footer
=========================================== */
.footer {
    position: relative;
    margin-top: 2rem;
    padding: 2rem var(--section-padding-x) 0;
    border-top: 1px solid var(--color-gray-200);
}

@media (min-width: 768px) {
    .footer {
        margin-top: 8rem;
        padding: 4rem var(--section-padding-x) 0;
    }
}

@media (min-width: 1024px) {
    .footer {
        margin-top: 12rem;
        padding-top: 6rem;
    }
}

@media (min-width: 1366px) {
    .footer {
        margin-top: 16rem;
        padding-top: 8rem;
    }
}

.footer__cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer__cta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer__cta-grid {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1366px) {
    .footer__cta-grid {
        gap: 3rem;
        margin-bottom: 6rem;
    }
}

.footer__cta {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    height: 180px;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.5s;
}

@media (min-width: 1024px) {
    .footer__cta {
        padding: 2.5rem;
        height: 220px;
    }
}

@media (min-width: 1366px) {
    .footer__cta {
        padding: 3.5rem;
        height: 300px;
    }
}

.footer__cta:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

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

.footer__cta--accent {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.footer__cta-content {
    position: relative;
    z-index: 10;
}

.footer__cta-label {
    font-family: var(--font-noto);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    color: var(--color-white);
    transition: opacity 0.3s;
}

.footer__cta:hover .footer__cta-label {
    opacity: 1;
}

@media (min-width: 1366px) {
    .footer__cta-label {
        font-size: 1rem;
    }
}

.footer__cta-label--dark {
    color: var(--color-gray-900);
    opacity: 0.9;
}

.footer__cta-title {
    font-family: var(--font-clash);
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: inherit;
    transition: color 0.3s;
}

.footer__cta--dark:hover .footer__cta-title {
    color: var(--color-primary);
}

.footer__cta--accent .footer__cta-title {
    color: var(--color-white);
}

.footer__cta--accent:hover .footer__cta-title {
    color: var(--color-black);
}

.footer__cta--accent:hover .footer__cta-label--dark {
    color: var(--color-white);
}

@media (min-width: 1024px) {
    .footer__cta-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1366px) {
    .footer__cta-title {
        font-size: 3.75rem;
    }
}

.footer__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    padding: 0.75rem 1rem;
    transition: transform 0.3s;
}

@media (min-width: 1024px) {
    .footer__cta-icon {
        padding: 1rem 1rem;
    }
}

@media (min-width: 1366px) {
    .footer__cta-icon {
        padding: 1.5rem 1.5rem;
    }
}

.footer__cta:hover .footer__cta-icon {
    transform: scale(1.1);
}

.footer__cta-icon--accent {
    background-color: var(--color-primary);
}

.footer__cta-icon--dark {
    background-color: var(--color-black);
}

.footer__cta-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-white);
}

@media (min-width: 1024px) {
    .footer__cta-icon svg {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (min-width: 1366px) {
    .footer__cta-icon svg {
        width: 2rem;
        height: 2rem;
    }
}

.footer__nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer__nav {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 3rem;
    }
}

@media (min-width: 1024px) {
    .footer__nav {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1366px) {
    .footer__nav {
        gap: 4rem;
        margin-bottom: 6rem;
    }
}

.footer__nav-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1366px) {
    .footer__nav-col {
        gap: 3rem;
    }
}

.footer__nav-title {
    font-family: var(--font-clash);
    font-size: 1.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

@media (min-width: 1024px) {
    .footer__nav-title {
        font-size: 2.25rem;
    }
}

@media (min-width: 1366px) {
    .footer__nav-title {
        font-size: 3rem;
    }
}

.footer__nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 1366px) {
    .footer__nav-list {
        gap: 2rem;
    }
}

.footer__nav-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-noto);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-800);
    text-decoration: none;
    transition: color 0.3s;
}

@media (min-width: 1366px) {
    .footer__nav-link {
        font-size: 1.125rem;
        gap: 2rem;
    }
}

.footer__nav-link::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background-color: var(--color-gray-400);
    transition: background-color 0.3s;
}

@media (min-width: 1366px) {
    .footer__nav-link::before {
        width: 3rem;
    }
}

.footer__nav-link:hover {
    color: var(--color-primary);
}

.footer__nav-link:hover::before {
    background-color: var(--color-primary);
}

.footer__bottom {
    display: flex;
    justify-content: flex-end;
}

.footer__copyright {
    font-family: var(--font-clash);
    font-size: 0.875rem;
    color: var(--color-gray-500);
    letter-spacing: 0.05em;
}

@media (min-width: 1366px) {
    .footer__copyright {
        font-size: 1.125rem;
    }
}
