:root {
    --color-bg: #ffffff;
    /* Light Mode Base */
    --color-bg-pink: #fff5f5;
    /* Faint Pink */
    --color-bg-dark: #000000;
    /* Pure Black */
    /* ... */
    --color-text: #000000;
    /* Pure Black */
    --color-text-light: #ffffff;
    /* For dark sections */
    --color-text-muted: #333333;
    --color-text-muted-light: #999999;
    --color-primary: #ff5555;
    /* FLAT RED */
    --color-secondary: #ff5555;
    /* No Gradient */
    --gradient-main: #ff5555;
    /* Solid Red */
    --font-main: 'Inter',
        sans-serif;
    --font-jp: 'Noto Sans JP',
        sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

/* ... */

/* Page Header (Subpages) */
.page-header {
    height: 38vh;
    /* Taller hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    text-align: center;
    background: transparent;
    /* Let canvas show */
}

/* Background container for Three.js */
.page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.page-title {
    font-family: var(--font-main);
    font-weight: 900;
    font-size: clamp(4rem, 10vw, 8rem);
    /* Dynamic Massive Size */
    line-height: 0.8;
    letter-spacing: -0.05em;
    color: var(--color-text);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.page-subtitle {
    font-family: var(--font-jp);
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* ... */

/* Stacking Cards Flat & Borderless */
.stack-card {
    /* ... */
    background: #ffffff;
    /* ... */
}

/* Alternate Colors - Gradient of Whites/Pinks */
#card-1 {
    background: #fff;
    z-index: 1;
}

#card-2 {
    background: #fff5f5;
    z-index: 2;
}

/* Faint Pink */
#card-3 {
    background: #ffebeb;
    z-index: 3;
}

/* Slightly deeper pink */

/* Tech Tag Hover Pink */
.tech-tag:hover {
    color: var(--color-primary);
    /* Red text */
    border-color: var(--color-primary);
    background: var(--color-bg-pink);
    /* Pink bg */
    box-shadow: none;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}
.container-s {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}
.gradient-text {
    background: none;
    -webkit-text-fill-color: var(--color-primary);
    /* Solid Red */
    color: var(--color-primary);
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    /* Larger buttons */
    border-radius: 0;
    /* No radius (Sharp) */
    font-family: var(--font-main);
    font-weight: 800;
    /* Bolder */
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border: 2px solid #000;
    /* Solid black border */
    background: #fff;
    color: #000;
    box-shadow: none;
    /* No shadow */
    transition: all 0.2s ease;
}

.btn::before {
    display: none;
    /* Remove pseudo gradient */
}

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

.member-card:hover .member-card__img {
    border-color: var(--color-primary);
    border-radius: 50%;
    /* Morph to circle */
    transform: scale(1.05);
}

/* Image styling */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-card__info {
    padding: 0 10px;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        display: block;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.is-scrolled {
    background-color: rgba(10, 10, 35, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.header__logo {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000000;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

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

.header__list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.header__item a {
    font-family: var(--font-main);
    font-weight: 900;
    /* Extra Bold */
    font-size: clamp(3rem, 6vw, 5rem);
    /* Massive Heading Style */
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    position: relative;
    text-transform: uppercase;
    /* Heading style often implies uppercase */
}


.header__item a.btn {
    background-color: #ea9494;
}

.header__item a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.header__item a:not(.btn):hover {
    opacity: 1;
}

.header__item a:not(.btn):hover::after {
    width: 100%;
}

/* Trigger visible on all screens */
.header__menu-trigger {
    display: block;
    width: 30px;
    height: 20px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
}

.header__menu-trigger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
    /* Default Black for visibility on light hero */
    transition: all 0.1s;
}

/* White when scrolled (dark header) or open (dark overlay) */
.header.is-scrolled .header__menu-trigger span,
.header.nav-open .header__menu-trigger span {
    background-color: #fff;
}

.header__menu-trigger span:nth-of-type(1) {
    top: 0;
}

.header__menu-trigger span:nth-of-type(2) {
    bottom: 0;
}

.header.is-scrolled .header__logo {
    color: #fff;
}

/* Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: -1;
}

.hero__content {
    text-align: center;
    padding: 0 20px;
}

.hero__title {
    font-family: var(--font-main);
    font-weight: 900;
    /* Extra Bold */
    font-size: clamp(6rem, 20vw, 15rem);
    /* EXTREME JUMP RATE */
    line-height: 0.9;
    /* Very tight line height */
    letter-spacing: -0.06em;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--color-text);
    /* Ensure contrast on light bg */
}

.hero__line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
}

.hero__subtitle {
    margin-top: 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-muted);
    opacity: 0;
    transform: translateY(20px);
}

/* ... existing styles ... */

.section__title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 6rem);
    /* Increased jump rate */
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

/* Stacking Title Override */
.stacking-header {
    text-align: left;
    /* Left align */
    margin-bottom: 80px;
}

.stacking-title {
    font-family: var(--font-main);
    font-size: clamp(5rem, 15vw, 12rem);
    /* Even Larger */
    font-weight: 900;
    margin-bottom: 10px;
    line-height: 0.8;
}

/* CTA Title Override */
.cta-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 10vw, 8rem);
    /* Massive CTA */
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-main);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0;
}

.hero__scroll::after {
    content: '';
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, #2b2a2a, transparent);
    margin: 10px auto 0;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Ticker */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(214, 214, 214, 0.2);

    .stack-card__visual img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Stack cards based on scroll */
    /* Handled by JS GSAP */
    white-space: nowrap;
    border: none;
    /* Remove borders */
}

/* Ticker Animation */
.ticker {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker__item {
    display: inline-block;
    padding: 5px 40px;
    font-size: 1.5rem;
    font-family: var(--font-main);
    font-weight: 600;
    color: var(--color-text-muted);
    /* Darker color for light theme */
    text-transform: uppercase;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Section Common */
.section {
    padding: 120px 0;
}

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

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 60px;
    border-bottom: none;
    /* Remove border */
    padding-bottom: 20px;
}

.section--light .section__header {
    border-bottom: none;
}

/* Section Title Flat */
.section__title {
    font-family: var(--font-main);
    font-size: clamp(4rem, 12vw, 10rem);
    /* Bigger */
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.85;
    color: var(--color-text);
    margin-bottom: 20px;
}

.link-arrow {
    font-family: var(--font-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.link-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}

.link-arrow:hover::after {
    transform: translateX(5px);
}

/* Why Us Section */
.why-section {
    background-color: var(--color-bg-pink);
}

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

/* Feature Cards Flat & Borderless */
.feature-card {
    background: #fff;
    padding: 60px 40px;
    border: none;
    /* No Border */
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease;
    /* Optional: Add a subtle background color if not white, or rely on grid gap */
}

.feature-card:hover {
    background: #000;
    color: #fff;
    transform: none;
    /* No movement, maybe simple color invert */
}

.feature-card:hover .feature-card__title,
.feature-card:hover .feature-card__text,
.feature-card:hover .feature-card__num {
    color: #fff;
}

.feature-card__num {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 800;
    color: #e0e0e0;
    line-height: 1;
    margin-bottom: 10px;
}

.feature-card__title {
    font-family: var(--font-main);
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--color-text-dark);
}

.feature-card__text {
    font-size: 0.95rem;
    color: var(--color-text-muted-dark);
    line-height: 1.8;
}

/* Stacking Cards Section */
.stacking-section {
    padding: 120px 0;
    position: relative;
    /* Ensure enough height if needed, but sticky handles it */
}

.stacking-section .container {
    max-width: 1500px;
}

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

.stacking-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 10px;
}

.stacking-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.stacking-cards-container {
    position: relative;
    max-width: 1500px;
    margin: 0 auto;
    height: 70vh;
    max-height: 580px;
    /* Fixed height for the pinning area */
}

/* Stacking Cards Flat & Borderless */
.stack-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: none;
    /* No Border */
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    /* Cards will be stacked by z-index and translated by JS */
}

/* Alternate Colors - Distinct Grays for Separation without Border */
#card-1 {
    background: #fff;
    background: #98999c;
    z-index: 1;
}

/* Lightest */
#card-2 {
    background: #fff5f5;
    background: #8b7bba;
    z-index: 2;
}

/* Mid */
#card-3 {
    background: #ffebeb;
    background: #011834;
    z-index: 3;
}

/* Darkest Gray */

.stack-card__content {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
    color: var(--color-text);
    max-width: 530px;
    /* Dark text */
}

.stack-card__num {
    font-family: var(--font-main);
    font-size: 7.2rem;
    /* Extremely Large */
    font-weight: 900;
    color: var(--color-primary);
    /* Red numbers */
    margin-bottom: 20px;
    line-height: 0.8;
}

.stack-card__title {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: none;
    -webkit-text-fill-color: #fff;
    color: #fff;
}

.stack-card__text {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 40px;
    line-height: 1.8;
}

.stack-card__visual {
    flex: 1;
    height: 100%;
    background: #000;
    position: relative;
}

.stack-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .stacking-cards-container {
        height: auto;
    }

    /* Disable fancy horizontal stack on mobile, just vertical stack */
    .stack-card {
        position: relative;
        height: auto;
        min-height: 600px;
        margin-bottom: 40px;
        flex-direction: column;
    }

    .stack-card__content {
        padding: 40px 30px;
    }

    .stack-card__visual {
        min-height: 250px;
    }
}

/* Tech Section */
.tech-section {
    position: relative;
}

.tech-section::after {
    content: '';
    display: block;
    width: calc(100% - 40px);
    /* Account for container padding if needed, or just max width */
    max-width: var(--container-width);
    height: 3px;
    background-color: #dadada;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.tech-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-tag {
    font-family: var(--font-main);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-muted);
    border: 2px solid #000;
    padding: 15px 30px;
    border-radius: 0;
    /* Sharpness */
    transition: all 0.2s ease;
    cursor: default;
    background: #fff;
}

.tech-tag:hover {
    color: #fff;
    border-color: #000;
    background: #000;
    box-shadow: none;
}

/* News Section Separator */
.news-section {
    position: relative;
}

.news-section::after {
    content: '';
    display: block;
    width: calc(100% - 40px);
    max-width: var(--container-width);
    height: 3px;
    background-color: #dadada;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* News Item (General) */
.news-item {
    border-bottom: 1px dotted rgba(0, 0, 0, 0.4);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* News List Theme Light */
.news-list.theme-light .news-item {
    /* Border handled by global .news-item */
    /* border-bottom: none; - REMOVED */
}

.news-list.theme-light .news-item a:hover {
    background: rgba(0, 0, 0, 0.02);
}

.news-list.theme-light .news-item__title {
    color: var(--color-text-dark);
}

.news-list.theme-light .news-item__date {
    color: var(--color-text-muted-dark);
}

/* Company Profile Layout */
.profile-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 60px;
}

.profile-header {
    flex: 0 0 30%;
    /* Left side width (approx 1:2 ratio with body) */
    position: relative;
}

.profile-title {
    white-space: nowrap;
    position: absolute;
    margin-left: -10vw;
    width: 100%;
    font-size: clamp(4rem, 10vw, 8rem);
    opacity: 0.1;
    color: rgba(255, 255, 255, 0.8);
    opacity: 1;
    position: relative;
    left: -5vw;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    margin: 0;
}

.profile-body {
    flex: 1;
    padding-top: 20px;
    /* Align with top of title visually */
}
@media (max-width: 1360px) {
    .profile-title{
        left: 0;
    }
}
@media (max-width: 768px) {
    .profile-layout {
        flex-direction: column;
        gap: 20px;
    }

    .profile-header {
        width: 100%;
    }

    .profile-title {
        left: 0;
        margin-left: 0;
        font-size: clamp(4rem, 12vw, 10rem);

    }
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 40px;
}

.about-image {
    flex: 1;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

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

/* CTA Section */
/* CTA Section */
.cta-section {
    padding: 120px 0;
    text-align: center;
    background: linear-gradient(180deg, #ffffff, #ffd3d3);
    /* Pink Gradient */
    color: var(--color-text);
    /* Dark Text */
}

.cta-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 10vw, 8rem);
    /* Massive CTA */
    font-weight: 900;
    margin-bottom: 20px;
    background: none;
    /* remove legacy gradient */
    -webkit-text-fill-color: var(--color-text-muted-light);
    /* Red text */
    color: var(--color-text-muted-light);
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--color-text-muted);
}

.cta-inner .btn {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.cta-inner .btn:hover {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}



/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 20px;
    background-color: black;
    color: #fff;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer__logo {
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
}

.footer__nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;

}

.footer__nav a {
    font-size: 0.9rem;
    color: #fff;
}

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

.footer__copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}


.news-item__cat {
    color: #fff;
    background-color: var(--color-text-muted-light);
    padding: 0 10px;
    border-radius: 50px;
    margin-left: 16px;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .news-item a {
        display: block;
    }

    .news-item__date,
    .news-item__cat {
        display: inline-block;
        margin-bottom: 10px;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image {
        width: 100%;
        height: 300px;
    }

    /* Mobile styles for horizontal scroll - typically revert to vertical or overflow-x */
    /* GSAP will handle pin, but layout needs adjustment */
    .horizontal-scroll-container {
        padding: 0 20px;
        gap: 20px;
        height: auto;
    }

    .service-card-horizontal {
        width: 80vw;
        height: 50vh;
    }
}

/* Member Page Styles */
.member-section {
    padding-top: 60px;
    padding-bottom: 120px;
}

.member-grid {
    display: grid;
    /* 6 columns for flexibility */
    grid-template-columns: repeat(6, 1fr);
    gap: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.member-card {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* 2-3-2 Layout Logic (Desktop) */
@media (min-width: 768px) {

    /* Row 1: 2 items (Each takes 3 cols = 50%) */
    .member-card:nth-child(1),
    .member-card:nth-child(2) {
        grid-column: span 3;
    }

    /* Row 2: 3 items (Each takes 2 cols = 33.3%) */
    .member-card:nth-child(3),
    .member-card:nth-child(4),
    .member-card:nth-child(5) {
        grid-column: span 2;
    }

    /* Row 3: 2 items (Each takes 3 cols = 50%) */
    .member-card:nth-child(6),
    .member-card:nth-child(7) {
        grid-column: span 3;
    }
}

/* Mobile: 2 columns -> 1 column might be too long, 2 is better for 7 items */
@media (max-width: 768px) {
    .member-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }

    /* Reset spans for mobile */
    .member-card:nth-child(n) {
        grid-column: span 1;
    }

    /* Make the last odd item centered? Optional. */
    .member-card:last-child {
        grid-column: span 2;
    }
}

.member-card__img {
    width: 200px;
    /* Requested size */
    height: 200px;
    margin-bottom: 25px;
    border-radius: 50%;
    /* Circle */
    overflow: visible;
    /* changed from hidden to allowing bubble? actually relative is better */
    position: relative;
    /* Context for bubble */
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: var(--color-bg-pink);
    cursor: pointer;
    /* Clickable */
}

/* Remove Red Border on Hover */
.member-card:hover .member-card__img {
    border-color: transparent;
    /* No border change */
    transform: scale(1.05);
    /* Keep scale */
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    /* Ensure img is circular too */
}

/* Speech Bubble */
.member-comment {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: var(--color-primary);
    /* Red */
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    pointer-events: none;
}

.member-comment::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--color-primary) transparent transparent transparent;
}

.member-card.is-active .member-comment {
    transform: translateX(-50%) scale(1);
    opacity: 1;
    top: -60px;
    /* Pop up slightly */
}

.member-card__info {
    padding: 0;
}

.member-card__position {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-card__name {
    font-family: var(--font-main);
    font-size: 2.5rem;
    /* High jump rate for English */
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1;
    color: var(--color-text);
}

.member-card__name .jp {
    display: block;
    font-family: var(--font-jp);
    font-size: 0.9rem;
    /* Much smaller Japanese */
    font-weight: 500;
    margin-top: 5px;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}

.member-card__bio {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-top: 15px;
    text-align: left;
    max-width: 300px;
    /* Limit width for readability if spanning wide */
    margin-left: auto;
    margin-right: auto;
}

/* CEO Message Section */
.message-section {
    padding: 100px 0;
    /* background-color: #000; - Inherit main bg */
}

.message-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.message-image {
    flex: 1;
    height: 100%;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
}

.message-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-content {
    flex: 1;
}


.message-title {
    text-align: center;
    margin-bottom: 10px;
}

.message-subtitle {
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 60px;
    /* More space below subtitle */
    display: block;
    text-align: center;
}

.ceo-name {
    font-family: var(--font-main);
    /* Match titles */
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.message-text {
    color: var(--color-text-muted);
    line-height: 2;
    font-size: 1rem;
}

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

    .message-image {
        width: 100%;
        height: 300px;
    }
}

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

/* --- Common Sub-page Styles --- */
.page-header {
    padding: 150px 0 80px;
    text-align: center;
    height: auto;
    background: transparent;
}

.page-title {
    margin-bottom: 20px;
}

/* --- Service Page --- */

.page-service .service-detail {
    margin-bottom: 120px;
    padding: 0;
}

.page-service .service-detail__inner {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    justify-content: flex-end;
    position: relative;
}

.page-service .service-detail:nth-child(even) .service-detail__inner {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.page-service .service-detail__content {
    width: 33vw;
    min-width: 500px;
    padding: 80px 60px;
    background: #fff;
    z-index: 2;
    position: relative;
    margin-right: -10vw;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.page-service .service-detail:nth-child(even) .service-detail__content {
    margin-right: 0;
    margin-left: -10vw;
    padding-left: 60px;
}

.page-service .service-detail__title {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-main);
    margin-bottom: 25px;
    color: var(--color-primary);
}

.page-service .service-detail__text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-text-muted);
    margin-bottom: 35px;
}

.page-service .service-detail__image {
    width: 65vw;
    height: 600px;
    flex: none;
    background: #222;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.page-service .service-detail__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-service .feature-list {
    list-style: none;
    margin-top: 20px;
}

.page-service .feature-list li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 10px;
}

.page-service .feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-secondary);
}
@media (max-width: 1180px) {
    .page-service .service-detail__image{
        width: 60vw;
    }
    .page-service .service-detail__content {
        width: 43vw;
        min-width: 320px;
        padding: 40px 30px;
    }
}
@media (max-width: 768px) {

    .page-service .service-detail__inner,
    .page-service .service-detail:nth-child(even) .service-detail__inner {
        flex-direction: column;
    }

    .page-service .service-detail__content {
        width: 100%;
        margin: 0 !important;
        padding: 40px 20px;
        order: 2;
        box-shadow: none;
    }

    .page-service .service-detail__inner {
        flex-direction: column;
    }

    .page-service .service-detail:nth-child(even) .service-detail__inner {
        flex-direction: column;
    }

    .page-service .service-detail__image {
        width: 100vw;
        height: 350px;
        margin: 0;
        border-radius: 0;
    }
    .page-service .service-detail {
        margin-bottom: 80px;
    }
    .page-service .section{
        padding: 50px 0 0;
    }

}

/* --- About Page --- */

.page-about .vision-section {
    padding: 80px 0;
    text-align: center;
}

.page-about .vision-text {
    font-size: 2.5rem;
    font-size:clamp(26px, 26 / 500 * 100vw ,2.5rem);
    font-weight: 800;
    line-height: 1.8;
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

.page-about .company-table {
    width: 100%;
    border-collapse: collapse;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.page-about .company-table th,
.page-about .company-table td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    text-align: left;
}

.page-about .company-table th {
    width: 30%;
    color: var(--color-text-muted);
    font-weight: normal;
}

.page-about .access-map {
    width: 100%;
    height: 400px;
    background: #222;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.page-about .profile-section {
    background-color: #d1d1d1;
}

.page-about .about-text {
    font-size: 1.1rem;
    line-height: 2.4;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}
@media screen and (max-width: 600px) {
    .page-about .about-text {
    text-align: left;
    }
    .page-about .about-text .sp-none{
        display: none;
    }
}
/* --- News Page --- */

.page-news .news-filter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.page-news .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 30px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.page-news .filter-btn:hover,
.page-news .filter-btn.active {
    background: var(--color-primary);
    color: #000;
    border-color: var(--color-primary);
    font-weight: 600;
}

.page-news .pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 80px;
}

.page-news .page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.page-news .page-link:hover,
.page-news .page-link.current {
    background: var(--color-primary);
    color: #000;
}

/* --- Contact Page --- */

.page-contact .section {
    background-color: #fdecec;
}

.page-contact .contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
    padding: 60px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-contact .form-group {
    margin-bottom: 30px;
}

.page-contact .form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.page-contact .form-label span {
    color: var(--color-secondary);
    margin-left: 5px;
}

.page-contact .form-control {
    width: 100%;
    padding: 15px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.page-contact .form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.1);
}

.page-contact textarea.form-control {
    height: 200px;
    resize: vertical;
}

.page-contact .form-submit {
    text-align: center;
    margin-top: 50px;
}

.page-contact .form-submit button {
    cursor: pointer;
    min-width: 200px;
}


/* --- single Page --- */
.single-post .news-detail-content p{
    margin-bottom: 1em;
}
.wp-block-list{
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
}

/*page共通*/
.main-contents h2{
    margin-top: 2em;
    margin-bottom: 0.5em;
}
.main-contents p{
    margin-bottom: 1em;
}