/* ================================================================
   CORELINE — 2025-2026 Design System
   "Defining the Baseline"
   ================================================================
   Single-file CSS: Foundation, Layout, Components, Pages, States
   ================================================================ */

/* ================================================================
   I. FOUNDATION — Reset, Variables, Base
   ================================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height, 80px);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    hanging-punctuation: first last;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #2d2d2d;
    background-color: #fafafa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

body.is-nav-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    display: block;
}

ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; }

/* Noise texture overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* Focus ring */
:focus-visible {
    outline: 2px solid var(--accent, #b8943e);
    outline-offset: 4px;
    border-radius: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ================================================================
   CSS Custom Properties
   ================================================================ */
:root {
    /* Color Palette */
    --bg-primary: #fafafa;
    --bg-secondary: #f2f2f0;
    --bg-tertiary: #e8e8e6;
    --bg-elevated: #ffffff;
    --bg-charcoal: #3a3a3a;
    --bg-charcoal-deep: #2d2d2d;
    --bg-hero: #ffffff;
    --bg-philosophy: #0d0d0d;

    --text-primary: #2d2d2d;
    --text-secondary: #5a5a5a;
    --text-tertiary: #8a8a8a;
    --text-white: rgba(255, 255, 255, 0.95);
    --text-white-secondary: rgba(255, 255, 255, 0.6);
    --text-white-tertiary: rgba(255, 255, 255, 0.35);

    --accent: #b8943e;
    --accent-light: #d4b365;
    --accent-soft: rgba(184, 148, 62, 0.1);
    --accent-gradient: linear-gradient(135deg, #b8943e 0%, #d4b365 50%, #b8943e 100%);

    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.18);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-light-strong: rgba(255, 255, 255, 0.2);

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;

    /* Typography */
    --font-en: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-ja: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;

    --text-xs: clamp(0.625rem, 0.6rem + 0.15vw, 0.75rem);
    --text-sm: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-base: clamp(0.875rem, 0.83rem + 0.25vw, 1rem);
    --text-lg: clamp(1rem, 0.9rem + 0.5vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
    --text-2xl: clamp(1.5rem, 1.1rem + 2vw, 2.25rem);
    --text-3xl: clamp(2rem, 1.2rem + 4vw, 3.5rem);
    --text-4xl: clamp(2.5rem, 1.5rem + 5vw, 5rem);
    --text-hero: clamp(3.5rem, 1.5rem + 8vw, 8rem);

    /* Spacing */
    --section-gap: clamp(2rem, 1.5rem + 2vw, 3.5rem);
    --container-gutter: clamp(1.5rem, 1rem + 4vw, 6rem);
    --container-width: 1400px;
    --container-narrow: 780px;
    --container-wide: 1600px;
    --header-height: 80px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.6s;

    /* Z-index */
    --z-header: 1000;
    --z-hamburger: 1100;
    --z-preloader: 100000;
    --z-scroll-progress: 10000;
}


/* ================================================================
   II. LAYOUT
   ================================================================ */

/* Container */
.l-container {
    display: block;
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--container-gutter);
}

.l-container--narrow {
    max-width: var(--container-narrow);
}

.l-container--wide {
    max-width: var(--container-wide);
}

/* Main */
.l-main {
    display: block;
    width: 100%;
    padding-top: 0;
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */
.l-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: var(--z-header);
    mix-blend-mode: difference;
    transition: transform 0.5s var(--ease-out),
                background 0.4s ease,
                mix-blend-mode 0.01s;
}

.l-header.is-scrolled {
    mix-blend-mode: normal;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.l-header.is-scrolled .l-header__logo-text,
.l-header.is-scrolled .c-nav-list li a {
    color: var(--text-primary);
}

.l-header.is-scrolled .c-hamburger__line {
    background: var(--text-primary);
}

.l-header.is-hidden {
    transform: translateY(-100%);
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding-inline: var(--container-gutter);
}

.l-header__logo a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.l-header__logo a:hover {
    opacity: 0.7;
}

.l-header__logo-text {
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.l-header__logo-img {
    height: 22px;
    width: auto;
    filter: invert(1);
    transition: filter 0.3s ease;
}

.l-header.is-scrolled .l-header__logo-img {
    filter: none;
}

.l-header__nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Nav List (PC) */
.c-nav-list {
    display: flex;
    gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.c-nav-list li a {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    transition: opacity 0.3s ease;
}

.c-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.5s var(--ease-out);
}

.c-nav-list li a:hover {
    opacity: 1;
}

.c-nav-list li a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.l-header__nav-contact .c-button {
    font-size: var(--text-xs);
    padding: 0.625rem 1.5rem;
}

/* Hamburger */
.c-hamburger {
    display: none;
    position: relative;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: var(--z-hamburger);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.c-hamburger[aria-expanded="true"] {
    transform: rotate(180deg);
}

.c-hamburger__line {
    display: block;
    position: absolute;
    left: 2px;
    width: 28px;
    height: 1.5px;
    background: #fff;
    transition: top 0.3s 0.15s ease, bottom 0.3s 0.15s ease,
                transform 0.3s ease, opacity 0.2s 0.15s ease;
}

.c-hamburger__line:nth-child(1) { top: 8px; }
.c-hamburger__line:nth-child(2) { top: 15px; }
.c-hamburger__line:nth-child(3) { bottom: 8px; }

.c-hamburger[aria-expanded="true"] .c-hamburger__line {
    transition: top 0.3s ease, bottom 0.3s ease,
                transform 0.3s 0.15s ease, opacity 0.2s ease;
}

.c-hamburger[aria-expanded="true"] .c-hamburger__line:nth-child(1) {
    top: 15px;
    transform: rotate(45deg);
}

.c-hamburger[aria-expanded="true"] .c-hamburger__line:nth-child(2) {
    opacity: 0;
}

.c-hamburger[aria-expanded="true"] .c-hamburger__line:nth-child(3) {
    bottom: 15px;
    transform: rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .c-hamburger {
        display: block;
    }

    .l-header {
        mix-blend-mode: normal;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }

    .l-header .l-header__logo-text {
        color: var(--text-primary);
    }

    .l-header .l-header__logo-img {
        height: 16px;
        filter: none;
    }

    .l-header .c-hamburger__line {
        background: var(--text-primary);
    }

    .l-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background: var(--bg-elevated);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.5s var(--ease-out), visibility 0.5s;
    }

    .l-header__nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .c-nav-list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .c-nav-list li a {
        font-size: clamp(0.875rem, 1.5vw + 0.5rem, 1.125rem);
        padding: 1.25rem 0;
        display: block;
        color: var(--text-primary);
        letter-spacing: 0.15em;
    }

    .l-header__nav-contact {
        margin-top: 2.5rem;
    }
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.l-footer {
    display: block;
    width: 100%;
    background: var(--bg-charcoal-deep);
    border-top: none;
    padding: 0 0 2rem;
    color: var(--text-white);
    position: relative;
}

/* Footer CTA Bar — impactful full-width band */
.l-footer__cta-bar {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #111 50%, #1a1714 100%);
    padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
    overflow: hidden;
}

.l-footer__cta-bar::before {
    content: 'BASELINE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: clamp(5rem, 3rem + 12vw, 16rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(184, 148, 62, 0.04);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.1em;
    line-height: 1;
}

.l-footer__cta-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.l-footer__cta-bar-content {
    flex: 1;
}

.l-footer__cta-bar-label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2rem;
}

.l-footer__cta-bar-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.2rem;
    height: 1px;
    background: var(--accent);
}

.l-footer__cta-bar-text {
    font-family: var(--font-en);
    font-size: clamp(1.5rem, 1rem + 2.5vw, 2.8rem);
    font-weight: 300;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-white);
}

.l-footer__cta-bar-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.l-footer__cta-bar-sub {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    margin-top: 0.75rem;
    letter-spacing: 0.05em;
}

/* Gold accent line between CTA bar and footer body */
.l-footer__accent-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--accent) 70%, transparent 100%);
    opacity: 0.3;
}

/* Footer grid body */
.l-footer__inner {
    padding-top: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.l-footer__grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-bottom: clamp(2.5rem, 2rem + 2vw, 3.5rem);
    border-bottom: 1px solid var(--border-light);
}

.l-footer__logo {
    font-family: var(--font-en);
    font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-white);
    display: block;
    text-transform: uppercase;
}

.l-footer__logo-img {
    height: 20px;
    width: auto;
    filter: invert(1);
}

.l-footer__tagline {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 0.6rem;
}

.l-footer__logo-line {
    width: 2.5rem;
    height: 1px;
    background: var(--accent);
    margin-top: 1.5rem;
    opacity: 0.5;
}

.l-footer__mission {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    line-height: 2;
    margin-top: 1.2rem;
}

.l-footer__col-title {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-white);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.l-footer__col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.2rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.c-footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.c-footer-link-list li a,
.c-footer-link-list li span {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    transition: color 0.3s ease, padding-left 0.3s ease;
    letter-spacing: 0.02em;
}

.c-footer-link-list li a:hover {
    color: var(--accent);
    padding-left: 0.3rem;
}

.l-footer__address {
    font-style: normal;
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    line-height: 2;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.l-footer__cta {
    margin-top: 0;
}

.l-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
}

.l-footer__copyright {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    font-family: var(--font-en);
    letter-spacing: 0.05em;
}

.l-footer__legal a {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    transition: color 0.3s ease;
}

.l-footer__legal a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .l-footer__cta-bar-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .l-footer__cta-bar-label {
        padding-left: 0;
    }

    .l-footer__cta-bar-label::before {
        display: none;
    }

    .l-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .l-footer__brand-col {
        grid-column: 1 / -1;
    }

    .l-footer__contact-col {
        grid-column: 1 / -1;
    }

    .l-footer__bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .l-footer__grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================================
   III. COMPONENTS
   ================================================================ */

/* ----------------------------------------------------------------
   Heading
   ---------------------------------------------------------------- */
.c-heading {
    display: block;
    margin-bottom: clamp(3rem, 2rem + 5vw, 5rem);
}

.c-heading--center {
    text-align: center;
}

.c-heading--left {
    text-align: left;
}

.c-heading__en {
    display: block;
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--text-primary);
}

.c-heading__ja {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    margin-top: 0.75rem;
}

.c-heading__line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--accent);
    margin-top: 1.25rem;
    border: none;
}

.c-heading--center .c-heading__line {
    margin-inline: auto;
}

/* Dark variant */
.is-dark .c-heading__en {
    color: var(--text-white);
}

.is-dark .c-heading__ja {
    color: var(--text-white-tertiary);
}

.is-dark-deep .c-heading__en {
    color: var(--text-white);
}

.is-dark-deep .c-heading__ja {
    color: var(--text-white-tertiary);
}

/* Section Title (sub-pages) */
.c-section-title {
    display: block;
    margin-bottom: clamp(2.5rem, 2rem + 4vw, 4rem);
}

.c-section-title__en {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: var(--text-primary);
}

.c-section-title__ja {
    display: block;
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   Button
   ---------------------------------------------------------------- */
.c-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 3rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    overflow: hidden;
    cursor: pointer;
    transition: color 0.4s ease 0.05s;
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.c-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-charcoal-deep);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease-out);
    z-index: -1;
}

.c-button:hover {
    color: #fff;
    opacity: 1;
}

.c-button:hover::before {
    transform: translateY(0);
}

.c-button span {
    position: relative;
    z-index: 1;
}

.c-button--accent {
    border-color: var(--accent);
    color: var(--accent);
}

.c-button--accent::before {
    background: var(--accent);
}

.c-button--accent:hover {
    color: #fff;
}

.c-button--white {
    border-color: var(--text-white);
    color: var(--text-white);
}

.c-button--white::before {
    background: var(--accent);
}

.c-button--white:hover {
    color: #fff;
}

.c-button--ghost {
    border-color: var(--border-light);
    color: var(--text-white-secondary);
}

.c-button--ghost::before {
    background: rgba(255, 255, 255, 0.08);
}

.c-button--ghost:hover {
    color: var(--text-white);
    border-color: var(--border-light-strong);
}

.c-button--lg {
    padding: 1.25rem 4rem;
    font-size: var(--text-sm);
}

.c-button--sm {
    padding: 0.625rem 1.5rem;
    font-size: var(--text-xs);
}

/* ----------------------------------------------------------------
   Arrow Link
   ---------------------------------------------------------------- */
.c-arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.c-arrow-link:hover {
    color: var(--accent);
}

.c-arrow-link__arrow {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: currentColor;
    position: relative;
    transition: width 0.5s var(--ease-out);
}

.c-arrow-link__arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;
    transform: rotate(45deg);
}

.c-arrow-link:hover .c-arrow-link__arrow {
    width: 60px;
}

/* ----------------------------------------------------------------
   Card
   ---------------------------------------------------------------- */
.c-card {
    display: block;
    padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    transition: border-color var(--duration-slow) var(--ease-out),
                transform var(--duration-slow) var(--ease-out),
                box-shadow var(--duration-slow) var(--ease-out);
}

.c-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent);
    transition: height var(--duration-slow) var(--ease-out);
}

.c-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.c-card:hover::before {
    height: 100%;
}

.c-card__number {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1.5rem;
}

.c-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.c-card__text {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   Table
   ---------------------------------------------------------------- */
.c-table {
    width: 100%;
    border-collapse: collapse;
}

.c-table th,
.c-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-size: var(--text-sm);
    vertical-align: top;
}

.c-table tr {
    border-bottom: 1px solid var(--border-subtle);
}

.c-table th {
    width: 140px;
    font-weight: 400;
    color: var(--text-tertiary);
    white-space: nowrap;
}

/* Dark table */
.is-dark .c-table tr {
    border-color: var(--border-light);
}

.is-dark .c-table th {
    color: var(--text-white-tertiary);
}

.is-dark .c-table td {
    color: var(--text-white);
}

@media (max-width: 480px) {
    .c-table th,
    .c-table td {
        display: block;
        width: 100%;
        padding: 0.75rem 0;
    }

    .c-table th {
        padding-bottom: 0.25rem;
    }
}

/* ----------------------------------------------------------------
   Form
   ---------------------------------------------------------------- */
.c-form {
    max-width: 640px;
    margin-inline: auto;
}

.c-form__group {
    display: block;
    margin-bottom: 0;
    position: relative;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.c-form__group:first-child {
    border-top: 1px solid var(--border-subtle);
}

/* Animated gold line on focus */
.c-form__group::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.c-form__group:focus-within::after {
    width: 100%;
}

.c-form__label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.c-form__group:focus-within .c-form__label {
    color: var(--accent);
}

.c-form__required {
    display: inline-block;
    font-size: 0.5625rem;
    font-weight: 600;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.1rem 0.4rem;
    letter-spacing: 0.08em;
    vertical-align: middle;
    opacity: 0.7;
}

.c-form__input,
.c-form__select,
.c-form__textarea {
    display: block;
    width: 100%;
    font-family: var(--font-ja);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: transparent;
    border: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
    appearance: none;
}

.c-form__input:focus,
.c-form__select:focus,
.c-form__textarea:focus {
    outline: none;
}

.c-form__input::placeholder,
.c-form__textarea::placeholder {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.c-form__select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a8a8a' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.5rem;
    cursor: pointer;
}

.c-form__textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.8;
}

.c-form__submit {
    margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
    text-align: center;
}

.c-form__message {
    margin-top: 1.5rem;
    padding: 1.25rem 1.5rem;
    font-size: var(--text-sm);
    line-height: 1.8;
    border-left: 3px solid;
    text-align: left;
}

.c-form__message--success {
    background: rgba(46, 125, 50, 0.06);
    border-color: #2e7d32;
    color: #2e7d32;
}

.c-form__message--error {
    background: rgba(198, 40, 40, 0.06);
    border-color: #c62828;
    color: #c62828;
}

/* ----------------------------------------------------------------
   Post Card (News)
   ---------------------------------------------------------------- */
.c-post-card {
    display: block;
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    transition: border-color 0.3s ease,
                transform 0.4s var(--ease-out);
}

.c-post-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-4px);
}

.c-post-card__date {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.c-post-card__title {
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.6;
    color: var(--text-primary);
}

/* ----------------------------------------------------------------
   Link Item
   ---------------------------------------------------------------- */
.c-link-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.5s var(--ease-out),
                border-color 0.3s ease;
}

.c-link-item:hover {
    padding-left: 1.5rem;
    border-color: var(--accent);
    opacity: 1;
}

/* ----------------------------------------------------------------
   Preloader
   ---------------------------------------------------------------- */
.c-preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    background: var(--bg-charcoal-deep);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.c-preloader__line {
    width: 120px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}

.c-preloader__text {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    letter-spacing: 0.25em;
    font-weight: 500;
    text-transform: uppercase;
}

/* ----------------------------------------------------------------
   Scroll Progress
   ---------------------------------------------------------------- */
.c-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform-origin: left;
    transform: scaleX(0);
    z-index: var(--z-scroll-progress);
    pointer-events: none;
}

@supports (animation-timeline: scroll()) {
    .c-scroll-progress {
        animation: scroll-progress-anim linear;
        animation-timeline: scroll(root);
    }

    @keyframes scroll-progress-anim {
        from { transform: scaleX(0); }
        to   { transform: scaleX(1); }
    }
}


/* ================================================================
   IV. PAGES
   ================================================================ */

/* ----------------------------------------------------------------
   Hero (Top)
   ---------------------------------------------------------------- */
.p-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-hero);
    color: #1a1a1a;
}

.p-hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.p-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: transparent;
}

.p-hero__content {
    position: relative;
    z-index: 3;
    padding-left: var(--container-gutter);
    max-width: 65%;
}

.p-hero__tagline {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.p-hero__title {
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3.5rem);
}

.p-hero__title-logo {
    display: block;
    width: clamp(280px, 40vw, 600px);
    height: auto;
}

.p-hero__title-line {
    display: inline;
}

.p-hero__lead {
    font-size: var(--text-base);
    font-weight: 400;
    letter-spacing: 0.06em;
    line-height: 2.2;
    color: #555;
    max-width: 520px;
}

.p-hero__desc {
    font-size: var(--text-xs);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--text-white-tertiary);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.p-hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    right: var(--container-gutter);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.p-hero__scroll-text {
    font-family: var(--font-en);
    font-size: 0.5625rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #999;
    writing-mode: vertical-rl;
}

.p-hero__scroll-line {
    width: 1px;
    height: 80px;
    background: var(--border-light);
    position: relative;
    overflow: hidden;
}

.p-hero__scroll-line::after {
    content: '';
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scroll-line 2.5s var(--ease-in-out) infinite;
}

@keyframes scroll-line {
    0% { top: -50%; }
    100% { top: 100%; }
}

@media (max-width: 768px) {
    .p-hero__content {
        max-width: 90%;
    }

    .p-hero__scroll {
        display: none;
    }
}

/* ----------------------------------------------------------------
   Track Record (Top) — Bento Grid
   ---------------------------------------------------------------- */
.p-track-record {
    display: block;
    width: 100%;
    padding: clamp(4rem, 3rem + 6vw, 7rem) 0;
    background: var(--bg-charcoal-deep);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

/* Background grid lines (gold, very subtle) */
.p-track-record::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(184, 148, 62, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(184, 148, 62, 0.04) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.p-track-record__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
}

.p-track-record__item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-charcoal-deep);
    padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
}

/* Hero cell (wider in row 1) */
.p-track-record__item--hero {
    grid-column: auto;
}

/* Row 2: 2 items span 3-col grid */
.p-track-record__item:nth-child(4) {
    grid-column: 1 / 2;
}
.p-track-record__item:nth-child(5) {
    grid-column: 2 / 4;
}

/* Ghost stroke number background via data-num */
.p-track-record__item[data-num]::after {
    content: attr(data-num);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: clamp(6rem, 4rem + 12vw, 14rem);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
    pointer-events: none;
    line-height: 1;
    white-space: nowrap;
}

.p-track-record__value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.15em;
    margin-bottom: 1rem;
}

.p-track-record__number {
    font-family: var(--font-en);
    font-size: clamp(3rem, 2rem + 6vw, 5.5rem);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--text-white);
}

.p-track-record__unit {
    font-family: var(--font-en);
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--accent);
}

.p-track-record__label {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    letter-spacing: 0.05em;
}

.p-track-record__note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    margin-top: clamp(1.5rem, 1rem + 2vw, 2rem);
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .p-track-record__grid {
        grid-template-columns: 1fr 1fr;
    }

    .p-track-record__item--hero {
        grid-column: 1 / -1;
    }

    .p-track-record__item:nth-child(4),
    .p-track-record__item:nth-child(5) {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .p-track-record__grid {
        grid-template-columns: 1fr;
    }

    .p-track-record__item--hero,
    .p-track-record__item:nth-child(4),
    .p-track-record__item:nth-child(5) {
        grid-column: auto;
    }
}

/* ----------------------------------------------------------------
   Service (Top) — Editorial Layout
   ---------------------------------------------------------------- */
.p-service {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-service__editorial {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.p-service__item {
    display: grid;
    grid-template-columns: clamp(5rem, 3rem + 6vw, 8rem) 1fr;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    width: 100%;
    padding: clamp(2rem, 1.5rem + 3vw, 3rem) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.5s var(--ease-out),
                border-color 0.3s ease;
}

.p-service__item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.p-service__item:hover {
    padding-left: 1rem;
    border-bottom-color: var(--accent);
}

.p-service__number-col {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 0.15em;
}

.p-service__num {
    font-family: var(--font-en);
    font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-strong);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.4s ease,
                -webkit-text-stroke-color 0.4s ease;
}

.p-service__item:hover .p-service__num {
    color: transparent;
    -webkit-text-stroke-color: var(--accent);
}

.p-service__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.p-service__en {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-style: italic;
    letter-spacing: 0.03em;
    margin-bottom: 0.75rem;
}

.p-service__desc {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
}

.p-service__more {
    margin-top: clamp(2rem, 1.5rem + 3vw, 3rem);
}

@media (max-width: 768px) {
    .p-service__item {
        grid-template-columns: 3.5rem 1fr;
        gap: 1rem;
    }

    .p-service__num {
        font-size: var(--text-xl);
    }
}

/* ----------------------------------------------------------------
   Strength (Top) — Dark + Glassmorphism
   ---------------------------------------------------------------- */
.p-strength {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-charcoal-deep);
    overflow: hidden;
    color: var(--text-white);
}

.p-strength__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 2rem + 5vw, 6rem);
    align-items: start;
}

.p-strength__text-col {
    display: flex;
    flex-direction: column;
}

.p-strength__headline {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: clamp(1.5rem, 1rem + 2vw, 2rem);
    color: var(--text-white);
}

.p-strength__body {
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-white-secondary);
    margin-bottom: 1rem;
}

.p-strength__data-col {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.p-strength__data-item {
    display: block;
    padding: clamp(1.5rem, 1rem + 2vw, 2rem);
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    position: relative;
    transition: border-color var(--duration-normal) ease,
                transform var(--duration-normal) var(--ease-out);
    margin-bottom: -1px;
}

.p-strength__data-item:hover {
    border-color: var(--accent);
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(184, 148, 62, 0.1);
}

.p-strength__data-label {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.p-strength__data-value {
    display: block;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 0.35rem;
}

.p-strength__data-note {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .p-strength__layout {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 1.5rem + 3vw, 3rem);
    }

    .p-strength__data-col {
        max-width: 100%;
        overflow: hidden;
    }

    .p-strength__data-item:hover {
        transform: none;
    }
}

/* ----------------------------------------------------------------
   Philosophy (Top) — Deepest Dark
   ---------------------------------------------------------------- */
.p-philosophy {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-philosophy);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

/* Horizontal guide lines (baseline motif) */
.p-philosophy::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 79px,
        rgba(184, 148, 62, 0.04) 79px,
        rgba(184, 148, 62, 0.04) 80px
    );
    pointer-events: none;
}

/* "BASELINE" ghost stroke background */
.p-philosophy::after {
    content: 'BASELINE';
    position: absolute;
    bottom: -0.15em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-en);
    font-size: clamp(8rem, 5rem + 18vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.05em;
}

.p-philosophy__inner {
    display: block;
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.p-philosophy__label {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
}

.p-philosophy__statement {
    font-size: var(--text-xl);
    line-height: 2.2;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-white);
    margin-bottom: clamp(2.5rem, 2rem + 4vw, 3.5rem);
    max-width: 36em;
    margin-inline: auto;
}

.p-philosophy__divider {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 0 auto clamp(2.5rem, 2rem + 4vw, 3.5rem);
    border: none;
}

.p-philosophy__pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-light);
}

.p-philosophy__pillar {
    display: block;
    background: var(--bg-philosophy);
    padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    text-align: center;
}

.p-philosophy__pillar-num {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.p-philosophy__pillar-text {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: var(--text-white-secondary);
    letter-spacing: 0.04em;
}

@media (max-width: 768px) {
    .p-philosophy__pillars {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------------------
   News (Top)
   ---------------------------------------------------------------- */
.p-news {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.p-news__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
}

.p-news__header .c-heading {
    margin-bottom: 0;
}

.p-news__list {
    display: block;
    width: 100%;
}

.p-news__item {
    display: flex;
    align-items: baseline;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.5s var(--ease-out),
                border-color 0.3s ease;
}

.p-news__item:first-child {
    border-top: 1px solid var(--border-subtle);
}

.p-news__item:hover {
    padding-left: 1.5rem;
    border-color: var(--accent);
    opacity: 1;
}

.p-news__date {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.05em;
}

.p-news__title {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-primary);
}

.p-news__empty {
    text-align: center;
    color: var(--text-tertiary);
    padding: 3rem 0;
    font-size: var(--text-sm);
}

.p-news__more {
    text-align: center;
    margin-top: clamp(2rem, 1.5rem + 3vw, 3rem);
}

@media (max-width: 768px) {
    .p-news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .p-news__item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* ----------------------------------------------------------------
   CTA (Full-screen immersive)
   ---------------------------------------------------------------- */
.p-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 70vh;
    padding: var(--section-gap) 0;
    background: #0a0a0a;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

/* "CONTACT" ghost stroke background */
.p-cta::after {
    content: 'CONTACT';
    position: absolute;
    bottom: -0.1em;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-en);
    font-size: clamp(6rem, 3rem + 16vw, 20rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.025);
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: 0.08em;
}

.p-cta__inner {
    display: block;
    text-align: center;
    position: relative;
    z-index: 1;
}

.p-cta__title {
    font-family: var(--font-en);
    font-size: var(--text-4xl);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.p-cta__title-accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.p-cta__text {
    color: var(--text-white-secondary);
    font-size: var(--text-sm);
    letter-spacing: 0.05em;
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
    line-height: 2;
}

.p-cta__sub {
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    margin-top: 1.5rem;
    letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   Page Hero (Sub-pages)
   ---------------------------------------------------------------- */
.p-page-hero {
    position: relative;
    width: 100%;
    padding: calc(var(--header-height) + clamp(2rem, 1.5rem + 3vw, 4rem)) 0 clamp(2rem, 1.5rem + 2vw, 3rem);
    background: var(--bg-charcoal-deep);
    color: var(--text-white);
    overflow: hidden;
}

.p-page-hero__canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.p-page-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(
        160deg,
        rgba(45, 45, 45, 0.6) 0%,
        rgba(45, 45, 45, 0.15) 50%,
        rgba(45, 45, 45, 0.4) 100%
    );
}

.p-page-hero .l-container {
    position: relative;
    z-index: 3;
}

.p-page-hero__title-en {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-4xl);
    font-weight: 300;
    letter-spacing: 0.04em;
    line-height: 1.1;
    color: var(--text-white);
}

.p-page-hero__title-ja {
    display: block;
    font-size: var(--text-sm);
    font-weight: 400;
    letter-spacing: 0.25em;
    color: var(--text-white-secondary);
    margin-top: 1.25rem;
}

.p-page-hero__date {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-white-tertiary);
    margin-top: 1rem;
    display: block;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   Service Page
   ---------------------------------------------------------------- */
.p-service-page {
    display: block;
    width: 100%;
}

.p-service-page__intro {
    display: block;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-service-page__lead {
    font-size: var(--text-lg);
    line-height: 2.4;
    text-align: center;
    color: var(--text-secondary);
    max-width: 40em;
    margin-inline: auto;
}

.p-service-page > .l-container {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Service Detail */
.p-service-detail {
    display: block;
    width: 100%;
    padding: clamp(3rem, 2rem + 5vw, 5rem) 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: padding-left 0.5s var(--ease-out);
}

.p-service-detail:hover {
    padding-left: 1rem;
}

.p-service-detail__header {
    display: grid;
    grid-template-columns: clamp(4rem, 3rem + 5vw, 7rem) 1fr;
    gap: clamp(1.5rem, 1rem + 2vw, 3rem);
    align-items: start;
    margin-bottom: clamp(1.5rem, 1rem + 2vw, 2rem);
}

.p-service-detail__num {
    font-family: var(--font-en);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.02em;
}

.p-service-detail__title {
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.p-service-detail__title-en {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-style: italic;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
}

.p-service-detail__body {
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-secondary);
    padding-left: clamp(5.5rem, 4rem + 7vw, 10rem);
}

@media (max-width: 768px) {
    .p-service-detail__header {
        grid-template-columns: 3rem 1fr;
    }

    .p-service-detail__body {
        padding-left: 0;
    }
}

/* ----------------------------------------------------------------
   Flow (Horizontal Scroll Snap)
   ---------------------------------------------------------------- */
.p-flow {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0 clamp(3rem, 2rem + 4vw, 4rem);
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.p-flow__progress-track {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--border-subtle);
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
}

.p-flow__progress-fill {
    display: block;
    width: 0%;
    height: 100%;
    background: var(--accent-gradient);
    transition: width 0.15s linear;
}

.p-flow__track {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.p-flow__track::-webkit-scrollbar {
    display: none;
}

.p-flow__timeline {
    display: flex;
    flex-direction: row;
    width: max-content;
    padding-bottom: 2rem;
    position: relative;
}

.p-flow__timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    opacity: 0.25;
}

.p-flow__phase {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    min-width: clamp(260px, 20vw + 100px, 340px);
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    padding-top: 3rem;
    position: relative;
    flex-shrink: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease;
}

.p-flow__phase.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.p-flow__phase:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Dot */
.p-flow__phase::before {
    content: '';
    position: absolute;
    top: 14px;
    left: clamp(2rem, 1.5rem + 2vw, 3rem);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    z-index: 2;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.p-flow__phase.is-visible::before {
    border-color: var(--accent);
    background: var(--accent);
}

.p-flow__phase:hover::before {
    transform: scale(1.4);
    box-shadow: 0 0 0 4px rgba(184, 148, 62, 0.15), 0 0 16px rgba(184, 148, 62, 0.1);
}

/* Connector line from dot */
.p-flow__phase::after {
    content: '';
    position: absolute;
    top: 25px;
    left: calc(clamp(2rem, 1.5rem + 2vw, 3rem) + 5px);
    width: 1px;
    height: 0;
    background: var(--accent);
    opacity: 0.3;
    transition: height 0.5s ease 0.3s;
}

.p-flow__phase.is-visible::after {
    height: 1.5rem;
}

.p-flow__phase-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

.p-flow__step {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.p-flow__title {
    font-size: var(--text-base);
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.p-flow__phase:hover .p-flow__title {
    color: var(--accent);
}

.p-flow__text {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.p-flow__deliverables {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.p-flow__deliverables li {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    padding-left: 1.25em;
    position: relative;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.p-flow__phase.is-visible .p-flow__deliverables li {
    opacity: 1;
    transform: translateX(0);
}

.p-flow__phase.is-visible .p-flow__deliverables li:nth-child(1) { transition-delay: 0.4s; }
.p-flow__phase.is-visible .p-flow__deliverables li:nth-child(2) { transition-delay: 0.5s; }
.p-flow__phase.is-visible .p-flow__deliverables li:nth-child(3) { transition-delay: 0.6s; }

.p-flow__deliverables li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.5rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.p-flow__scroll-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1rem;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: opacity 0.4s ease;
}

.p-flow__scroll-hint-arrow {
    display: inline-block;
    animation: hint-arrow 1.5s ease-in-out infinite;
}

@keyframes hint-arrow {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(6px); }
}

@media (max-width: 768px) {
    .p-flow__phase {
        min-width: 280px;
    }
}

/* ----------------------------------------------------------------
   About Page
   ---------------------------------------------------------------- */

/* Intro — full-width statement */
.p-about-intro {
    padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
    background: var(--bg-primary);
}

.p-about-intro__inner {
    text-align: center;
    max-width: 48rem;
    margin-inline: auto;
}

.p-about-intro__label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 2.5rem;
}

.p-about-intro__label::before,
.p-about-intro__label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.p-about-intro__label::before { left: 0; }
.p-about-intro__label::after { right: 0; }

.p-about-intro__statement {
    font-size: var(--text-lg);
    line-height: 2.4;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Identity — 3-column cards */
.p-about-identity {
    padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
    background: var(--bg-secondary);
}

.p-about-identity__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.p-about-identity__card {
    padding: clamp(2rem, 1.5rem + 2vw, 3rem);
    background: var(--bg-primary);
    border: 1px solid var(--border-subtle);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.p-about-identity__card:hover {
    border-color: rgba(184, 148, 62, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.p-about-identity__num {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-3xl);
    font-weight: 200;
    color: var(--accent);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.p-about-identity__title {
    font-family: var(--font-en);
    font-size: var(--text-lg);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.p-about-identity__subtitle {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
}

.p-about-identity__divider {
    width: 1.5rem;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.p-about-identity__text {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
}

/* Philosophy — dark section */
.p-about-philosophy {
    padding: clamp(5rem, 3rem + 6vw, 8rem) 0;
    background: var(--bg-charcoal-deep);
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.p-about-philosophy::before {
    content: 'PHILOSOPHY';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-en);
    font-size: clamp(4rem, 2rem + 10vw, 14rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.02);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.08em;
}

.p-about-philosophy__inner {
    position: relative;
    z-index: 1;
}

.p-about-philosophy__header {
    text-align: center;
    margin-bottom: clamp(3rem, 2rem + 4vw, 5rem);
}

.p-about-philosophy__label {
    display: inline-block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.p-about-philosophy__statement {
    font-size: var(--text-xl);
    line-height: 2.2;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--text-white);
    max-width: 36em;
    margin-inline: auto;
}

.p-about-philosophy__pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 48rem;
    margin-inline: auto;
}

.p-about-philosophy__pillar {
    display: flex;
    align-items: flex-start;
    gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    padding: clamp(2rem, 1.5rem + 2vw, 3rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding-left 0.4s ease;
}

.p-about-philosophy__pillar:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.p-about-philosophy__pillar:hover {
    padding-left: 1rem;
}

.p-about-philosophy__pillar-num {
    font-family: var(--font-en);
    font-size: var(--text-2xl);
    font-weight: 200;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    min-width: 2.5rem;
    opacity: 0.7;
}

.p-about-philosophy__pillar-content {
    flex: 1;
}

.p-about-philosophy__pillar-en {
    font-family: var(--font-en);
    font-size: var(--text-base);
    font-weight: 500;
    font-style: italic;
    color: var(--text-white);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.p-about-philosophy__pillar-ja {
    font-size: var(--text-sm);
    color: var(--text-white-secondary);
    line-height: 1.8;
}

/* Promise — 2-column layout */
.p-about-promise {
    padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
    background: var(--bg-primary);
}

.p-about-promise__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 2rem + 4vw, 5rem);
}

.p-about-promise__label {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.p-about-promise__title {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
}

.p-about-promise__divider {
    width: 2rem;
    height: 1px;
    background: var(--accent);
    margin: 1.5rem 0;
    opacity: 0.5;
}

.p-about-promise__text {
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-secondary);
}

.p-about-promise__text + .p-about-promise__text {
    margin-top: 1.2em;
}

/* Company info table */
.p-about-company {
    padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
    background: var(--bg-secondary);
}

.p-about-company__header {
    margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.p-about-company__label {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.p-about-company__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.p-about-company__business-list li {
    padding: 0.35rem 0;
    padding-left: 1.25em;
    position: relative;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.p-about-company__business-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85em;
    width: 0.5rem;
    height: 1px;
    background: var(--accent);
}

/* Access */
.p-about-access {
    padding: clamp(4rem, 3rem + 5vw, 7rem) 0;
    background: var(--bg-primary);
}

.p-about-access__header {
    margin-bottom: clamp(2.5rem, 2rem + 3vw, 4rem);
}

.p-about-access__label {
    display: block;
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.p-about-access__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.p-about-access__map-wrap {
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.p-about-access__map-wrap iframe {
    display: block;
    width: 100%;
    filter: grayscale(0.6) contrast(0.85);
    transition: filter 0.5s ease;
}

.p-about-access__map-wrap:hover iframe {
    filter: grayscale(0.2) contrast(0.95);
}

.p-about-access__address {
    font-style: normal;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
}

/* About page responsive */
@media (max-width: 768px) {
    .p-about-identity__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .p-about-promise__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .p-about-philosophy__pillar {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ----------------------------------------------------------------
   Philosophy Page
   ---------------------------------------------------------------- */
.p-philosophy-page {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.p-philosophy-page__statement {
    text-align: center;
    margin-bottom: clamp(4rem, 3rem + 6vw, 6rem);
}

.p-philosophy-page__lead {
    font-size: var(--text-xl);
    line-height: 2.4;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-primary);
    max-width: 36em;
    margin-inline: auto;
}

.p-philosophy-page__pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.p-philosophy-page__pillar {
    display: block;
    padding: clamp(2rem, 1.5rem + 3vw, 3rem) clamp(2rem, 1.5rem + 3vw, 3.5rem);
    border-left: 2px solid var(--accent);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.4s ease;
}

.p-philosophy-page__pillar:hover {
    background: var(--bg-secondary);
}

.p-philosophy-page__pillar-num {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 1rem;
}

.p-philosophy-page__pillar-en {
    font-family: var(--font-en);
    font-size: var(--text-lg);
    font-weight: 600;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.p-philosophy-page__pillar-ja {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   Role / Promise
   ---------------------------------------------------------------- */
.p-role {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-promise {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-secondary);
}

/* ----------------------------------------------------------------
   Access
   ---------------------------------------------------------------- */
.p-access {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-secondary);
}

.p-access__map {
    margin-bottom: 2rem;
    overflow: hidden;
}

.p-access__map iframe {
    display: block;
    width: 100%;
    filter: grayscale(0.6) contrast(0.85);
    transition: filter 0.5s ease;
}

.p-access__map:hover iframe {
    filter: grayscale(0.2) contrast(0.95);
}

.p-access__address {
    font-style: normal;
    text-align: center;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    letter-spacing: 0.03em;
}

/* ----------------------------------------------------------------
   Message
   ---------------------------------------------------------------- */
.p-message {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-elevated);
}

.p-message__layout {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: clamp(3rem, 2rem + 5vw, 6rem);
    align-items: start;
}

.p-message__photo {
    display: block;
    position: relative;
}

.p-message__photo-frame {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--bg-secondary);
}

.p-message__photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p-message__photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--bg-tertiary);
}

.p-message__photo-label {
    font-family: var(--font-en);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.p-message__content {
    display: flex;
    flex-direction: column;
}

.p-message__heading {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.8;
    margin-bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
}

.p-message__body {
    font-size: var(--text-sm);
    line-height: 2.4;
    color: var(--text-secondary);
    margin-bottom: clamp(2rem, 1.5rem + 3vw, 3rem);
}

.p-message__body p + p {
    margin-top: 1.5em;
}

.p-message__signature {
    display: block;
    margin-top: auto;
    padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    border-top: 1px solid var(--border-subtle);
}

.p-message__position {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.p-message__name {
    font-size: var(--text-lg);
    font-weight: 700;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .p-message__layout {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 1.5rem + 3vw, 3rem);
    }

    .p-message__photo-frame {
        max-width: 320px;
        margin-inline: auto;
    }
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
.p-contact {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-contact__lead {
    font-size: var(--text-base);
    line-height: 2.2;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: clamp(3rem, 2rem + 5vw, 5rem);
    max-width: 36em;
    margin-inline: auto;
}

.p-contact__form {
    display: block;
    max-width: 640px;
    margin-inline: auto;
}

/* ----------------------------------------------------------------
   Privacy
   ---------------------------------------------------------------- */
.p-privacy {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-privacy h2 {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
    margin-bottom: 1rem;
}

.p-privacy h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.p-privacy p {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.p-privacy ul,
.p-privacy ol {
    padding-left: 1.5em;
    margin-bottom: 1rem;
}

.p-privacy li {
    font-size: var(--text-sm);
    line-height: 2;
    color: var(--text-secondary);
    list-style: disc;
}

/* ----------------------------------------------------------------
   404
   ---------------------------------------------------------------- */
.p-404 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 60vh;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
    text-align: center;
}

.p-404__title {
    font-family: var(--font-en);
    font-size: var(--text-hero);
    font-weight: 800;
    color: var(--border-subtle);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.p-404__text {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ----------------------------------------------------------------
   Single Post / Archive
   ---------------------------------------------------------------- */
.p-single {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-single__content {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.p-single__content h2 {
    font-size: var(--text-xl);
    font-weight: 700;
    margin-top: clamp(2.5rem, 2rem + 3vw, 4rem);
    margin-bottom: 1rem;
}

.p-single__content h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.p-single__content p {
    font-size: var(--text-sm);
    line-height: 2.2;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.p-single__content img {
    margin: 2rem 0;
}

.p-archive {
    display: block;
    width: 100%;
    padding: var(--section-gap) 0;
    background: var(--bg-primary);
}

.p-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: clamp(1.5rem, 1rem + 2vw, 2rem);
}

.p-no-content {
    text-align: center;
    color: var(--text-tertiary);
    padding: clamp(4rem, 3rem + 6vw, 8rem) 0;
    font-size: var(--text-base);
}


/* ================================================================
   V. STATES & ANIMATION
   ================================================================ */

/* GSAP */
.js-gsap [data-animate="fade-up"] {
    opacity: 0;
}

.js-gsap [data-animate="stagger"] > * {
    opacity: 0;
}

.js-gsap [data-animate="text-reveal"] {
    clip-path: inset(0 100% 0 0);
}

/* No-GSAP fallback */
.no-gsap [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

/* Reduced motion (class-based) */
.is-reduced-motion [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
}

/* Dark themes */
.is-dark {
    background: var(--bg-charcoal-deep);
    color: var(--text-white);
}

.is-dark-deep {
    background: var(--bg-philosophy);
    color: var(--text-white);
}


/* ================================================================
   VI. RESPONSIVE / MEDIA QUERIES
   ================================================================ */

/* Touch devices — disable hover transforms */
@media (hover: none) {
    .c-card:hover {
        transform: none;
        border-color: var(--border-subtle);
        box-shadow: none;
    }

    .c-card:hover::before {
        height: 0;
    }

    .c-card:active {
        background: var(--bg-secondary);
        transition-duration: 0.1s;
    }

    .p-news__item:hover {
        padding-left: 0;
        border-color: var(--border-subtle);
    }

    .p-news__item:active {
        background: var(--bg-secondary);
    }

    .c-link-item:hover {
        padding-left: 0;
    }

    .p-service__item:hover {
        padding-left: 0;
    }

    .p-service-detail:hover {
        padding-left: 0;
    }

    .p-strength__data-item:hover {
        transform: none;
    }
}

/* Reduced motion (system preference) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }

    .c-preloader {
        display: none;
    }

    .c-scroll-progress {
        display: none;
    }

    .p-hero__scroll-line::after {
        animation: none;
    }
}

/* ================================================================
   VII. CONTENT-VISIBILITY (Performance)
   ================================================================ */
.p-track-record,
.p-service,
.p-strength,
.p-philosophy,
.p-news,
.p-cta,
.p-about-section,
.p-philosophy-page,
.p-flow,
.p-message,
.p-contact {
    contain-intrinsic-size: auto 600px;
}
