/*
Theme Name: Puzzle Web Custom Theme
Theme URI: https://puzzle-web.jp/
Author: Puzzle
Description: 山口県山口市を拠点とする「Puzzle」による、静的HTMLから移行されたカスタムテーマ。ウェブ制作、グラフィック、写真、動画、AIソリューションを統合した、クリエイティブな情報発信を支えます。
Version: 1.0.0
*/
@charset "UTF-8";

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

:root {
    /* --- Light Mode (Default) --- */
    --color-primary: #4E9EF9;
    /* Electric Blue */
    --color-bg: #FFFFFF;
    --color-bg-sub: #ECECEC;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #E5E5E5;
    --color-overlay: rgba(255, 255, 255, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.6);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(78, 158, 249, 0.3);

    /* Fonts */
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Montserrat', sans-serif;
    --font-serif: 'Playfair Display', serif;

    /* Sizes */
    --header-height: 80px;
    --radius-capsule: 50px;
    --radius-card: 24px;
}

[data-theme="dark"] {
    /* --- Dark Mode --- */
    --color-primary: #2596BB;
    /* Cyan Glow */
    --color-bg: #021C3B;
    /* Deep Navy */
    /* Deep Navy */
    --color-bg-sub: #03254c;
    --color-text: #FFFFFF;
    --color-text-light: #B0B8C3;
    --color-border: rgba(255, 255, 255, 0.1);
    --color-overlay: rgba(2, 28, 59, 0.7);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(37, 150, 187, 0.4);

    /* Footer Colors */
    --color-footer-bg: #021C3B;
    --color-footer-text: #FFFFFF;
}

:root {
    /* ... (rest of light mode vars) */
    --color-footer-bg: #4E9EF9;
    --color-footer-text: #FFFFFF;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-ja);
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

/* --- Global Mesh Gradient Background --- */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(78, 158, 249, 0.1), transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(37, 150, 187, 0.1), transparent 50%);
    z-index: -1;
    filter: blur(80px);
    animation: meshMove 20s infinite alternate linear;
    pointer-events: none;
}

@keyframes meshMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-20px, -20px);
    }
}

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

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

a:hover {
    opacity: 0.7;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-en);
    font-weight: 600;
    line-height: 1.4;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    /* JS Animation trigger */
    transform: translateY(20px);
}

/* ==========================================================================
   Layout Utils & Glassmorphism
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .glass-panel {
    background: rgba(2, 28, 59, 0.4);
}

/* ==========================================================================
   Header & Floating Capsule Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    /* Let clicks pass through outside the capsule */
}

/* 3-Column Capsule */
.capsule-nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.85);
    /* Light Mode Base */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-capsule);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    pointer-events: auto;
    transition: all 0.4s ease;
    max-width: 1100px;
    width: 100%;
}

[data-theme="dark"] .capsule-nav {
    background: rgba(2, 28, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Logo Area */
.logo img {
    height: 32px;
    width: auto;
    /* In dark mode, filter to white/bright */
    transition: filter 0.3s ease;
}

[data-theme="dark"] .logo img {
    filter: brightness(0) invert(1);
}

/* --- Page Title Section (Modern Redesign) --- */
.page-title-section {
    position: relative;
    padding: 180px 0 100px;
    /* Increased top padding for header space */
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
}

[data-theme="dark"] .page-title-section {
    background-image: linear-gradient(120deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    /* Bold/Black */
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.page-title span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    font-family: var(--font-ja);
    margin-top: 15px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Breadcrumbs Bar integrated */
.breadcrumb-Bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .breadcrumb-Bar {
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered breadcrumbs */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li+li::before {
    content: '/';
    margin: 0 15px;
    color: var(--color-border);
    font-size: 0.7rem;
}

.breadcrumbs a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Navigation Links */
.global-nav ul {
    display: flex;
    gap: 25px;
    align-items: center;
    justify-content: center;
}

.global-nav a {
    font-family: var(--font-en);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    padding: 5px 0;
}

.global-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.global-nav a:hover::after {
    width: 100%;
}

/* Contact Button (Phone) */
.nav-btn-phone {
    background-color: var(--color-primary);
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    font-weight: 600 !important;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
}

.nav-btn-phone:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(78, 158, 249, 0.4);
    opacity: 1;
}

.nav-btn-phone::after {
    display: none;
}

/* Theme Toggle Switch */
.theme-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.theme-switch-icon {
    font-size: 1.2rem;
    color: var(--color-text);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.theme-switch:hover .theme-switch-icon {
    transform: rotate(180deg);
}

/* Hamburger for Mobile */
.hamburger {
    display: none;
}

/* Mobile Nav Overlay (Hidden on PC) */
.mobile-menu-overlay {
    display: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #111;
    color: #fff;
    padding: 100px 0 40px;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    display: block;
    margin-bottom: 10px;
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--color-accent-light);
    letter-spacing: 0.1em;
}

.footer-info {
    display: flex;
    gap: 40px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.info-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 700;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}

.info-item {
    text-align: right;
}

.info-item p {
    color: #eee;
    font-size: 0.9rem;
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-sub-nav ul {
    display: flex;
    gap: 30px;
}

.footer-sub-nav a {
    font-size: 0.75rem;
    color: #888;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-sub-nav a:hover {
    color: #fff;
}

.copyright {
    font-size: 0.75rem;
    color: #555;
    font-family: var(--font-en);
}

.mobile-close-btn {
    display: none;
}

/* Responsive Footer */
@media (max-width: 999px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 40px;
    }

    .footer-info {
        justify-content: center;
        text-align: center;
        gap: 30px;
    }

    .info-item {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Tablet & Mobile (Below 1000px) */
@media (max-width: 999px) {
    .capsule-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 20px;
        width: 90%;
        max-width: 90%;
    }

    /* Hide PC Nav & Phone Btn */
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 40px;
    }

    /* Show Close Button in Mobile Menu */
    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--color-text);
        cursor: pointer;
        z-index: 1001;
    }

    .global-nav.active {
        right: 0;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 30px;
    }

    .global-nav a {
        font-size: 1.2rem;
    }

    .nav-btn-phone {
        margin-top: 20px;
    }

    /* Move toggle to hamburger area or keep in capsule? */
    /* Let's keep toggle in capsule, hamburger replaces nav */
    .theme-switch {
        margin-right: 15px;
        /* Space for hamburger */
    }

    .hamburger {
        display: block;
        order: 3;
        /* Ensure it is on the right */
    }

    .global-nav a {
        font-size: 1.2rem;
        font-weight: 500;
    }

    .hamburger {
        display: block;
    }

    .section {
        padding: 60px 0;
    }

    .header-inner {
        height: var(--header-height-sp);
    }
}

/* Mobile (Below 600px) */
@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* ==========================================================================
   Page Specific Styles
   ========================================================================== */

/* --- Hero (index.html) --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-primary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    /* Forced Centering */
    gap: 20px;
    width: 100%;
    margin-bottom: 15px;
}

.btn {
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 20px rgba(78, 158, 249, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(78, 158, 249, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}

/* Hide Close Button on Desktop */
.mobile-close-btn {
    display: none;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
/* Tablet & Mobile (Below 1000px) */
@media (max-width: 999px) {
    .capsule-nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 20px;
        width: 90%;
        max-width: 90%;
        position: relative;
        /* Ensure relative for absolute centering */
    }

    /* Hide PC Nav */
    .global-nav {
        position: fixed;
        top: 0;
        right: -120%;
        /* 100% -> 120% to ensure hidden */
        width: 90%;
        /* 85% -> 90% */
        max-width: 450px;
        /* 400px -> 450px */
        height: auto;
        max-height: 95vh;
        /* Prevent overflow */
        overflow-y: auto;
        /* Allow scrolling if content is tall */
        background-color: rgba(255, 255, 255, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        /* Removed center */
        align-items: center;
        transition: right 0.3s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        padding: 60px 40px 30px;
        /* Top padding for close button space, bottom 30px */
        display: flex;
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 20px;
    }

    [data-theme="dark"] .global-nav {
        background-color: rgba(2, 28, 59, 0.9);
    }

    .global-nav.active {
        right: 0;
    }

    /* Show Close Button in Mobile Menu */
    .mobile-close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--color-text);
        cursor: pointer;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        padding: 0;
    }

    .global-nav a {
        font-size: 1.2rem;
    }

    .nav-btn-phone {
        margin-top: 20px;
    }

    .theme-switch {
        margin-right: 0;
        /* Remove margin as it's now on the right */
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        /* Ensure it stays on the right */
        order: 3;
    }

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        position: relative;
        /* Absolute centering */
        left: auto;
        transform: none;
        z-index: 100;
        border: none;
        background: none;
        cursor: pointer;
        order: 2;
        margin-left: auto;
        margin-right: -35px;
        /* 15px -> 0 */
        flex-direction: column;
        /* Ensure lines stack vertically */
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--color-text);
        margin: 4px 0;
        /* Adjusted margin for better spacing */
        transition: all 0.3s ease;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-text-light);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-family: var(--font-en);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-text-light), transparent);
}

/* --- AI Solutions Section --- */
.ai-section {
    padding: 100px 0;
}

.ai-panel {
    padding: 80px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.terminal-window {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e5e5;
    overflow: hidden;
    margin: 40px auto;
    text-align: left;
    max-width: 700px;
    font-family: 'Courier New', Courier, monospace;
}

.terminal-header {
    background: #efefef;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e5e5e5;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 20px;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
    min-height: 120px;
}

.prompt {
    color: var(--color-primary);
    margin-right: 10px;
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.2em;
    background: var(--color-primary);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.ai-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 40px auto 0;
    color: var(--color-text-light);
}

/* --- Works Section --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 60px;
    margin-bottom: 60px;
}

.work-card {
    display: block;
    position: relative;
}

.work-thumb {
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    margin-bottom: 25px;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(5px);
}

.work-view {
    color: #fff;
    border: 1px solid #fff;
    padding: 10px 30px;
    border-radius: 30px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.work-card:hover .work-thumb img {
    transform: scale(1.05);
}

.work-card:hover .work-overlay {
    opacity: 1;
}

.work-card:hover .work-view {
    transform: translateY(0);
}

.work-title {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.work-card:hover .work-title {
    color: var(--color-primary);
}

.work-cat {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.works-more {
    text-align: center;
    margin-top: 60px;
}

/* --- Service Section (Redesigned) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-item {
    padding: 50px 30px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 25px;
}

.service-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* --- About (about.html) - Sticky Layout --- */
.sticky-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    padding-bottom: 100px;
}

.sticky-side {
    flex: 1;
    position: sticky;
    top: 120px;
    height: fit-content;
}

.sticky-inner {
    text-align: left;
}

.about-hero-img {
    border-radius: var(--radius-card);
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
    object-fit: cover;
    aspect-ratio: 1/1;
    width: 100%;
}

.sticky-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.sticky-subtitle {
    color: var(--color-primary);
    font-family: var(--font-en);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.scroll-side {
    flex: 1.2;
    padding-top: 50px;
}

.scroll-item {
    margin-bottom: 100px;
    padding: 40px;
    background: var(--color-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.scroll-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.scroll-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-family: var(--font-en);
}

.scroll-item p {
    margin-bottom: 20px;
    color: var(--color-text-light);
    line-height: 2;
}

@media (max-width: 768px) {
    .sticky-layout {
        flex-direction: column;
    }

    .sticky-side {
        position: static;
        width: 100%;
    }

    .about-hero-img {
        aspect-ratio: 16/9;
    }

    .scroll-side {
        width: 100%;
        padding-top: 0;
    }
}

/* --- Flow (flow.html) - Glowing Timeline --- */
.flow-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 40px;
    /* Aligns with marker center */
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px var(--color-primary);
}

/* Glowing progress bar (simulated with gradient for now) */
.timeline-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    /* Example height */
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    box-shadow: 0 0 15px var(--color-primary);
    opacity: 0.8;
}

.flow-step {
    display: flex;
    margin-bottom: 60px;
    position: relative;
    align-items: flex-start;
}

.step-marker {
    width: 80px;
    height: 80px;
    background: var(--color-bg);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 2;
    box-shadow: 0 0 20px rgba(78, 158, 249, 0.3);
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.flow-step:hover .step-marker {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 30px var(--color-primary);
}

.step-body {
    margin-left: 40px;
    flex: 1;
    padding: 30px;
    position: relative;
    /* Glassmorphism applied via class glass-panel */
    transition: transform 0.3s ease;
}

.flow-step:hover .step-body {
    transform: translateX(10px);
}

.step-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-family: var(--font-en);
}

.step-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.5;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .step-marker {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }

    .step-body {
        margin-left: 20px;
        padding: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 15px;
        /* Add gap for spacing between stacked buttons */
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}



.read-more {
    font-size: 0.9rem;
    text-decoration: underline;
    font-family: var(--font-en);
}

@media (max-width: 600px) {
    .post-item {
        flex-direction: column;
        gap: 20px;
    }

    .post-thumb {
        width: 100%;
    }
}

/* --- Contact (contact.html) --- */
/* --- Contact Form (WordPress / Contact Form 7 Style) --- */
.contact_form {
    max-width: 700px;
    margin: 0 auto;
    margin-top: 50px;
    font-family: var(--font-ja);
}

.wpcf7-form p {
    margin-bottom: 30px;
}

.wpcf7-form>p:first-of-type {
    margin-top: 30px;
}

.wpcf7-form label {
    display: block;
    width: 100%;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.wpcf7-form em {
    color: #cc0000;
    font-style: normal;
    margin-left: 5px;
    font-size: 0.9rem;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
    margin-top: 8px;
}

/* Input & Textarea Styles */
.wpcf7-text,
.wpcf7-textarea,
.wpcf7-email {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--color-border);
    background-color: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    border-radius: 0;
    /* Sharp edges for modern look */
    -webkit-appearance: none;
    appearance: none;
    /* Remove default styling on iOS */
}

.wpcf7-text:focus,
.wpcf7-textarea:focus,
.wpcf7-email:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.wpcf7-textarea {
    height: 200px;
    resize: vertical;
    line-height: 1.6;
}

/* Submit Button Style */
.wpcf7-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    padding: 16px 0;
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wpcf7-submit:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wpcf7-submit:disabled {
    background-color: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --- Page Title Section (Modern Redesign) --- */
.page-title-section {
    position: relative;
    padding: 180px 0 100px;
    /* Increased top padding for header space */
    background-image: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
    text-align: center;
    overflow: hidden;
    margin-bottom: 60px;
}

[data-theme="dark"] .page-title-section {
    background-image: linear-gradient(120deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.page-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    /* Bold/Black */
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 0.1em;
    color: var(--color-text);
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
}

.page-title span {
    display: block;
    font-size: 1rem;
    font-weight: normal;
    font-family: var(--font-ja);
    margin-top: 15px;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Breadcrumbs Bar integrated */
.breadcrumb-Bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px 0;
    backdrop-filter: blur(8px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

[data-theme="dark"] .breadcrumb-Bar {
    background-color: rgba(0, 0, 0, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered breadcrumbs */
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    font-family: var(--font-en);
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    text-transform: uppercase;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li+li::before {
    content: '/';
    margin: 0 15px;
    color: var(--color-border);
    font-size: 0.7rem;
}

.breadcrumbs a {
    color: var(--color-text-light);
    transition: color 0.3s ease;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Response Message */
.wpcf7-response-output {
    margin-top: 30px;
    padding: 15px;
    border: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
}

.contact-info {
    text-align: center;
    margin-top: 60px;
    color: var(--color-accent-dark);
}

/* --- Privacy (privacy.html) --- */
.policy-content {
    max-width: 800px;
    margin: 0 auto 60px auto;
}

.policy-content h2 {
    font-size: 1.2rem;
    margin-top: 40px;
    margin-bottom: 20px;
    font-family: var(--font-ja);
}

.policy-content p {
    margin-bottom: 20px;
    color: var(--color-accent-dark);
    line-height: 2;
}

/* --- Sitemap (sitemap.html) --- */
.sitemap-list {
    max-width: 600px;
    margin: 0 auto 60px auto;
    border-left: 1px solid var(--color-border);
    padding-left: 40px;
}

.sitemap-list li {
    margin-bottom: 20px;
}

.sitemap-list a {
    font-size: 1.1rem;
    font-family: var(--font-en);
    font-weight: 500;
}

/* --- Works (index.html) --- */
.works-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.work-item {
    background: #fff;
    padding-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
}

.work-thumb {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 15px;
}

.work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

.work-item:hover .work-thumb img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.work-title {
    font-family: var(--font-ja);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    padding: 0;
    margin: 0 0 5px;
    color: var(--color-text);
}

.works-more {
    text-align: center;
    margin-top: 60px;
}

/* --- Links (index.html) --- */
.links-section {
    padding: 0;
    overflow: hidden;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
}

.link-box {
    position: relative;
    flex: 1;
    min-width: 50%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .link-box {
        min-width: 100%;
        height: 350px;
    }
}

.link-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.link-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(126, 127, 131, 0.7);
    /* Deep blue overlay */
    z-index: 2;
    transition: background-color 0.4s ease;
}

.link-box:hover .link-bg {
    transform: scale(1.1);
}

.link-box:hover::after {
    background: rgba(70, 71, 73, 0.5);
}

.link-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.link-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.15em;
    color: #fff;
}

.link-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.link-btn {
    display: inline-block;
    padding: 14px 50px;
    border: 2px solid #fff;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    transition: all 0.4s ease;
}

.link-box:hover .link-btn {
    background: #fff;
    color: #003366;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Single Post (single-post.html)
   ========================================================================== */
.single-post-container {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 100px;
}

/* Article Header */
.article-header {
    margin-bottom: 40px;
    text-align: center;
}

.single-meta {
    justify-content: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.article-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-ja);
}

/* Thumbnail */
.article-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-family: var(--font-en);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 60px;
}

/* Post Content */
.post-content {
    font-family: var(--font-ja);
    color: var(--color-text);
    line-height: 2;
    font-size: 1rem;
    margin-bottom: 80px;
}

.post-content h2 {
    font-size: 1.5rem;
    margin-top: 60px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
}

.post-content h3 {
    font-size: 1.25rem;
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 15px;
}

.post-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: #000;
}

.post-content p {
    margin-bottom: 30px;
}

.post-content ul,
.post-content ol {
    margin-bottom: 30px;
    padding-left: 20px;
    list-style: disc;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background-color: #f9f9f9;
    font-style: italic;
    border-left: 4px solid #000;
}

.post-content blockquote p {
    margin-bottom: 10px;
}

.post-content cite {
    display: block;
    text-align: right;
    font-size: 0.9rem;
    color: var(--color-accent-dark);
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 60px;
    border-top: 1px solid var(--color-border);
    gap: 20px;
}

.nav-prev,
.nav-next {
    flex: 1;
    max-width: 40%;
}

.nav-next {
    text-align: right;
}

.nav-prev a,
.nav-next a {
    display: block;
}

.nav-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: var(--color-accent-light);
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.nav-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-prev a:hover .nav-label,
.nav-prev a:hover .nav-title,
.nav-next a:hover .nav-label,
.nav-next a:hover .nav-title {
    color: var(--color-accent-dark);
}

.nav-btn-list a {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text);
    transition: all 0.3s ease;
}

.nav-btn-list a:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

@media (max-width: 600px) {
    .post-navigation {
        flex-direction: column;
        gap: 30px;
    }

    .nav-prev,
    .nav-next {
        max-width: 100%;
        width: 100%;
        text-align: center !important;
    }

    .nav-btn-list {
        order: 3;
    }

    .nav-prev {
        order: 1;
    }

    .nav-next {
        order: 2;
    }
}

/* ==========================================================================
   Page Top Button
   ========================================================================== */
.page-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background-color: #4E9EF9;
    /* User requested #4E9EF9 */
    color: #fff;
    /* User requested white arrow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    z-index: 500;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.page-top.active {
    opacity: 1;
    visibility: visible;
}

.page-top i {
    transition: transform 0.3s ease;
}

.page-top:hover {
    background-color: #3b8cd6;
    /* Slightly darker for hover */
    transform: translateY(-3px);
}

.page-top:hover i {
    transform: translateY(-5px);
}

[data-theme="dark"] .page-top {
    background-color: #2596BB;
}

@media (max-width: 600px) {
    .page-top {
        right: 20px;
        bottom: 20px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
    margin-bottom: 60px;
    /* Added bottom margin */
    font-family: var(--font-en);
}

.page-num,
.page-numbers:not(.next):not(.prev) {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.page-num:hover,
.page-num.current,
.page-numbers:not(.next):not(.prev):hover,
.page-numbers.current {
    background-color: var(--color-primary);
    /* Changed to Blue */
    color: #fff;
    border-color: var(--color-primary);
    /* Changed to Blue */
}

.page-dots {
    font-size: 1rem;
    color: var(--color-accent-light);
    margin: 0 5px;
    letter-spacing: 2px;
}

.page-next,
.page-numbers.next,
.page-numbers.prev {
    margin-left: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.page-numbers.prev {
    margin-left: 0;
    margin-right: 20px;
}

.page-next:hover,
.page-numbers.next:hover,
.page-numbers.prev:hover {
    color: var(--color-accent-light);
}

@media (max-width: 600px) {
    .pagination {
        gap: 5px;
        margin-top: 60px;
    }

    .page-num,
    .page-numbers:not(.next):not(.prev) {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .page-next,
    .page-numbers.next,
    .page-numbers.prev {
        margin-left: 10px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumb-container {
    height: 30px;
    background-color: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
    line-height: 30px;
    /* Center text vertically */
}

.breadcrumbs {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.75rem;
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    color: #999;
    text-transform: uppercase;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

/* --- Price / Flow Section (Emergency Overwrite) --- */
.price-flow-section {
    padding: 80px 0;
    background-color: #ffffff !important;
    /* Changed to white */
}

.pf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.pf-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
    padding: 50px 40px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    /* Large radius */
    border: 1px solid var(--color-primary);
    /* Border visible by default */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pf-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(78, 158, 249, 0.3);
    /* Glow Effect Light */
    /* border-color is already primary */
}

[data-theme="dark"] .pf-card:hover {
    box-shadow: 0 0 30px rgba(37, 150, 187, 0.3);
    /* Glow Effect Dark */
}

/* Dark Mode Background for .pf-content (applied to card) */
[data-theme="dark"] .pf-card {
    background-color: #021C3B;
    /* Same as footer */
}

.pf-title {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-en);
    /* Gradient like .section-title */
    background: linear-gradient(135deg, var(--color-text), var(--color-primary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--color-text);
    /* Fallback */
    margin-bottom: 15px;
    line-height: 1;
}

.pf-desc {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 30px;
    line-height: 1.6;
}

.pf-btn {
    display: inline-block;
    background-color: #4E9EF9;
    /* Specified Blue */
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-ja);
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

/* Dark Mode Button Color */
[data-theme="dark"] .pf-btn {
    background-color: #2596BB;
    /* Matches header phone button */
}

.pf-card:hover .pf-btn {
    background-color: #3b8cd6;
}

[data-theme="dark"] .pf-card:hover .pf-btn {
    background-color: #1f7fa0;
    /* Slightly darker shade for hover */
}

/* --- Footer Dynamic Color Override --- */
:root {
    /* --footer-bg-light: #4E9EF9;  Removed as we use gradient */
    --footer-bg-dark: #021C3B;
}

.footer {
    background: linear-gradient(to top, #accbee 0%, #e7f0fd 100%) !important;
    transition: background 0.3s ease;
}

[data-theme="dark"] .footer {
    background: var(--footer-bg-dark) !important;
}

.footer-content,
.footer a,
.copyright {
    color: #6991c7 !important;
}

[data-theme="dark"] .footer-content,
[data-theme="dark"] .footer a,
[data-theme="dark"] .copyright {
    color: #fff !important;
}

/* Footer Logo Dark Mode Fix */
.footer-logo img {
    transition: filter 0.3s ease;
}

[data-theme="dark"] .footer-logo img {
    filter: brightness(0) invert(1);
}

.footer-tagline,
.info-label,
.footer-info p {
    color: #6991c7 !important;
}

[data-theme="dark"] .footer-tagline,
[data-theme="dark"] .info-label,
[data-theme="dark"] .footer-info p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-sub-nav a {
    color: #6991c7 !important;
}

[data-theme="dark"] .footer-sub-nav a {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-sub-nav a:hover {
    color: #6991c7 !important;
    text-decoration: underline;
}

[data-theme="dark"] .footer-sub-nav a:hover {
    color: #fff !important;
}

/* --- Service Section Adjustment --- */
.service-section {
    padding: 30px 0 60px;
}

.breadcrumbs li+li::before {
    content: '/';
    margin: 0 15px;
    color: #ddd;
    font-size: 0.7rem;
}

.breadcrumbs a {
    color: #777;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #111;
}

.breadcrumbs li:last-child {
    color: #333;
    font-weight: 500;
}

/* PRICEカードのレイアウト強制上書き */
.pricing-grid {
    display: grid !important;
    /* PCでは4列、入り切らない分は自動折り返し */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    padding: 60px 0 !important;
    align-items: start !important;
}

.pricing-card {
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: 24px !important;
    padding: 50px 30px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: 450px !important;
    /* 高さを統一 */
}

.pricing-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--color-primary) !important;
    box-shadow: var(--shadow-glow) !important;
}

.pricing-title {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    margin-bottom: 25px !important;
    letter-spacing: 0.1em !important;
}

.pricing-cost {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--color-primary) !important;
    font-family: var(--font-en) !important;
    margin-bottom: 20px !important;
}

.pricing-divider {
    width: 40px !important;
    height: 1px !important;
    background: var(--color-text) !important;
    opacity: 0.2 !important;
    margin-bottom: 30px !important;
}

.pricing-features {
    text-align: left !important;
    width: 100% !important;
    font-size: 0.95rem !important;
}

.pricing-features li {
    margin-bottom: 15px !important;
    position: relative;
    padding-left: 20px;
    line-height: 1.4 !important;
}

.pricing-features li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

/* --- Works Page Specific Spacing --- */
.page-works .works-grid {
    margin-top: 30px;
}

.page-works .pagination {
    margin-bottom: 60px;
}

/* --- Contact Page Specific Spacing --- */
/* --- Contact Page Specific Spacing --- */
.contact_form {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
    /* Keeping bottom margin as requested */
}

/* Submit Button Override */
.wpcf7-submit {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
}

.wpcf7-submit:hover {
    background-color: #fff !important;
    color: var(--color-primary) !important;
}

.wpcf7-form {
    padding-left: 15px;
    padding-right: 15px;
}

/* --- Mobile Spacing for Inner Pages (Forced) --- */
@media (max-width: 768px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Ensure section containers respect this */
    .section.container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* --- Post List (Modern Redesign) --- */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 60px;
    max-width: 900px;
    /* Limit width as requested */
    margin-left: auto;
    margin-right: auto;
}

.post-item {
    display: flex;
    align-items: flex-start;
    /* Aligns content to top */
    gap: 40px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.post-thumb {
    flex: 0 0 300px;
    /* Fixed width for desktop */
    width: 300px;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-item:hover .post-thumb img {
    transform: scale(1.05);
}

.post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-family: var(--font-en);
    font-size: 0.85rem;
    color: var(--color-text-light);
    letter-spacing: 0.05em;
}

.post-cat {
    text-transform: uppercase;
    color: var(--color-primary);
    font-weight: 600;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: var(--font-ja);
}

.post-title a {
    color: var(--color-text);
    transition: color 0.3s ease;
    text-decoration: none;
}

.post-title a:hover {
    color: var(--color-primary);
}

.post-excerpt {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-block;
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    position: relative;
    padding-bottom: 5px;
    letter-spacing: 0.1em;
    width: fit-content;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.post-item:hover .read-more::after {
    width: 100%;
}

.post-item:hover .read-more {
    color: var(--color-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 20px;
    }

    .post-thumb {
        width: 100%;
        flex: auto;
        aspect-ratio: 16/9;
    }

    .post-title {
        font-size: 1.25rem;
    }
}

/* 制作実績グリッドの強制修正 */
/* 制作実績グリッドの強制修正 */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

/* モバイル対応：タブレットやスマホでは列数を調整 */
@media (max-width: 999px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
        /* タブレットは2列 */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .works-grid {
        grid-template-columns: 1fr;
        /* スマホは1列 */
    }
}

/* カード全体のリンクブロック化 */
.work-card {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    /* 全てのカードの高さを揃える */
    text-decoration: none;
}

/* 画像部分の比率固定 */
.work-thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    /* 比率を4:3で固定 */
    overflow: hidden;
    margin-bottom: 20px;
}

/* タイトル部分の制御 */
.work-title {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 8px;
    height: 3em;
    /* 2行分までの高さを確保 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2行を超える場合は三点リーダーを表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color-text);
}

/* カテゴリのフォントサイズ調整 */
.work-cat {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: auto;
    /* タイトルが短くてもカテゴリを一番下に配置 */
}