/* CSS Reset & Variables */
:root {
    /* Core Colors - Dark */
    --color-bg-primary: #111111;
    --color-bg-secondary: #1a1a1a;

    /* Core Colors - Light */
    --color-bg-white: #ffffff;
    --color-bg-light: #f4f5f7;
    --color-bg-concrete: #eef0f2;

    /* Text Colors */
    --color-text-primary: #ffffff;
    /* For dark bg */
    --color-text-dark: #1a1a1a;
    /* For light bg */
    --color-text-muted: #888888;
    /* For dark bg */
    --color-text-muted-light: #666666;
    /* For light bg */

    /* Accents */
    --color-accent: #A0A0A0;
    /* Silver */
    --color-accent-gold: #C5A065;
    /* Subtle Gold for premium touch */
    --color-border-dark: #333333;
    --color-border-light: #e0e0e0;

    /* Brand Colors */
    --color-line: #06C755;

    /* Typography */
    --font-base: 'Noto Sans JP', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --spacing-section: 100px;
}

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

body {
    font-family: var(--font-base);
    line-height: 1.8;
    color: var(--color-text-dark);
    background-color: var(--color-bg-white);
    -webkit-font-smoothing: antialiased;
}

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

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

/* Typography Utilities */
.font-en {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

.text-dark {
    color: var(--color-text-dark);
}

.text-accent {
    color: var(--color-accent-gold);
}

/* Section Utilities */
.section {
    padding: var(--spacing-section) 0;
}

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

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

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Titles */
.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.title-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.section-desc {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
}

/* Header Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(20, 20, 20, 0.9);
    /* Always visible dark bg for stability */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    height: 70px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
    /* Always white on dark init */
    transition: color 0.3s;
}

header.scrolled .logo {
    color: #000;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ccc;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-gold);
    transition: width 0.3s;
}

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

/* Scrolled state for links */
header.scrolled .nav-link {
    color: #555;
}

header.scrolled .nav-link:hover {
    color: #000;
}

/* Contact Button in Nav */
.nav-btn-contact {
    padding: 10px 24px;
    background: var(--color-line);
    /* Green for visibility */
    color: white !important;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.nav-btn-contact:hover {
    opacity: 0.9;
    filter: brightness(1.1);
}

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

/* No underline */

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: 0.3s;
}

header.scrolled .bar {
    background-color: #000;
}

/* Mobile menu styles moved to unified block at line ~2376 */

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    border: 1px solid currentColor;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-dark {
    background: #111;
    color: #fff;
    border-color: #111;
}

.btn-dark:hover {
    background: #333;
    border-color: #333;
}

.btn-outline {
    background: transparent;
    color: inherit;
}

.btn-outline:hover {
    background: rgba(128, 128, 128, 0.1);
}

.btn-line {
    background: var(--color-line);
    color: #fff;
    border-color: var(--color-line);
}

.btn-line:hover {
    filter: brightness(1.1);
}

/* Unified CTA Section (Common for all pages) */
.section-cta {
    background-color: #f0f4f8;
    padding: 100px 0;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.cta-btn-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 240px;
    padding: 18px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-line {
    background-color: #06C755;
    color: #fff;
    border: none;
}

.cta-btn-tel {
    background-color: #333;
    color: #fff;
    border: none;
}

.cta-btn-form {
    background-color: #fff;
    color: #333;
    border: 1px solid #333;
}

.cta-btn-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-note {
    margin-top: 24px;
    font-size: 0.85rem;
    color: #888;
}

/* Cards */
.card-light {
    background: #fff;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    transition: transform 0.3s;
    text-align: center;
}

.card-light:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    align-items: center;
}

/* Responsive */
@media (max-width: 900px) {
    /* Mobile menu styles moved to unified block at line ~2376 */

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

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

/* Mobile: Medium screens */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.4rem;
    }

    .section-desc {
        font-size: 0.85rem;
    }

    .section-label {
        font-size: 0.7rem;
    }
}

/* Mobile: Small screens */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.25rem;
    }

    .section-desc {
        font-size: 0.8rem;
    }
}

/* Grid 4 columns */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.card-simple {
    text-align: left;
    background: transparent;
    padding: 24px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.card-simple .icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
    color: var(--color-text-dark);
}

.card-simple h3 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-simple p {
    font-size: 0.9em;
    color: #444;
    line-height: 1.6;
}

/* Carousel Styles */
.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

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

.carousel-header-row .section-header {
    margin-bottom: 0;
    text-align: left;
}

.carousel-nav-buttons {
    display: flex;
    gap: 12px;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border-dark);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--color-text-dark);
}

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

.carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 24px;
    gap: 24px;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    /* Firefox */
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 calc(100% / 4 - 18px);
    /* 4 items minus gap adjustment appx */
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 32px 24px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: block;
    /* anchor tag */
}

.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.carousel-card .icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-text-dark);
}

.carousel-card .icon svg {
    width: 24px;
    height: 24px;
}

.carousel-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--color-text-dark);
}

.carousel-card p {
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .carousel-card {
        flex: 0 0 calc(100% / 2 - 12px);
        /* 2 items */
    }
}

@media (max-width: 600px) {
    .carousel-header-row {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .carousel-header-row .section-header {
        text-align: center;
    }

    .carousel-card {
        flex: 0 0 80%;
        /* Peek effect on mobile usually better than 2 tight items */
    }
}

/* Carousel Image Card Updates */
.carousel-card {
    padding: 0;
    /* Remove padding to flush image */
    overflow: hidden;
    /* rounded corners clip */
}

.card-img-wrapper {
    width: 100%;
    height: 200px;
    background: #eee;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.carousel-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.carousel-card-content {
    padding: 24px;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #eee;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* SVG Safety sizing */
svg,
img {
    max-width: 100%;
}

.icon svg {
    max-width: 80px;
    max-height: 80px;
}

/* Works Card Styles */
.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.work-card {
    display: block;
    text-decoration: none;
    background: #222;
    /* Dark card bg on Dark Section? Or transparent? */
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass/dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

.work-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #000;
    overflow: hidden;
}

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

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

.work-info {
    padding: 24px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.work-tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.work-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    margin-bottom: 0;
}

/* New Footer Styles */
footer {
    background-color: #f9f9f9;
    color: #333;
    padding: 80px 0 40px;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-left {
    flex: 1;
    max-width: 400px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    display: inline-block;
    letter-spacing: 0.1em;
    color: #000;
}

.footer-desc {
    margin-bottom: 24px;
    line-height: 1.8;
    color: #666;
}

.footer-contact {
    margin-bottom: 24px;
    font-weight: 500;
}

.footer-sns {
    display: flex;
    gap: 16px;
}

.footer-sns a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #333;
}

.footer-sns a:hover {
    background: #333;
    color: #fff;
}

.footer-sns svg {
    width: 20px;
    height: 20px;
}

.footer-right {
    display: flex;
    gap: 60px;
}

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

.footer-nav-col a {
    color: #555;
    transition: color 0.3s;
}

.footer-nav-col a:hover {
    color: #000;
}

.footer-sub {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.8rem;
}

.footer-links-inline {
    display: flex;
    gap: 24px;
}

.footer-links-inline a:hover {
    color: #333;
}

@media (max-width: 900px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-right {
        flex-wrap: wrap;
        /* or column? Prompt says 2 col for PC. Mobile 1 col vertical stack or just ensure readable. User said "1 column vertical stack" for mobile. */
        flex-direction: column;
        /* Force 1 col stack for navs? Or keep navs side by side? "情報の順番は... ナビリンク". Usually side-by-side links on mobile is fine, but prompt says "1カラムで縦積み". I will make them stack. */
        gap: 40px;
    }

    .footer-sub {
        flex-direction: column-reverse;
        gap: 20px;
        align-items: center;
        text-align: center;
    }
}

/* Dropdown Navigation */
.nav-item-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.95);
    /* Slightly transparent */
    min-width: 180px;
    /* More compact */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    padding: 8px 0;
    border-radius: 4px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-top: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-menu::before {
    /* Invisible bridge, adjusted to not cover parent */
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: #333 !important;
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
    text-align: left;
    letter-spacing: 0.05em;
}

.dropdown-item:hover {
    background-color: transparent;
    color: var(--color-accent) !important;
    padding-left: 24px;
    /* Slide effect */
}

/* Mobile Dropdown adjustment */
@media (max-width: 900px) {
    .nav-item-dropdown {
        display: block;
        height: auto;
        width: 100%;
        margin-bottom: 0;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background: transparent;
        border: none;
        padding: 0 0 0 20px;
        margin-top: 0;
        min-width: auto;
        /* Hidden by default - accordion */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }

    /* Show dropdown when accordion is open */
    .nav-item-dropdown.active .dropdown-menu {
        max-height: 500px;
        opacity: 1;
        margin-top: 5px;
    }

    .dropdown-item {
        color: #555 !important;
        padding: 8px 0;
        font-size: 0.9rem;
        display: block;
    }

    .dropdown-item:hover {
        padding-left: 0;
        color: #111 !important;
    }

    .dropdown-category-title {
        color: #333 !important;
        font-weight: 600;
        font-size: 0.85rem;
        display: block;
        padding: 8px 0 4px;
    }
}

/* Pack Mini-Cards for Hub Page */
.pack-mini-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 32px 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.pack-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.pack-mini-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
    position: relative;
    display: inline-block;
}

.pack-mini-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--color-accent-gold);
    margin-top: 8px;
    margin-bottom: 16px;
}

.pack-mini-sub {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.5;
    min-height: 2.5em;
    /* approximate alignment */
}

.pack-mini-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pack-mini-point {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 24px;
    text-align: center;
}

.link-detail-sm {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    align-self: flex-start;
    transition: opacity 0.3s;
}

.link-detail-sm:hover {
    opacity: 0.7;
}

/* Plan Comparison Table Style */
.plan-comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 4px;
    overflow: hidden;
    /* For border radius */
}

.plan-col {
    padding: 48px 32px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eef0f2;
    transition: background-color 0.3s;
}

.plan-col:last-child {
    border-right: none;
}

.plan-col:hover {
    background-color: #fcfcfc;
}

.plan-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
}

.plan-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.plan-catch {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    min-height: 2.8em;
}

.plan-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-target-text {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 32px;
    font-weight: 500;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.plan-feature-item {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 12px;
    position: relative;
    padding-left: 14px;
    line-height: 1.5;
}

.plan-feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
}

.plan-point {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: #f9f9f9;
    padding: 12px;
    text-align: center;
    margin-bottom: 32px;
    border-radius: 2px;
}

.plan-point span {
    font-weight: 700;
    color: var(--color-accent-gold);
    margin-right: 4px;
}

.plan-btn-area {
    margin-top: auto;
    text-align: center;
}

.link-arrow-plan {
    color: #333;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #ccc;
    transition: all 0.3s;
}

.link-arrow-plan:hover {
    border-color: #000;
    opacity: 0.7;
}

/* Responsive for Plan Table */
@media (max-width: 900px) {
    .plan-comparison-grid {
        grid-template-columns: repeat(2, 1fr);
        border: none;
        gap: 24px;
        background: transparent;
    }

    .plan-col {
        background: #fff;
        border: 1px solid #eef0f2;
        border-radius: 8px;
        /* Reset border-right logic */
    }

    .plan-col:last-child {
        border: 1px solid #eef0f2;
    }
}

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

/* Model List Components */
.model-category-header {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
}

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.model-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 6px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: #ddd;
}

.model-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #222;
}

.model-link {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
}

.model-link:hover {
    text-decoration: underline;
}

.related-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.related-link-btn {
    display: block;
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    font-weight: 700;
    color: #333;
    transition: all 0.3s;
}

.related-link-btn:hover {
    background: #eee;
    color: #000;
}

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

/* Product List Cards */
.product-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

.product-hub-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 40px 32px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.product-hub-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #111;
    font-family: var(--font-heading);
    position: relative;
    padding-bottom: 16px;
}

.product-hub-name::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: var(--color-accent-gold);
}

.product-hub-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
    /* Pushes bottom content down */
}

.product-target-box {
    background: #fcfcfc;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 4px;
    margin-bottom: 32px;
}

.product-target-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    margin-bottom: 8px;
}

.product-target-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-target-item {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-target-item::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    background: #ccc;
    border-radius: 50%;
}

.product-hub-link {
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid #ccc;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.product-hub-link:hover {
    opacity: 0.7;
    border-color: #000;
}

@media (max-width: 900px) {
    .product-hub-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Service List Cards */
.service-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.service-card-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #111;
    font-family: var(--font-heading);
}

.service-card-desc {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    background: #fcfcfc;
    padding: 16px;
    border-radius: 4px;
}

.service-feature-item {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-feature-item::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    background: var(--color-accent-gold);
    border-radius: 50%;
}

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

.link-arrow-service {
    font-weight: 700;
    color: var(--color-text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #ccc;
    align-self: flex-start;
    transition: opacity 0.2s;
}

.link-arrow-service:hover {
    opacity: 0.7;
    border-color: #000;
}

/* Works Page Specific */
.works-category-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.works-cat-btn {
    border: 1px solid #ccc;
    padding: 12px 32px;
    border-radius: 50px;
    text-decoration: none;
    color: #222;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.works-cat-btn.active,
.works-cat-btn:hover {
    background: #333;
    color: #fff;
    border-color: #333;
}

.works-detail-section {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 40px;
}

.works-detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.works-detail-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 16px;
}

.works-detail-meta {
    display: flex;
    gap: 24px;
    font-size: 0.9rem;
    color: #444;
}

.works-detail-content h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-left: 16px;
    border-left: 4px solid var(--color-accent-gold);
}

.works-detail-content p {
    color: #333;
    line-height: 1.8;
    margin-bottom: 24px;
}

.works-detail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.works-gallery-img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Work Card Adjustments for Light Backgrounds (Works Page) */
.section-light .work-title,
.section-white .work-title {
    color: #111;
}

.section-light .work-tag,
.section-white .work-tag {
    color: #444;
    /* Darker text for tags */
    background: #f0f0f0;
    /* Light gray background instead of transparent white */
}

.section-light .work-info p,
.section-white .work-info p {
    color: #444 !important;
    /* Force override inline styles if needed, though best to edit html */
}

/* Sales Page Specific */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

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

/* Shop & Access Page */
.shop-info-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 56px;
}

@media (max-width: 768px) {
    .shop-info-card-grid {
        grid-template-columns: 1fr;
    }
}

.shop-info-card {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 32px;
}

.shop-info-card h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 8px;
    margin-bottom: 24px;
    font-size: 1.2rem;
    color: #111;
}

.shop-table {
    width: 100%;
    margin-bottom: 0;
}

.shop-table th,
.shop-table td {
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #f5f5f5;
}

.shop-table th {
    width: 100px;
    color: #666;
    font-weight: 500;
}

.shop-table td {
    color: #333;
    font-weight: 500;
}

.shop-table tr:last-child th,
.shop-table tr:last-child td {
    border-bottom: none;
}

.access-steps-container {
    max-width: 800px;
    margin: 0 auto;
}

.access-step-card {
    display: flex;
    gap: 32px;
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    align-items: center;
}

@media (max-width: 768px) {
    .access-step-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 32px;
    }
}

.step-img-wrapper {
    flex: 0 0 240px;
    height: 160px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 768px) {
    .step-img-wrapper {
        flex: auto;
        width: 100%;
        height: 200px;
    }
}

.step-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.step-content {
    flex: 1;
}

.step-num {
    display: inline-block;
    background: #333;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.dir-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    margin-right: 4px;
}

.dir-badge.left {
    background: #d9534f;
    /* Red */
}

.dir-badge.right {
    background: #0275d8;
    /* Blue */
}

.dir-badge.straight {
    background: #5cb85c;
    /* Green */
}

/* Tabs */
.access-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.access-tab-btn {
    padding: 12px 24px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #666;
}

.access-tab-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Terms and Privacy Page */
.terms-content {
    background: #fff;
    padding: 60px;
    border-radius: 8px;
    border: 1px solid #eef0f2;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .terms-content {
        padding: 32px 24px;
    }
}

.terms-content h2,
.terms-content h3 {
    color: #111;
    margin-bottom: 24px;
    margin-top: 40px;
    font-size: 1.3rem;
    font-weight: 700;
}

.terms-content h2:first-of-type {
    margin-top: 0;
}

.terms-content p {
    color: #444;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.terms-content ul,
.terms-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
    color: #444;
    line-height: 1.8;
}

.terms-content ul li,
.terms-content ol li {
    margin-bottom: 8px;
}

/* Japanese Navigation Adjustments */
.nav-link {
    font-size: 0.9rem;
    /* Slightly smaller for Japanese text fit */
    letter-spacing: 0.05em;
    font-weight: 500;
}

@media (max-width: 1200px) {
    .nav-link {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

.dropdown-menu {
    min-width: 220px;
    /* Wider for Japanese */
}

.dropdown-item {
    font-size: 0.9rem;
    padding: 12px 20px;
}

/* Ensure logo stays English per user implied brand rules or separate request, 
   but navigation text becomes Japanese */

/* Mega Dropdown and Nested Dropdown Styles */
.nav-item-dropdown {
    position: relative;
    /* Ensure hover works properly */
}

/* Dropdown Menu Base */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 260px;
    /* Slightly wider */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 16px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
}

.nav-item-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Category Header inside Dropdown */
.dropdown-category-title {
    display: block;
    padding: 12px 24px 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 8px;
    /* Not a link itself usually, but if link make block */
    text-decoration: none;
}

a.dropdown-category-title:hover {
    color: #333;
}

/* Items */
.dropdown-item {
    display: block;
    padding: 8px 24px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dropdown-item:hover {
    background: #f9f9f9;
    color: #000;
}

/* Sub-items specific indentation */
.dropdown-sub-item {
    padding-left: 40px;
    font-size: 0.85rem;
    color: #555;
    position: relative;
}

.dropdown-sub-item::before {
    content: '-';
    position: absolute;
    left: 28px;
    color: #ccc;
}

/* Mobile Adjustments for nested menu */
@media (max-width: 900px) {
    .dropdown-menu {
        position: static;
        box-shadow: none;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        /* JS toggle */
        background: transparent;
    }

    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-category-title {
        color: #fff;
        /* In burger menu dark bg */
        border-bottom-color: rgba(255, 255, 255, 0.1);
        padding-left: 0;
    }

    .dropdown-item {
        color: #ccc;
        padding-left: 16px;
    }

    .dropdown-item:hover {
        background: transparent;
        color: #fff;
    }

    .dropdown-sub-item {
        padding-left: 32px;
        color: #aaa;
    }
}

/* Footer Layout Update: 3 Columns */
.footer-main {
    flex-wrap: wrap;
    /* Enable wrapping for 3 cols */
    gap: 40px;
}

.footer-left {
    /* Brand Col */
    flex: 1 1 250px;
    max-width: 300px;
}

.footer-center {
    /* Security Col */
    flex: 1 1 200px;
}

.footer-right {
    /* Menu Col */
    flex: 1 1 200px;
    display: block;
    /* Override flex if previously set */
}

.footer-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    border-left: 3px solid #d4a017;
    padding-left: 12px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-list a {
    color: #ccc;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-list a:hover {
    color: #fff;
    text-decoration: underline;
}

.footer-links-sub {
    margin-top: 8px;
    margin-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 12px;
}

.footer-links-sub a {
    font-size: 0.85rem;
    color: #999;
}

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

@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        max-width: 100%;
        flex: auto;
    }
}

/* Footer Visibility Improvements */

/* Ensure footer background is suitable (light as implied by user request for dark text) */
footer {
    background: #fff;
    /* Enforce white background if not already */
    color: #333;
    border-top: 1px solid #eaeaea;
}

/* Headings */
.footer-column-title {
    color: #111;
    /* Dark text */
    font-size: 1rem;
    /* Slightly larger */
    font-weight: 700;
    border-left-color: #c59d5f;
    /* Muted gold */
    margin-bottom: 24px;
    padding-left: 16px;
    /* More space from line */
}

/* Links */
.footer-links-list a {
    color: #555;
    /* Darker readable grey */
    font-weight: 500;
}

.footer-links-list a:hover {
    color: #111;
    /* Black on hover */
    text-decoration: underline;
}

/* Sub-links (nested) */
.footer-links-sub {
    border-left-color: #ddd;
    /* Visible light grey line */
}

.footer-links-sub a {
    color: #666;
}

.footer-links-sub a:hover {
    color: #111;
}

/* SNS Icons */
.footer-sns {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.sns-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #111;
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s;
    text-decoration: none;
}

.sns-icon-link:hover {
    background: #d4a017;
    /* Brand color on hover */
    transform: translateY(-2px);
}

.sns-icon-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Old "Mobile Navigation Enhancements" block removed - all styles consolidated into unified block below */

/* =====================================================
   MOBILE MENU - UNIFIED STYLES (max-width: 1024px)
   ===================================================== */

@media (max-width: 1024px) {

    /* ---- 1. Hamburger Toggle Button ---- */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        width: 44px;
        height: 44px;
        padding: 12px 8px;
        background: rgba(0, 0, 0, 0.6);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        position: fixed;
        top: 15px;
        right: 5%;
        z-index: 3000;
        /* HIGHEST - always on top */
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: all 0.3s;
        cursor: pointer;
    }

    .menu-toggle:hover {
        background: rgba(0, 0, 0, 0.8);
    }

    header.scrolled .menu-toggle {
        background: rgba(0, 0, 0, 0.8);
    }

    .bar {
        width: 24px;
        height: 2px;
        background-color: #fff !important;
        border-radius: 2px;
        transition: 0.3s;
    }

    /* X animation when active */
    .menu-toggle.active {
        border-color: transparent;
    }

    .menu-toggle.active .bar {
        position: absolute;
        top: 50%;
        left: 50%;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translate(-50%, -50%) rotate(45deg);
        width: 24px;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translate(-50%, -50%) rotate(-45deg);
        width: 24px;
    }

    /* ---- 2. Overlay (Dark dimming behind panel) ---- */
    .mobile-menu-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 2000 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

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

    /* ---- 3. Navigation Panel ---- */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        height: 100vh !important;
        height: 100dvh !important;
        width: 85vw !important;
        max-width: 360px !important;

        /* SOLID WHITE - both shorthand and longhand to override any previous */
        background: #ffffff !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        filter: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;

        z-index: 2500 !important;
        /* Above overlay (2000), below toggle (3000) */
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2) !important;

        /* Slide in from right */
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);

        display: flex !important;
        flex-direction: column !important;
        padding: 80px 24px 40px !important;
        overflow-y: auto !important;
    }

    .nav-menu.active {
        transform: translateX(0) !important;
    }

    /* ---- 4. Navigation Links ---- */
    .nav-link {
        color: #111 !important;
        font-size: 1rem;
        font-weight: 600 !important;
        border-bottom: 1px solid #eee;
        padding: 16px 0 !important;
        width: 100%;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-decoration: none;
        background: transparent !important;
    }

    .nav-link:hover,
    .nav-link:active {
        color: #000 !important;
        background: #f5f5f5 !important;
    }

    /* Arrow indicator */
    .nav-link span {
        font-size: 0.8em;
        opacity: 0.5;
        display: inline-block;
        transition: transform 0.3s;
    }

    .nav-item-dropdown.active>.nav-link span {
        transform: rotate(180deg);
    }

    /* ---- 5. Dropdown Accordion ---- */
    .nav-item-dropdown {
        display: block;
        width: 100%;
    }

    .nav-item-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        box-shadow: none !important;
        background: #f8f8f8 !important;
        border: none !important;
        border-radius: 8px;
        padding: 0 0 0 16px !important;
        margin: 0 !important;
        min-width: auto !important;
        width: 100% !important;
        /* Accordion: hidden by default */
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.3s ease, opacity 0.2s ease;
    }

    .nav-item-dropdown.active .dropdown-menu {
        max-height: 600px;
        opacity: 1;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .dropdown-item {
        color: #444 !important;
        padding: 10px 16px !important;
        font-size: 0.9rem;
        display: block !important;
        text-decoration: none;
        border-bottom: 1px solid #eee;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    .dropdown-item:hover,
    .dropdown-item:active {
        color: #111 !important;
        background: #f0f0f0 !important;
    }

    .dropdown-category-title {
        color: #888 !important;
        font-weight: 600;
        font-size: 0.8rem;
        display: block;
        padding: 12px 16px 4px !important;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .dropdown-sub-item {
        padding-left: 28px !important;
    }

    .dropdown-sub-item::before {
        display: none;
    }

    /* ---- 6. Contact Button ---- */
    .nav-btn-contact {
        display: block !important;
        margin-top: 24px !important;
        background: #333 !important;
        color: #fff !important;
        text-align: center !important;
        padding: 14px 16px !important;
        border-radius: 8px !important;
        font-weight: 700 !important;
        font-size: 0.95rem !important;
        border: none !important;
        text-decoration: none !important;
    }

    .nav-btn-contact:hover,
    .nav-btn-contact:active {
        background: #555 !important;
    }

    /* ---- 7. Body lock when menu open ---- */
    body.is-menu-open {
        overflow: hidden !important;
    }

    /* ---- 8. Fix stacking context: header must be above overlay when menu open ---- */
    /* The header creates a stacking context with z-index:1000.
       .nav-menu (child of header) has z-index:2500, but it can't escape 
       header's stacking context. The overlay (z-index:2000, appended to body)
       sits ABOVE the entire header, intercepting all taps on the menu panel.
       Fix: raise header above overlay when menu is open. */
    body.is-menu-open header {
        z-index: 3500 !important;
    }
}





@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Footer Clean Up & Optimization */

/* Spacing */
.footer-links-list {
    gap: 16px;
    /* Increased gap */
}

.footer-links-list a {
    color: #555;
    /* Ensure readable grey */
    font-size: 0.95rem;
    /* Slightly larger */
    transition: all 0.3s;
    display: inline-block;
    /* For transform */
}

.footer-links-list a:hover {
    color: #111;
    transform: translateX(4px);
    /* Hover effect */
    text-decoration: none;
    /* Remove underline if transform used */
}

/* Footer Contact Button */
.footer-btn-contact {
    display: inline-block;
    margin-top: 12px;
    padding: 12px 24px;
    background: #444;
    /* Dark button */
    color: #fff !important;
    /* Force white text */
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s;
}

.footer-btn-contact:hover {
    background: #d4a017;
    /* Gold on hover */
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Hide Sub-links logic if any residue remains but usually HTML update fixes it */
.footer-links-sub {
    display: none !important;
}

/* Revert specific footer button styling to match list if needed, or just let it inherit */
/* Since we removed the class, it falls back to .footer-links-list a which has correct styling */
/* But we might want to ensure it has same color as others if we previously targeted it */

/* Specifically for contact link, maybe give it a slight accent color or bold */
.footer-links-list a[href*="contact.html"] {
    font-weight: 700;
    color: #333;
    /* Slightly darker than others */
}

.footer-links-list a[href*="contact.html"]:hover {
    color: #d4a017;
}

/* Footer Sub-links Indentation */
.footer-sub-link {
    display: block !important;
    /* Ensure visibility */
    margin-left: 16px;
    font-size: 0.85rem !important;
    color: #777 !important;
    position: relative;
    padding-left: 12px;
}

.footer-sub-link::before {
    content: '-';
    position: absolute;
    left: 0;
    color: #ccc;
}

.footer-sub-link:hover {
    color: #111 !important;
    transform: translateX(4px);
}

/* News Section Styles */
.news-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid #e0e0e0;
}

.news-item {
    display: flex;
    align-items: flex-start;
    padding: 28px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.2s;
    text-decoration: none;
    color: inherit;
    gap: 40px;
}

.news-item:hover {
    background-color: transparent;
    opacity: 0.8;
}

.news-item:hover .news-title {
    color: var(--color-accent-gold);
    transition: color 0.3s;
}

.news-meta {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.news-date {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted-light);
    letter-spacing: 0.05em;
}

.news-badge {
    display: inline-block;
    background-color: var(--color-accent-gold);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 2px;
    text-align: center;
    width: fit-content;
    letter-spacing: 0.05em;
}

.news-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.news-category-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 3px;
    color: #fff;
    letter-spacing: 0.03em;
}

.news-content {
    flex: 1;
}

.news-title {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--color-text-dark);
}

.news-summary {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

@media (max-width: 768px) {
    .news-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px 0;
    }

    .news-meta {
        flex: auto;
        flex-direction: row;
        align-items: center;
        width: 100%;
        gap: 16px;
    }

    .news-date {
        font-size: 0.9rem;
    }
}

/* Page Title Label (English subtitle above Japanese page title) */
.page-title-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--color-accent-gold);
    margin-bottom: 12px;
    display: block;
}

/* Product Detail Page Feature Cards */
.feature-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: #fcfcfc;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    color: var(--pd-accent, var(--color-accent-gold));
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-card-icon svg {
    width: 30px;
    height: 30px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.25;
    /* 細線に設定 */
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card:hover .feature-card-icon {
    background: #fff;
    border-color: var(--pd-accent, var(--color-accent-gold));
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}