/* ========== RESET & BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background: #fafafc;
    /* refined light gray/blue tint */
    line-height: 2;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

ul {
    list-style: none;
}

.grecaptcha-badge {
    display: none;
    ;
}

/* ========== COLOR & TYPOGRAPHY VARIABLES ========== */
:root {
    --navy: #242c75;
    --blue: #1c2363;
    --light-blue: #f5f6fa;
    --accent: #e60012;
    --text-main: #222;
    --text-muted: #555;
    --white: #ffffff;

    --font-en: 'Cinzel', serif;
    --font-ja-serif: 'Shippori Mincho', serif;
    --font-ja-sans: 'Noto Sans JP', sans-serif;
}

/* ========== ANIMATIONS ========== */
.reveal-wrap {
    overflow: hidden;
    position: relative;
}

.reveal-img {
    transform: scale(1.1);
    transition: transform 2s cubic-bezier(0.16, 1, 0.3, 1), filter 2s ease;
    filter: blur(4px);
    width: 100%;
    height: 100%;
}

.reveal-wrap.visible .reveal-img {
    transform: scale(1);
    filter: blur(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* ========== HEADER ========== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
    padding: 30px 40px;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

header.nav-open {
    background: transparent !important;
    box-shadow: none !important;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ja-serif);
    font-size: clamp(0.75rem, 3.5vw, 1.3rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.1em;
    transition: color 0.4s;
    position: relative;
    z-index: 2000;
}

.logo img {
    height: clamp(24px, 6vw, 36px);
    width: auto;
}

header.scrolled .logo {
    color: var(--navy);
}

.logo.nav-open {
    color: var(--white) !important;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
}

header.scrolled .nav-links a {
    color: var(--navy);
}

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

.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

header.scrolled .nav-cta {
    border-color: var(--navy);
    color: var(--navy);
}

.nav-cta:hover {
    background: var(--white);
    color: var(--navy) !important;
}

header.scrolled .nav-cta:hover {
    background: var(--navy);
    color: var(--white) !important;
}

/* ========== HAMBURGER & MOBILE MENU ========== */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

header.scrolled .hamburger span {
    background: var(--navy);
}

.hamburger.active span {
    background: var(--white) !important;
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(36, 44, 117, 0.98);
    backdrop-filter: blur(10px);
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--white);
    font-family: var(--font-en);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent);
}

/* ========== HERO ========== */
#hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-left: 10%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/hero.webp?20260330');
    background-size: cover;
    background-position: center;
    animation: kenburns 25s ease-out infinite alternate;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(36, 44, 117, 0.8) 0%, rgba(36, 44, 117, 0.2) 80%, transparent 100%);
}

@keyframes kenburns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
}

.hero-en {
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin-bottom: 24px;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

.hero-title {
    font-family: var(--font-ja-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 40px;
    letter-spacing: 0.05em;
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.9);
    border-left: 1px solid var(--accent);
    padding-left: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    right: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    z-index: 10;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scrollDrop 2s ease-in-out infinite;
}

@keyframes scrollDrop {
    100% {
        top: 100%;
    }
}

/* ========== SECTION TITLE STYLE ========== */
.sec-title-wrap {
    text-align: center;
    margin-bottom: 80px;
}

.sec-en {
    font-family: var(--font-en);
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    margin-bottom: 16px;
    display: block;
}

.sec-ja {
    font-family: var(--font-ja-serif);
    font-size: 2.2rem;
    color: var(--navy);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.sec-desc {
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========== SERVICES ========== */
#services {
    padding: 140px 0;
    background: var(--white);
}

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.svc-item {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.svc-img-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    width: 100%;
    background: var(--light-blue);
}

.svc-title {
    font-family: var(--font-ja-serif);
    font-size: 1.4rem;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 16px;
}

.svc-title::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent);
}

.svc-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 2;
}

/* ========== CONCEPT (INTERLUDE) ========== */
.concept {
    padding: 160px 40px;
    background: var(--navy);
    color: var(--white);
    text-align: center;
    position: relative;
}

.concept::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?auto=format&fit=crop&w=800&q=80') center/cover;
    opacity: 0.1;
    z-index: 0;
}

.concept-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.concept-lead {
    font-family: var(--font-ja-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.6;
    font-weight: 400;
    margin-bottom: 40px;
}

.concept-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 2.4;
}

/* ========== ABOUT ========== */
#about {
    padding: 160px 0;
    background: #fafafc;
}

.about-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-img {
    flex: 1;
    position: relative;
}

.about-img .reveal-wrap {
    aspect-ratio: 3/4;
}

.about-img::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    z-index: -1;
}

.about-content {
    flex: 1;
    padding-right: 40px;
}

.about-content .sec-title-wrap {
    text-align: left;
    margin-bottom: 40px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.feature {
    display: flex;
    gap: 24px;
}

.feature-num {
    font-family: var(--font-en);
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
    font-weight: 600;
}

.feature-body h4 {
    font-family: var(--font-ja-serif);
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 12px;
}

.feature-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* ========== COMPANY ========== */
#company {
    padding: 120px 0;
    background: var(--white);
}

.company-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid #e0e0e0;
}

.company-table th,
.company-table td {
    padding: 24px 0;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.company-table th {
    width: 30%;
    font-family: var(--font-ja-serif);
    font-size: 1rem;
    color: var(--navy);
    font-weight: 600;
}

.company-table td {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.company-table td ul li {
    display: flex;
    align-items: flex-start;
}

.company-table td ul li::before {
    content: '・';
    margin-right: 4px;
}

/* ========== CONTACT ========== */
#contact {
    padding: 140px 0;
    background: var(--navy);
    color: var(--white);
    text-align: center;
}

#contact .sec-ja {
    color: var(--white);
}

#contact .sec-desc {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: left;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 12px 0;
    font-size: 1rem;
    color: var(--white);
    font-family: inherit;
    transition: border-color 0.3s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group select option {
    background: var(--navy);
}

.btn-submit {
    display: inline-block;
    background: var(--white);
    color: var(--navy);
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-ja-serif);
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: var(--accent);
    color: var(--white);
}

/* ========== FOOTER ========== */
footer {
    background: #11153b;
    padding: 80px 40px 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.foot-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-family: var(--font-ja-serif);
    font-size: clamp(1rem, 4.5vw, 1.5rem);
    color: var(--white);
    margin-bottom: 32px;
    letter-spacing: 0.1em;
}

.foot-logo img {
    height: clamp(32px, 8vw, 48px);
    width: auto;
}

.foot-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 60px;
}

.foot-links a {
    font-size: 0.9rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

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

.foot-copy {
    font-size: 0.8rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .about-wrap {
        flex-direction: column;
        padding: 0 20px;
    }

    .about-img {
        width: 70%;
    }

    .about-content {
        padding-right: 0;
    }

    .nav-links {
        display: none;
    }

    #hero {
        padding-left: 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hamburger {
        display: flex;
    }

    header {
        padding: 20px;
    }

    header.scrolled {
        padding: 15px 20px;
    }

    .scroll-down {
        right: 20px;
    }

    .concept {
        padding: 100px 20px;
    }

    .concept-lead br,
    .concept-text br {
        display: none;
    }

    .concept-text {
        text-align: left;
    }

    .contact-form {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .foot-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 350px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .foot-links {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .foot-links a {
        font-size: 0.8rem;
    }
}