:root {
    --color-bg: #f8f9fa;
    --color-bg-light: #e9ecef;
    --color-text: #5a3a2e;
    --color-text-light: #7a5a4e;
    --color-border: #d7c5bc;
    --color-primary: #6a4638;
    --font-en: 'Nunito Sans', sans-serif;
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-ja-heading: 'Shippori Mincho', serif;
    --spacing-xs: 12px;
    --spacing-sm: 24px;
    --spacing-md: 48px;
    --spacing-lg: 64px;
    --spacing-xl: 106px;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    background-color: var(--color-bg);
    scrollbar-gutter: stable;
}

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

body {
    font-family: var(--font-ja);
    font-weight: 400;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.8;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
    transition: color 0.6s ease, background-color 0.6s ease;
}

body[data-bg-tone="intro"] {
    --bg-overlay-color: rgba(255, 255, 255, 0);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="calm"] {
    --bg-overlay-color: rgba(255, 255, 255, 0.72);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.72) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="mist"] {
    --bg-overlay-color: rgba(255, 255, 255, 0.95);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="white"] {
    --bg-overlay-color: rgba(255, 255, 255, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="deep"] {
    --bg-overlay-color: rgba(255, 255, 255, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="focus"] {
    --bg-overlay-color: rgba(255, 255, 255, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 1) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="company"] {
    --bg-overlay-color: rgba(255, 253, 250, 0.91);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.91) 0%,
        rgba(255, 255, 255, 0.91) 100%
    );
    --bg-overlay-gradient-opacity: 0;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

body[data-bg-tone="closing"] {
    --bg-overlay-color: rgba(255, 253, 250, 0.5);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(253, 250, 246, 0.6) 48%,
        rgba(255, 255, 255, 0.9) 100%
    );
    --bg-overlay-gradient-opacity: 0.65;
    --bg-glow: none;
    --bg-glow-opacity: 0;
    --video-filter: none;
    --video-transform: scale(1.08);
}

.page-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #ffffff;
    transition: background 1.6s ease;
}

.page-background-video,
.page-background-overlay,
.page-background-glow {
    position: absolute;
    inset: 0;
}

.page-background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: var(--video-filter);
    transform: var(--video-transform);
    opacity: 1;
    will-change: transform, filter;
}

.page-background-overlay {
    background-color: var(--bg-overlay-color, transparent);
    transition: background-color 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-background-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-overlay-gradient);
    opacity: var(--bg-overlay-gradient-opacity, 0);
    transition: opacity 0.75s ease;
}

.page-background-glow {
    background: var(--bg-glow);
    mix-blend-mode: screen;
    opacity: var(--bg-glow-opacity, 0.9);
}

.page-shell {
    position: relative;
    z-index: 1;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

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

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section + .section {
    padding-top: 0;
}

.bg-light {
}

/* =========================================
   SIDE NAVIGATION
========================================= */
.side-nav {
    position: fixed;
    right: 24px;
    bottom: 48px;
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 900;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.header,
.footer,
.modal,
.modal-overlay {
    position: relative;
    z-index: 2;
}

.side-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    pointer-events: all;
    padding: 16px;
}

.side-nav-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
    position: relative;
}

.side-nav-item::before {
    content: '';
    display: block;
    width: 10px;
    height: 1px;
    background: var(--color-border);
    flex-shrink: 0;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.4s ease;
}

.side-nav-item.active::before {
    width: 18px;
    background: var(--color-text);
}

.side-nav-item a {
    font-family: var(--font-ja-heading);
    font-size: 0.7rem;
    color: var(--color-border);
    letter-spacing: 0.08em;
    transition: color 0.4s ease;
    white-space: nowrap;
}

.side-nav-item.active a,
.side-nav-item a:hover {
    color: var(--color-text);
    opacity: 1;
}

/* =========================================
   ANIMATIONS 
========================================= */

/* Parallax/Zoom Hero Background */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

/* Text Reveal (Slide up) */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delays for staggered animations */
.delay-100 { transition-delay: 0.1s; }
.delay-150 { transition-delay: 0.15s; }
.delay-200 { transition-delay: 0.2s; }
.delay-250 { transition-delay: 0.25s; }
.delay-300 { transition-delay: 0.3s; }
.delay-350 { transition-delay: 0.35s; }
.delay-400 { transition-delay: 0.4s; }

/* Image Reveal Mask */
.reveal-mask {
    position: relative;
    overflow: hidden;
}
.reveal-mask::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #dcdcdc; /* Wireframe mask color */
    transform-origin: right;
    transition: transform 1.2s cubic-bezier(0.8, 0, 0.2, 1);
    z-index: 1;
}
.reveal-mask.is-visible::after {
    transform: scaleX(0);
}

/* Card Hover Animations */
.staff-card:hover {
    transform: translateY(-8px);
}
.staff-img-wrap {
    overflow: hidden;
}
.staff-card .placeholder-img {
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.staff-card:hover .placeholder-img {
    transform: scale(1.08);
}


/* Typography */
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: calc(var(--spacing-lg) + 16px);
    letter-spacing: 0.12em;
}

.section > .container {
    padding-top: var(--spacing-lg);
}

.section-title .ja {
    display: block;
    font-family: var(--font-ja-heading);
    font-size: 1rem;
    font-weight: 400;
    margin-top: 10px;
    color: var(--color-text-light);
    letter-spacing: 0.1em;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-en);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border-radius: 2px;
}

.btn-outline {
    border: 1px solid var(--color-text);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}
.btn-outline:hover {
    color: #fff;
}
.btn-outline:hover::before {
    transform: scaleX(1);
}

.btn-primary {
    background: var(--color-text);
    color: #fff;
    border: 1px solid var(--color-text);
}

.btn-primary:hover {
    background: transparent;
    color: var(--color-text);
}

/* Placeholder Images */
.placeholder-img {
    background-color: var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.875rem;
    text-align: center;
}

img.placeholder-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 249, 250, 0);
    z-index: 1000;
    color: #fff;
    transition: all 0.5s ease;
}

.header .btn-outline {
    border-color: #fff;
    color: #fff;
}

.header .btn-outline::before {
    background: #fff;
}

.header .btn-outline:hover {
    color: var(--color-text);
}

.header.scrolled {
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    color: var(--color-text);
}

.header.scrolled .btn-outline {
    border-color: var(--color-text);
    color: var(--color-text);
}

.header.scrolled .btn-outline::before {
    background: var(--color-text);
}

.header.scrolled .btn-outline:hover {
    color: #fff;
}

/* 現在ページ表示 */
.header .btn-outline.is-current {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    opacity: 1;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.95);
}
.header.scrolled .btn-outline.is-current {
    border-color: var(--color-text);
    background: rgba(106, 70, 56, 0.08);
    color: var(--color-text);
    opacity: 1;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 var(--color-text);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}

.header-logo {
    font-family: var(--font-en);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.lang-switch {
    font-family: var(--font-en);
    font-size: 0.875rem;
    letter-spacing: 0.08em;
}

.lang-switch .active {
    font-weight: bold;
    border-bottom: 1px solid currentColor;
}

.entry-buttons {
    display: flex;
    gap: 16px;
}

.entry-buttons .btn {
    padding: 8px 24px;
}

.entry-buttons .label-short {
    display: none;
}

/* Concept */
.concept-lead-wrapper {
    text-align: center;
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Backgrounds are now managed by data-bg-tone on the body overlay */

.concept-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.concept-brand {
    font-family: var(--font-ja-heading);
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.concept-date {
    font-family: var(--font-en);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.concept-date::before,
.concept-date::after {
    content: "";
    width: 30px;
    height: 1px;
    background: var(--color-border);
}

.concept-statement {
    font-family: var(--font-ja-heading);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 2;
    color: var(--color-text);
}

/* Shared Detail Page Hero */
.ng-hero,
.mc-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: clamp(150px, 19vh, 220px) var(--spacing-sm) 56px;
}

.ng-hero-bg,
.mc-hero-bg {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

.ng-hero-content,
.mc-hero-content {
    position: relative;
    z-index: 1;
    color: #f8fbfd;
    text-shadow: 0 2px 12px rgba(43, 76, 92, 0.42);
    max-width: 820px;
    transform: translateY(1.2rem);
}

.ng-hero-label,
.mc-hero-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    color: rgba(248, 251, 253, 0.72);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(43, 76, 92, 0.42);
}

.ng-hero-title,
.mc-hero-title {
    font-family: var(--font-ja-heading);
    font-size: 3.2rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 24px;
    color: #f8fbfd;
}

.hero-line-nowrap {
    display: inline-block;
    white-space: nowrap;
}

.ng-hero-sub,
.mc-hero-sub {
    font-family: var(--font-ja-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(248, 251, 253, 0.88);
    text-shadow: 0 2px 10px rgba(43, 76, 92, 0.42);
}

/* Shared Detail Page Lead */
.ng-lead-text,
.mc-lead-text {
    font-family: var(--font-ja);
    font-size: 1rem;
    line-height: 2.2;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    color: var(--color-text);
}

/* Shared Detail Page Vision */
.ng-vision-inner {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    margin-top: var(--spacing-md);
}

.ng-vision-main {
    border-left: 3px solid var(--color-border);
    padding-left: var(--spacing-sm);
}

.ng-vision-phrase {
    font-family: var(--font-ja-heading);
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 2;
    color: var(--color-text);
}

.ng-vision-list {
    flex: 1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ng-vision-list li {
    position: relative;
    padding-left: 1.6em;
    font-size: 0.95rem;
    line-height: 1.9;
    color: var(--color-text);
}

.ng-vision-list li::before {
    content: "◎";
    position: absolute;
    left: 0;
    color: var(--color-text-light);
}

.department > .container,
.ng-openings > .container {
    max-width: 1360px;
}

.dept-flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

/* スマホ等、非常に狭い画面では2列固定 */
@media (max-width: 600px) {
    .dept-flip-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.flip-card {
    background-color: transparent;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid var(--color-border);
}

/* Front Side */
.flip-card-front {
    color: var(--color-text);
    border: none;
}

.flip-card-front .dept-name {
    font-family: var(--font-ja-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--color-text);
}

.flip-card-front .dept-sub {
    font-size: 0.75rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* Department card background photos */
.flip-card-front:has(.dept-card-photo) {
    overflow: hidden;
    background: #fff;
    border-color: transparent;
}

.dept-card-photo {
    position: absolute;
    inset: 0;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(2.5px);
    transform: scale(1.03);
}

.dept-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.30);
}

@media (max-width: 1024px) {
    .dept-card-photo {
        background-size: cover;
    }
    .dept-card-photo::after {
        background: rgba(0, 0, 0, 0.48);
    }
}

.flip-card-front:has(.dept-card-photo) .dept-name {
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.flip-card-front:has(.dept-card-photo) .dept-sub {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
}

/* Back Side */
.flip-card-back {
    transform: rotateY(180deg);
    background: #f8f9fa; /* 裏は少し背景色を変える */
}

.flip-card-back .dept-desc {
    width: 100%;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.dept-match {
    text-align: left;
    width: 100%;
}

.dept-match h5 {
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    text-align: center;
}

.dept-match ul {
    list-style: none;
    font-size: 0.75rem;
    line-height: 1.6;
    padding-left: 4px;
}

.dept-match ul li {
    position: relative;
    padding-left: 14px;
}

.dept-match ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 4px;
    height: 4px;
    background: var(--color-text-light);
    border-radius: 50%;
}

.dept-card-trigger {
    display: none;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.faq-q {
    font-weight: bold;
    margin-bottom: 8px;
}

.faq-a {
    color: var(--color-text-light);
    line-height: 1.9;
}

/* Shared Detail Page Flow */
.ng-flow-grid,
.mc-flow-grid {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: var(--spacing-md);
}

.ng-flow-arrow,
.mc-flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--color-border);
    flex: 0 0 28px;
}

.ng-flow-header,
.mc-flow-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.ng-flow-title-group,
.mc-flow-title-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.ng-flow-icon,
.mc-flow-icon {
    font-size: 2.4rem;
    color: var(--color-text-light);
    font-variation-settings: 'FILL' 0, 'wght' 200, 'GRAD' 0, 'opsz' 48;
    line-height: 1;
    margin-bottom: 0;
}

.ng-flow-step,
.mc-flow-step {
    font-family: var(--font-en);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--color-primary);
    font-weight: 700;
}


.ng-flow-card h3,
.mc-flow-card h3 {
    font-family: var(--font-ja-heading);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text);
}

.ng-flow-card p,
.mc-flow-card p {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

/* =========================================
   Shared Detail Page CTA — Card Style
   (matches TOP page .cta-split pattern)
========================================= */
.ng-cta,
.mc-cta {
    padding: var(--spacing-xl) 0;
}

/* Card wrapper — same sizing as .cta-split */
.page-cta-panel {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 340px;
    overflow: hidden;
    width: calc(100% - 48px);
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease;
}

.page-cta-panel:hover {
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.14);
}

/* Left: Photo */
.page-cta-image {
    position: relative;
    overflow: hidden;
}

.page-cta-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Right: Content */
.page-cta-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 40px;
    gap: 10px;
    background: #3a2018;
    color: #f5ede7;
    position: relative;
    overflow: hidden;
}

.page-cta-content::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.page-cta-label {
    display: block;
    font-family: var(--font-en);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: rgba(245, 237, 231, 0.55);
    text-transform: uppercase;
}

.page-cta-deco {
    display: none;
}

.page-cta-title {
    font-family: var(--font-ja-heading);
    font-size: clamp(1.2rem, 1.8vw, 1.8rem);
    font-weight: 500;
    line-height: 1.5;
    color: #f5ede7;
    margin: 0;
    letter-spacing: 0.05em;
}

.page-cta-sub {
    font-family: var(--font-ja-heading);
    font-size: 0.8rem;
    line-height: 1.8;
    color: rgba(245, 237, 231, 0.7);
    margin: 0;
    letter-spacing: 0.05em;
}

/* Buttons */
.page-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin-top: 8px;
}

.page-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border: 1px solid rgba(245, 237, 231, 0.6);
    color: #f5ede7;
    background: transparent;
    font-family: var(--font-ja);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    align-self: flex-start;
    transition: background 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.page-cta-btn-primary span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.page-cta-panel:hover .page-cta-btn-primary {
    background: rgba(245, 237, 231, 0.14);
    border-color: rgba(245, 237, 231, 0.9);
    opacity: 1;
}

.page-cta-panel:hover .page-cta-btn-primary span {
    transform: translateX(4px);
}

.page-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 237, 231, 0.5);
    font-family: var(--font-ja);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    padding: 4px 0;
    transition: color 0.3s ease, border-color 0.3s ease;
    white-space: nowrap;
}

.page-cta-btn-secondary:hover {
    color: rgba(245, 237, 231, 0.9);
    opacity: 1;
}

/* Responsive */
@media (max-width: 900px) {
    .page-cta-panel {
        grid-template-columns: 42% 58%;
        min-height: 300px;
    }
    .page-cta-image {
        position: relative;
    }
    .page-cta-content {
        padding: 24px 22px;
        gap: 8px;
    }
    .page-cta-title {
        font-size: 1.15rem;
        line-height: 1.4;
    }
    .page-cta-sub {
        font-size: 0.75rem;
        line-height: 1.65;
    }
    .page-cta-actions {
        gap: 8px;
        margin-top: 4px;
    }
    .page-cta-btn-primary {
        padding: 10px 16px;
        font-size: 0.72rem;
        gap: 8px;
    }
    .page-cta-btn-secondary {
        font-size: 0.68rem;
    }
}

@media (max-width: 480px) {
    .page-cta-panel {
        grid-template-columns: 1fr;
        width: calc(100% - 32px);
        min-height: 240px;
    }
    .page-cta-image {
        height: 240px;
        position: relative;
    }
    .page-cta-content {
        padding: 20px 16px;
        gap: 8px;
    }
    .page-cta-title {
        font-size: 1.05rem;
        line-height: 1.45;
    }
    .page-cta-sub {
        font-size: 0.72rem;
        line-height: 1.65;
    }
    .page-cta-actions {
        gap: 8px;
        margin-top: 4px;
    }
    .page-cta-btn-primary {
        padding: 10px 14px;
        font-size: 0.72rem;
        gap: 8px;
    }
    .page-cta-btn-secondary {
        font-size: 0.68rem;
    }
}

/* Page navigation links (shared: contact-thanks, recruit-movie, etc.) */
.page-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.page-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.75rem 1.8rem;
    border: 1px solid var(--color-text);
    border-radius: 2px;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.25s, background 0.25s, color 0.25s;
}

.page-link-btn:hover {
    background: var(--color-text);
    color: #fff;
}

.page-link-btn .material-symbols-rounded {
    font-size: 1.1em;
}

.page-link-btn.primary {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}

.page-link-btn.primary:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* visibility helpers */
.pc-only { display: inline; }
.sp-only { display: none; }

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: var(--spacing-xl) 0 var(--spacing-sm);
    text-align: center;
    font-family: var(--font-ja);
}

.footer-info {
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
    line-height: 1.8;
}

.footer-company {
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 24px; /* 住所との距離を広げる */
}

.footer-hotel-logo {
    height: 95px;
    width: auto;
    margin: 0 auto 4px; /* ロゴにさらに近づける */
    display: block;
}

.footer-address {
    font-size: 1rem;
    margin-bottom: 8px;
}

.footer-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-contact-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 8px;
}

.footer-link-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link-item:hover {
    opacity: 0.7;
}

.footer-link-item .material-symbols-rounded {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-link-item .link-text {
    font-family: var(--font-en);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 100px;
}

.footer-banner-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-banner-link:hover {
    opacity: 0.9;
}

.footer-banner-img {
    height: 50px;
    width: 180px;
    object-fit: contain;
    background: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-banner-link:hover .footer-banner-img {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.footer-banner-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.footer-banner-link:hover .footer-banner-label {
    color: #fff;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
    color: #fff;
    font-family: var(--font-en);
}

/* Responsive */
@media (max-width: 768px) {
    html {
        scrollbar-gutter: auto;
    }
    .page-shell,
    .header,
    .page-background {
        width: 100vw;
    }
    .page-shell {
        overflow-x: clip;
    }
    .page-background {
        inset: 0 auto 0 0;
        height: 100dvh;
    }
    .page-background-video,
    .page-background-overlay,
    .page-background-glow {
        inset: 0;
        width: 100%;
        height: 100%;
    }
    .page-background-video {
        transform: none;
    }
    .side-nav {
        display: none;
    }
    .faq-item {
        margin-bottom: 0;
        padding: 18px 0;
    }
    .faq-q {
        position: relative;
        margin-bottom: 0;
        padding-right: 28px;
        cursor: pointer;
    }
    .faq-q::after {
        content: '+';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-family: var(--font-en);
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1;
        color: var(--color-text-light);
    }
    .faq-item.is-open .faq-q::after {
        content: '−';
    }
    .faq-a {
        display: none;
        padding-top: 12px;
    }
    .faq-item.is-open .faq-a {
        display: block;
    }
    .mc-faq-item {
        margin-bottom: 0;
        padding: 18px 0;
    }
    .mc-faq-q {
        position: relative;
        margin-bottom: 0;
        padding: 0 28px 0 0;
        cursor: pointer;
        gap: 12px;
    }
    .mc-faq-q::after {
        content: '+';
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        font-family: var(--font-en);
        font-size: 1.25rem;
        font-weight: 400;
        line-height: 1;
        color: var(--color-text-light);
    }
    .mc-faq-item.is-open .mc-faq-q::after {
        content: '−';
    }
    .mc-faq-a {
        display: none;
        padding: 12px 0 0 0;
    }
    .mc-faq-item.is-open .mc-faq-a {
        display: block;
    }
    .sp-br-off {
        display: none;
    }
    .section {
        backdrop-filter: none;
    }
    .header-inner {
        padding: 12px 16px;
    }
    .header-logo {
        font-size: 1rem;
    }
    .header-nav {
        gap: 12px;
    }
    .entry-buttons {
        gap: 8px;
    }
    .entry-buttons .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .entry-buttons .label-full {
        display: none;
    }
    .entry-buttons .label-short {
        display: inline;
    }

    .dept-flip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .flip-card-front,
    .flip-card-back {
        padding: 18px 12px;
    }
    .flip-card-front .dept-name {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.4;
        padding-bottom: 6px;
        border-bottom: 1px solid var(--color-border);
    }
    .flip-card-front .dept-sub,
    .flip-card-back .dept-desc,
    .dept-match h5,
    .dept-match ul {
        font-size: 0.7rem;
    }
    .flip-card-front .dept-sub br {
        display: none;
    }
    .ng-hero-title,
    .mc-hero-title {
        font-size: 2.2rem;
    }
    .ng-lead-text,
    .mc-lead-text {
        font-size: 1rem;
        text-align: left;
    }
    .ng-cta-title,
    .mc-cta-title {
        font-size: 1.5rem;
    }
    .mc-cta-inner {
        padding: var(--spacing-md) var(--spacing-sm);
    }
    .footer-contact-links {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .section-title {
        font-size: 2rem;
    }
    .concept-brand {
        font-size: 1.75rem;
    }
    .concept-date {
        font-size: 1.25rem;
    }
    .concept-statement {
        font-size: 1.1rem;
    }
    .pc-only { display: none; }
    .sp-only { display: inline; }
    .page-links {
        flex-direction: column;
        align-items: center;
    }
    .footer-links {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .footer-banner-img {
        width: 140px;
        height: 44px;
        padding: 6px 10px;
    }
    .footer-banner-label {
        font-size: 0.68rem;
        letter-spacing: 0.06em;
    }
}

@media (max-width: 900px) {
    .ng-flow-grid,
    .mc-flow-grid {
        flex-direction: column;
    }
    .ng-flow-arrow,
    .mc-flow-arrow {
        transform: rotate(90deg);
        flex: 0 0 24px;
    }
    .ng-vision-inner {
        display: grid;
        grid-template-columns: 1fr;
    }
    .ng-vision-main {
        flex: none;
        width: 100%;
    }
    .ng-vision-phrase {
        font-size: clamp(1.1rem, 4.8vw, 1.35rem);
        line-height: 1.75;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

/* CTA color overrides — match TOP page split cards */

/* 新卒 CTA → light (white), mirrors .cta-split-content--light */
#ng-cta .page-cta-content {
    background: #fff;
    color: var(--color-text);
}
#ng-cta .page-cta-content::before {
    background: radial-gradient(ellipse at 80% 20%, rgba(106,70,56,0.04) 0%, transparent 60%);
}
#ng-cta .page-cta-label {
    color: var(--color-text-light);
}
#ng-cta .page-cta-title {
    color: var(--color-text);
}
#ng-cta .page-cta-sub {
    color: var(--color-text-light);
}
#ng-cta .page-cta-btn-primary {
    border-color: var(--color-text);
    color: var(--color-text);
}
#ng-cta .page-cta-panel:hover .page-cta-btn-primary {
    background: var(--color-text);
    border-color: var(--color-text);
    color: #fff;
}
#ng-cta .page-cta-btn-secondary {
    color: var(--color-text-light);
}
#ng-cta .page-cta-btn-secondary:hover {
    color: var(--color-text);
}

/* 中途 CTA → dark (#1c1c1c), mirrors .cta-split-content--dark */
#mc-cta .page-cta-content {
    background: #1c1c1c;
}
#mc-cta .page-cta-label {
    color: rgba(255, 255, 255, 0.45);
}
#mc-cta .page-cta-title {
    color: #fff;
}
#mc-cta .page-cta-sub {
    color: rgba(255, 255, 255, 0.6);
}
#mc-cta .page-cta-btn-primary {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}
#mc-cta .page-cta-panel:hover .page-cta-btn-primary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.9);
}
#mc-cta .page-cta-btn-secondary {
    color: rgba(255, 255, 255, 0.5);
}
#mc-cta .page-cta-btn-secondary:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* contact page: deep tone semi-transparent */
body.contact-page[data-bg-tone="deep"] {
    --bg-overlay-color: rgba(255, 255, 255, 0.7);
}

/* entry-level / experienced page only: beige for focus tone */
body.experienced-page[data-bg-tone="focus"] {
    --bg-overlay-color: rgba(252, 247, 240, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(252, 247, 240, 1) 0%,
        rgba(252, 247, 240, 1) 100%
    );
}

body.entry-level-page[data-bg-tone="focus"] {
    --bg-overlay-color: rgba(252, 247, 240, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(252, 247, 240, 1) 0%,
        rgba(252, 247, 240, 1) 100%
    );
}

/* top page only: beige for deep and focus tones */
body.top-page[data-bg-tone="deep"] {
    --bg-overlay-color: rgba(252, 247, 240, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(252, 247, 240, 1) 0%,
        rgba(252, 247, 240, 1) 100%
    );
}
body.top-page[data-bg-tone="focus"] {
    --bg-overlay-color: rgba(252, 247, 240, 1);
    --bg-overlay-gradient: linear-gradient(
        180deg,
        rgba(252, 247, 240, 1) 0%,
        rgba(252, 247, 240, 1) 100%
    );
}
