/* 
 * Langrowb Corporate Site Styles - Light Theme
 * Color Theme: #29b9f0 (Cyan), #d4af37 (Gold/Yellow), Light Mode
 */

:root {
    --primary: #29b9f0;
    --primary-glow: rgba(41, 185, 240, 0.4);
    --secondary: #0a6e9c;
    /* Deep Cyan/Azure optimized for readability on white, connecting to the main brand blue */

    /* Light Theme Colors */
    --bg-main: #ffffff;
    --bg-alt: #f4f6fc;
    --bg-card: #ffffff;

    --text-main: #040814;
    /* Deep premium navy instead of plain black */
    --text-muted: #334155;
    /* Darker, more readable steel gray */
    --text-reverse: #ffffff;

    --border: #e2e8f0;
    --shadow-light: rgba(10, 53, 92, 0.05);
    /* Soft cyan-navy tint shadow */
    --shadow-medium: rgba(41, 185, 240, 0.1);

    --font-en: 'Inter', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
}

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

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

body {
    font-family: var(--font-ja);
    font-weight: 500;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.85;
    font-size: 1.25rem;
    overflow-x: hidden;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-ja);
    font-weight: 700;
    line-height: 1.4;
    color: #040814;
    /* Cinematic dark navy */
}

.en {
    font-family: var(--font-en);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Layout Utilities */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 160px 0;
    /* Massive premium whitespace (art-gallery style) */
}

.bg-alt {
    background-color: var(--bg-alt);
}

.mt-4 {
    margin-top: 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 4.2rem;
    color: var(--primary);
    margin-bottom: 40px;
    letter-spacing: 1px;
}

.section-desc {
    display: inline-block;
    padding: 6px 24px;
    background-color: var(--secondary); /* Deep cyan */
    color: #ffffff; /* White text */
    border: none;
    border-radius: 50px; /* シンプルな角丸（ピル型）に変更 */
    font-size: 1.05rem; /* Slightly smaller for a label feel */
    font-weight: 600;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 15px rgba(10, 110, 156, 0.2);
}

/* Base Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #29b9f0, #1b8ebf);
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
    border: none;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.25) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: btn-shine 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-shine {
    0%, 80% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: #ffffff;
    box-shadow: 0 1px 15px rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    padding: 15px 0;
    box-shadow: 0 2px 10px var(--shadow-light);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 55px;
    display: block;
    object-fit: contain;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-list a:not(.btn) {
    font-family: var(--font-en);
    font-size: 1.15rem;
    font-weight: 600;
}

.nav-list a:not(.btn):hover {
    color: var(--primary);
}

/* ヘッダー内CTAボタンはコンパクトに */
.nav-list .btn-large {
    padding: 10px 24px;
    font-size: 1rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
}

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

/* Unified ambient background wrapper */
.dark-atmosphere {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #040814;
    z-index: 0;
}

/* Top Left: Calm Cyan Oceanic Glow */
.dark-atmosphere::before {
    content: '';
    position: absolute;
    top: -20vh;
    left: -30vw;
    width: 150vw;
    height: 150vw;
    background: radial-gradient(circle, rgba(41, 185, 240, 0.35) 0%, rgba(10, 53, 92, 0.4) 40%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: jellyfishBlue 20s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
    pointer-events: none;
    z-index: 0;
}

/* Bottom Right: Corporate Gold with a hint of Magenta sunset */
.dark-atmosphere::after {
    content: '';
    position: absolute;
    bottom: -20vh;
    right: -20vw;
    width: 120vw;
    height: 120vw;
    background: radial-gradient(circle, rgba(220, 163, 17, 0.3) 0%, rgba(200, 0, 100, 0.15) 35%, transparent 70%);
    filter: blur(80px);
    border-radius: 50%;
    animation: jellyfishGold 24s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate-reverse;
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    /* Styles moved to .dark-atmosphere */
}

/* Jellyfish-like movement: mostly slow drifting, occasionally faster bursts/scales */
@keyframes jellyfishBlue {
    0% { transform: translate(0, 0) scale(1); }
    30% { transform: translate(2%, 3%) scale(1.05); }   /* Slow drift */
    40% { transform: translate(-3%, 8%) scale(1.2); }   /* Quick burst */
    70% { transform: translate(4%, -2%) scale(1.1); }   /* Slow drift */
    80% { transform: translate(12%, 5%) scale(1.3); }   /* Quick burst */
    100% { transform: translate(8%, 12%) scale(1.15); }
}

@keyframes jellyfishGold {
    0% { transform: translate(0, 0) scale(1.1); }
    25% { transform: translate(-3%, -4%) scale(1.05); } /* Slow drift */
    35% { transform: translate(-10%, -2%) scale(1.3); } /* Quick burst */
    65% { transform: translate(-7%, -8%) scale(1.15); } /* Slow drift */
    75% { transform: translate(-15%, -12%) scale(1.35); } /* Quick burst */
    100% { transform: translate(-8%, -15%) scale(1.2); }
}

#hero-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Smooth organic fog fade - no solid black blocker */
    background: linear-gradient(to bottom,
            rgba(4, 8, 20, 0) 0%,
            rgba(4, 8, 20, 0) 60%,
            rgba(4, 8, 20, 0.3) 80%,
            rgba(4, 8, 20, 0.8) 100%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 80px auto 0;
    /* Pushed block 80px down from center */
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title .en {
    display: block;
    font-size: 9.5rem;
    /* User specified */
    font-weight: 600;
    /* User specified */
    /* Animated Gradient Text (Wandering Spotlight / Pulse Wave) */
    background: radial-gradient(circle, #ffffff 0%, #b3e7ff 15%, var(--primary) 45%, #086b9c 100%);
    background-size: 250% 250%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textSpotlight 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    /* Slowed down from 4s */
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 40px rgba(41, 185, 240, 0.4);
    /* Cyan glow mirroring the image */
}

@keyframes textSpotlight {
    0% {
        background-position: 0% 0%;
    }

    20% {
        background-position: 100% 20%;
    }

    40% {
        background-position: 60% 100%;
    }

    60% {
        background-position: 10% 80%;
    }

    80% {
        background-position: 80% 40%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.hero-title .ja {
    display: block;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.hero-desc {
    font-size: 1.15rem;
    /* User specified */
    color: #ffffff;
    font-weight: 600;
    /* User specified */
    margin-bottom: 40px;
    letter-spacing: 0.05em;
    opacity: 0.95;
    line-height: 1.8;
}

/* Problem Section - Cinematic Void */
.problem {
    text-align: center;
    background-color: transparent;
    /* Uses .dark-atmosphere ambient background */
    padding: 180px 0;
    /* Massive padding for emotional tension */
    position: relative;
    z-index: 1;
}

.problem-box {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
}

.problem-box p {
    margin-bottom: 50px;
    color: #ffffff;
    /* User requested pure white text here too */
    font-size: 1.4rem;
    font-weight: 600;
    /* Increased assertion weight */
    line-height: 2.2;
    letter-spacing: 0.1em;
}

.problem-box p:last-child {
    margin-bottom: 0;
}

.highlight-text {
    font-size: 2.0rem !important;
    /* Reduced from 2.5rem for better balance */
    font-weight: 700;
    line-height: 1.8;
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.05em;
}

/* Answer Section - The Breakthrough */
.answer {
    text-align: center;
    background-color: #ffffff;
    /* Piercing white light */
    padding: 160px 0;
}

.section-subtitle {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #111;
}

.glow-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 50px;
}

.animated-underline {
    position: relative;
    display: inline-block;
    max-width: 100%;
    z-index: 1;
}

.animated-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    /* Lowered precisely so there is a ~3px gap between text and line */
    width: 0;
    height: 8px;
    /* Thick highlighter-style line */
    background-color: rgba(255, 220, 0, 0.7);
    /* Vivid yellow highlighter */
    border-radius: 4px;
    z-index: -1;
}

.reveal.active .animated-underline::after {
    animation: drawUnderlineLoop 6s infinite;
    animation-delay: 0.6s;
    animation-fill-mode: backwards;
}

@keyframes drawUnderlineLoop {
    0% {
        width: 0;
        opacity: 1;
    }

    15% {
        width: 100%;
        opacity: 1;
    }

    /* Drawn fully */
    80% {
        width: 100%;
        opacity: 1;
    }

    /* Hold visibly */
    90% {
        width: 100%;
        opacity: 0;
    }

    /* Fade out smoothly */
    95% {
        width: 0;
        opacity: 0;
    }

    /* Reset instantly while hidden */
    100% {
        width: 0;
        opacity: 1;
    }

    /* Ready for next loop */
}

/* Services */
.services {
    position: relative;
    background-color: #ffffff;
}

/* Subtle ambient aura for white areas */
.services::before {
    content: '';
    position: absolute;
    top: 5%;
    right: 0%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(41, 185, 240, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.category-title {
    font-size: 2.4rem;
    margin-bottom: 40px;
    color: var(--text-main);
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}

.category-lead {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footnote-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.category-desc {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 60px;
}

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

.cards.cards-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 768px) {
    .cards {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 25px; /* give room for potential scrollbar */
        margin: 0 -24px;
        padding-left: 24px;
        padding-right: 24px;
        scrollbar-width: none;
        gap: 20px;
    }
    .cards::-webkit-scrollbar {
        display: none;
    }
    .cards.cards-2x2 {
        display: flex;
        grid-template-columns: none;
    }
}

.card {
    background: linear-gradient(145deg, #ffffff 0%, #f7fbff 100%);
    padding: 60px 40px;
    /* Immersive inner spacing */
    border-radius: 16px;
    border: 1px solid rgba(41, 185, 240, 0.08);
    /* Very subtle cyan boundary */
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(41, 185, 240, 0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Accent Top Line */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1b8ebf, #29b9f0);
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Giant Watermark Typography */
.card::before {
    content: attr(data-number);
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.03;
    line-height: 1;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease;
}

@media (max-width: 768px) {
    .card {
        padding: 40px 25px;
        flex: 0 0 calc(85vw - 48px); /* Take up 85% of screen to show next card */
        scroll-snap-align: center;
    }
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px var(--shadow-medium);
    border-color: rgba(41, 185, 240, 0.25);
}

.card:hover::after {
    opacity: 1;
}

.card:hover::before {
    transform: scale(1.05) translate(-10px, -10px);
    opacity: 0.06;
}

.card h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card-subtitle {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.card p:not(.card-subtitle) {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Product Showcase */
.product-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 60px;
    /* Increased gap */
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(41, 185, 240, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 6px 20px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(41, 185, 240, 0.05);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.product-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px var(--shadow-medium);
}

.product-item.reverse {
    flex-direction: row-reverse;
}

.product-img {
    flex: 1;
    min-width: 40%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Video Mockup Window Design */
.video-wrapper {
    position: relative;
    padding: 20px;
}

.video-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(41, 185, 240, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.mockup-window {
    width: 100%;
    background: #111116; /* Clean dark background */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(41, 185, 240, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 1;
    /* Subtle float effect */
    animation: float-mockup 6s ease-in-out infinite;
}

.product-item.reverse .mockup-window {
    animation-delay: -3s;
}

@keyframes float-mockup {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); box-shadow: 0 35px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(41, 185, 240, 0.15); }
}

.mockup-header {
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
}

.mockup-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-header .dot.close { background-color: #ff5f56; }
.mockup-header .dot.minimize { background-color: #ffbd2e; }
.mockup-header .dot.maximize { background-color: #27c93f; }

.mockup-window.playable {
    cursor: pointer;
}

.mockup-window video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 28px; /* below header */
    left: 0;
    width: 100%;
    height: calc(100% - 28px);
    background: rgba(0, 0, 0, 0.04); /* ほぼ透明 - サムネイルを明るく見せる */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}

.mockup-window:hover .video-overlay {
    background: rgba(0, 0, 0, 0.18); /* ホバー時だけ少し暗くしてボタンを際立てる */
}

.play-button-glass {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.video-overlay .play-icon {
    width: 32px;
    height: 32px;
    fill: white;
    margin-left: 4px; /* visually center the triangle */
}

.mockup-window:hover .play-button-glass {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.25);
}

.mockup-window.is-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.product-info {
    flex: 1;
    padding: 40px;
}

.product-info h4 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 25px;
}

.product-info h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.product-info span {
    display: block;
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-info p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Journey Timeline */
.journey {
    position: relative;
    overflow: hidden;
}

.journey .container {
    position: relative;
    z-index: 2;
}

/* Scattered Image Collage for Journey Section */
.journey-collage {
    position: absolute;
    top: auto;
    bottom: 5%;
    right: -2%;
    width: 55%;
    aspect-ratio: 1.2 / 1;
    max-width: 650px;
    z-index: 0;
    pointer-events: none;
}

.journey-collage img {
    position: absolute;
    width: 45%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.08); /* slight glossy edge */
    opacity: 0;
}

/* Top Left (Night - 1st) */
.journey-collage .collage-1 {
    top: -5%;
    left: 5%;
    z-index: 1;
    animation: collage-seq-1 12s infinite;
}

/* Middle Right (Dawn - 2nd) */
.journey-collage .collage-2 {
    top: 25%;
    left: 45%;
    z-index: 2;
    animation: collage-seq-2 12s infinite;
}

/* Bottom Left (Bright/Future - 3rd) */
.journey-collage .collage-3 {
    top: 55%;
    left: 15%;
    z-index: 3;
    animation: collage-seq-3 12s infinite;
}

@keyframes collage-seq-1 {
    0%, 2% { opacity: 0; filter: blur(10px); transform: rotate(-4deg) scale(0.9); }
    12%, 93% { opacity: 0.9; filter: blur(0); transform: rotate(-4deg) scale(1); }
    100% { opacity: 0; filter: blur(10px); transform: rotate(-4deg) scale(0.9); }
}

@keyframes collage-seq-2 {
    0%, 33.3% { opacity: 0; filter: blur(10px); transform: rotate(5deg) scale(0.9); }
    43.3%, 93% { opacity: 0.9; filter: blur(0); transform: rotate(5deg) scale(1); }
    100% { opacity: 0; filter: blur(10px); transform: rotate(5deg) scale(0.9); }
}

@keyframes collage-seq-3 {
    0%, 66.6% { opacity: 0; filter: blur(10px); transform: rotate(-2deg) scale(0.9); }
    76.6%, 93% { opacity: 0.9; filter: blur(0); transform: rotate(-2deg) scale(1); }
    100% { opacity: 0; filter: blur(10px); transform: rotate(-2deg) scale(0.9); }
}

.timeline {
    position: relative;
    max-width: 680px;
    margin: 0 auto 0 50px;
    /* Left align but give it slight padding from edge */
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 80px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-main);
    border: 2px solid var(--border);
    z-index: 1;
    transition: all 0.3s;
}

/* Sequential glowing animation */
@keyframes timeline-glow-seq {
    0% {
        background: var(--bg-main);
        border-color: var(--border);
        box-shadow: none;
        transform: scale(1);
    }
    5%, 20% {
        background: var(--primary);
        border-color: var(--primary);
        box-shadow: 0 0 15px rgba(41, 185, 240, 0.6);
        transform: scale(1.2);
    }
    30%, 100% {
        background: var(--bg-main);
        border-color: var(--border);
        box-shadow: none;
        transform: scale(1);
    }
}

.timeline-item:nth-child(1) .timeline-dot {
    animation: timeline-glow-seq 12s infinite 0s;
}
.timeline-item:nth-child(2) .timeline-dot {
    animation: timeline-glow-seq 12s infinite 4s;
}
.timeline-item:nth-child(3) .timeline-dot {
    animation: timeline-glow-seq 12s infinite 8s;
}

.timeline-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* Cyan */
    background: #F4F6FC;
    /* Very soft blue-grey */
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.timeline-content h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
}

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

.principle-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 5px 15px var(--shadow-light);
}

@media (max-width: 768px) {
    .principles-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }
    .principle-card {
        padding: 30px 20px;
    }
}

.principle-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 25px;
}

.principle-num {
    font-family: var(--font-en);
    font-size: 8rem;
    font-weight: 800;
    color: var(--bg-alt);
    position: absolute;
    top: -30px;
    left: -15px;
    line-height: 1;
    z-index: 0;
}

.principle-card h4 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    color: var(--primary);
}

.principle-card span {
    display: block;
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.principle-card p {
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
    text-align: left;
}

/* Message */
/* Message Section Aura */
.message {
    position: relative;
    background-color: var(--bg-alt);
}

.message::before {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 0%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 163, 17, 0.05) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
}

.message-wrapper {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    /* Changed to flex-start since profile is at bottom right now */
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-light);
    border: 1px solid var(--border);
}

.message-photo {
    flex: 1;
    max-width: 320px;
    position: sticky;
    top: 150px;
    margin-top: 250px;
    margin-left: 50px;
    margin-bottom: 50px;
}

.message-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.message-text {
    flex: 2;
    padding: 50px;
}

.message-catch {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 30px;
}

.message-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

.message-strong {
    color: var(--text-main) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 40px 0 !important;
}

.message-sign {
    margin-bottom: 30px;
}

.message-sign strong {
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}

.profile-compact {
    background: #FFFDF0;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #FFC107;
    margin-top: 0;
}

.profile-compact h4 {
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 1.4rem;
}

.profile-compact p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.8;
}

/* Voice Carousel */
.carousel-container {
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
    margin: 0 50px;
    padding: 30px 0;
}

.carousel-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(33.333% - 20px);
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    align-items: stretch;
}
.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    scroll-snap-align: start;
    opacity: 1;
    transition: all 0.5s ease;
    padding: 35px;
}

@media (max-width: 992px) {
    .carousel-track { grid-auto-columns: calc(50% - 15px); }
}
@media (max-width: 768px) {
    .carousel-btn {
        display: none !important;
    }
    .carousel-track-wrapper {
        margin: 0;
        padding: 15px 0;
    }
    .carousel-track { 
        grid-auto-columns: 100%; 
        gap: 0; 
        padding: 0;
    }
    .carousel-slide { 
        padding: 20px 15px; 
        margin: 0; 
    }

    .carousel-dots {
        display: flex !important;
        margin-top: 20px;
    }
}



.testimonial {
    background: var(--bg-card);
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px var(--shadow-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial .quote-icon {
    font-family: serif;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial p {
    color: var(--text-main);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    line-height: 1.8;
}

.testimonial .author {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    text-align: right;
    margin-top: auto;
}

.carousel-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--shadow-light);
    transition: all 0.3s;
    position: absolute;
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
}

.carousel-btn.prev-btn {
    left: -20px;
}

.carousel-btn.next-btn {
    right: -20px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: background 0.3s;
    border: none;
}

.carousel-dot.active {
    background: var(--primary);
}

/* Our Answer Section Spacing */
.answer-subtitle {
    margin-top: 80px !important;
    margin-bottom: 70px !important;
    font-size: 3.2rem;
}
.answer-middle-text {
    text-align: left;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    margin-bottom: 70px !important;
}

/* Reinvent Statement Typography */
.reinvent-statement {
    margin-top: 0; /* Let answer-middle-text handle the top margin */
    margin-bottom: 20px;
    line-height: 1.4;
}
.reinvent-top {
    font-size: 1.25rem;
    font-weight: 600;
}
.reinvent-bottom {
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 10px;
    display: inline-block;
    white-space: nowrap;
}
.reinvent-ruby-en {
    font-size: 1.2em;
}

@media (min-width: 901px) {
    .reinvent-top {
        font-size: 2.1rem;
    }
    .reinvent-bottom {
        font-size: 2.5rem;
    }
    .reinvent-ruby-en {
        font-size: 1.25em;
    }
}

@media (max-width: 900px) {
    .answer-subtitle {
        margin-top: 50px !important;
        margin-bottom: 50px !important;
        font-size: 1.75rem !important;
    }
    .answer-middle-text {
        margin-bottom: 50px !important;
    }
}

/* Contact Form */
/* Premium Split Contact Box */
.contact-box-premium {
    display: flex;
    flex-direction: column; /* Change to stacked to accommodate many fields */
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 800px; /* Return to typical width for forms */
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 15px 50px var(--shadow-medium);
    border: 1px solid rgba(41, 185, 240, 0.1);
}

.contact-info-panel {
    background: linear-gradient(135deg, #040814 0%, #0a6e9c 100%);
    color: #ffffff;
    padding: 50px 40px;
    position: relative;
    text-align: center;
}

.contact-desc-wrap {
    text-align: center;
}

.contact-info-panel::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(41, 185, 240, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.contact-panel-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-panel-desc {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    position: relative;
    z-index: 1;
}

.contact-form-panel {
    padding: 50px 40px;
    background: #ffffff;
}

.contact-form {
    margin-top: 0;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 10px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 0 !important;
    font-weight: 500 !important;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: var(--primary); /* Optional: Colors checkboxes if browser supports */
}

@media (max-width: 600px) {
    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

.passionate-btn {
    font-size: 1.15rem;
    padding: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 25px var(--primary-glow);
}

.passionate-btn:hover {
    box-shadow: 0 12px 35px var(--primary-glow);
}

.btn-arrow {
    transition: transform 0.3s;
}

.passionate-btn:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .contact-info-panel, .contact-form-panel {
        padding: 40px 30px;
    }
    .contact-info-panel, .contact-desc-wrap {
        text-align: left;
    }
    .contact-panel-title {
        font-size: 1.35rem;
        text-align: left;
    }
    .contact-panel-desc {
        font-size: 0.95rem;
    }
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.required {
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 15px;
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0a5b0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(41, 185, 240, 0.2);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 10px;
}

/* Footer */
.footer {
    position: relative;
    background: var(--text-main);
    color: var(--text-reverse);
    padding: 100px 0 40px;
    overflow: hidden;
}

.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.09; /* Subtle film grain */
    pointer-events: none;
    z-index: 0;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 80px;
}

.footer-info {
    flex: 1;
    order: 1;
}

.footer-logo {
    display: inline-block;
    height: 40px;
    margin-bottom: 25px;
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-sizing: content-box;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-reverse);
}

.footer-info .en {
    font-size: 1rem;
    color: var(--primary);
}

.brand-concept-title {
    color: var(--primary);
    font-family: var(--font-en);
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.company-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-reverse);
}
.brand-concept-name {
    color: #fff;
    font-size: 1.25rem;
}
.brand-concept-sub {
    color: #a0a5b0;
    font-size: 1.1rem;
    display: block;
    margin-top: 10px;
}

/* 2つ目以降のbrand-conceptに区切り線と余白 */
.brand-concept + .brand-concept {
    margin-top: 40px !important;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-table-wrap {
    flex: 1;
    order: 2;
}

.company-table {
    width: 100%;
    border-collapse: collapse;
}

.company-table th,
.company-table td {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.15rem;
    text-align: left;
    color: var(--text-reverse);
    line-height: 1.6;
}

.company-table th {
    color: #a0a5b0;
    width: 120px;
}

.copyright {
    text-align: center;
    color: #a0a5b0;
    font-size: 0.85rem;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-en);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Column Section */
.column-section {
    padding: 100px 0;
}
.column-layout {
    display: flex;
    gap: 100px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.column-img-wrap {
    flex: 0.8;
    min-width: 250px;
    max-width: 400px;
}
.column-text-wrap {
    flex: 1.2;
    min-width: 320px;
    max-width: 680px;
}
.column-label {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 20px;
}
.column-title {
    font-size: 2rem;
    margin-bottom: 25px;
    line-height: 1.5;
    color: var(--text-main);
}
.column-desc {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 20px;
}
.column-highlight {
    border-left: 4px solid var(--primary);
    background: rgba(41, 185, 240, 0.03);
    padding: 20px 25px;
    border-radius: 0 8px 8px 0;
}
.column-highlight p {
    color: var(--text-main);
    font-weight: bold;
    font-size: 1.15rem;
    line-height: 1.8;
    margin: 0;
}

/* Margin Utilities */
.margin-top-large {
    margin-top: 140px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo img {
        height: 36px;
    }

    .nav {
        display: none;
    }

    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #ffffff;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 30px 0;
        z-index: 1000;
        flex-direction: column;
    }

    .nav.active .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 25px;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

    .hero-title .en {
        font-size: 4.0rem;
    }

    .hero-title .ja {
        font-size: 1.35rem;
    }

    .hero-desc {
        font-size: 1.05rem;
    }

    body {
        font-size: 1.0rem;
        line-height: 1.6;
    }

    .section-desc {
        font-size: 0.95rem;
        padding: 6px 20px;
    }

    .category-title {
        font-size: 1.45rem;
    }

    .category-lead {
        font-size: 1.1rem;
    }

    .category-desc {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .card h4 {
        font-size: 1.25rem;
    }

    .card-subtitle {
        font-size: 0.9rem;
    }

    .card p:not(.card-subtitle) {
        font-size: 0.95rem;
    }

    .product-info h4 {
        font-size: 1.4rem;
    }

    .product-info span {
        font-size: 1.0rem;
    }

    .product-info p {
        font-size: 0.95rem;
    }

    .message-catch {
        font-size: 1.3rem;
    }

    .message-strong {
        font-size: 1.15rem;
        margin: 30px 0 !important;
    }

    .profile-compact h4 {
        font-size: 1.1rem;
    }

    .profile-compact p {
        font-size: 0.9rem;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .glow-text {
        font-size: 1.15rem;
        line-height: 1.7;
    }

    .animated-underline {
        display: inline;
    }
    .message-strong .animated-underline::after {
        display: none !important;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .product-item,
    .product-item.reverse {
        flex-direction: column-reverse;
        gap: 0;
    }

    .video-wrapper {
        padding: 0 20px 30px 20px; /* Reduce padding instead of 20px all around */
    }

    .video-wrapper::before {
        display: none; /* Hide fuzzy background aura */
    }

    .mockup-window {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
        animation: none; /* Disable float animation on mobile to keep it crisp */
    }

    .product-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .product-info {
        padding: 30px 20px;
    }

    .message-wrapper {
        flex-direction: column;
    }

    .message-photo {
        max-width: 100%;
        position: static;
        margin: 0 auto 30px auto;
    }

    .message-text {
        padding: 30px 20px;
    }
    .message-text p {
        margin-bottom: 20px;
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .message-text p.message-strong {
        font-size: 1.1rem;
    }

    .footer-grid {
        flex-direction: column;
    }

    .carousel-btn {
        display: none;
    }

    .carousel-slide {
        padding: 20px;
    }

    .problem-box p {
        font-size: 1.15rem;
        line-height: 1.7;
    }
    .highlight-text {
        font-size: 1.05rem !important;
        line-height: 1.8 !important;
        letter-spacing: 0.02em !important;
        margin-bottom: 20px;
    }

    .column-section {
        padding: 60px 0;
    }
    .column-layout {
        flex-direction: column-reverse;
        gap: 35px;
    }
    .column-img-wrap, .column-text-wrap {
        min-width: 100%;
        max-width: 100%;
    }
    .column-title {
        font-size: 1.4rem;
    }

    .column-slider-mobile {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        margin: 25px -24px 15px -24px;
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 5px;
        scrollbar-width: none;
    }
    .column-slider-mobile::-webkit-scrollbar {
        display: none;
    }
    .slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin-bottom: 15px;
        position: relative;
        z-index: 100;
        min-height: 20px;
        width: 100%;
    }
    .slider-dots .dot {
        width: 10px !important;
        height: 10px !important;
        border-radius: 50% !important;
        background: rgba(41, 185, 240, 0.4) !important;
        transition: all 0.3s ease;
        display: inline-block !important;
    }
    .slider-dots .dot.active {
        background: var(--primary) !important;
        width: 24px !important;
        border-radius: 5px !important;
    }
    .column-slider-mobile img {
        width: 85vw;
        max-width: 600px;
        aspect-ratio: 4/3;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        scroll-snap-align: center;
        flex-shrink: 0;
        -webkit-user-drag: none;
        user-select: none;
        pointer-events: none;
    }

    .column-desc {
        font-size: 0.9rem;
        line-height: 1.7;
        margin-bottom: 15px;
    }
    .column-highlight p {
        font-size: 1.05rem;
    }
    
    .margin-top-large {
        margin-top: 80px !important;
    }
    
    /* Fix Journey Collage Overlap on Mobile */
    .journey-collage {
        position: relative;
        width: 80%;
        max-width: 300px;
        margin: 0 auto 40px auto;
        bottom: auto;
        right: auto;
    }

    .timeline {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 20px;
        margin: 0 -24px !important;
        padding: 0 24px 20px 24px;
        border: none;
        scrollbar-width: none;
    }
    .timeline::-webkit-scrollbar {
        display: none;
    }
    .timeline::before,
    .timeline-dot {
        display: none;
    }
    .timeline-item {
        flex: 0 0 85%;
        max-width: 340px;
        scroll-snap-align: center;
        background: #ffffff;
        padding: 24px;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        margin-bottom: 0;
    }
    
    .journey-card-img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 15px 0;
        object-fit: cover;
        aspect-ratio: 16/9;
    }
    .timeline-year {
        display: inline-block;
        font-size: 1.15rem;
        margin-bottom: 8px;
        padding-bottom: 2px;
        border-bottom: 1px solid rgba(41, 185, 240, 0.3); /* Subtle underline substitute for the dot */
    }
    .timeline-content h4 {
        font-size: 1.25rem;
        margin-bottom: 5px;
    }
    .timeline-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .principle-card h4 {
        font-size: 1.25rem;
    }
    .principle-card span {
        font-size: 1.1rem;
    }
    .principle-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .principle-num {
        font-size: 4.5rem;
        top: 0;
        left: 10px;
    }

    .carousel-quote-icon {
        font-size: 2rem;
    }


    .testimonial p {
        font-size: 0.9rem;
        line-height: 1.7;
    }
    .testimonial .author {
        font-size: 0.9rem;
    }
    
    /* Footer Mobile Overrides */
    .footer {
        padding: 50px 0 30px;
    }
    .brand-concept-title {
        font-size: 1.0rem;
        margin-bottom: 10px;
    }
    .company-desc {
        font-size: 0.95rem;
    }
    .brand-concept-name {
        font-size: 1.1rem;
    }
    .brand-concept-sub {
        font-size: 0.85rem;
        margin-top: 5px;
    }
    .company-table th,
    .company-table td {
        font-size: 0.9rem;
        padding: 10px 0;
    }
    .company-table th {
        width: 90px;
    }
}

/* =========================================================================
   Subpage Hero (Page Hero)
   ========================================================================= */
.page-hero {
    position: relative;
    padding: 220px 0 120px; 
    text-align: center;
    z-index: 1;
}

.page-title {
    font-size: 3.5rem;
    color: var(--text-reverse);
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.page-desc {
    font-size: 1.45rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.page-hero .limit-badge {
    /* 濃い背景の上で目立つように、鮮やかなブランドカラーへ変更 */
    background: linear-gradient(135deg, var(--primary), #1199d7);
    box-shadow: 0 4px 15px rgba(41, 185, 240, 0.3);
}

/* =========================================================================
   Free Consultation Page
   ========================================================================= */
.consultation-section {
    padding-top: 60px;
}

.notice-box {
    background: #FCFAF2;
    padding: 25px 30px;
    border-radius: 8px;
    margin: 0 auto 50px;
    display: inline-block;
    text-align: left;
    max-width: 600px;
    border: 1px solid rgba(220, 163, 17, 0.4);
}

.notice-box-title {
    color: #9b7204;
    font-weight: bold;
    margin: 0 0 5px 0 !important;
    font-size: 1.05rem;
}

.limit-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), #1A2F5C);
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 10px 24px;
    border-radius: 50px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(11, 27, 61, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.limit-number {
    font-family: var(--font-en);
    font-size: 1.45rem;
    margin: 0 6px; /* 左右の余白を少し空けて詰まりを解消（カーニング調整） */
    line-height: 1;
    transform: translateY(1px); /* 数字のベースラインを視覚的に揃える */
}

.consultation-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

.consultation-lead {
    font-size: 1.25rem;
    color: var(--text-main);
    line-height: 1.85;
}

.consultation-content h2 {
    font-size: 2.2rem;
    color: var(--text-main);
    margin-top: 80px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
}

.consultation-content h3 {
    font-size: 1.7rem;
    color: var(--secondary);
    margin-top: 50px;
    margin-bottom: 30px;
    border-left: 5px solid var(--primary);
    padding-left: 12px;
}

.consultation-content p {
    margin-bottom: 35px;
}

.reason-heading {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-top: 60px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.worry-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 25px var(--shadow-light);
    border: 1px solid rgba(41, 185, 240, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.worry-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--shadow-medium);
}

.worry-box h4 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.worry-box p {
    margin-bottom: 0;
    font-size: 1.05rem;
}

.consultation-profile {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    background: #ffffff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px var(--shadow-light);
    border: 1px solid rgba(41, 185, 240, 0.08); /* primary slight tint */
    margin-bottom: 80px;
}
.consultation-profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.consultation-profile .profile-name {
    margin: 0 0 15px 0;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.4;
}
.consultation-profile .profile-name strong {
    font-size: 1.3rem;
    color: var(--text-main);
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}
.consultation-profile .profile-text {
    font-size: 1.0rem;
    line-height: 1.8;
    margin: 0;
}

.spaced-heading {
    margin-top: 80px !important;
}

.cta-box {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.cta-box h3 {
    margin-top: 0;
    border: none;
    padding: 0;
    justify-content: center;
    color: var(--text-main);
}

/* =========================================================================
   Floating Banner 
   ========================================================================= */
.floating-banner {
    position: fixed;
    bottom: -150px;
    right: 24px;
    z-index: 999;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
    visibility: hidden;
    display: block;
}

.floating-banner.visible {
    bottom: 24px;
    opacity: 1;
    visibility: visible;
}

.floating-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.floating-banner img {
    width: 100%;
    display: block;
    height: auto;
}

.floating-close {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.floating-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive visibility utility */
.pc-only {
    display: inline-block; /* Default visibility */
}
.mobile-only {
    display: none !important; /* Hijack and hide on PC */
}

/* インライン要素用（段落内リンクなど）のモバイル専用クラス */
.mobile-inline {
    display: none !important;
}

@media (max-width: 768px) {
    .pc-only {
        display: none !important; /* Hide on mobile */
    }
    .mobile-only {
        display: block !important; /* Show on mobile */
    }
    .mobile-inline {
        display: inline !important; /* インライン要素としてスマホのみ表示 */
    }
}

/* Crossfade Image Slider */
.crossfade-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    box-shadow: 0 15px 40px var(--shadow-medium);
    border: 1px solid rgba(41, 185, 240, 0.15);
    overflow: hidden;
}

.crossfade-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.crossfade-1 { animation: crossfadeAnim 12s infinite 0s; }
.crossfade-2 { animation: crossfadeAnim 12s infinite 4s; }
.crossfade-3 { animation: crossfadeAnim 12s infinite 8s; }

@keyframes crossfadeAnim {
    0% { opacity: 0; transform: scale(1.02); }
    8.33% { opacity: 1; transform: scale(1.02); }
    33.33% { opacity: 1; transform: scale(1.05); }
    41.66% { opacity: 0; transform: scale(1.06); }
    100% { opacity: 0; }
}

.crossfade-dots {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.cf-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d0d7e5;
    animation: cfDotAnim 12s infinite;
}

.cf-dot:nth-child(1) { animation-delay: 0s; }
.cf-dot:nth-child(2) { animation-delay: 4s; }
.cf-dot:nth-child(3) { animation-delay: 8s; }

@keyframes cfDotAnim {
    0% { background: #d0d7e5; transform: scale(1); }
    8.33% { background: var(--primary); transform: scale(1.3); }
    33.33% { background: var(--primary); transform: scale(1.3); }
    41.66% { background: #d0d7e5; transform: scale(1); }
    100% { background: #d0d7e5; }
}

/* Mobile: sticky bottom banner */
@media (max-width: 768px) {
    .floating-banner {
        width: 100%;
        right: 0;
        bottom: -150px;
        border-radius: 0;
    }
    .floating-banner.visible {
        bottom: 0;
    }
    .floating-banner img {
        border-radius: 0;
    }
    .floating-close {
        top: 8px;
        right: 8px;
    }
}

/* ======== Video Expand & Modal ======== */
.expand-btn-glass {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.mockup-window:hover .expand-btn-glass {
    opacity: 1;
    transform: translateY(0);
}

.expand-btn-glass:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1) !important;
}

.expand-btn-glass svg {
    width: 24px;
    height: 24px;
}

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10000;
}

.video-modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.video-modal-content {
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8), 0 0 0 1px rgba(41, 185, 240, 0.2);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    display: block;
    object-fit: contain;
}

@media (max-width: 768px) {
    .video-modal-close {
        top: 15px;
        right: 20px;
        font-size: 2.5rem;
    }
    .video-modal-content {
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    .video-modal-content video {
        max-height: 100vh;
    }

    /* Free Consultation Page Mobile Overrides */
    .consultation-content {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    .consultation-lead {
        font-size: 1.0rem;
        line-height: 1.7;
    }
    .consultation-content h2 {
        font-size: 1.5rem;
    }
    .consultation-content h3 {
        font-size: 1.3rem;
        margin-top: 40px;
        margin-bottom: 25px;
        padding-left: 10px;
    }
    .reason-heading {
        font-size: 1.1rem;
        line-height: 1.65;
        margin-top: 45px;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .worry-box {
        padding: 25px 20px;
    }
    .worry-box h4 {
        font-size: 1.15rem;
        line-height: 1.6;
    }
    .worry-box p {
        font-size: 0.95rem;
    }
    .cta-box h3 {
        font-size: 1.4rem;
    }

    .consultation-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 25px 20px;
        gap: 20px;
    }
    .consultation-profile img {
        width: 100px;
        height: 100px;
    }
    .consultation-profile .profile-text {
        text-align: left;
    }
    .spaced-heading {
        margin-top: 70px !important; /* increased gap for mobile as well */
    }
    
    .limit-badge {
        font-size: 1.05rem;
        padding: 8px 20px;
        margin-bottom: 20px;
    }
    .limit-number {
        font-size: 1.3rem;
        margin: 0 4px;
    }

    .page-hero {
        padding: 160px 0 80px;
    }
    .consultation-section {
        padding-top: 40px;
    }
    .notice-box {
        padding: 20px 10px; /* 左右余白を更に削減 */
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .page-title {
        font-size: 2.2rem;
    }
    .page-desc {
        font-size: 1.05rem;
    }
}

/* PC-only Overrides for Free Consultation Page */
@media (min-width: 901px) {
    .cta-box-title {
        font-size: 2.0rem !important;
        margin-bottom: 25px !important;
    }
    .cta-box-desc {
        font-size: 1.15rem !important;
        margin-bottom: 40px !important;
    }
    .notice-box-lg {
        padding: 40px 50px !important;
    }
    .notice-box-lg .notice-box-title {
        font-size: 1.3rem !important;
    }
    .notice-box-lg .notice-box-text {
        font-size: 1.2rem !important;
        line-height: 1.8 !important;
    }
}

/* Mobile-only Overrides for Free Consultation Page */
@media (max-width: 900px) {
    .cta-box-desc {
        text-align: left;
    }
}
/* =========================================================================
   MyASP Form Overrides
   ========================================================================= */

/* フォーム全体 */
#contact #UserItemForm {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------------
 * [1] 背景色・ボーダー消去
 *     MyASPのJSが .required ブロックに青背景を後付けしてくる
 * ------------------------------------------------------------------ */
#contact #UserItemForm .input_unit,
#contact #UserItemForm .my_column,
#contact #UserItemForm .my_column.my_left,
#contact #UserItemForm .label_frame,
#contact #UserItemForm .checkbox_frame,
#contact #UserItemForm .form_input_label,
#contact #UserItemForm .form_input_label.required {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ------------------------------------------------------------------
 * [2] 各フィールド行（.input_unit）
 *     NOTE: .input_unit と div.input.required は同一要素のため
 *     ここ以外で margin: 0 を当ててはいけない
 * ------------------------------------------------------------------ */
#contact #UserItemForm .input_unit {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 0 28px 0 !important;
    overflow: visible !important;
}

/* ------------------------------------------------------------------
 * [3] ラベルカラム（my_left）
 * ------------------------------------------------------------------ */
#contact #UserItemForm .my_column.my_left {
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 0 0 10px 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------------------------
 * [4] 入力カラム（my_right）
 *     チェックボックスは .my_right.checkbox_group_override になるため
 *     :not() でgridが壊れないよう分離
 * ------------------------------------------------------------------ */
#contact #UserItemForm .my_column.my_right:not(.checkbox_group_override) {
    display: block !important;
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------------------------
 * [5] ラベル枠・ラベル文字
 * ------------------------------------------------------------------ */
#contact #UserItemForm .label_frame {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#contact #UserItemForm .form_input_label {
    display: inline-block !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
    line-height: 1.4 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ------------------------------------------------------------------
 * [6] 必須バッジ
 * ------------------------------------------------------------------ */
#contact #UserItemForm .required-badge {
    background-color: #23A3E8 !important;
    color: #fff !important;
    font-size: 0.78rem !important;
    padding: 2px 9px !important;
    border-radius: 4px !important;
    margin-left: 8px !important;
    font-weight: 400 !important;
    display: inline-block !important;
    vertical-align: 2px !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    transform: none !important;
}

/* MyASP デフォルトのアスタリスクを非表示 */
#contact #UserItemForm .form_input_label.required::after,
#contact #UserItemForm .form_input_label .required {
    display: none !important;
}

/* ------------------------------------------------------------------
 * [7] テキスト入力・テキストエリア
 * ------------------------------------------------------------------ */
#contact #UserItemForm .form_input_input {
    display: block !important;
    width: 100% !important;
    padding: 14px 16px !important;
    border: 1px solid #dcdfe6 !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    background-color: #fff !important;
    color: var(--text-main) !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#contact #UserItemForm .form_input_input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(32, 114, 235, 0.1) !important;
    outline: none !important;
}

#contact #UserItemForm textarea.form_input_input {
    resize: vertical !important;
    min-height: 130px !important;
}

/* ------------------------------------------------------------------
 * [8] チェックボックス（2列グリッド）
 *     対象: .my_column.my_right.checkbox_group_override
 * ------------------------------------------------------------------ */
#contact #UserItemForm .checkbox_group_override {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 20px !important;
    padding: 8px 0 0 0 !important;
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
}

@media (max-width: 560px) {
    #contact #UserItemForm .checkbox_group_override {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {
    #contact #UserItemForm .input_unit {
        margin: 0 0 18px 0 !important;
    }
    #contact #UserItemForm .my_column.my_left {
        padding: 0 0 6px 0 !important;
    }
    #contact #UserItemForm .form_input_label {
        font-size: 0.9rem !important;
    }
    #contact #UserItemForm .form_input_input {
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
    }
    #contact #UserItemForm .checkbox_label,
    #contact #UserItemForm .checkbox_label label {
        font-size: 0.875rem !important;
    }
}

#contact #UserItemForm .custom-checkbox,
#contact #UserItemForm .checkbox_frame {
    display: flex !important;
    align-items: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

#contact #UserItemForm .checkbox_input {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    margin-right: 10px !important;
    padding: 0 !important;
}

#contact #UserItemForm .checkbox_input input[type="checkbox"] {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    border: 2px solid #c0c4cc !important;
    border-radius: 3px !important;
    background-color: #fff !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

#contact #UserItemForm .checkbox_input input[type="checkbox"]:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 11'%3E%3Cpath d='M1.5 5.5L5.5 9.5L12.5 1.5' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-size: 13px 10px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

#contact #UserItemForm .checkbox_input input[type="checkbox"]:hover {
    border-color: var(--primary) !important;
}

#contact #UserItemForm .checkbox_label {
    display: flex !important;
    align-items: center !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: var(--text-main) !important;
    cursor: pointer !important;
    margin: 0 !important;
    padding: 0 !important;
}

#contact #UserItemForm .checkbox_label label {
    cursor: pointer !important;
    font-size: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ------------------------------------------------------------------
 * [9] 送信ボタン
 * ------------------------------------------------------------------ */
#contact #UserItemForm .submit {
    margin-top: 35px !important;
    padding: 0 !important;
}

#contact #UserItemForm .submit-btn {
    display: block !important;
    width: 100% !important;
    background: var(--primary) !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 18px !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 25px rgba(32, 114, 235, 0.2) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    letter-spacing: 0.03em !important;
}

#contact #UserItemForm .submit-btn:hover {
    box-shadow: 0 12px 35px rgba(32, 114, 235, 0.35) !important;
    transform: translateY(-2px) !important;
}


/* 複数選択可ノート */
#contact #UserItemForm .multi-select-note {
    font-size: 0.82rem !important;
    color: #999 !important;
    font-weight: 400 !important;
    margin-left: 10px !important;
    letter-spacing: 0 !important;
}

/* スマホ用：チェックボックスラベルのフォントサイズ（末尾で確実上書き） */
@media (max-width: 768px) {
    #contact #UserItemForm .checkbox_label {
        font-size: 0.875rem !important;
    }
}
