/* ==========================================================================
   長井工務店 - Main Stylesheet
   Design System + Component Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-primary: #2B3A67;
    --color-primary-dark: #1E2A4A;
    --color-primary-light: #3B4D80;
    --color-accent: #3B5998;
    --color-accent-hover: #2D4A85;

    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-text-white: #FFFFFF;

    --color-bg: #FFFFFF;
    --color-bg-alt: #F7F7F7;
    --color-bg-dark: #2D2D2D;
    --color-bg-darker: #1A1A1A;

    --color-border: #E5E5E5;
    --color-border-light: #F0F0F0;

    /* Typography */
    --font-body: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Sans', sans-serif;
    --font-heading-en: 'Playfair Display', 'Georgia', serif;

    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */
    --fs-5xl: 3.5rem;
    /* 56px */

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-bold: 700;

    --lh-tight: 1.3;
    --lh-normal: 1.8;
    --lh-loose: 2.0;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 900px;
    --container-wide: 1400px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: var(--lh-normal);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

ul,
ol {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    color: inherit;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

/* --------------------------------------------------------------------------
   Loader — Premium animated loading screen
   -------------------------------------------------------------------------- */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1f3a 0%, #2B3A67 40%, #1E2A4A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

/* --- Exit animation --- */
.loader.is-exiting .loader__inner {
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loader.is-hidden {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.3s,
        transform 0.6s cubic-bezier(0.77, 0, 0.175, 1) 0.3s;
    pointer-events: none;
}

.loader.is-gone {
    display: none;
}

/* --- Floating particles --- */
.loader__particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.loader__particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: loaderFloat linear infinite;
}

.loader__particle:nth-child(1) {
    left: 10%;
    top: 20%;
    width: 4px;
    height: 4px;
    animation-duration: 8s;
    animation-delay: 0s;
}

.loader__particle:nth-child(2) {
    left: 25%;
    top: 70%;
    width: 6px;
    height: 6px;
    animation-duration: 10s;
    animation-delay: 1s;
}

.loader__particle:nth-child(3) {
    left: 45%;
    top: 40%;
    width: 3px;
    height: 3px;
    animation-duration: 7s;
    animation-delay: 0.5s;
}

.loader__particle:nth-child(4) {
    left: 65%;
    top: 80%;
    width: 5px;
    height: 5px;
    animation-duration: 9s;
    animation-delay: 2s;
}

.loader__particle:nth-child(5) {
    left: 80%;
    top: 15%;
    width: 4px;
    height: 4px;
    animation-duration: 11s;
    animation-delay: 0.8s;
}

.loader__particle:nth-child(6) {
    left: 90%;
    top: 50%;
    width: 7px;
    height: 7px;
    animation-duration: 8.5s;
    animation-delay: 1.5s;
}

.loader__particle:nth-child(7) {
    left: 35%;
    top: 10%;
    width: 3px;
    height: 3px;
    animation-duration: 12s;
    animation-delay: 3s;
}

.loader__particle:nth-child(8) {
    left: 55%;
    top: 60%;
    width: 5px;
    height: 5px;
    animation-duration: 9.5s;
    animation-delay: 0.3s;
}

@keyframes loaderFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* --- Inner content --- */
.loader__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

/* --- SVG house icon --- */
.loader__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    color: rgba(255, 255, 255, 0.85);
}

.loader__house {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.15));
}

/* Stroke-draw animation for each SVG element */
.loader__draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    animation: loaderDraw 0.6s ease-out forwards;
}

.loader__draw--1 {
    animation-delay: 0.1s;
    stroke-dasharray: 130;
    stroke-dashoffset: 130;
}

.loader__draw--2 {
    animation-delay: 0.4s;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.loader__draw--3 {
    animation-delay: 0.5s;
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}

.loader__draw--4 {
    animation-delay: 0.6s;
    stroke-dasharray: 70;
    stroke-dashoffset: 70;
}

.loader__draw--5 {
    animation-delay: 0.8s;
    stroke-dasharray: 80;
    stroke-dashoffset: 80;
}

.loader__draw--6 {
    animation-delay: 1.0s;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.loader__draw--7 {
    animation-delay: 1.05s;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.loader__draw--8 {
    animation-delay: 1.2s;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
}

@keyframes loaderDraw {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- Brand text --- */
.loader__brand {
    margin-bottom: var(--space-xs);
    opacity: 0;
    transform: translateY(12px);
    animation: loaderFadeUp 0.6s ease-out 0.6s forwards;
}

.loader__company {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3em;
    margin-bottom: 4px;
}

.loader__name {
    display: block;
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    letter-spacing: 0.15em;
}

.loader__tagline {
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xl);
    opacity: 0;
    transform: translateY(12px);
    animation: loaderFadeUp 0.6s ease-out 0.9s forwards;
}

@keyframes loaderFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Progress bar + counter --- */
.loader__progress {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-content: center;
    opacity: 0;
    animation: loaderFadeUp 0.5s ease-out 1.1s forwards;
}

.loader__progress-track {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader__progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.95));
    border-radius: 2px;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.loader__counter {
    font-family: var(--font-heading-en);
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.5);
    min-width: 28px;
    text-align: right;
}

.loader__counter::after {
    content: '%';
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-base), box-shadow var(--transition-base);
    background-color: transparent;
}

.site-header.is-scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.site-header.is-scrolled .nav-link {
    color: var(--color-text);
}

.site-header.is-scrolled .header__logo a,
.site-header.is-scrolled .site-logo-text {
    color: var(--color-primary);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.header__logo a,
.site-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-white);
    transition: color var(--transition-base);
}

.logo-icon {
    font-size: 1.5rem;
}

.logo-company {
    font-size: var(--fs-xs);
    font-weight: var(--fw-regular);
    display: block;
    line-height: 1;
}

.logo-name {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
}

.custom-logo {
    height: 50px;
    width: auto;
}

/* Navigation */
.header__nav {
    display: none;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-link {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text-white);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

/* Header CTA */
.header__cta {
    display: none;
}

.btn--header {
    padding: 10px 24px;
    font-size: var(--fs-sm);
}

/* Hamburger */
.header__hamburger {
    width: 32px;
    height: 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text-white);
    transition: transform var(--transition-base), opacity var(--transition-base);
    border-radius: 1px;
}

.site-header.is-scrolled .hamburger-line {
    background: var(--color-text);
}

.header__hamburger.is-active .hamburger-line:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.header__hamburger.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.header__hamburger.is-active .hamburger-line {
    background: var(--color-text-white);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    z-index: 999;
}

.mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    text-align: center;
}

.mobile-nav-list li {
    margin-bottom: var(--space-lg);
}

.mobile-nav-link {
    font-size: var(--fs-xl);
    color: var(--color-text-white);
    font-weight: var(--fw-medium);
    letter-spacing: 0.1em;
    transition: opacity var(--transition-fast);
}

.mobile-nav-link:hover {
    opacity: 0.7;
}

.mobile-nav-link--cta {
    display: inline-block;
    margin-top: var(--space-md);
    padding: 12px 40px;
    border: 1px solid var(--color-text-white);
    border-radius: var(--radius-full);
}

.mobile-menu__info {
    margin-top: var(--space-2xl);
}

.mobile-menu__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-white);
    font-size: var(--fs-md);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    letter-spacing: 0.05em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    text-decoration: none;
    line-height: 1;
}

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

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline {
    background: transparent;
    color: var(--color-text-white);
    border: 1px solid var(--color-text-white);
}

.btn--outline:hover {
    background: var(--color-text-white);
    color: var(--color-primary);
}

.btn--lg {
    padding: 16px 40px;
    font-size: var(--fs-base);
}

.btn__arrow {
    transition: transform var(--transition-base);
}

.btn:hover .btn__arrow {
    transform: translateX(4px);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 4px;
    transition: all var(--transition-base);
}

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

.section--dark .link-arrow {
    color: var(--color-text-white);
    border-color: var(--color-text-white);
}

.section--dark .link-arrow:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   Section
   -------------------------------------------------------------------------- */
.section {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

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

.section__bg-text {
    position: absolute;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-heading-en);
    font-size: clamp(5rem, 12vw, 12rem);
    font-weight: var(--fw-bold);
    color: rgba(0, 0, 0, 0.04);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.section--dark .section__bg-text {
    color: rgba(255, 255, 255, 0.04);
}

.section__label {
    font-size: var(--fs-sm);
    font-weight: var(--fw-regular);
    color: var(--color-text-muted);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-sm);
}

.section--dark .section__label {
    color: rgba(255, 255, 255, 0.6);
}

.section__title {
    font-family: var(--font-body);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-lg);
}

.section__title--lg {
    font-family: var(--font-heading-en);
    font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
}

.section__desc {
    font-size: var(--fs-base);
    color: var(--color-text-light);
    line-height: var(--lh-normal);
    max-width: 600px;
}

.section--dark .section__desc {
    color: rgba(255, 255, 255, 0.7);
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-2xl);
    gap: var(--space-lg);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, #1a1a2e 100%);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.1) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero__subtitle {
    font-family: var(--font-heading-en);
    font-size: clamp(var(--fs-sm), 2vw, var(--fs-md));
    font-weight: var(--fw-regular);
    color: var(--color-text-white);
    letter-spacing: 0.2em;
    margin-bottom: var(--space-md);
    opacity: 0.9;
}

.hero__title {
    font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl));
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-lg);
}

.hero__description {
    font-size: clamp(var(--fs-sm), 1.5vw, var(--fs-base));
    color: rgba(255, 255, 255, 0.8);
    line-height: var(--lh-normal);
    margin-bottom: var(--space-xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: var(--color-text-white);
    animation: scrollBounce 2s infinite;
    cursor: pointer;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* --------------------------------------------------------------------------
   Philosophy Section
   -------------------------------------------------------------------------- */
.philosophy__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.philosophy__lead {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    margin-bottom: var(--space-md);
    line-height: var(--lh-normal);
}

.philosophy__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    line-height: var(--lh-loose);
}

.philosophy__stats {
    display: flex;
    gap: var(--space-2xl);
}

.stat {
    padding-left: var(--space-md);
    border-left: 2px solid var(--color-border);
}

.stat__number {
    font-family: var(--font-heading-en);
    font-size: var(--fs-4xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
    line-height: 1;
}

.stat__plus {
    font-family: var(--font-heading-en);
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--color-primary);
}

.stat__label {
    display: block;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: 4px;
}

.philosophy__images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.philosophy__img {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.philosophy__img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.philosophy__img:hover img {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   Works Section (Homepage Preview)
   -------------------------------------------------------------------------- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.works-card {
    background: var(--color-bg-darker);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.works-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.works-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.works-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.works-card:hover .works-card__image img {
    transform: scale(1.08);
}

.works-card__placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3a3a3a, #555);
}

.works-card__content {
    padding: var(--space-lg);
}

.works-card__category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}

.works-card__title {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 */
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg-darker);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --------------------------------------------------------------------------
   Features Grid (Our Work)
   -------------------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.feature-card__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-normal);
}

/* --------------------------------------------------------------------------
   Flow Timeline — Vertical alternating timeline
   -------------------------------------------------------------------------- */
.section--flow {
    overflow: hidden;
}

.flow-timeline {
    position: relative;
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
    padding: var(--space-lg) 0;
}

/* Central track line (background) */
.flow-timeline__track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--color-border);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Animated progress fill */
.flow-timeline__progress {
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--color-accent), var(--color-primary));
    border-radius: 2px;
    transition: height 0.05s linear;
}

/* Each flow step row */
.flow-step {
    display: grid;
    grid-template-columns: 1fr 56px 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    margin-bottom: var(--space-md);
}

/* Center marker (number dot) */
.flow-step__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    justify-self: center;
}

.flow-step__number {
    width: 48px;
    height: 48px;
    background: var(--color-bg);
    border: 3px solid var(--color-border);
    color: var(--color-text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading-en);
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Activated marker state */
.flow-step.is-visible .flow-step__number {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-text-white);
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(59, 65, 122, 0.15);
}

/* Empty spacer */
.flow-step__spacer {
    min-height: 1px;
}

/* Card styles */
.flow-step__card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: var(--space-lg) var(--space-xl);
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.flow-step__card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Arrow connectors pointing toward center */
.flow-step__card--right::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: var(--color-bg);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.flow-step__card--left::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 18px;
    height: 18px;
    background: var(--color-bg);
    border-left: 1px solid var(--color-border);
    border-top: 1px solid var(--color-border);
}

/* Icon */
.flow-step__icon {
    width: 48px;
    height: 48px;
    background: rgba(59, 65, 122, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
    transition: all 0.4s ease;
}

.flow-step:hover .flow-step__icon {
    background: var(--color-accent);
    color: var(--color-text-white);
}

.flow-step__title {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-xs);
}

.flow-step__text {
    font-size: var(--fs-sm);
    color: var(--color-text-light);
    line-height: var(--lh-relaxed);
}

/* ---- Scroll-reveal animations ---- */

/* Right card: slides in from left */
.flow-step__card--right {
    opacity: 0;
    transform: translateX(-40px);
}

/* Left card: slides in from right */
.flow-step__card--left {
    opacity: 0;
    transform: translateX(40px);
}

.flow-step.is-visible .flow-step__card--right {
    opacity: 1;
    transform: translateX(0);
}

.flow-step.is-visible .flow-step__card--left {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger delays per step */
.flow-step[data-step="1"] .flow-step__card {
    transition-delay: 0s;
}

.flow-step[data-step="2"] .flow-step__card {
    transition-delay: 0.05s;
}

.flow-step[data-step="3"] .flow-step__card {
    transition-delay: 0.1s;
}

.flow-step[data-step="4"] .flow-step__card {
    transition-delay: 0.15s;
}

.flow-step[data-step="5"] .flow-step__card {
    transition-delay: 0.2s;
}

.flow-step[data-step="6"] .flow-step__card {
    transition-delay: 0.25s;
}

.flow-step[data-step="7"] .flow-step__card {
    transition-delay: 0.3s;
}

.flow-step[data-step="8"] .flow-step__card {
    transition-delay: 0.35s;
}

.flow-step[data-step="9"] .flow-step__card {
    transition-delay: 0.4s;
}

.flow-step[data-step="10"] .flow-step__card {
    transition-delay: 0.45s;
}

.flow-step[data-step="11"] .flow-step__card {
    transition-delay: 0.5s;
}

.flow-step[data-step="12"] .flow-step__card {
    transition-delay: 0.55s;
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 800px;
    margin: var(--space-xl) auto 0;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: var(--color-text-white);
    text-align: left;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.faq-item__question:hover {
    color: rgba(255, 255, 255, 0.8);
}

.faq-item__icon {
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

.faq-item.is-active .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.is-active .faq-item__answer {
    max-height: 500px;
    padding-bottom: var(--space-lg);
}

.faq-item__answer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-sm);
    line-height: var(--lh-normal);
}

/* --------------------------------------------------------------------------
   News Section
   -------------------------------------------------------------------------- */
.news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.news-card {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-fast);
}

.news-card:hover {
    background: var(--color-bg-alt);
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    margin-left: calc(var(--space-md) * -1);
    margin-right: calc(var(--space-md) * -1);
    border-radius: var(--radius-md);
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.news-card__date {
    font-family: var(--font-heading-en);
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    min-width: 100px;
}

.news-card__category {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-accent);
    background: rgba(59, 89, 152, 0.1);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.news-card__title {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
    line-height: var(--lh-tight);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section--cta {
    padding: var(--space-2xl) 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-2xl);
    text-align: center;
    color: var(--color-text-white);
}

.cta-box__title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
}

.cta-box__text {
    font-size: var(--fs-base);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-xl);
    line-height: var(--lh-normal);
}

.cta-box__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Breadcrumbs
   -------------------------------------------------------------------------- */
.breadcrumbs {
    padding: var(--space-md) 0;
    font-size: var(--fs-sm);
    color: var(--color-text-muted);
    margin-top: 80px;
}

.breadcrumbs a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.breadcrumbs .separator {
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Page Header (Archive / Single pages)
   -------------------------------------------------------------------------- */
.page-header {
    background: var(--color-primary);
    padding: calc(80px + var(--space-3xl)) 0 var(--space-3xl);
    color: var(--color-text-white);
    text-align: center;
}

.page-header__title {
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-sm);
}

.page-header__subtitle {
    font-family: var(--font-heading-en);
    font-size: var(--fs-sm);
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
}

/* --------------------------------------------------------------------------
   Works Archive (一覧ページ)
   -------------------------------------------------------------------------- */
.works-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    padding: var(--space-2xl) 0;
}

.works-archive-grid .works-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
}

.works-archive-grid .works-card__title {
    color: var(--color-text);
}

/* Filter */
.works-filter {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    padding: var(--space-xs) 0 var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.works-filter__btn {
    padding: 8px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
}

.works-filter__btn:hover,
.works-filter__btn.is-active {
    background: var(--color-accent);
    color: var(--color-text-white);
    border-color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Single Works — Studio Style (施工事例 詳細)
   -------------------------------------------------------------------------- */

/* Hero */
/* ===== Works Hero (Fullscreen) ===== */
.works-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--color-primary);
}

.works-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.25) 40%,
            rgba(0, 0, 0, 0.05) 100%);
}

.works-hero__content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-3xl) var(--space-2xl);
    padding-bottom: calc(var(--space-3xl) + 60px);
}

.works-hero__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.works-hero__category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 16px;
    letter-spacing: 0.05em;
}

.works-hero__divider {
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.5);
}

.works-hero__year {
    font-family: var(--font-heading-en);
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
}

.works-hero__title {
    font-size: clamp(var(--fs-2xl), 5vw, var(--fs-4xl));
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    line-height: var(--lh-tight);
}

/* Scroll hint at bottom of hero */
.works-hero__scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.works-hero__scroll-hint span {
    display: block;
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: rotate(45deg) translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: rotate(45deg) translateY(8px);
        opacity: 1;
    }
}

/* ===== Works Detail Layout ===== */
.works-detail {
    background: var(--color-bg-alt);
}

.works-detail__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: var(--space-3xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-xl);
}

/* ===== Sticky Sidebar ===== */
.works-detail__sidebar {
    padding-top: var(--space-lg);
}

.works-sidebar-sticky {
    position: sticky;
    top: 100px;
}

.works-sidebar__divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
    margin-bottom: var(--space-lg);
}

.works-sidebar__heading {
    font-family: var(--font-heading-en);
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.works-sidebar__data {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.works-sidebar__item {
    display: flex;
    gap: var(--space-md);
}

.works-sidebar__item dt {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    min-width: 40px;
    flex-shrink: 0;
}

.works-sidebar__item dd {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
}

/* Sidebar CTA */
.works-sidebar__cta {
    background: var(--color-bg);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.works-sidebar__cta-text {
    font-size: var(--fs-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.works-sidebar__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    padding: 10px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.works-sidebar__cta-btn:hover {
    background: var(--color-primary);
    color: var(--color-text-white);
    border-color: var(--color-primary);
}

.works-sidebar__cta-icon {
    font-size: var(--fs-base);
}

/* ===== Main Content ===== */
.works-detail__main {
    min-width: 0;
}

.works-detail__description {
    font-size: var(--fs-base);
    line-height: var(--lh-loose);
    margin-bottom: var(--space-3xl);
    color: var(--color-text);
}

.works-detail__description p {
    margin-bottom: var(--space-md);
}

/* Section Headers */
.works-detail__section {
    margin-bottom: var(--space-3xl);
}

.works-detail__section-title {
    font-family: var(--font-heading-en);
    font-size: var(--fs-xl);
    font-weight: var(--fw-regular);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.works-detail__section-icon {
    font-size: var(--fs-lg);
    color: var(--color-text-muted);
}

/* ===== Before / After (Side-by-Side) ===== */
.works-highlights__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.works-highlights__item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.works-highlights__label {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    padding: 4px 14px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.works-highlights__label--before {
    background: rgba(80, 80, 80, 0.85);
}

.works-highlights__label--after {
    background: var(--color-primary);
}

.works-highlights__img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.works-highlights__item:hover .works-highlights__img {
    transform: scale(1.03);
}

/* ===== Gallery Carousel ===== */
.works-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
}

.works-gallery-header .works-detail__section-title {
    margin-bottom: 0;
}

.works-gallery-nav {
    display: flex;
    gap: var(--space-xs);
}

.works-gallery-nav__btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.works-gallery-nav__btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text-white);
}

.works-gallery-nav__btn:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.works-gallery-carousel {
    overflow: hidden;
    border-radius: var(--radius-md);
    cursor: grab;
    user-select: none;
}

.works-gallery-carousel:active {
    cursor: grabbing;
}

.works-gallery-carousel__track {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.works-gallery-carousel__track::-webkit-scrollbar {
    display: none;
}

.works-gallery-carousel__slide {
    flex: 0 0 85%;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--color-bg);
}

.works-gallery-carousel__img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.works-gallery-carousel__slide:hover .works-gallery-carousel__img {
    transform: scale(1.02);
}

/* Dots indicator */
.works-gallery-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--space-lg);
}

.works-gallery-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.works-gallery-carousel__dot.is-active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* ===== Post Navigation ===== */
.works-detail__nav {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .works-hero {
        height: 70vh;
        min-height: 400px;
    }

    .works-hero__content {
        padding: var(--space-xl) var(--space-lg);
        padding-bottom: calc(var(--space-xl) + 60px);
    }

    .works-detail__layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-xl) var(--space-md);
    }

    .works-detail__sidebar {
        order: 2;
    }

    .works-sidebar-sticky {
        position: static;
    }

    .works-highlights__row {
        grid-template-columns: 1fr;
    }

    .works-gallery-carousel__slide {
        flex: 0 0 92%;
    }
}

/* --------------------------------------------------------------------------
   News Archive (最新情報 一覧)
   -------------------------------------------------------------------------- */
.news-archive {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.news-archive__list {
    max-width: 900px;
    margin: 0 auto;
}

.news-archive .news-card {
    padding: var(--space-lg) 0;
}

/* News Single */
.news-single {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.news-single__header {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}

.news-single__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.news-single__title {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    line-height: var(--lh-tight);
}

.news-single__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: var(--fs-base);
    line-height: var(--lh-loose);
}

.news-single__content p {
    margin-bottom: var(--space-md);
}

.news-single__content h2 {
    font-size: var(--fs-xl);
    font-weight: var(--fw-bold);
    margin: var(--space-xl) 0 var(--space-md);
}

.news-single__content h3 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-bold);
    margin: var(--space-lg) 0 var(--space-sm);
}

.news-single__content img {
    border-radius: var(--radius-md);
    margin: var(--space-lg) 0;
}

.news-single__content blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--color-text-light);
    font-style: italic;
}

/* Navigation between posts */
.post-navigation {
    max-width: 800px;
    margin: var(--space-2xl) auto 0;
    display: flex;
    justify-content: space-between;
    gap: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.post-navigation a {
    font-size: var(--fs-sm);
    color: var(--color-accent);
    transition: color var(--transition-fast);
}

.post-navigation a:hover {
    color: var(--color-accent-hover);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */
.contact-section {
    padding: var(--space-2xl) 0 var(--space-4xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 900px;
    margin: 0 auto;
}

.contact-info {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info__item:last-child {
    margin-bottom: 0;
}

.contact-info__icon {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-info__label {
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.contact-info__value {
    font-size: var(--fs-base);
    font-weight: var(--fw-medium);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg-darker);
    color: var(--color-text-white);
}

.footer__top {
    padding: var(--space-3xl) 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.footer__logo {
    margin-bottom: var(--space-md);
}

.footer__logo .site-logo-text,
.footer__logo a {
    color: var(--color-text-white);
}

.footer__tagline {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-lg);
}

.footer__contact-info p {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-xs);
}

.footer__contact-info a {
    color: rgba(255, 255, 255, 0.7);
}

.footer__contact-info a:hover {
    color: var(--color-text-white);
}

.footer__heading {
    font-size: var(--fs-sm);
    font-weight: var(--fw-bold);
    color: var(--color-text-white);
    margin-bottom: var(--space-md);
    letter-spacing: 0.05em;
}

.footer__links li {
    margin-bottom: var(--space-xs);
}

.footer__links a {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-text-white);
}

.footer__map-embed {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-lg) 0;
}

.footer__copyright {
    font-size: var(--fs-xs);
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-xl) 0;
}

.pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    background: var(--color-bg-alt);
    transition: all var(--transition-fast);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: var(--color-accent);
    color: var(--color-text-white);
}

/* --------------------------------------------------------------------------
   Sidebar
   -------------------------------------------------------------------------- */
.sidebar {
    padding-top: var(--space-lg);
}

.widget {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.widget-title {
    font-size: var(--fs-base);
    font-weight: var(--fw-bold);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-accent);
}

/* --------------------------------------------------------------------------
   404 Page
   -------------------------------------------------------------------------- */
.error-404 {
    text-align: center;
    padding: var(--space-4xl) 0;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.error-404__number {
    font-family: var(--font-heading-en);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: var(--fw-bold);
    color: var(--color-bg-alt);
    line-height: 1;
}

.error-404__title {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

.error-404__text {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}

.animate-delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

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