/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;700;800;900&family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg: transparent;
    --color-surface: rgba(255, 255, 255, 0.5);
    --color-border: #e2e0d9;
    --color-text-main: #333333;
    --color-text-muted: #666666;

    --color-orange: #ea6b00;
    --color-blue: #6075f9;
    /* 右バナー等 */
    --color-green: #1f7d23;
    --color-dark: #2a2a2a;

    /* Typography */
    --font-en: 'Montserrat', Arial, sans-serif;
    --font-ja: 'Noto Sans JP', Arial, sans-serif;
    /* 本文Arial指定 */

    --radius: 4px;
    --sidebar-width: 238px;
    --header-height: 70px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background: #f5f4ef;
}

body {
    font-family: var(--font-ja);
    color: var(--color-text-main);
    background-color: transparent;
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

a:hover {
    opacity: 0.7;
}

/* ===== GEOMETRIC ANIMATED BACKGROUND ===== */
#bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
}

.bg-circle-1 {
    width: 90vw;
    height: 90vw;
    top: -15vw;
    left: -10vw;
    animation: orb1 60s linear infinite;
}

.bg-circle-2 {
    width: 70vw;
    height: 70vw;
    top: 30vh;
    right: -25vw;
    animation: orb2 50s linear infinite;
}

.bg-circle-3 {
    width: 120vw;
    height: 120vw;
    bottom: -50vw;
    left: -20vw;
    animation: orb3 80s linear infinite;
}

@keyframes orb1 {
    0% {
        transform: rotate(0deg) translate(5vw) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(5vw) rotate(-360deg);
    }
}

@keyframes orb2 {
    0% {
        transform: rotate(0deg) translate(-8vw) rotate(0deg);
    }

    100% {
        transform: rotate(360deg) translate(-8vw) rotate(-360deg);
    }
}

@keyframes orb3 {
    0% {
        transform: rotate(0deg) translate(10vw) rotate(0deg);
    }

    100% {
        transform: rotate(-360deg) translate(10vw) rotate(360deg);
    }
}

/* ===== LAYOUT ===== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Collapse Transition */
body.sidebar-collapsed {
    --sidebar-width: 0px;
}

body.sidebar-collapsed .sidebar {
    transform: translateX(-100%);
    overflow: hidden;
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100%;
}

/* Sidebar Overlay */
#sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 95;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#sidebar-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Sidebar text visibility — text hidden during transition, shown after */
.sidebar .sidebar__link-label,
.sidebar .sidebar__link-arrow,
.sidebar .sidebar__logo-container img,
.sidebar .sidebar-collapse-btn,
.sidebar .owned-media-banner,
.sidebar .sidebar__footer {
    opacity: 0;
    transition: opacity 0.3s ease 0s;
}

.sidebar.text-visible .sidebar__link-label,
.sidebar.text-visible .sidebar__link-arrow,
.sidebar.text-visible .sidebar__logo-container img,
.sidebar.text-visible .sidebar-collapse-btn,
.sidebar.text-visible .owned-media-banner,
.sidebar.text-visible .sidebar__footer {
    opacity: 1;
    transition: opacity 0.3s ease 0.1s;
}

/* ===== HEADER ===== */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(245, 244, 239, 0.9);
    backdrop-filter: blur(8px);
    z-index: 310;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: none;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header Left — logo + hamburger */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-logo-link {
    display: flex;
    align-items: center;
}

.header-logo-img {
    height: 52px;
    width: auto;
}

/* Knot Toggle Button */
.knot-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 1;
    color: var(--color-text-main);
    overflow: visible;
    gap: 2px;
}

.knot-toggle__label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-right: -0.1em;
    color: var(--color-text-muted);
    font-family: var(--font-en);
    text-align: center;
    line-height: 1;
}

.knot-svg {
    overflow: visible;
}

/* Hamburger lines — smooth transitions */
.knot-line {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Circle — smooth draw */
.knot-c {
    stroke-dasharray: 87.96;
    stroke-dashoffset: 87.96;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease;
}

/* is-active (sidebar CLOSED): lines fade, circle draws in */
.knot-toggle.is-active .knot-line-1 {
    opacity: 0;
    transform: scaleX(0);
}

.knot-toggle.is-active .knot-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.knot-toggle.is-active .knot-c {
    stroke-dashoffset: 0 !important;
    transform: rotate(360deg);
}

/* is-opening */
.knot-toggle.is-opening .knot-line-1 {
    opacity: 0;
    transform: scaleX(0);
}

.knot-toggle.is-opening .knot-line-2 {
    opacity: 0;
    transform: scaleX(0);
}

.knot-toggle.is-opening .knot-c {
    stroke-dashoffset: 0 !important;
    transform: rotate(360deg);
}

/* Hover */
.knot-toggle:hover .knot-line-1 {
    transform: translateY(-1px);
}

.knot-toggle:hover .knot-line-2 {
    transform: translateY(1px);
}

.knot-toggle.is-active:hover .knot-c {
    opacity: 0.8;
}


/* CTA button in header */
.header-cta {
    background: var(--color-orange);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    white-space: nowrap;
    transition: background 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.header-cta:hover {
    background: #d46000;
    transform: translateY(-1px);
}

.header-nav {
    display: flex;
    align-items: center;
    height: 100%;
}

.header-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.header-link {
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 700;
    margin-left: 30px;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 4px;
    height: 100%;
}

.header-link:hover {
    color: var(--color-orange);
}

.nav-badge-new {
    background-color: var(--color-orange);
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    font-family: var(--font-en);
    padding: 1px 5px;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    transform: translateY(-0.1em);
    letter-spacing: 0.05em;
    margin-left: 2px;
}

.nav-badge-soon {
    background-color: #999;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    font-family: var(--font-en);
    padding: 1px 5px;
    border-radius: 2px;
    position: relative;
    display: inline-block;
    transform: translateY(-0.1em);
    letter-spacing: 0.05em;
    margin-left: 2px;
}

.header-arrow {
    font-size: 8px;
    transition: transform 0.3s;
}

/* Header Dropdown */
.header-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 280px;
    z-index: 210;
}

.header-nav-item:hover .header-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.header-nav-item:hover .header-arrow {
    transform: rotate(180deg);
}

.dropdown-header {
    font-family: var(--font-en);
    color: var(--color-orange);
    font-weight: 900;
    font-size: 14px;
    margin-bottom: 32px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    display: block;
}

.dropdown-link {
    display: flex;
    flex-direction: column;
    padding: 12px 10px;
    border-radius: 8px;
    transition: background 0.3s;
    position: relative;
    color: var(--color-text-main);
}

.dropdown-link:hover {
    background: #f9f9f9;
}

.dropdown-title {
    font-family: var(--font-en);
    font-weight: bold;
    font-size: 15px;
}

.dropdown-sub {
    font-size: 11px;
    color: var(--color-text-muted);
    font-family: var(--font-ja);
}

.dropdown-dot {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-orange);
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.dropdown-link:hover .dropdown-dot {
    opacity: 1;
}

/* ===== SIDEBAR ===== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding-top: var(--header-height);
    background: #f5f4ef;
    /* Opaque background to prevent see-through */
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 300;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s;
}

/* ロゴサイズを枠内いっぱいに — ヘッダーと同じ高さ */
.sidebar__logo-container {
    height: var(--header-height);
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar__logo-container img {
    height: 50px;
    width: auto;
    display: block;
}

.sidebar-collapse-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius);
    margin-left: auto;
    transition: background 0.3s, color 0.3s;
    flex-shrink: 0;
}

.sidebar-collapse-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text-main);
}

/* old logo rule removed — see above */

.sidebar__nav {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar__link {
    padding: 14px 20px;
    font-family: var(--font-ja);
    font-weight: bold;
    font-size: 14px;
    color: var(--color-text-main);
    background: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    transition: background 0.3s;
}

.sidebar__link:hover {
    background: rgba(0, 0, 0, 0.02);
}

.sidebar__link--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-text-main);
}

/* ===== OWNED MEDIA BANNER (Image 3 Style) ===== */
.owned-media-banner {
    margin: 20px 0;
    padding: 20px;
    background: transparent;
    border: none;
    border-top: 1px dashed var(--color-border);
    border-bottom: 1px dashed var(--color-border);
    border-radius: 0;
    position: relative;
    display: block;
    text-align: left;
    transition: background 0.3s;
}

.owned-media-banner:hover {
    background: rgba(0, 0, 0, 0.02);
}

.owned-media-banner::before {
    display: none;
}

.owned-media-title {
    font-family: var(--font-en);
    font-size: 16px;
    font-weight: 900;
    color: #111;
    margin-bottom: 4px;
}

.owned-media-sub {
    font-family: var(--font-en);
    font-size: 10px;
    font-weight: bold;
    color: #888;
    letter-spacing: 0.05em;
}

/* SIDEBAR FOOTER CTA */
.sidebar__footer {
    margin-top: auto;
    padding: 15px;
    border-top: 1px solid var(--color-border);
}

.sidebar__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
    transition: background 0.3s, transform 0.2s;
}

.sidebar__btn:hover {
    transform: translateY(-1px);
}

.sidebar__btn-arrow {
    font-size: 16px;
    font-weight: 300;
}

.sidebar__btn--orange {
    background: transparent;
    color: var(--color-orange);
    border: 1.5px solid var(--color-orange);
}

.sidebar__btn--orange:hover {
    background: var(--color-orange);
    color: #fff;
}

.sidebar__btn--green {
    background: transparent;
    color: var(--color-green);
    border: 1.5px solid var(--color-green);
    margin-bottom: 0;
}

.sidebar__btn--green:hover {
    background: var(--color-green);
    color: #fff;
}

/* ===== RIGHT FIXED VERTICAL BANNER (Image 2 style) ===== */
@media (max-width: 1200px) {
    .right-banner-wrapper {
        display: none !important;
    }
}

.right-banner-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    /* hidden entry */
    z-index: 180;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.right-banner-wrapper.is-visible {
    transform: translateY(-50%) translateX(0);
}

.right-banner {
    writing-mode: vertical-rl;
    text-orientation: upright;
    padding: 24px 12px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.2em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    text-decoration: none;
}

.right-banner:hover {
    opacity: 0.9;
}

.right-banner--orange {
    background: var(--color-orange);
    border-top-left-radius: var(--radius);
}

.right-banner--green {
    background: var(--color-green);
    border-bottom-left-radius: var(--radius);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    overflow-x: hidden;
    transition: margin-left 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.sidebar-collapsed .main-content {
    margin-left: 0;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 40px);
}

/* ===== TYPOGRAPHY ===== */
.heading-en {
    font-family: var(--font-en);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-main);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.heading-ja {
    font-family: var(--font-ja);
    font-weight: bold;
    word-break: keep-all;
    overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
h5,
h6,
.card__title,
.visual-title-en,
.visual-title-ja {
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* ===== VISUAL SECTIONS ===== */
.visual-section {
    position: relative;
    width: 100%;
    height: 20vh;
    min-height: 180px;
    max-height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    margin-bottom: 0px;
    border-radius: var(--radius);
    overflow: hidden;
}

.visual-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.visual-title-en {
    font-family: var(--font-en);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 0.15em;
    line-height: 1;
    margin-bottom: 10px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.visual-title-ja {
    font-size: 16px;
    letter-spacing: 0.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.visual-title-ja::before {
    content: '—';
}

/* ===== COMPONENT GRIDS ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(20px, 3vw, 40px);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 30px);
}

/* ===== CARDS ===== */
.card {
    background: #f5f4ef;
    /* Opaque background to prevent see-through */
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

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

.card__icon-wrapper {
    margin-bottom: 32px;
    height: 48px;
    display: flex;
    align-items: center;
}

.card__icon-text {
    font-family: var(--font-en);
    font-size: 32px;
    font-weight: 900;
    color: var(--color-border);
}

.card__title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.card__desc {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn-line {
    display: inline-block;
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--color-text-main);
    padding-bottom: 4px;
    margin-top: 20px;
    transition: padding-left 0.3s;
}

.btn-line:hover {
    padding-left: 10px;
    opacity: 1;
}

/* Legacy cta-banner (kept for compatibility) */
.cta-banner {
    background: var(--color-bg);
    border: none;
    padding: clamp(12px, 2vw, 24px) clamp(16px, 3vw, 32px);
    border-radius: var(--radius);
    margin: 20px 0;
    text-align: center;
}

.cta-banner__title {
    font-size: clamp(16px, 2vw, 20px);
    font-weight: bold;
    margin-bottom: 24px;
}

.cta-banner__buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-large {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 32px;
    border-radius: 6px;
    color: #fff;
    min-width: 220px;
    max-width: 380px;
    position: relative;
    flex: 1;
}

.btn-large:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-orange {
    background: var(--color-orange);
}

.btn-green {
    background: var(--color-green);
}

.btn-large__sub {
    font-size: 11px;
    font-weight: bold;
    opacity: 0.9;
    margin-bottom: 2px;
}

.btn-large__main {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: bold;
    letter-spacing: 0.05em;
}

.btn-large__arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-en);
    font-size: 20px;
    font-weight: 300;
}

/* Image panel CTA section */
.cta-panels {
    display: flex;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 60px calc(-1 * clamp(20px, 4vw, 40px)) 0;
}

.cta-panel {
    position: relative;
    flex: 1;
    height: 294px;
    min-height: 294px;
    max-height: 294px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px 48px;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cta-panel:hover {
    transform: scale(1.02);
}

.cta-panel:hover .cta-panel__overlay {
    opacity: 0.35;
}

.cta-panel--download {
    background-image: url('https://images.unsplash.com/photo-1568992688065-536aad8a12f6?auto=format&fit=crop&q=80&w=1200');
}

.cta-panel--contact {
    background-image: url('https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?auto=format&fit=crop&q=80&w=1200');
}

.cta-panel__overlay {
    position: absolute;
    inset: 0;
}

.cta-panel__overlay--green {
    background: var(--color-green);
    opacity: 0.2;
}

.cta-panel__overlay--orange {
    background: var(--color-orange);
    opacity: 0.2;
}

.cta-panel__content {
    position: relative;
    z-index: 1;
}

.cta-panel__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    opacity: 0.95;
}

.cta-panel__label::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

.cta-panel__heading {
    font-family: var(--font-en);
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cta-panel__desc {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 360px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 600px) {
    .cta-panel {
        height: 200px;
        min-height: 200px;
        max-height: 200px;
        padding: 24px 20px;
    }

    .cta-panel__heading {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .cta-panel__desc {
        display: none;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: #f5f4ef;
    /* Opaque background to prevent see-through */
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.table th,
.table td {
    padding: 24px;
    border-bottom: 1px solid var(--color-border);
    text-align: left;
}

.table th {
    font-weight: bold;
    background: var(--color-bg);
    width: 200px;
}

/* ===== CAROUSEL (For News) ===== */
.carousel-wrapper {
    margin: 0 -20px;
    padding: 0 20px 20px;
    overflow: hidden;
}

.carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scrollbar-width: none;
}

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

.carousel-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    cursor: pointer;
    background: #f5f4ef;
    /* Opaque background to prevent see-through */
    border: none;
    border-radius: var(--radius);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Floating auto-scroll carousel */
.carousel--floating {
    scroll-snap-type: none;
    overflow: hidden;
}

.carousel--floating .carousel-card {
    flex: 0 0 300px;
    scroll-snap-align: none;
}

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

/* News carousel with nav buttons */
.news-carousel-outer {
    position: relative;
    margin-bottom: 0;
}

.news-carousel-outer .carousel-wrapper {
    margin: 0;
    padding-bottom: 20px;
    overflow: hidden;
}

.news-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.10);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    user-select: none;
    z-index: 2;
}

.news-nav-btn--prev { left: 12px; }
.news-nav-btn--next { right: 12px; }

.news-nav-btn:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-60%) scale(1.07);
}

.news-nav-btn:active {
    transform: translateY(-60%) scale(0.95);
}

.news-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.news-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #eee;
}

.news-content {
    padding: 24px 24px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.news-date {
    font-family: var(--font-en);
    font-size: 12px;
    color: var(--color-text-muted);
}

.news-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.6;
    flex: none;
    min-height: calc(15px * 1.6 * 4);
    margin: 0;
}

.news-tag {
    display: inline-block;
    padding: 4px 8px;
    background: var(--color-text-main);
    color: #fff;
    font-size: 10px;
    font-family: var(--font-en);
    font-weight: bold;
    margin-bottom: 12px;
}

/* ===== Footer Style ===== */
.site-footer {
    background: #1a1a1a;
    padding: 40px 40px 16px;
    border-top: none;
    font-family: var(--font-ja);
    color: #ccc;
}

.site-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer__top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 16px;
}

.site-footer__left {
    max-width: 400px;
    padding-left: 0;
}

.site-footer__logo-img {
    width: 240px;
    margin-bottom: 32px;
    filter: brightness(0) invert(1);
    display: block;
}

.site-footer__company-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff;
}

.site-footer__address {
    font-size: 12px;
    color: #999;
    line-height: 1.7;
    margin-bottom: 24px;
}

.site-footer__partners {
    display: flex;
    gap: 16px;
    align-items: center;
}

.site-footer__partners img {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.site-footer__right {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.site-footer__right-navs {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.site-footer__nav-col h4 {
    font-family: var(--font-en);
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: bold;
    color: #fff;
}

.site-footer__nav-col ul {
    list-style: none;
}

.site-footer__nav-col li {
    margin-bottom: 8px;
}

.site-footer__nav-col a {
    font-size: 12px;
    color: #999;
    font-weight: normal;
}

.site-footer__nav-col a:hover {
    color: #fff;
}

.site-footer__sns {
    display: none;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11px;
    color: #666;
}

.site-footer__legal {
    display: flex;
    gap: 20px;
    align-items: center;
}

.site-footer__bottom a {
    font-weight: normal;
    color: #999;
}

.site-footer__bottom a:hover {
    color: #fff;
}

/* ===== SCROLL ANIMATIONS (Sevendex like) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */

/* Wide screens — prevent content stretching too far */
@media (min-width: 1600px) {
    .container {
        max-width: 1200px;
    }

    .visual-title-en {
        font-size: 64px;
    }

    .card {
        padding: 48px;
    }
}

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

    .visual-title-en {
        font-size: 50px;
    }

    .card {
        padding: 30px;
    }

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 100%;
        background: rgba(245, 244, 239, 0.98);
        align-items: center;
        padding-top: calc(var(--header-height) + 40px);
    }

    .sidebar__nav {
        width: 100%;
        max-width: 400px;
        text-align: center;
    }

    .sidebar__link {
        justify-content: center;
        font-size: 18px;
        padding: 20px;
    }

    .sidebar__link-arrow {
        display: none;
    }

    .sidebar__footer {
        width: 100%;
        max-width: 400px;
        padding-bottom: 40px;
        border-top: none;
    }

    .owned-media-banner {
        max-width: 400px;
        width: calc(100% - 40px);
        text-align: center;
    }

    .sidebar.is-open {
        transform: translateX(0);
        box-shadow: none;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .header-nav {
        display: none;
    }

    .overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 30px clamp(20px, 4vw, 40px);
    }

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

    .visual-title-en {
        font-size: 36px;
    }

    .visual-section {
        height: 30vh;
        min-height: 180px;
        max-height: 240px;
        border-radius: 0;
    }

    .btn-large {
        min-width: auto;
        flex: 1 1 100%;
        padding: 16px 24px;
    }

    .btn-large__main {
        font-size: 16px;
    }

    .cta-banner {
        margin: 20px 0;
        padding: clamp(12px, 2vw, 24px) 16px;
    }

    .cta-banner__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .card {
        padding: 24px;
    }

    .site-footer {
        padding: 24px 16px 12px;
    }

    .site-footer__top {
        flex-direction: column;
    }

    .site-footer__right {
        flex-direction: column;
        gap: 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .site-footer__right-navs {
        flex-direction: column;
        gap: 30px;
    }

    .site-footer__partners {
        justify-content: flex-start;
        width: 100%;
    }

    .header-nav {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .header-cta {
        font-size: 11px;
        padding: 10px 17px;
    }

    .header-logo-img {
        height: 40px;
    }

    .right-banner-wrapper {
        display: none !important;
    }

    .heading-en {
        font-size: clamp(24px, 6vw, 32px) !important;
    }

    .overlay.is-active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 480px) {
    .header-cta {
        display: none;
    }

    .container {
        padding: 24px clamp(20px, 4vw, 40px);
    }

    .card {
        padding: 20px;
    }

    .card__title {
        font-size: 16px;
    }

    .card__desc {
        font-size: 13px;
    }

    .visual-title-en {
        font-size: 28px;
    }

    .visual-title-ja {
        font-size: 13px;
    }
}




/* ===== Right Fixed Banner ===== */
.right-banner-wrapper {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(100%);
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.right-banner-wrapper.is-visible {
    transform: translateY(-50%) translateX(0);
}

.right-banner {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 16px 12px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.15em;
    text-align: center;
    transition: opacity 0.3s;
}

.right-banner:hover {
    opacity: 0.85;
}

.right-banner--orange {
    background: var(--color-orange);
    border-radius: 8px 0 0 0;
}

.right-banner--green {
    background: var(--color-green);
    border-radius: 0 0 0 8px;
}

/* ===== Service Accordion Hover Color ===== */
.accordion-item:hover .accordion-header,
.accordion-item.is-open .accordion-header {
    color: var(--color-orange);
}

.accordion-item:hover .accordion-num,
.accordion-item.is-open .accordion-num {
    color: var(--color-orange);
}

/* ===== SERVICE LIFE CYCLE ===== */
.service-lifecycle {
    padding: 60px 0;
    background: transparent;
    margin-bottom: 40px;
}

.slc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    gap: 60px;
}

.slc-diagram {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
}

.slc-steps {
    display: flex;
    flex-wrap: nowrap; /* CRITICAL: Prevent wrapping to keep arrow alignment */
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.slc-step {
    background: #fff;
    border: 1.5px solid var(--color-orange);
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    color: var(--color-orange);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
}

.slc-arrow {
    color: var(--color-orange);
    font-size: 18px;
    font-weight: bold;
}

/* Loop Arrow SVG Container */
.slc-loop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 160px;
    pointer-events: none;
    z-index: 1;
}

.slc-loop svg {
    width: 100%;
    height: 100%;
}

.slc-info {
    flex: 1;
    max-width: 450px;
}

.slc-title {
    font-family: var(--font-en);
    font-size: 24px;
    font-weight: bold;
    color: var(--color-orange);
    margin-bottom: 24px;
    line-height: 1.2;
}

.slc-desc {
    font-size: 14px;
    line-height: 2;
    color: var(--color-text-main);
}

@media (max-width: 960px) {
    .slc-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .slc-diagram {
        width: 100%;
        overflow-x: auto;
        padding: 40px 20px;
    }
    .slc-steps {
        margin: 0 auto;
    }
    .slc-info {
        max-width: 100%;
    }
}

/* ===== PROCESS LIFECYCLE ROW ===== */
.lifecycle-section {
    padding: 40px 0;
    overflow-x: auto;
    background: transparent;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch; /* Kinetic scroll for iOS */
}

/* Hide scrollbar for cleaner look but keep scrolling functional */
.lifecycle-section::-webkit-scrollbar {
    height: 4px;
}
.lifecycle-section::-webkit-scrollbar-thumb {
    background: rgba(234, 107, 0, 0.2);
    border-radius: 4px;
}

.lifecycle-title-group {
    margin-bottom: 32px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.lifecycle-row {
    display: flex;
    flex-wrap: nowrap; /* CRITICAL: Never wrap */
    align-items: stretch; /* Match card heights */
    gap: 12px;
    padding: 0 clamp(20px, 4vw, 40px) 20px; /* Extra bottom padding for scrollbar */
    margin: 0 auto;
    max-width: 1200px;
    width: max-content; /* Ensure row takes full width of contents */
}

.lifecycle-card {
    flex: 0 0 160px; /* Fixed width to prevent squashing/wrapping */
    background: #fff;
    border: 1.5px solid var(--color-orange);
    border-radius: var(--radius);
    padding: 20px 12px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.lifecycle-card:hover {
    transform: translateY(-4px);
}

.lifecycle-card__title {
    font-size: 15px; /* Slightly smaller to fit better */
    font-weight: bold;
    color: var(--color-orange);
    margin-bottom: 12px;
    font-family: var(--font-ja);
    white-space: nowrap; /* No wrapping inside title */
}

.lifecycle-card__desc {
    font-size: 10px;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-align: left;
    margin-top: 12px;
    border-top: 1px solid rgba(234, 107, 0, 0.1);
    padding-top: 12px;
}

.lifecycle-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-orange);
    font-size: 10px;
    opacity: 0.6;
    flex-shrink: 0;
}

/* ===== NEEDS VERIFICATION GRID ===== */
.needs-verification {
    padding: 60px 0; /* Reduced vertical padding */
    background: transparent; /* Changed to transparent */
}

.needs-v-header {
    margin-bottom: 48px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.needs-v-tag {
    color: #4ebcc6;
    font-family: var(--font-en);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
    display: block;
    letter-spacing: 0.05em;
}

.needs-v-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--color-text-main);
}

.needs-v-title span {
    font-size: 14px;
    font-weight: bold;
    color: var(--color-text-muted);
    margin-left: 12px;
}

.needs-v-intro {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.needs-v-note {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.needs-v-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px 40px;
    max-width: 800px; /* Slightly narrower grid */
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

.needs-v-item {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items */
}

.needs-v-img-wrap {
    width: 80%; /* Smaller images */
    aspect-ratio: 1.6;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
    border: 1px solid #f0f0f0;
}

.needs-v-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.needs-v-item-title {
    font-size: 17px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 12px;
    color: var(--color-text-main);
}

.needs-v-item-desc {
    font-size: 13px;
    color: var(--color-text-main);
    line-height: 1.7;
    text-align: left;
}

@media (max-width: 768px) {
    .lifecycle-section {
        padding: 30px 0;
    }
    .needs-verification {
        padding: 40px 0;
    }
    .needs-v-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .needs-v-img-wrap {
        width: 100%;
    }
}