/* ==========================================================================
   Coil® Corporate Design System & Stylesheet
   ========================================================================== */

/* 1. Reset & Core Settings */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg-dark: #000000;
    --color-bg-light: #e6e6e6; /* Unified clean light gray matching the mockup specification */
    --color-card: #ffffff;
    --color-text-primary: #000000;
    --color-text-secondary: #515154;
    --color-text-muted: #86868b;
    --color-border: #e8e8ed;
    
    --font-primary: Helvetica, 'Helvetica Neue', Arial, 'Noto Sans CJK JP', 'Noto Sans JP', sans-serif;
    --radius-lg: 24px;
    --radius-md: 16px;
    
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-button: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

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

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

/* Common Layout Elements */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* 2. Typography & UI Components */
.section {
    padding: 160px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 100px 0;
    }
}

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

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 48px;
        gap: 24px;
    }
}

.section-title-wrap {
    max-width: 700px;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.6;
    letter-spacing: -0.01em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-button);
}

.btn-black {
    background-color: var(--color-bg-dark);
    color: #ffffff;
}

.btn-black:hover {
    background-color: transparent;
    color: var(--color-bg-dark);
    border-color: var(--color-bg-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

.btn-arrow {
    margin-left: 8px;
    font-size: 0.8em;
    display: inline-block;
    transition: transform 0.3s ease;
}

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


/* ==========================================================================
   3. Header Section (Sticky / Fixed behavior)
   ========================================================================== */
/* ==========================================================================
   3. Header Section (Premium Minimal Bar)
   ========================================================================== */
.header {
    position: relative;
    width: 100%;
    z-index: 100;
    padding: 32px 0 20px 0; /* Restored back to the original spacious height to prevent compression pressure */
    background-color: var(--color-bg-light);
}

.header-container {
    display: flex;
    justify-content: space-between; /* Automatically distributes equal spaces between all items */
    align-items: center;
    max-width: 1800px; /* Banner maximum width */
    margin: 0 auto;
    padding: 0 50px; /* Symmetrical padding (50px) on both left and right edges */
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: #000000;
    letter-spacing: -0.05em;
}

.nav {
    display: contents; /* Promotes .nav-link directly to flex items to follow space-between distribution */
}

.nav-link {
    font-size: 15px; /* Unified with statement and domain text size (15px) */
    font-weight: bold; /* Bold weight matching the Coil logo */
    color: #000000;
    opacity: 1;
    transition: var(--transition-button);
    letter-spacing: 0.05em;
}

.nav-link:hover {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .header-container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .header-container {
        display: flex;
        justify-content: space-between;
        padding: 0 24px;
    }
    .nav-link {
        display: none; /* Hide navigation links on mobile layout */
    }
}


/* ==========================================================================
   4. Hero Section (Coil® Premium Banner Box)
   ========================================================================== */
.hero {
    background-color: var(--color-bg-light);
    padding-bottom: 40px;
    position: relative;
}

.hero-container-outer {
    width: 100%;
    max-width: 1800px; /* Expanded further to 1800px for full dynamic landscape feel */
    margin: 0 auto;
    padding: 0 20px; /* Tight side margins to stretch maximum to the screen edge */
    position: relative;
}

.hero-banner-inner {
    background-color: #000000;
    border-radius: 48px;
    height: 85vh; /* Massive dynamic height (85% of screen height) */
    min-height: 820px; /* Bold tall scale constraint */
    padding: 90px 30px 90px 30px; /* Unified top and bottom padding for perfect symmetrical alignment */
    position: relative;
    overflow: visible; /* Enables scroll arrow to breakout of bottom border without clip */
}

.hero-center-content {
    position: absolute;
    left: 30px; /* Placed exactly at the 30px left padding boundary to align heads */
    top: 90px; /* Shifted upwards to create generous breathing space in the center for high-end look */
    display: flex;
    align-items: flex-end; /* CRITICAL: Align list items to the bottom baseline/border of the Coil logo */
    justify-content: flex-start;
    gap: 60px; /* Tightened gap to bring list closer to the logo */
    width: calc(100% - 60px);
}

.hero-brand-logo {
    display: flex;
    align-items: center;
    color: #ffffff;
    position: relative;
}

.hero-logo-main {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Strict Helvetica Neue */
    font-size: 13rem; /* Expanded further to 13rem to push domains slightly left-center */
    font-weight: bold;
    letter-spacing: -0.02em; /* Relaxed letter-spacing to match mockup exactly (was -0.065em) */
    line-height: 0.82;
}

.logo-sub-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligns left edge of R mark and 【コイル】 closely to the Coil text */
    justify-content: space-between; /* Stretches R to the top and 【コイル】 to the bottom baseline */
    height: 10.6rem; /* Strictly matches the physical height of Coil logo (13rem * 0.82 line-height) */
    margin-left: 8px; /* Narrowed to 8px to pull both R and label closer to the Coil text (left-shift) */
    margin-bottom: 12px; /* Pulls it down to align with main text baseline */
}

.logo-reg {
    font-size: 6.4rem; /* Scaled up one more size to 6.4rem for exact visual footprint */
    font-weight: normal; /* Changed to regular weight as requested */
    line-height: 1;
}

.hero-logo-sub {
    font-size: 15px; /* Matched exactly with the primary statement size (15px) */
    font-weight: 400; /* Regular weight */
    color: rgba(255, 255, 255, 0.85); /* Matched exactly with statement opacity and color */
    letter-spacing: -0.03em; /* Matched exactly with statement spacing */
    white-space: nowrap;
    line-height: 1;
}

.hero-domain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px; /* Tightened line gap for robust column look */
    color: #ffffff;
    padding: 0;
    margin: 0 0 12px 0; /* Add bottom margin to perfectly offset the large logo's line-height and match the visual baseline */
}

.hero-domain-list li {
    font-size: 15px; /* Unified font size with the statement text (15px) */
    font-weight: 400; /* Regular weight as requested */
    letter-spacing: -0.03em; /* Tighter letter-spacing to prevent loose look */
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.hero-domain-list li .num {
    display: inline-block;
    width: 24px; /* Restored width to accommodate the larger 15px font size spacing */
    font-size: 15px; /* Matches the text size (15px) */
    opacity: 1; /* Same opacity as the text (100%) */
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Strict Helvetica Neue */
    font-weight: 400;
}

.hero-statement {
    position: absolute;
    left: 30px; /* Aligned precisely with logo head C at 30px */
    bottom: 90px; /* Symmetrical 90px bottom offset to match top logo offset */
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px; /* Unified font size with the domain list (15px) */
    font-weight: 400; /* Regular weight as requested */
    line-height: 2.0; /* Precise line-height from spec */
    letter-spacing: -0.03em; /* Tighter letter-spacing to prevent loose look */
    max-width: 450px; /* Precise width limit from spec */
}

.hero-bottom-center {
    position: absolute;
    left: 50%;
    bottom: 90px; /* Aligned precisely at 90px bottom to match the statement text line height */
    transform: translateX(-50%);
    text-align: center;
}

.hero-domain-url {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
    line-height: 1;
}

.hero-scroll-arrow {
    position: absolute;
    bottom: 30px; /* Positioned close to the bottom border line of the black banner */
    left: 50%;
    transform: translateX(-50%);
    width: 36px; /* Scaled up to 36px for bold visual presence */
    height: 36px;
    color: rgba(255, 255, 255, 0.6);
    z-index: 10;
    /* Bounce animation removed as requested */
}

.hero-scroll-arrow svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

@media (max-width: 1024px) {
    .hero-banner-inner {
        padding: 80px 60px 60px 60px;
    }
    .hero-center-content {
        left: 60px;
        top: 80px;
        gap: 60px;
    }
    .hero-statement {
        left: 60px;
        bottom: 60px;
    }
    .hero-bottom-center {
        bottom: 60px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 24px;
    }
    .hero-container-outer {
        padding: 0 24px;
    }
    .hero-banner-inner {
        padding: 48px 32px 48px 32px;
        height: auto;
        min-height: 650px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    .hero-center-content {
        position: static;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        width: 100%;
        margin-top: 40px;
        margin-bottom: 80px;
    }
    .hero-logo-main {
        font-size: 4.5rem;
    }
    .logo-sub-wrap {
        height: auto;
    }
    .hero-statement {
        position: static;
        margin-top: auto;
    }
    .hero-bottom-center {
        position: static;
        transform: none;
        margin-top: 48px;
    }
    .hero-scroll-arrow {
        bottom: 20px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}


/* ==========================================================================
   5. About Section
   ========================================================================== */
.about-section {
    background-color: #e6e6e6; /* Clear light grey background matching the mockup specification */
    padding: 80px 0; /* Unified 80px top and bottom padding to restore geometric vertical alignment */
    width: 100%;
    min-height: calc(100vh - 80px); /* Fill screen height beautifully */
    display: flex;
    align-items: center;
}

.about-container {
    width: 100%;
    max-width: 1800px; /* Synchronized with header and hero containers */
    margin: 0 auto;
    padding: 0 50px; /* 50px left/right border alignment rule */
    display: flex;
    flex-direction: column;
    gap: 80px; /* Vertical gap between title, text columns, and logos */
}

.about-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 3.6rem;
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.02em; /* Tight minimal look */
    margin: 0;
    line-height: 1.2;
}

.about-title .title-sub {
    font-weight: normal; /* "について" suffix in regular font weight */
}

.about-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom edges of text columns and the black capsule button */
    gap: 120px; /* Generous space between left content and right button */
}

.about-content {
    max-width: 760px; /* Maintain readable line length */
    display: flex;
    flex-direction: column;
    gap: 24px; /* Paragraph gaps */
}

.about-content p {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px; /* Unified text size (15px) */
    font-weight: 400; /* Regular weight */
    color: #333333; /* Soft premium dark grey */
    line-height: 1.85; /* Relaxed readability */
    letter-spacing: -0.03em; /* Tight letter-spacing for premium minimal feel */
    text-align: justify; /* Align right text ends perfectly to form a block */
    text-justify: inter-character; /* High precision spacing alignment for Japanese */
    margin: 0;
}

.about-content .about-lead {
    margin-bottom: 8px; /* Maintain standard lead paragraph margin offset */
}

.about-action {
    flex-shrink: 0;
    margin-bottom: 4px; /* Tiny adjustment to align perfectly with the baseline of text */
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 18px; /* Extra slimmed padding to make the capsule compact */
    border-radius: 50px; /* Capsule shape */
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: normal; /* Regular weight matching the design specification */
    text-decoration: none;
    letter-spacing: -0.02em;
    width: 145px; /* Shrunk width to keep text and arrow tightly packed together */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-more:hover {
    background-color: #222222;
    transform: scale(1.02); /* Tiny visual feedback */
}

.icon-btn-arrow {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-arrow svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

/* Partners Area */
.partners-area {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between headers and logo cards */
    width: 100%;
    margin-top: 20px; /* Push slightly down from the text block */
}

.partners-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.partners-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.icon-circle-down {
    width: 22px;
    height: 22px;
    background-color: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle-down svg {
    width: 14px;
    height: 14px;
    fill: #ffffff;
}

.partners-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0;
}

.partners-date {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4); /* Soft light grey text */
    letter-spacing: -0.01em;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 equal columns */
    gap: 20px; /* Tightened gap for a cohesive horizontal rhythm */
    width: 100%;
}

.partner-card {
    background-color: #ffffff;
    border-radius: 36px; /* Smooth rounded corners matching the Photoshop crop */
    aspect-ratio: 1.85 / 1; /* flatter landscape ratio matching mockup */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01); /* Extremely subtle flat shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* Soft highlight on hover */
}

@media (max-width: 1024px) {
    .about-container {
        padding: 0 40px;
    }
    .about-main {
        gap: 60px;
    }
    .partners-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns x 2 rows */
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: 80px 0;
    }
    .about-container {
        padding: 0 24px;
        gap: 48px;
    }
    .about-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .about-action {
        align-self: flex-start;
        margin-bottom: 0;
    }
    .partners-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns x 3 rows */
        gap: 16px;
    }
    .about-title {
        font-size: 2.8rem;
    }
}


/* ==========================================================================
   6. Apps Section (New Carousel)
   ========================================================================== */
.apps-section {
    background-color: #e6e6e6; /* Base background matching About section */
    padding: 80px 0 120px 0; /* Adjusted top padding to 80px to align visual gaps evenly */
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.apps-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 0 0 50px; /* Left padding aligned to 50px, right is 0 to allow carousel edge breakthrough */
    display: flex;
    flex-direction: column;
}

.apps-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 3.6rem;
    font-weight: normal; /* Elegant regular weight as requested */
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
    padding-right: 50px; /* Align right side title margin */
}

.apps-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom baseline of text and button */
    gap: 120px;
    padding-right: 50px; /* Keep elements inside 50px border line on the right */
    margin-top: 48px; /* Tighter spacing below section title as requested */
}

.apps-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.apps-content p {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    line-height: 1.85;
    letter-spacing: -0.03em;
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
}

.apps-action {
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* Carousel Layout */
.carousel-outer-wrap {
    position: relative;
    width: 100%;
    margin-top: 120px; /* Slightly wider spacing to push carousel card list down for a cleaner balance */
}

.carousel-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.carousel-scroll-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome/Safari */
}

.carousel-scroll-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding-right: 150px; /* Allow scrolling past the last card beautifully */
    scroll-padding-left: 50px;
}

.app-card {
    width: 440px; /* Scaled up card width to reveal 3rd and part of 4th card */
    aspect-ratio: 3 / 4.3; /* Premium vertical landscape ratio */
    background-color: #ffffff;
    border-radius: 36px; /* Extra rounder corner matching mockup specs */
    padding: 32px 36px 32px 36px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push all typography and buttons to the bottom of card */
    gap: 16px; /* Tightened vertical gap to bring text closer to the detail button */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.app-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Tightened gap between title and paragraph to compact typography block */
}

.app-card-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; /* Strict Helvetica Neue */
    font-size: 22px; /* 22px size matching the mockup specification */
    font-weight: bold;
    color: #000000;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0;
}

.app-card-text {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px; /* Unified to match section description text size (15px) */
    font-weight: 400;
    color: #444446;
    line-height: 1.8; /* Relaxed readability matching section text */
    letter-spacing: -0.03em; /* Tight letter-spacing for premium minimal feel */
    min-height: 81px; /* Ensures 3-line height is reserved so titles align perfectly across all cards */
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
}

.app-card-footer {
    display: flex;
    justify-content: flex-end; /* Push button to the bottom-right corner */
}

/* Card with background image styling */
.app-card.has-bg {
    background-size: 135%; /* Zooms in on the tag dynamically to prevent empty spaces */
    background-position: center 94%; /* Pushes the zoomed tag to the extreme top edge of the card */
    position: relative;
    isolation: isolate; /* Ensures overlay stays behind text content */
}

/* Subtle white gradient overlay at the bottom to guarantee readability of dark texts without ruining the mockup image */
.app-card.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.85) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 36px;
    z-index: -1;
}

.app-card.has-bg .app-card-title {
    color: #000000;
}

.app-card.has-bg .app-card-text {
    color: #444446;
}

/* Revert button style to default black capsule style */
.app-card.has-bg .btn-detail {
    background-color: #000000;
    color: #ffffff;
    border: none;
}

.app-card.has-bg .btn-detail:hover {
    background-color: #222222;
}

/* ==========================================================================
   Dark Background Overrides (White Text & White Capsule Button)
   ========================================================================== */
.app-card.has-bg.light-text::before {
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.6) 20%,
        rgba(0, 0, 0, 0.3) 40%, 
        rgba(0, 0, 0, 0) 58%
    );
}

.app-card.has-bg.light-text .app-card-title {
    color: #ffffff;
}

.app-card.has-bg.light-text .app-card-text {
    color: rgba(255, 255, 255, 0.85);
}

/* White capsule button on dark background cards */
.app-card.has-bg.light-text .btn-detail {
    background-color: #ffffff;
    color: #000000;
}

.app-card.has-bg.light-text .btn-detail:hover {
    background-color: #f5f5f7;
    color: #000000;
}

.app-card.has-bg.light-text .btn-detail .icon-btn-arrow svg {
    fill: #000000;
}

.app-card.has-bg.light-text .btn-detail:hover .icon-btn-arrow svg {
    fill: #000000;
}

.app-card.has-bg .icon-btn-arrow svg {
    fill: #ffffff;
}

.app-card.has-bg .btn-detail:hover .icon-btn-arrow svg {
    fill: #ffffff;
}

.btn-detail {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    color: #ffffff;
    padding: 10px 18px; /* Compact capsule dimensions matching btn-more */
    border-radius: 50px;
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: -0.02em;
    width: 140px; /* Small width */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-detail:hover {
    background-color: #222222;
    transform: scale(1.02);
}

/* Circular Navigation Buttons */
.carousel-arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.08); /* Soft grey circle matching mockup arrow icon */
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.carousel-arrow-btn.prev-btn {
    left: 50px; /* Align strictly with 50px boundary on the left */
}

.carousel-arrow-btn.next-btn {
    right: 50px; /* Align strictly with 50px boundary on the right */
}

.carousel-arrow-btn:hover {
    background-color: rgba(0, 0, 0, 0.16);
    transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-btn svg {
    width: 22px;
    height: 22px;
    fill: #000000;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
    .apps-container {
        padding-left: 40px;
    }
    .apps-title, .apps-main {
        padding-right: 40px;
    }
    .apps-main {
        gap: 60px;
    }
    .app-card {
        width: 360px; /* Scaled up card on tablet */
    }
    .carousel-arrow-btn.prev-btn {
        left: 40px;
    }
    .carousel-arrow-btn.next-btn {
        right: 40px;
    }
}

@media (max-width: 768px) {
    .apps-section {
        padding: 80px 0;
    }
    .apps-container {
        padding-left: 24px;
        gap: 48px;
    }
    .apps-title, .apps-main {
        padding-right: 24px;
    }
    .apps-title {
        font-size: 2.8rem;
    }
    .apps-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .apps-action {
        align-self: flex-start;
    }
    .app-card {
        width: 300px; /* Scaled up card on mobile */
        padding: 30px;
        border-radius: 28px;
    }
    .carousel-arrow-btn {
        display: none; /* Hide circular button on touch mobile devices */
    }
}


/* ==========================================================================
   7. Apparel Production Section
   ========================================================================== */
.production-section {
    background-color: #e6e6e6; /* Base background matching About/Apps sections */
    padding: 120px 0; /* Generous top and bottom padding */
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.production-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 50px; /* Equal left/right padding alignment (50px) */
    display: flex;
    flex-direction: column;
}

.production-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 3.6rem;
    font-weight: normal; /* Elegant regular weight as requested */
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.production-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom baseline of text and button */
    gap: 120px;
    margin-top: 48px; /* Tighter spacing below section title as requested */
}

.production-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.production-content p {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    line-height: 1.85;
    letter-spacing: -0.03em;
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
}

.production-action {
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* 4-Column Grid Layout */
.production-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px; /* Equal column gap */
    width: 100%;
    margin-top: 120px; /* Same vertical spacing as Apps Section */
}

.prod-card {
    background-color: #ffffff;
    border-radius: 36px; /* Smooth rounded corners matching mockup specs */
    padding: 48px 36px;
    aspect-ratio: 3 / 5; /* Restore classic tall vertical ratio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Restored back to flex-end to preserve original card text baseline */
    position: relative; /* Acts as the absolute positioning anchor for the top-left icons */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

/* Production Card with background image support */
.prod-card.has-bg {
    background-size: cover;
    background-position: center top;
    position: relative;
    isolation: isolate;
}

.prod-card.has-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, 
        rgba(255, 255, 255, 0.98) 0%, 
        rgba(255, 255, 255, 0.85) 30%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0) 70%
    );
    border-radius: 36px;
    z-index: 1;
}

.prod-card.has-bg .prod-card-text {
    position: relative;
    z-index: 2;
    color: #333333;
    font-weight: 400;
}

.prod-card-step {
    position: absolute;
    top: -48px;   /* Boldly overflows above the top border of card */
    left: -20px;  /* Boldly overflows left of the card border */
    font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
    font-size: 138px; /* Doubled giant impact font size matching user mockup */
    font-weight: bold;
    color: rgba(255, 255, 255, 0.45); /* 45% semi-transparent for subtle watermark blend */
    line-height: 1;
    letter-spacing: -0.08em; /* Tightened letter spacing */
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.prod-card-icon-wrap {
    position: absolute;
    top: 48px;  /* Matches top padding of the card */
    left: 36px; /* Matches left padding of the card */
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
}

.prod-card-icon {
    width: 72px;
    height: 72px;
    color: #86868b; /* Soft premium grey matching mockup icons */
}

.prod-card-img {
    max-height: 120px; /* Restored back to the liked size for tall icons */
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    mix-blend-mode: multiply; /* Blends out the white background border to make icon line transparent */
}

/* Specific visual alignment override for Card 4's wide truck icon */
.production-grid .prod-card:nth-child(4) .prod-card-icon-wrap {
    transform: translateY(20px); /* Lifts the low-height truck down slightly for visual horizontal alignment */
}
.production-grid .prod-card:nth-child(4) .prod-card-img {
    max-width: 125px;
    max-height: 125px;
}

.prod-card-text {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.7; /* Tighter line-height for block text */
    letter-spacing: -0.02em;
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
    .production-container {
        padding: 0 40px;
    }
    .production-main {
        gap: 60px;
    }
    .production-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 grid on tablet */
        gap: 20px;
    }
    .prod-card {
        aspect-ratio: 3 / 4; /* Relax ratio for wrapping text */
    }
}

@media (max-width: 768px) {
    .production-section {
        padding: 80px 0;
    }
    .production-container {
        padding: 0 24px;
    }
    .production-title {
        font-size: 2.8rem;
    }
    .production-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .production-action {
        align-self: flex-start;
    }
    .production-grid {
        grid-template-columns: 1fr; /* 1 column stack on mobile */
        gap: 16px;
        margin-top: 60px;
    }
    .prod-card {
        aspect-ratio: auto; /* Remove fixed ratio to avoid content clipping on mobile */
        padding: 40px 30px;
        gap: 32px;
    }
}


/* ==========================================================================
   8. Design Work Section
   ========================================================================== */
.design-section {
    background-color: #e6e6e6; /* Base background matching About/Apps sections */
    padding: 120px 0; /* Generous top and bottom padding */
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.design-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 50px; /* Equal left/right padding alignment (50px) */
    display: flex;
    flex-direction: column;
}

.design-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 3.6rem;
    font-weight: normal; /* Elegant regular weight as requested */
    color: #000000;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.design-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Align bottom baseline of text and button */
    gap: 120px;
    margin-top: 48px; /* Tighter spacing below section title as requested */
}

.design-content {
    max-width: 760px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.design-content p {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #333333;
    line-height: 1.85;
    letter-spacing: -0.03em;
    text-align: justify;
    text-justify: inter-character;
    margin: 0;
}

.design-action {
    flex-shrink: 0;
    margin-bottom: 4px;
}

/* Works header label area with down-arrow */
.design-works-header {
    margin-top: 100px; /* Synchronized margin with Section 1 (80px gap + 20px) */
    margin-bottom: 40px; /* Same margin gap between title header and grid card */
    width: 100%;
}

.design-works-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.design-works-title {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 18px; /* Sized identical to Section 1 (主な提携先) */
    font-weight: bold;
    color: #000000;
    margin: 0;
    letter-spacing: -0.01em;
}

/* 2x2 Grid Layout */
.design-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px; /* Equal column/row gap */
    width: 100%;
}

.design-card {
    background-color: #ffffff;
    border-radius: 36px; /* Smooth rounded corners matching mockup specs */
    padding: 48px;
    aspect-ratio: 4 / 3; /* Premium horizontal landscape aspect ratio */
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Push text to the bottom-left */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.design-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04);
}

.design-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.design-card-client {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px; /* Unified with section lead/description (15px) */
    font-weight: 700;
    color: #86868b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.design-card-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 24px; /* Unified with Apps section app names (24px) */
    font-weight: 800;
    color: #000000;
    letter-spacing: -0.02em;
    margin: 8px 0;
}

.design-card-category {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 15px; /* Unified with section lead/description (15px) */
    font-weight: 400;
    color: #86868b;
    line-height: 1.5;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Tablet & Mobile Media Queries */
@media (max-width: 1024px) {
    .design-container {
        padding: 0 40px;
    }
    .design-main {
        gap: 60px;
    }
    .design-card {
        padding: 36px;
        aspect-ratio: 4 / 3.2; /* Tweak ratio slightly for smaller screens */
    }
    .design-card-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .design-section {
        padding: 80px 0;
    }
    .design-container {
        padding: 0 24px;
    }
    .design-title {
        font-size: 2.8rem;
    }
    .design-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .design-action {
        align-self: flex-start;
    }
    .design-works-header {
        margin-top: 60px;
        margin-bottom: 32px;
    }
    .design-grid {
        grid-template-columns: 1fr; /* 1 column stack on mobile */
        gap: 16px;
    }
    .design-card {
        aspect-ratio: auto; /* Remove aspect ratio on mobile stack to avoid wrapping overflow */
        padding: 40px 30px;
        min-height: 220px;
    }
}


/* ==========================================================================
   9. Footer Banner & Footer
   ========================================================================== */
/* ==========================================================================
   9. Contact Banner Section
   ========================================================================== */
.contact-banner {
    background-color: #e6e6e6; /* Base background matching mockup spec */
    padding: 120px 0; /* Same vertical padding as major sections */
    width: 100%;
}

.contact-banner-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 50px; /* Equal left/right padding alignment (50px) */
    display: flex;
    justify-content: space-between;
    align-items: flex-end; /* Bottom alignment of title text and action button */
    gap: 120px;
}

.contact-banner-text {
    font-family: "Helvetica Neue", Helvetica, Arial, "Noto Sans JP", sans-serif;
    font-size: 3.6rem; /* Sized identical to Section Titles */
    font-weight: normal; /* Elegant regular weight as requested */
    color: #000000;
    letter-spacing: -0.02em;
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

.contact-banner-action {
    flex-shrink: 0;
    margin-bottom: 8px; /* Micro alignment to balance vertical visual line */
}

/* Responsive design for Contact Banner */
@media (max-width: 1024px) {
    .contact-banner-container {
        padding: 0 40px;
        gap: 60px;
    }
    .contact-banner-text {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        padding: 80px 0;
    }
    .contact-banner-container {
        padding: 0 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
    .contact-banner-text {
        font-size: 2.2rem;
        line-height: 1.5;
    }
    .contact-banner-action {
        align-self: flex-start;
        margin-bottom: 0;
    }
}

.footer {
    background-color: var(--color-bg-light);
    padding: 100px 0 60px;
}

.footer-container {
    max-width: 1800px; /* Synchronized width with header and hero containers */
    margin: 0 auto;
    padding: 0 50px; /* Synchronized left/right 50px alignment border */
    display: grid;
    grid-template-columns: 2fr 2fr 1fr;
    gap: 80px;
    border-top: 1px solid var(--color-border);
    padding-top: 60px;
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
}

.footer-logo {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px; /* Shrunk as requested, slightly larger than head-office-label (15px) */
    font-weight: bold; /* Helvetica Bold */
    color: var(--color-text-primary);
    letter-spacing: -0.03em; /* Moderately tight kerning matching the mockup card */
    display: inline-block;
    margin-bottom: 24px;
    text-transform: none; /* Keep original casing */
}

.company-address {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
}

.head-office-label {
    font-weight: normal; /* Unified with Home / About font weight */
    color: var(--color-text-secondary); /* Unified with Home / About font color */
}

.footer-center {
    display: flex;
    gap: 80px;
}

@media (max-width: 576px) {
    .footer-center {
        gap: 40px;
    }
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-nav-col a {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    transition: var(--transition-button);
}

.footer-nav-col a:hover {
    color: var(--color-text-primary);
}

.footer-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
}

@media (max-width: 900px) {
    .footer-right {
        align-items: flex-start;
        grid-column: span 2;
    }
}

@media (max-width: 576px) {
    .footer-right {
        grid-column: span 1;
    }
}

.sns-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px; /* Reduced from 32px to look balanced with contact text below */
}

.sns-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-button);
    color: var(--color-text-secondary);
}

.sns-link:hover {
    background-color: var(--color-bg-dark);
    color: #ffffff;
    border-color: var(--color-bg-dark);
}

.sns-link svg {
    width: 18px;
    height: 18px;
}

.footer-privacy-wrap {
    margin-top: 40px; /* Generous gap below the physical address */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Gap between copyright text and links row */
}

.privacy-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.privacy-links .divider {
    color: #86868b;
    font-size: 13px; /* Unified with copyright */
    user-select: none;
}

.footer-privacy-link {
    font-size: 13px; /* Unified with copyright */
    color: var(--color-text-secondary);
    text-decoration: underline;
    transition: var(--transition-button);
}

.footer-privacy-link:hover {
    color: var(--color-text-primary);
}

.footer-contact-info {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.8;
    text-align: right;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .footer-contact-info {
        text-align: left;
    }
}

.copyright {
    font-size: 13px; /* Standardize size (13px) */
    color: #86868b; /* Soft premium grey */
    line-height: 1.4;
}
