/* ==========================================================================
   Base Design System
   ========================================================================== */

:root {
    /* Colors */
    --color-primary: #1a365d;
    --color-primary-light: #ebf8ff;
    --color-text-main: #2d3748;
    --color-text-sub: #718096;
    --color-bg-white: #ffffff;
    --color-bg-alt: #f7fafc;

    /* Layout */
    --container-width: 1200px;
    /* Reduced slightly from 1280 for better inner padding feel */
    --section-spacing-pc: 100px;
    --section-spacing-sp: 60px;

    /* Fonts */
    --font-main: 'Inter', 'Noto Sans JP', sans-serif;
}

/* Reset & Basic Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 64px;
    }
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.8;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.l-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .l-container {
        padding: 0 20px;
    }
}

/* Typography Utilities */
.u-heading-hero {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 24px;
}

.u-heading-section {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 15px;
}

.u-heading-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.u-text-center {
    text-align: center;
}

@media (max-width: 768px) {
    .u-heading-hero {
        font-size: 32px;
    }

    .u-heading-section {
        font-size: 24px;
    }
}

/* Layout Utilities */
.u-mgb-large {
    margin-bottom: 60px;
}

.u-mgb-medium {
    margin-bottom: 30px;
}

/* Components (Prefix: c-) */
.c-section {
    padding: var(--section-spacing-pc) 0;
}

@media (max-width: 768px) {
    .c-section {
        padding: var(--section-spacing-sp) 0;
    }
}


/* Page Specific (Prefix: p-) */
.p-header {
    width: 100%;
    /* Fallback */
    left: 0;
    right: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Prevent subpixel rendering issues during scroll */
    will-change: transform;
}

.p-header__inner {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.p-header__nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
}

.p-header__nav-item a {
    text-decoration: none;
    color: var(--color-text-main);
    font-weight: 700;
    font-size: 15px;
    transition: color 0.3s ease;
}

.p-header__nav-item a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .p-header {
        height: 64px;
    }

    .p-header__inner {
        height: 64px;
    }

    .p-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-primary);
        transition: right 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 90;
    }

    .p-header__nav.is-active {
        right: 0;
    }

    .p-header__nav-list {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .p-header__nav-item a {
        color: var(--color-bg-white);
        font-size: 20px;
    }
}

/* Hamburger Button */
.c-hamburger {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    position: relative;
    z-index: 100;
    cursor: pointer;
}

.c-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-primary);
    position: absolute;
    left: 10px;
    transition: all 0.3s ease;
}

.c-hamburger span:nth-child(1) {
    top: 15px;
}

.c-hamburger span:nth-child(2) {
    top: 21px;
}

.c-hamburger span:nth-child(3) {
    top: 27px;
}

/* Hamburger Active State */
.c-hamburger.is-active span {
    background-color: var(--color-bg-white);
}

.c-hamburger.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.c-hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.c-hamburger.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 768px) {
    .c-hamburger {
        display: block;
    }
}

.p-hero {
    padding: 120px 0 160px;
    /* Adjusted top padding due to sticky header */
    background: linear-gradient(135deg, var(--color-bg-white) 0%, var(--color-primary-light) 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.p-hero__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.p-hero__content {
    animation: fadeInUp 1s ease-out forwards;
}

.p-hero__caption {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}

.p-hero__image {
    animation: fadeInRight 1.2s ease-out forwards;
    filter: drop-shadow(0 20px 40px rgba(26, 54, 93, 0.1));
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 1024px) {
    .p-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .p-hero {
        padding: 100px 0;
    }
}

/* Concept Section */
.p-concept__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.p-concept__image {
    background-color: var(--color-bg-alt);
    padding: 60px;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.p-concept__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .p-concept__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .p-concept__image {
        padding: 40px;
    }
}

/* Service Section */
.p-service {
    background-color: var(--color-bg-alt);
}

.p-service__lead {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
    color: var(--color-text-sub);
}

.p-service__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.c-service-card {
    background-color: var(--color-bg-white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border: 1px solid #edf2f7;
}

.c-service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.1);
}

.c-service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.c-service-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--color-primary);
}

.c-service-card__text {
    font-size: 15px;
    color: var(--color-text-sub);
    line-height: 1.6;
    text-align: left;
}

@media (max-width: 1024px) {
    .p-service__list {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Contact Section */
.p-contact__email {
    display: inline-block;
    padding: 30px 60px;
    background-color: var(--color-bg-alt);
    border-radius: 50px;
    margin-top: 20px;
}

.p-contact__label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.p-contact__link {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.p-contact__link:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .p-contact__email {
        padding: 20px 40px;
    }

    .p-contact__link {
        font-size: 20px;
    }
}

/* Back to Top */
.p-back-to-top {
    padding: 20px 0;
    text-align: right;
    background-color: var(--color-bg-white);
}

.p-back-to-top__link {
    text-decoration: none;
    color: var(--color-text-sub);
    font-size: 14px;
    font-weight: 700;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.p-back-to-top__link::before {
    content: '↑';
    margin-right: 8px;
}

.p-back-to-top__link:hover {
    color: var(--color-primary);
}

/* Footer */
.p-footer {
    padding: 60px 0;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    text-align: center;
}

.p-footer__logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.p-footer__copy {
    font-size: 14px;
    opacity: 0.6;
}

/* Utils Extras */
.u-at-mark {
    color: var(--color-text-sub);
    margin: 0 2px;
    font-size: 0.9em;
}

.u-hidden {
    display: none;
}

.u-overflow-hidden {
    overflow: hidden;
}

.u-mgt-small {
    margin-top: 10px;
}

.u-text-sub {
    font-size: 13px;
    color: var(--color-text-sub);
}




@media (max-width: 768px) {
    .p-concept__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}