/* --- Base Styles --- */
html {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    background-color: #000;
    transition: background-color 0.8s ease;
    font-family: 'Antonio', 'Noto Sans JP', sans-serif;
    -webkit-font-smoothing: antialiased;
}

#opening-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.opening-bg {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    background: #000;
    z-index: 1;
}

.opening-bg.top-half {
    top: 0;
    transform-origin: top center;
    will-change: transform, height;
}

.opening-bg.bottom-half {
    bottom: 0;
    transform-origin: bottom center;
    will-change: transform, height;
}

.opening-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2;
}

.opening-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    /* 初期状態は0 */
    height: 1px;
    background-color: #fff;
    z-index: 2;
}

.opening-line.glitch-active {
    animation: lineGlitch 0.2s infinite linear;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 2px rgba(255, 255, 255, 0.5);
}

@keyframes lineGlitch {
    0% {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    20% {
        transform: translate(-50%, calc(-50% - 2px)) scaleY(2);
        opacity: 0.8;
    }

    40% {
        transform: translate(-50%, calc(-50% + 1px)) scaleY(0.5);
        opacity: 0.5;
    }

    60% {
        transform: translate(-50%, calc(-50% + 3px)) scaleY(3);
        opacity: 0.9;
    }

    80% {
        transform: translate(-50%, calc(-50% - 1px)) scaleY(0.8);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scaleY(1.5);
        opacity: 1;
    }
}

.opening-word-mask {
    position: absolute;
    left: 50%;
    width: 100%;
    height: 48px;
    overflow: hidden;
}

.opening-word-mask.top-mask {
    top: 50%;
    transform: translate(-50%, -100%);
}

.opening-word-mask.bottom-mask {
    top: 50%;
    transform: translate(-50%, 0);
}

.opening-words {
    position: relative;
    width: 100%;
    height: 100%;
}

.opening-words .word {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.1em;
    color: #fff;
    font-family: 'Antonio', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.15em;
    font-weight: 700;
    white-space: nowrap;
}

.top-mask .opening-words .word {
    bottom: -5px;
}

.bottom-mask .opening-words .word {
    top: -5px;
}

.opening-words .word span {
    display: inline-block;
    opacity: 0;
}

.top-mask .opening-words .word span {
    transform: translateY(100%);
}

.bottom-mask .opening-words .word span {
    transform: translateY(-100%);
}

.opening-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    /* 小さい状態からスタート */
    color: #fff;
    font-family: 'Antonio', sans-serif;
    font-size: 5rem;
    letter-spacing: -0.05em;
    font-weight: 700;
    opacity: 0;
    /* 最初は非表示 */
    z-index: 3;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* --- Three.js Canvas Container --- */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: opacity 1s ease;
    /* フェードアウト用 */
}

/* --- Background Video (Parallax) --- */
#video.bg-active {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* コンテンツの下、canvasの下 */
    opacity: 0;
    transition: opacity 1.5s ease;
}

#video.bg-visible {
    opacity: 1;
}

#video-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;

    /* ドットパターンの作成 */
    background-image: radial-gradient(rgba(0, 0, 0, 0.6) 1px, transparent 1px);
    background-size: 3px 3px;

    opacity: 0;
    transition: opacity 1.5s ease;
}

#video.bg-visible+#video-mesh {
    opacity: 1;
}

/* --- Parallax Window (Spacer) --- */
.parallax-window {
    height: 50vh;
    /* 動画が見える高さ */
    width: 100%;
    position: relative;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.parallax-text {
    color: #fff;
    font-family: 'Antonio', sans-serif;
    font-size: 8vw;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(30px);
    mix-blend-mode: overlay;
}

/* --- Text Container (Logo) --- */
#text-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    z-index: 60;
    pointer-events: none;
    padding-left: 10vw;
    transform-origin: left top;
    box-sizing: border-box;
    will-change: transform, top, left, width, height;
    mix-blend-mode: difference;
}

/* --- Catch Copy Style --- */
.catch-copy-container {
    display: flex;
    overflow: hidden;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    width: 100%;
    padding-top: 50px;
    margin-top: -50px;
}

.catch-char {
    color: #fff;
    font-weight: 600;
    font-size: clamp(0.8rem, 1.8vw, 2.2rem);
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    letter-spacing: 0.05em;
}

/* --- Brand Text Style --- */
.brand-text {
    color: #fff;
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    opacity: 0;
    transform-origin: center left;
    white-space: nowrap;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.2));
    text-align: left;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    pointer-events: auto;
    cursor: pointer;
}

.eyezen {
    display: block;
    font-size: clamp(4rem, 18vw, 24rem);
    transform: scaleY(1.1);
    line-height: 0.9;
    margin-bottom: 2rem;
    width: 100%;
}

.sub-text {
    display: block;
    font-size: clamp(2rem, 9vw, 12rem);
    letter-spacing: 0.05em;
    transform: scaleY(1.1);
    line-height: 1;
    margin-left: 0.5rem;
    width: auto;
}

/* --- Header Menu --- */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    padding: 0 4rem;
    box-sizing: border-box;
    z-index: 40;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
    mix-blend-mode: difference;
}

#site-header.is-scrolled {
    mix-blend-mode: normal;
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.menu-list {
    list-style: none;
    display: flex;
    gap: 2vw;
    margin: 0;
    padding: 0;
}

.menu-item {
    color: #fff;
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

#site-header.is-scrolled .menu-item {
    color: #000;
}

.menu-item a {
    color: inherit;
    text-decoration: none;
}

.menu-item:hover {
    opacity: 0.6;
}

/* --- Hamburger Menu --- */
#hamburger-btn {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 10000;
    pointer-events: auto;
    -webkit-tap-highlight-color: transparent;
}

#hamburger-btn::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: -20px;
    left: -20px;
}

#hamburger-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #000;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
    pointer-events: none;
}

#hamburger-btn span:nth-child(1) {
    top: 0px;
}

#hamburger-btn span:nth-child(2) {
    top: 9px;
}

#hamburger-btn span:nth-child(3) {
    top: 18px;
}

#hamburger-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

#hamburger-btn.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#hamburger-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

#mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
}

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

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-item {
    margin: 2rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobile-menu-overlay.open .mobile-menu-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-item a {
    color: #000;
    text-decoration: none;
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    text-transform: uppercase;
}

/* --- Scroll Indicator --- */
#scroll-indicator {
    position: fixed;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow {
    color: #000;
    font-size: 1rem;
    line-height: 0.8;
    opacity: 0.2;
}

/* --- Main Content --- */
#main-content {
    position: relative;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
}

.spacer {
    height: 100vh;
}

/* --- About Section --- */
.about-section {
    background-color: #fff;
    color: #000;
    min-height: 100vh;
    padding: 150px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.about-bg-text {
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 25vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.about-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
    text-align: center;
    padding-top: 5vh;
}

.about-label {
    font-family: 'Antonio', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 4rem;
    display: inline-block;
    border-bottom: 1px solid #000;
    padding-bottom: 5px;
    opacity: 0;
    transform: translateY(20px);
}

.about-headline {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 5rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(30px);
    margin-left: 0.6em;
}

.about-brand {
    font-family: 'Antonio', sans-serif;
    letter-spacing: -0.02em;
    font-size: clamp(3rem, 5vw, 4.5rem);
}

.about-headline .small-text {
    font-size: 80%;
}

.sp-only {
    display: none;
}

@media screen and (max-width: 768px) {
    .sp-only {
        display: block;
    }
}

.highlight-wrapper {
    position: relative;
    display: inline-block;
    letter-spacing: 0em;
    z-index: 1;
}

.crayon-underline {
    position: absolute;
    bottom: -10px;
    /* Adjust below text */
    left: 0;
    width: 100%;
    height: 40px;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.crayon-underline-small {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 30px;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.crayon-line {
    fill: none;
    stroke: #ff4d4d;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.underline-1 path,
.underline-2 path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    /* Hidden initially */
}

.underline-small-1 path,
.underline-small-2 path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.circle-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
    white-space: nowrap;
}

.crayon-circle {
    position: absolute;
    top: -15%;
    left: -5%;
    width: 110%;
    height: 130%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
    transform: scaleY(-1);
}

.crayon-circle-line {
    fill: none;
    stroke: #ff4d4d;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.circle-1 path,
.circle-2 path,
.circle-3 path {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
}

.about-body {
    position: relative;
    z-index: 10;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    line-height: 2.4;
    font-weight: 500;
    text-align: justify;
    text-align-last: center;
    color: #333;
}

.about-body p {
    margin-bottom: 3rem;
}

.icon-wrapper {
    position: relative;
    display: inline-block;
    width: 0;
    height: 0;
}

.pop-icon {
    position: absolute;
    bottom: 0px;
    width: 25px;
    /* Half of 50px */
    max-width: none;
    z-index: 10;
    pointer-events: none;
    transform-origin: center bottom;
}

/* Individual Icon Positioning */
.pop-icon[src="icon_kikaku.png"] {
    left: calc(50% - 40px);
    transform: translateX(-50%);
}

.pop-icon[src="icon_seisaku.png"],
.pop-icon[src="icon_satsuei.png"],
.pop-icon[src="icon_henshu.png"] {
    left: calc(50% - 20px);
    transform: translateX(-50%);
}

.wakuwaku-text {
    display: inline-block;
    font-weight: 700;
    color: #000;
}

/* --- Works Section --- */
.works-section {
    background-color: #fff;
    padding: 100px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* For marquee */
}

.works-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 25vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 20px;
    height: clamp(60px, 12vw, 150px);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Title SVG Styles */
.works-title-svg,
.section-title-svg {
    height: clamp(3rem, 8vw, 6rem);
    width: auto;
    overflow: visible;
    max-width: 100%;
}

.works-svg-text,
.section-svg-text {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 100px;
    fill: transparent;
    stroke: #000;
    stroke-width: 2px;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.works-title-anim tspan,
.title-anim tspan {
    animation: drawStroke 1.2s ease-in-out forwards, fillColor 0.6s ease-out forwards;
}

@keyframes drawStroke {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes fillColor {
    0% {
        fill: transparent;
    }

    100% {
        fill: #000;
    }
}

/* Taxonomy Menu */
.taxonomy-menu {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0 auto 4rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.taxonomy-item {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
    position: relative;
}

.taxonomy-item.active,
.taxonomy-item:hover {
    color: #000;
}

.taxonomy-item.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.works-container {
    width: 100%;
    position: relative;
    z-index: 1;
}

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.marquee-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.marquee-row.is-dragging {
    cursor: grabbing;
}

.marquee-content {
    display: flex;
}

/* 修正: PC表示時のサムネイルサイズを制限 */
.work-item {
    position: relative;
    width: 25vw;
    max-width: 200px;
    /* 最大幅200pxに制限(198x198px) */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    background-color: #f0f0f0;
    flex-shrink: 0;
    border: 1px solid #fff;
    box-sizing: border-box;
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    pointer-events: none;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-type-badge {
    color: #fff;
    border: 1px solid #fff;
    padding: 5px 10px;
    font-family: 'Antonio', sans-serif;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

/* 追加: タイトル用スタイル */
.work-title-overlay {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    white-space: normal;
}

.mobile-grid-wrapper {
    display: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
}

.mobile-grid-wrapper .work-item {
    width: 100%;
}

.show-more-wrapper {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    padding: 2rem 0 0 0;
}

.show-more-btn {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 12px 40px;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Antonio', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

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

/* --- PHILOSOPHY Section --- */
.philosophy-section {
    background-color: #fff;
    color: #000;
    min-height: 100vh;
    padding: 140px 20px 160px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

.philosophy-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 22vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.philosophy-content-wrapper {
    position: relative;
    z-index: 1;
    max-width: 920px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-top: 40px;
}

.philosophy-block {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 50px 48px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.03);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.philosophy-block:hover {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.07);
    border-color: rgba(0, 0, 0, 0.18);
}

.philosophy-badge {
    display: inline-block;
    font-family: 'Antonio', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #000;
    background: #f2f2f2;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 28px;
    text-transform: uppercase;
}

.philosophy-catchphrase {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
    color: #111;
}


.philosophy-card-body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 2;
    color: #111;
}

.philosophy-lead,
.philosophy-desc,
.philosophy-conclusion {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 2;
    color: #111;
}

.em-bold {
    font-weight: 700;
    background: linear-gradient(transparent 65%, rgba(255, 230, 0, 0.5) 65%);
}

.philosophy-conclusion {
    margin-top: 4px;
}

/* VALUE Section Styling */
.value-catch ruby {
    ruby-position: over;
}

.value-catch rt {
    font-size: 0.45em;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #666;
}

.value-highlight-wrapper {
    display: inline-block;
    position: relative;
    color: #e60012;
    font-weight: 900;
    margin: 0 4px;
}

.value-highlight-wrapper rt {
    color: #e60012;
    font-weight: 700;
}

.philosophy-question-box {
    background: #000;
    color: #fff;
    padding: 22px 30px;
    border-radius: 12px;
    margin: 10px 0;
    position: relative;
}

.philosophy-question-box .question-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.03em;
    line-height: 1.8;
    margin: 0;
}

/* 7 PRINCIPLES Grid Styling */
.principles-main-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 36px;
    letter-spacing: 0.05em;
}

.num-7 {
    font-family: 'Antonio', sans-serif;
    font-size: 1.4em;
    color: #e60012;
    font-weight: 700;
}

/* --- 7 PRINCIPLES Styles (Minimal Line List) --- */
.principles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 2px solid #111;
    margin-top: 10px;
}

.principle-item {
    display: flex;
    align-items: center;
    padding: 22px 24px;
    border-bottom: 1px solid #eaeaea;
    gap: 30px;
    background: transparent;
    cursor: default;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.principle-item:hover {
    background: #111;
    color: #fff;
    padding-left: 34px;
}

.principle-item .card-num {
    font-family: 'Antonio', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #e60012;
    min-width: 45px;
    transition: color 0.35s ease;
}

.principle-item:hover .card-num {
    color: #fff;
}

.principle-item .card-content p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #111;
    transition: color 0.35s ease;
    margin: 0;
}

.principle-item:hover .card-content p {
    color: #fff;
}

/* Responsive Styles for PHILOSOPHY Section */
@media screen and (max-width: 768px) {
    .philosophy-section {
        padding: 100px 16px 120px;
    }

    .philosophy-content-wrapper {
        gap: 50px;
        padding-top: 20px;
    }

    .philosophy-block {
        padding: 32px 20px;
        border-radius: 16px;
    }


    .philosophy-card-body {
        gap: 18px;
        font-size: 0.98rem;
    }

    .philosophy-lead {
        font-size: 1.05rem;
    }

    .philosophy-question-box {
        padding: 16px 18px;
    }

    .philosophy-question-box .question-text {
        font-size: 0.95rem;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .principle-card {
        padding: 20px 18px;
    }

    .card-num {
        font-size: 2rem;
        margin-bottom: 10px;
    }
}

/* --- NEWS Section --- */
.news-section {
    background-color: #fff;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.news-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 25vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.news-container {
    width: 100%;
    max-width: 900px;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

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

.news-item {
    border-top: 1px solid #eee;
    transition: background-color 0.3s, color 0.3s;
}

.news-item:last-child {
    border-bottom: 1px solid #eee;
}

.news-item:hover {
    background-color: #000;
    color: #fff;
}

.news-link-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

.news-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    flex: 1;
}

.news-date {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.news-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

.news-detail-btn {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #000;
    background: transparent;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    margin-left: 1rem;
    color: inherit;
}

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

/* --- SERVICE & COMPANY & CONTACT Section --- */
/* 追加: .snapshot-section もここに含める */
.service-section,
.company-section,
.contact-section,
.snapshot-section {
    background-color: #fff;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 50vh;
}

.service-bg-text,
.company-bg-text,
.contact-bg-text,
.snapshot-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 25vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

.service-container,
.company-container,
.contact-container,
.snapshot-container {
    width: 100%;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
    color: #333;
    font-family: 'Antonio', sans-serif;
}

/* --- CONTACT Form Styles --- */
.contact-form {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Noto Sans JP', sans-serif;
    background: #fff;
    padding: 2rem;
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #000;
}

.form-group label.required::after {
    content: "※";
    color: #ff4d4d;
    margin-left: 0.3rem;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    /* 入力欄が親要素(100%)をオーバーしないようにする */
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Slightly rounded */
    font-size: 1rem;
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #fcfcfc;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.form-privacy {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.form-privacy p {
    margin-bottom: 1rem;
}

.form-privacy a {
    color: #000;
    text-decoration: underline;
    font-weight: bold;
}

.privacy-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
}

.privacy-checkbox-wrapper input {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-submit {
    text-align: center;
    margin-top: 2rem;
}

.submit-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 1rem 4rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border-radius: 50px;
}

.submit-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background-color: #999;
    cursor: not-allowed;
    transform: none;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.form-message.success {
    background-color: #e6f7e6;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.form-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}


/* --- COMPANY Navigation Styles --- */
.company-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.company-btn {
    display: inline-block;
    width: 240px;
    /* 固定幅にすることでボタンサイズを統一 */
    text-align: center;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    border: 2px solid #333;
    border-radius: 50px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: 'Antonio', sans-serif;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.company-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: -1;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: scaleX(0);
    transform-origin: right;
}

.company-btn:hover {
    color: #fff;
    border-color: #333;
}

.company-btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

@media screen and (max-width: 768px) {
    .company-nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0 2rem;
    }

    .company-btn {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }
}

/* --- SERVICE Content Styles (Accordion Gallery for PC) --- */
.service-category {
    margin-bottom: 8rem;
}

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

.category-header {
    margin-bottom: 4rem;
    text-align: center;
}

.cat-title-en {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 3rem;
    letter-spacing: 0.05em;
    color: #000;
    display: block;
    line-height: 1;
}

.cat-title-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #888;
    margin-top: 0.5rem;
    display: block;
    letter-spacing: 0.1em;
}

/* --- EQUIPMENT SECTION STYLES --- */
.equipment-category {
    margin-top: 10rem;
    margin-bottom: 0;
}

.equipment-grid-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.equipment-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    width: 100%;
}

.equipment-item {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid #eee;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.equipment-item:hover {
    transform: scale(1.1);
    border-color: #000;
}

.equipment-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.equipment-item:hover .equipment-img {
    filter: grayscale(0%);
}

.equipment-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.4);
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.05em;
    transition: background 0.3s;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.equipment-item:hover .equipment-label {
    background: rgba(0, 0, 0, 0.2);
}

/* Equipment List Modal */
#equipment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 200;
    /* Higher than work-modal */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#equipment-modal.active {
    opacity: 1;
    visibility: visible;
}

.equipment-modal-content {
    background: transparent;
    color: #fff;
    text-align: center;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.equipment-modal-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.equipment-list-ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: 'Antonio', 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    line-height: 2;
}

.equipment-list-li {
    opacity: 0;
    transform: translateY(20px);
}

/* PC: アコーディオン伸縮スタイル */
@media (min-width: 769px) {
    .service-grid {
        display: flex;
        gap: 15px;
        /* アイテム間の隙間 */
        height: 500px;
        /* PC版は高さを固定して横に並べる */
        width: 100%;
    }

    .service-item {
        position: relative;
        flex: 1;
        /* 初期状態は均等幅 */
        height: 100%;
        overflow: hidden;
        transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
        /* 滑らかな伸縮 */
        cursor: default;
        border-radius: 4px;
        opacity: 0;
        /* JSでフェードイン */
        transform: translateY(20px);
        background-color: #000;
        /* 画像ロード前の背景 */
    }

    .service-item:hover {
        flex: 3.5;
        /* ホバー時に大きく広がる */
    }

    .service-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
        z-index: 0;
    }

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /* デフォルトはモノクロで少し暗く */
        filter: grayscale(100%) brightness(0.6);
        transition: filter 0.6s ease, transform 0.6s ease;
    }

    .service-item:hover .service-img img {
        /* ホバー時にカラー＆明るく */
        filter: grayscale(0%) brightness(0.9);
        transform: scale(1.05);
        /* ズームイン効果 */
    }

    /* テキストエリア */
    .service-text {
        position: relative;
        z-index: 2;
        padding: 30px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        /* 下寄せ */
        width: 100%;
        box-sizing: border-box;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    }

    .service-text h4 {
        color: #fff;
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        font-size: 1.4rem;
        margin: 0 0 0.5rem 0;
        border-left: 4px solid #fff;
        /* アクセント */
        padding-left: 15px;
        line-height: 1.2;
        white-space: nowrap;
        /* 折り返し防止 */
        transform-origin: left bottom;
        transition: all 0.4s ease;
    }

    .service-text p {
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 500;
        font-size: 1rem;
        line-height: 1.8;
        color: rgba(255, 255, 255, 0.9);
        margin: 0;
        text-align: left;

        /* ホバー前は隠す */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.5s ease;
        transform: translateY(10px);
    }

    .service-item:hover .service-text p {
        max-height: 200px;
        /* 十分な高さ */
        opacity: 1;
        margin-top: 15px;
        transform: translateY(0);
        transition-delay: 0.1s;
        /* 少し遅れて表示 */
    }
}

/* --- Company Staff Section (Modal) --- */
#top-message-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#top-message-modal.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

#top-message-modal .modal-content {
    background: #fff;
    width: 90%;
    max-width: 1000px;
    margin: 5% auto;
    padding: 0;
    /* Remove padding entirely for edge-to-edge image */
    border-radius: 8px;
    position: relative;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    /* Allow scrolling inside the modal box */
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

#top-msg-close-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    /* 右上から左上へ変更 */
    font-size: 2.5rem;
    font-family: 'Antonio', sans-serif;
    letter-spacing: 0.1em;
    color: #fff;
    /* White to be visible on image overlay */
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

#top-msg-close-btn .close-text {
    font-size: 50%;
    padding-top: 10px;
}

.top-msg-body {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    width: 100%;
}

.top-msg-visual {
    position: relative;
    width: 100%;
    height: 350px;
    max-height: 40vh;
    overflow: hidden;
    flex-shrink: 0;
}

.top-msg-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.top-msg-heading-wrap {
    position: absolute;
    bottom: 2rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.top-msg-profile {
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
}

.top-msg-profile .top-role {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 0.2rem;
    letter-spacing: 0.1em;
}

.top-msg-profile .top-name-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.top-msg-profile .top-name-en {
    font-family: 'Antonio', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: #eee;
}

.top-msg-heading {
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
    margin: 0;
}

.top-msg-text {
    padding: 3rem;
}

.top-msg-text p {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #333;
    line-height: 2;
    margin: 0;
}

@media (max-width: 768px) {
    .top-msg-heading-wrap {
        left: 1.5rem;
        bottom: 1.5rem;
        gap: 0.5rem;
    }

    .top-msg-profile .top-name-ja {
        font-size: 1.2rem;
    }

    .top-msg-profile .top-role,
    .top-msg-profile .top-name-en {
        font-size: 0.8rem;
    }

    .top-msg-heading {
        font-size: 1.2rem;
    }

    .top-msg-text {
        padding: 1.5rem;
    }

    .top-msg-text p {
        font-size: 0.9rem;
    }

    #top-msg-close-btn {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}

/* --- Member Modal --- */
#member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#member-modal.active {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
}

#member-modal .modal-content {
    background: #fff;
    width: 90%;
    max-width: 1200px;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 8px;
    position: relative;
    box-sizing: border-box;
    /* スマホでの横揺れを防ぐため追加 */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    #member-modal .modal-content {
        width: 95%;
        margin: 10% auto 5%;
        padding: 1.5rem;
        /* スマホでは余白を小さく */
    }
}

#modal-close-btn {
    position: absolute;
    top: 20px;
    left: 30px;
    /* 右上から左上へ変更 */
    font-size: 2.5rem;
    font-family: 'Antonio', sans-serif;
    letter-spacing: 0.1em;
    color: #000;
    /* 黒色に指定 */
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 101;
}

#modal-close-btn .close-text {
    font-size: 0.5em;
    padding-top: 10px;
    /* CLOSEのテキストサイズを半分に */
}

#modal-close-btn::after {
    /* To keep the x icon looking native */
    content: '';
}

.modal-close-bottom {
    display: block;
    margin-top: 3rem;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background: #333;
    text-decoration: none;
    border-radius: 50px;
    cursor: pointer;
    float: right;
    letter-spacing: 0.1em;
}

/* Clearfix for float */
.modal-content::after {
    content: "";
    display: table;
    clear: both;
}

/* --- STAFF SECTION STYLES --- */
.staff-section-wrapper {
    margin-top: 4rem;
    /* Closeボタンと見出しの間のスペースを広げる */
}

.staff-group {
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.staff-group:last-child {
    margin-bottom: 0;
}

.staff-group-title {
    margin-bottom: 2rem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.5rem;
}

.staff-div-en {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.05em;
}

.staff-div-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: #666;
    font-weight: 500;
}

/* PC: 4 columns */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.staff-item {
    text-align: center;
    cursor: pointer;
    /* クリック可能なことを示す */
}

.staff-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f4f4f4;
    border-radius: 4px;
    pointer-events: none;
    /* 子要素のクリック判定を無くすことで親のthisを安定させる */
}

.staff-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.staff-item:hover .staff-img img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.staff-role {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #999;
    text-align: center;
    margin-bottom: 0.2rem;
    letter-spacing: 0.05em;
}

.staff-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    overflow: hidden;
    width: 100%;
}

.staff-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
    text-align: center;
    letter-spacing: 0.05em;
    min-height: 1.2em;
    /* 文字が入る高さを確保 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

.staff-name-en {
    font-family: 'Antonio', sans-serif;
    font-weight: 400;
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    min-height: 1.2em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    width: 100%;
}

/* --- 追加: レンズ風モーダル (Lens Modal) --- */
#lens-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    /* 最前面 */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

#lens-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lens-container {
    position: relative;
    width: 80vmin;
    height: 80vmin;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    overflow: hidden;
    transform: scale(0);
    /* 初期状態 */
    box-shadow: 0 0 0 10px #111, 0 0 0 12px #333, 0 0 50px rgba(0, 0, 0, 0.8);
    background: #000;
}

.lens-container::after {
    /* レンズの光沢感 */
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 20%, transparent 100%);
    pointer-events: none;
}

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

.lens-info-overlay {
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    transform: translateY(20px);
}

.lens-role {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #ccc;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.lens-name-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.lens-name {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1em;
}

.lens-name-en {
    font-family: 'Antonio', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    color: #bbb;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- SNAPSHOT SECTION STYLES (New) --- */
.snapshot-section {
    overflow: hidden;
    padding-bottom: 100px;
    /* 既存スタイルを維持 */
}

.snapshot-container {
    width: 100%;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* 新規追加: ギャラリー用スタイル */
.snapshot-scroll-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* 行間の隙間 */
    overflow: hidden;
    padding: 20px 0;
}

.snapshot-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
}

.snapshot-row.is-dragging {
    cursor: grabbing;
}

.snapshot-track {
    display: flex;
    gap: 15px;
}

.snapshot-item {
    flex-shrink: 0;
    width: 15vw;
    /* PCでのサイズ感 */
    height: 15vw;
    min-width: 120px;
    min-height: 120px;
    max-width: 200px;
    max-height: 200px;
    cursor: pointer;
    position: relative;
    /* チェキ風スタイル */
    background-color: #fff;
    padding: 8px 8px 25px 8px;
    /* 下部を広くしてチェキっぽく */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    transition: transform 0.3s ease, z-index 0.3s;
}

.snapshot-item:hover {
    transform: scale(1.1) rotate(2deg);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.snapshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* チェキ風フィルター */
    filter: sepia(0.3) contrast(1.1) brightness(1.1) saturate(1.2);
    transition: filter 0.3s;
    pointer-events: none;
}

.snapshot-item:hover .snapshot-img {
    /* ホバー時は鮮明に */
    filter: sepia(0) contrast(1) brightness(1) saturate(1);
}

/* モバイル調整 */
@media (max-width: 768px) {
    .snapshot-item {
        width: 28vw;
        height: 28vw;
        min-width: 100px;
        min-height: 100px;
        padding: 5px 5px 15px 5px;
    }
}

/* Snapshot Modal */
#snapshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    cursor: pointer;
    /* どこでもクリックで閉じる */
}

#snapshot-modal.active {
    opacity: 1;
    visibility: visible;
}

#snapshot-modal-img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 10px solid #fff;
    /* 大きな白枠 */
    object-fit: contain;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#snapshot-modal.active #snapshot-modal-img {
    transform: scale(1);
}

.snapshot-close {
    position: absolute;
    top: 20px;
    left: 20px;
    /* 右上から左上へ変更 */
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    font-family: 'Antonio', sans-serif;
    line-height: 1;
    opacity: 0.7;
    z-index: 501;
}

.snapshot-close:hover {
    opacity: 1;
}


/* --- Company Profile Styles --- */
.company-profile {
    width: 100%;
    text-align: left;
    /* border-top: 1px solid #000; Removed to avoid double borders */
}

.profile-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 2.5rem 0;
    flex-wrap: wrap;
    align-items: baseline;
    transition: background-color 0.3s;
}

.profile-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.profile-row dt {
    width: 30%;
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #000;
    text-transform: uppercase;
    padding-right: 20px;
    box-sizing: border-box;
}

.profile-row dd {
    width: 70%;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    color: #333;
    margin: 0;
    line-height: 2;
    font-weight: 500;
}

.company-name-ja {
    font-size: 1.2rem;
    font-weight: 700;
}

.company-name-kana {
    font-size: 0.9rem;
    color: #888;
    margin-left: 0.5em;
    font-weight: 400;
}

.member-list div {
    margin-bottom: 0.5rem;
}

.role-badge {
    display: inline-block;
    font-size: 0.8rem;
    border: 1px solid #ccc;
    padding: 2px 8px;
    margin-right: 8px;
    color: #666;
    min-width: 80px;
    text-align: center;
}

.locations-wrapper {
    display: flex;
    gap: 3rem;
}

.location-block {
    flex: 1;
}

.location-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
    border-left: 3px solid #000;
    padding-left: 10px;
    line-height: 1;
}

.location-address {
    color: #555;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-info {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #000;
}

.clients-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
}

.clients-list-new {
    column-count: 1;
    column-gap: 2rem;
}

/* PC(タブレット以上)では縦積みの2カラム */
@media screen and (min-width: 768px) {
    .clients-list-new {
        column-count: 2;
    }
}

.client-item {
    color: #444;
    position: relative;
    padding-left: 1rem;
    line-height: 1.6;
    display: block;
    /* 縦積みカラム内で綺麗に並べるため */
    break-inside: avoid;
    /* カラムまたぎを防止 */
    margin-bottom: 0.5rem;
}

.clients-note {
    margin-top: 1.5rem;
    color: #666;
    font-size: 0.9em;
}

.client-spacer {
    display: block;
    height: 1.6em;
    /* 空行の高さ */
    margin-bottom: 0.5rem;
}

.align-top dt {
    margin-top: 0.3rem;
    /* "Clients"の見出し位置調整 */
}

.client-item::before {
    content: '/';
    position: absolute;
    left: 0;
    color: #ccc;
}

.client-spacer::before {
    display: none;
}

/* --- ACCESS Section --- */
.access-section {
    background-color: #fff;
    padding: 100px 20px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    min-height: 80vh;
}

/* ACCESS Background Text - 中央寄せではなく上部に固定のまま */
.access-bg-text {
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Antonio', sans-serif;
    font-size: 25vw;
    font-weight: 700;
    color: #f4f4f4;
    z-index: 0;
    line-height: 1;
    pointer-events: none;
    white-space: nowrap;
}

/* 日本地図背景 */
.access-bg-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    /* 修正: 地図を中央ではなく上寄せにして、上部を見せる */
    align-items: flex-start;
    padding-top: 60px;
    /* 上部に適度な余白 */
}

/* 地図と波紋のラッパー (アスペクト比維持のため) */
.map-wrapper-relative {
    position: relative;
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: center;
}

.map-wrapper-relative img {
    width: 100%;
    height: auto;
    display: block;
    filter: brightness(0);
    opacity: 0.15;
}

/* 波紋アニメーション */
.ripple-point {
    position: absolute;
    width: 0;
    height: 0;
}

.ripple-point::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: #000;
    border-radius: 50%;
    z-index: 2;
    opacity: 0.8;
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #000;
    opacity: 0;
    animation: ripple-anim 6s infinite;
}

.delay-1 {
    animation-delay: 3s;
}

@keyframes ripple-anim {
    0% {
        width: 0px;
        height: 0px;
        opacity: 0.8;
        border-width: 2px;
    }

    100% {
        width: 200vmax;
        height: 200vmax;
        opacity: 0;
        border-width: 0px;
    }
}

.access-container {
    width: 100%;
    max-width: 1200px;
    /* 修正: PC表示時は地図と被らないよう、カード位置を大きく下げる(12rem -> 450px) */
    margin-top: 450px;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    align-items: flex-start;
}

/* Access Office Card Design */
.office-card {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    /* 追加デザイン */
    background: rgba(255, 255, 255, 0.7);
    /* 薄い背景 */
    backdrop-filter: blur(5px);
    padding: 40px;
    border-top: 2px solid #000;
    /* 上にアクセントライン */
    transition: all 0.3s ease;
}

.office-card:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.office-header {
    margin-bottom: 2rem;
}

.office-name-en {
    font-family: 'Antonio', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 0.9;
    margin: 0;
    letter-spacing: 0.02em;
    color: #000;
    display: block;
    text-transform: uppercase;
}

.office-name-ja {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: #888;
    display: block;
    margin-top: 0.8rem;
    letter-spacing: 0.1em;
}

.office-info {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #333;
}

.info-row {
    margin-bottom: 1rem;
}

.zip-code {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    margin-right: 0.5em;
    font-size: 1.1rem;
}

.tel-row {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    letter-spacing: 0.05em;
    color: #000;
}

/* Map Styling - Cinematic Tone */
.map-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    position: relative;
    overflow: hidden;
    filter: grayscale(80%) sepia(20%) hue-rotate(180deg) contrast(1.1) brightness(0.95);
    transition: filter 0.5s ease;
    border: 1px solid #ccc;
}

.map-wrapper:hover {
    filter: grayscale(0%) sepia(0%) hue-rotate(0deg) contrast(1) brightness(1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-pin-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: auto;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.4));
}

/* --- Footer Section --- */
.footer-section {
    position: relative;
    background-color: #fff;
    padding-top: 100px;
    padding-bottom: 0;
    overflow: hidden;
    text-align: center;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.osaka-skyline {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
    margin-bottom: -1px;
}

.osaka-skyline img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: bottom;
    display: block;
}

.footer-content {
    position: relative;
    z-index: 2;
    background-color: #000;
    width: 100%;
    padding: 120px 20px 30px;
    color: #fff;
    box-sizing: border-box;
}

.footer-logo {
    font-family: 'Antonio', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2rem;
    display: inline-block;
    letter-spacing: 0.05em;
    line-height: 1;
}

.footer-logo-main {
    display: block;
    font-size: 4rem;
}

.footer-logo-sub {
    display: block;
    font-size: 2rem;
    margin-top: 0.2em;
}

/* --- Social Icons --- */
.footer-socials {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}

.social-icon {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.social-icon:hover {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
    transform: translateY(-3px) scale(1.1);
}

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

@media screen and (max-width: 768px) {
    .footer-socials {
        right: 5px;
        gap: 12px;
    }
    .social-icon {
        width: 44px;
        height: 44px;
    }
    .social-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* --- Privacy Policy Link --- */
.footer-links {
    margin-bottom: 1.5rem;
}

.footer-link-item {
    color: #ccc;
    text-decoration: none;
    font-family: 'Antonio', 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
}

.footer-link-item:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.copyright {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-top: 1rem;
}

/* --- Fireworks Canvas --- */
#fireworks-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

/* --- Modal (Shared) --- */
#work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 40px 20px;
    box-sizing: border-box;
}

#work-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    color: #fff;
    position: relative;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

.modal-text-container {
    text-align: left;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin-top: 10px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    /* 左上から右上へ変更 */
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    font-family: 'Antonio', sans-serif;
    line-height: 1;
    z-index: 101;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.modal-close:hover {
    opacity: 1;
}

.modal-media-container {
    width: 100%;
    background: #000;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-media-container iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
}

.modal-media-container img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
}

.modal-taxonomy {
    font-family: 'Antonio', sans-serif;
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0.8rem;
    display: block;
    letter-spacing: 0.1em;
}

.modal-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    padding-right: 40px;
}

.modal-description {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #ddd;
    white-space: pre-wrap;
}

.modal-description a {
    color: #87cefa;
    text-decoration: underline;
}

.modal-description a:visited {
    color: #4682b4;
}

.modal-description a:hover {
    opacity: 0.8;
}

/* --- Privacy Modal --- */
#privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
    box-sizing: border-box;
}

#privacy-modal.active {
    opacity: 1;
    visibility: visible;
}

.privacy-content {
    background: #fff;
    color: #333;
    width: 100%;
    max-width: 800px;
    max-height: 80vh;
    padding: 50px;
    overflow-y: auto;
    position: relative;
    border-radius: 2px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.privacy-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    line-height: 1;
    transition: opacity 0.3s;
}

.privacy-close:hover {
    opacity: 0.6;
}

.privacy-body h2 {
    font-family: 'Noto Serif JP', serif;
    margin-bottom: 3rem;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.privacy-body h3 {
    font-family: 'Noto Sans JP', sans-serif;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-left: 4px solid #000;
    padding-left: 10px;
    text-align: left;
}

.privacy-body p {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.95rem;
    line-height: 2;
    margin-bottom: 1rem;
    text-align: justify;
}

/* --- Flash Overlay & Grain --- */
#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    z-index: 35;
    pointer-events: none;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 36;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

#error-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 20px;
    border: 1px solid #fff;
    z-index: 200;
    text-align: center;
    display: none;
    font-family: sans-serif;
}

/* --- Media Queries --- */
@media (max-width: 768px) {
    #text-container {
        padding-left: 5vw;
        padding-right: 5vw;
    }

    .eyezen {
        font-size: 27vw;
        margin-bottom: 1rem;
    }

    .sub-text {
        font-size: 13.5vw;
    }

    .catch-char {
        font-size: 4vw;
    }

    #site-header {
        padding: 0 1.5rem;
        justify-content: flex-end;
    }

    .menu-list {
        display: none;
    }

    /* 変更: ハンバーガーボタンを最前面に固定配置して、確実に押せるようにする */
    #hamburger-btn {
        display: block;
        position: fixed;
        /* ヘッダーから独立させる */
        top: 30px;
        /* 位置を少し上に調整 */
        right: 1.5rem;
        /* ヘッダーの余白に合わせる */
        z-index: 9991;
        /* 変更: オーバーレイ(9990)よりさらに上にして確実にクリック可能にする */
        cursor: pointer;
        pointer-events: auto;
        /* 明示的にイベント有効化 */
    }

    .about-section {
        padding: 100px 20px;
    }

    .about-bg-text {
        top: 5%;
        font-size: 40vw;
    }

    .about-headline {
        margin-bottom: 3rem;
    }

    .about-body {
        text-align: center;
        text-align-last: center;
    }

    /* WORKS Mobile */
    .marquee-wrapper {
        display: none;
    }

    /* 変更: グリッドのスタイル調整 */
    .mobile-grid-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1rem;
        /* 縦の隙間を広げる */
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    /* スマホ用ワークアイテムのスタイル変更 */
    .mobile-grid-wrapper .work-item {
        width: 100%;
        aspect-ratio: auto;
        /* 正方形強制を解除 */
        background: transparent;
        border: none;
        /* 初期状態は見えないようにしておく（JSでアニメーションさせるため） */
        opacity: 0;
        transform: translateY(30px);
        max-width: none;
        /* 追加: スマホでは最大幅制限を解除 */
    }

    .mobile-grid-wrapper .work-item img {
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 4px;
        /* 角を少し丸める */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
        /* 影を落として質感を出す */
        margin-bottom: 0.8rem;
        transition: transform 0.3s;
    }

    .mobile-grid-wrapper .work-item:active img {
        transform: scale(0.98);
        /* タップ時のフィードバック */
    }

    /* オーバーレイはスマホでは邪魔になるので非表示（代わりに下にテキストを出す） */
    .mobile-grid-wrapper .work-overlay {
        display: none;
    }

    /* スマホ用のテキスト情報スタイル */
    .work-meta-mobile {
        text-align: left;
        padding: 0 0.2rem;
    }

    .work-tax-mobile {
        font-family: 'Antonio', sans-serif;
        font-size: 0.7rem;
        color: #888;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 0.3rem;
    }

    .work-title-mobile {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 0.85rem;
        font-weight: 700;
        line-height: 1.4;
        margin: 0;
        color: #333;
        /* 長いタイトルは2行までで省略 */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* 標準プロパティの追加 */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .works-section {
        padding: 60px 0;
    }

    /* 変更: 背景テキストの位置を0%に調整 (-10% -> 0%) */
    .works-bg-text {
        top: 0%;
        font-size: 40vw;
    }

    .taxonomy-menu {
        gap: 1rem;
        margin-bottom: 2rem;
    }

    /* Modal Mobile */
    .modal-content {
        max-height: 85vh;
    }

    .modal-text-container {
        padding: 20px;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        /* 左上から右上へ変更 */
        font-size: 2rem;
    }

    #eq-close {
        left: 15px;
        right: auto;
    }

    /* NEWS Mobile */
    .news-section {
        padding: 60px 20px;
    }

    /* 変更: 背景テキストの位置を0%に調整 (-10% -> 0%) */
    .news-bg-text {
        top: 0%;
        font-size: 40vw;
    }

    .news-info {
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .news-date {
        font-size: 0.9rem;
        color: #666;
        margin-bottom: 0.2rem;
    }

    .news-title {
        font-size: 1rem;
        width: 100%;
    }

    .news-link-wrapper {
        align-items: flex-start;
        flex-direction: column;
    }

    .news-detail-btn {
        margin-left: 0;
        margin-top: 1rem;
        align-self: flex-end;
    }

    .news-item:active {
        background-color: #000;
        color: #fff;
    }

    .news-item:active .news-date {
        color: #fff;
    }

    .news-item:active .news-detail-btn {
        border-color: #fff;
        background: #fff;
        color: #000;
    }

    /* SERVICE & COMPANY & ACCESS Mobile BG */
    /* 変更: 背景テキストの位置を0%に調整 (-10% -> 0%) */
    /* 修正: ACCESS以外の背景テキストの位置調整 */
    /* 修正: 背景文字を上部中央に戻す */
    .service-bg-text,
    .company-bg-text,
    .contact-bg-text,
    .snapshot-bg-text {
        top: 0%;
        transform: translateX(-50%);
        /* 元のスタイルに戻す */
        font-size: 30vw;
    }

    /* 修正: ACCESSの背景テキスト位置はそのまま */
    .access-bg-text {
        top: 0%;
        font-size: 30vw;
    }

    /* 修正: access-sectionの左右パディングを0にして、内部コンテンツではみ出しを防ぐ */
    .service-section,
    .company-section,
    .contact-section {
        padding: 60px 20px;
    }

    .access-section {
        padding: 60px 0;
        overflow: hidden;
    }

    /* ACCESS Mobile */
    .access-container {
        gap: 2rem;
        /* 変更: カードの位置をさらに上げて、地図がより隠れるように調整(200px -> 140px) */
        margin-top: 140px;
        flex-direction: column;
        align-items: center;
        width: 100%;
        /* 修正: ここで左右の余白を確保し、box-sizingで幅を制御 */
        padding: 0 20px;
        box-sizing: border-box;
    }

    .office-card {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        padding: 30px 20px;
        box-sizing: border-box;
        /* はみ出し防止 */
    }

    /* スマホでは地図を上に配置して隠れないようにする */
    .access-bg-map {
        align-items: flex-start;
        /* 変更: 地図の位置を調整 */
        padding-top: 120px;
        height: 100%;
        /* 高さ制限を解除して全体を表示 */
        position: absolute;
        top: 0;
    }

    /* スマホでは地図を画面幅に合わせて表示 */
    .map-wrapper-relative {
        width: 100%;
        max-width: 400px;
    }

    /* Company Mobile */
    .profile-row {
        flex-direction: column;
        gap: 1rem;
        padding: 2rem 0;
    }

    .profile-row dt {
        width: 100%;
        margin-bottom: 0.5rem;
        border-left: 4px solid #000;
        padding-left: 10px;
        font-size: 1.2rem;
    }

    .profile-row dd {
        width: 100%;
        padding-left: 0;
    }

    .locations-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .clients-list {
        gap: 0.5rem 1rem;
    }

    /* Access Mobile Card */
    .office-card {
        padding: 30px 20px;
    }

    .office-name-en {
        font-size: 2rem;
    }

    /* SERVICE Mobile (2カラムに変更 - 強制適用) */
    .service-grid {
        display: grid !important;
        /* display: flexを確実に打ち消す */
        grid-template-columns: repeat(2, 1fr) !important;
        /* 確実に2列にする */
        gap: 1rem 0.8rem !important;
        /* 縦 横 の隙間 */
        height: auto !important;
        width: 100%;
        box-sizing: border-box;
        /* 幅計算を正確に */
    }

    .service-item {
        display: flex;
        flex-direction: column;
        flex: none !important;
        width: 100% !important;
        /* コンテナ幅いっぱいに */
        height: auto !important;
        opacity: 0;
        transform: translateY(20px);
        background: transparent;
        margin-bottom: 0 !important;
        /* grid gapで管理 */
    }

    .service-item:hover {
        flex: none !important;
        /* ホバー時の伸縮を無効化 */
    }

    .service-img {
        position: relative;
        /* PCのabsoluteを解除 */
        width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: 0.5rem;
        overflow: hidden;
    }

    .service-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(0%);
        /* スマホでは最初からカラー */
        border-radius: 4px;
    }

    .service-item:hover .service-img img {
        transform: none;
    }

    .service-text {
        position: relative;
        padding: 0;
        background: none;
        height: auto;
        justify-content: flex-start;
    }

    .service-text h4 {
        color: #000;
        font-size: 0.85rem;
        /* サイズ調整: 2カラムで見切れないように */
        border-left: 3px solid #000;
        padding-left: 8px;
        margin-bottom: 0.3rem;
        white-space: normal;
        line-height: 1.4;
    }

    .service-text p {
        color: #666;
        font-size: 0.7rem;
        /* 文字サイズを小さく */
        line-height: 1.4;
        max-height: none;
        opacity: 1;
        transform: none;
        margin-top: 0;
    }

    .cat-title-en {
        font-size: 2.2rem;
    }

    .cat-title-ja {
        font-size: 1rem;
    }

    .service-category {
        margin-bottom: 5rem;
    }

    /* スタッフ紹介 スマホ用グリッド */
    .staff-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .staff-div-en {
        font-size: 1.5rem !important;
    }

    /* --- EQUIPMENT MOBILE --- */
    .equipment-grid-wrapper {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        /* スマホでは間隔を狭く */
    }

    /* スマホではFlexではなくGridで3列表示 */
    .equipment-row {
        display: grid !important;
        /* flexを打ち消し */
        grid-template-columns: repeat(3, 1fr);
        /* 3列 */
        gap: 15px;
        /* アイテム間隔 */
        width: 100%;
        justify-content: center;
        /* 上段・下段の区別なくGridで流し込む */
    }

    /* 上段・下段のコンテナを統合的に見せるため、marginリセット */
    .equipment-row:first-child {
        margin-bottom: 0;
    }

    .equipment-item {
        width: 100%;
        /* Gridセル幅に合わせる */
        height: auto;
        /* 正方形アスペクト比で自動調整 */
        aspect-ratio: 1 / 1;
        border-width: 1px;
        /* ボーダーを少し細く */
    }

    .equipment-label {
        font-size: 0.8rem;
        /* 文字サイズ小さく */
        background: rgba(0, 0, 0, 0.5);
        /* 文字が読みやすいよう少し濃く */
    }
}

@media (min-width: 769px) {
    .mobile-grid-wrapper {
        display: none !important;
    }

    .marquee-wrapper {
        display: flex;
    }
}

/* --- Works Archive (Accordion) --- */
.works-archive-container {
    max-width: 1000px;
    margin: 5rem auto 0;
    padding: 0 20px;
}

.archive-main-title {
    font-family: 'Antonio', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archive-sub-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 10px;
    color: #333;
}

.accordion-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.accordion-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.accordion-item:hover {
    border-color: #000;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.05);
}

.accordion-item[open] {
    border-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    cursor: pointer;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    list-style: none;
    /* Safari */
}

/* 矢印を消す */
.accordion-header::-webkit-details-marker {
    display: none;
}

.accordion-title {
    flex-grow: 1;
}

.accordion-icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: '';
    position: absolute;
    background-color: #000;
    transition: all 0.3s ease;
    top: 50%;
    left: 50%;
}

.accordion-icon::before {
    width: 20px;
    height: 2px;
    transform: translate(-50%, -50%);
}

.accordion-icon::after {
    width: 2px;
    height: 20px;
    transform: translate(-50%, -50%);
}

/* 開いた時は縦線を消してマイナス（横線）だけにする */
.accordion-item[open] .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.accordion-content {
    padding: 0 2rem 2rem;
    color: #333;
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
}

.credit-group {
    margin-bottom: 2rem;
}

.credit-group:last-child {
    margin-bottom: 0;
}

.credit-group h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    border-bottom: 1px solid #000;
    padding-bottom: 0.3rem;
    display: inline-block;
}

.credit-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 2rem;
}

.credit-group ul li {
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.credit-group ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background-color: #ff4d4d;
    /* Use the exact Crayon red from About section */
    border-radius: 50%;
}

@media screen and (max-width: 768px) {
    .accordion-wrapper {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .accordion-header {
        padding: 0.7rem 1.2rem;
        font-size: 1.1rem;
    }

    .accordion-content {
        padding: 0 1.2rem 1.5rem;
    }

    .credit-group ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}