/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

:root {
    --header-h: 96px;
    --bg-main: #050505;
    --bg-elevated: #0f0f0f;
    --bg-muted: #0b0b0b;
    --bg-soft: #141414;
    --text-primary: #f5f3ef;
    --text-secondary: #d0c8bc;
    --text-tertiary: #a59b8c;
    --heading-color: #d8b766;
    --accent: #d8b766;
    --accent-hover: #f0d491;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    --light-bg: #0b0b0b;
    --light-card-bg: #101010;
    --light-card-border: rgba(255, 255, 255, 0.12);
    --light-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    --light-text-primary: #f5f3ef;
    --light-text-secondary: #d0c8bc;
    --light-text-tertiary: #a59b8c;
    --nav-h: 82px;
}

body {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: radial-gradient(circle at 20% 20%, rgba(216, 183, 102, 0.08), transparent 45%),
        radial-gradient(circle at 80% 10%, rgba(216, 183, 102, 0.05), transparent 40%),
        var(--bg-main);
    overflow-x: hidden;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
}

.en-text,
.business-card-en,
.case-meta,
.news-item-title,
.news-item-text,
.staff-modal-role,
.staff-modal-section-title {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
}

.hero,
.hero-slider,
.slide,
.container,
.section {
    max-width: 100%;
}

.section {
    padding: 120px 0;
    scroll-margin-top: 140px;
}

#news.section {
    padding-top: 30px;
    scroll-margin-top: 140px;
}

@media (max-width: 768px) {
    .hero,
    .hero-slider,
    .slide,
    .container,
    .section {
        width: 100%;
    }
}

body.news-archive #news.section {
    padding-top: calc(var(--header-h, 64px) + 30px);
    scroll-margin-top: calc(var(--header-h, 64px) + 30px);
}

.staff-card {
    scroll-margin-top: calc(var(--header-h, 64px) + 24px);
}

#business-philosophy.section {
    padding: 100px 0 120px;
    scroll-margin-top: 200px;
}

#business-philosophy h2 {
    text-transform: none;
    letter-spacing: 0.06em;
}

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

.section-dark .section-lead {
    color: var(--light-text-secondary);
}

.section-light {
    background: var(--light-bg);
    color: var(--light-text-primary);
    --text-secondary: var(--light-text-secondary);
    --text-tertiary: var(--light-text-tertiary);
}

.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--heading-color);
}

.section-light .section-lead {
    color: var(--light-text-secondary);
}

.alt-bg {
    background-color: var(--bg-muted);
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1300;
    background: #0B0B0B;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    padding: 0 24px;
    /* update: fixed header height + flex centering for logo/hamburger */
    height: var(--header-h, 92px);
    display: flex;
    align-items: center;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* update: keep header children vertically centered */
    height: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--heading-color);
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 0;
    font-size: 0;
    transition: color 0.2s ease;
}

.menu-bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    border-radius: 999px;
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.2s ease;
}

.menu-toggle .menu-bar + .menu-bar {
    margin-top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1),
.menu-toggle.is-open .menu-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2),
.menu-toggle.is-open .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3),
.menu-toggle.is-open .menu-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-toggle.menu-toggle-sentinel {
    position: absolute;
    width: 0;
    height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
}


.mobile-backdrop {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.company-name {
    display: inline-flex;
    align-items: center;
    font-size: 27px;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: 0.04em;
    text-decoration: none;
}

.company-name img {
    display: block;
    width: clamp(330px, 40vw, 740px);
    height: auto;
    max-width: none;
    object-fit: contain;
    background: transparent;
}

body.news-archive .company-name {
    font-size: 24px;
}

body.archive-page .company-name {
    font-size: 24px;
    letter-spacing: 0.12em;
    line-height: 1.2;
    padding: 0;
}

body.archive-page .header-container {
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    :root {
        --header-h: 80px;
    }

    .company-name img {
        width: min(74vw, 430px);
        height: auto;
        max-width: none;
    }

    .header {
        height: var(--header-h, 64px);
    }

    body.archive-page .company-name {
        font-size: 18px;
    }
}

.company-name:hover {
    color: var(--accent);
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding-right: 0.5rem;
    flex-shrink: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-shrink: 0;
    margin-left: auto;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    color: #f5f7fb;
    border-radius: 50%;
    text-decoration: none;
    transition: none;
    border: 1px solid #f5f7fb;
    box-shadow: none;
    line-height: 1;
}

.social-icon:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
    color: #f5f7fb;
}


.social-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    color: #f5f7fb;
}

.social-icon i {
    font-size: 18px;
    line-height: 1;
}

.header .social-icon {
    box-shadow: none;
}

.header .social-icon:hover {
    background: transparent;
}

.icon-x {
    width: 20px;
    height: 20px;
    display: block;
}

.icon-x path {
    fill: currentColor;
}

/* ヒーローセクション */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: calc(var(--header-h, 92px) + var(--nav-h, 82px));
    background-color: #ffffff;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    padding: 40px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.slide-content h1 {
    font-size: 5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* ナビゲーション */
.main-nav {
    background: #0B0B0B;
    position: sticky;
    top: var(--header-h, 92px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    min-height: var(--nav-h, 82px);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2px;
}

.main-nav li {
    flex: 1;
}

.main-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: var(--nav-h, 82px);
    height: auto;
    padding: 0 18px;
    line-height: 1.35;
    color: #f5f7fb;
    text-decoration: none;
    text-align: center;
    transition: color 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
}

.main-nav a:hover {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
}

.menu-close {
    display: none;
}

.menu-item-group {
    position: relative;
    flex: 1;
}

.submenu-toggle {
    display: none;
}

.submenu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 6px auto 0;
    padding: 4px 6px;
    border-radius: 8px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 170px;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translate(-50%, 8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu-item {
    display: block;
    padding: 4px 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
    border-left: 2px solid transparent;
}

.submenu-item:hover {
    color: var(--text-primary);
    border-left-color: var(--accent);
}

.menu-item-group:hover .submenu,
.menu-item-group:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.menu-mobile-only {
    display: none;
}

/* セクション共通 */
h1,
h2,
h3,
h4 {
    color: var(--heading-color);
}

h2 {
    font-size: 28px;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--heading-color);
    margin: 20px auto;
}

/* 会社概要セクション */
.company-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 50px;
    align-items: start;
}

#company-profile .container {
    max-width: 980px;
}


.company-summary {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.summary-text p {
    font-size: 1.05rem;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.section-light .summary-text p,
.section-light .company-strengths li,
.section-light .company-details td,
.section-light .case-points li,
.section-light .recruit-points li,
.section-light .contact-info p,
.section-light .contact-method p,
.section-light .form-embed p {
    color: var(--light-text-secondary);
}

.summary-text {
    display: grid;
    gap: 16px;
}

.company-strengths {
    list-style: none;
    display: grid;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-muted);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.section-light .company-strengths {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
}

.company-strengths li {
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.company-strengths li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.company-image {
    border-radius: 12px;
    overflow: hidden;
}

company-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.section-light .company-image img {
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.18);
}

.company-details table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-elevated);
    box-shadow: var(--card-shadow);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.section-light .company-details table {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.company-details {
    align-self: stretch;
    margin-top: 72px;
}

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

.section-light .company-details th,
.section-light .company-details td {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.company-details th {
    background: var(--bg-muted);
    font-weight: bold;
    color: var(--text-primary);
    width: 265px;
    min-width: 265px;
}

#company-profile .company-details th {
    width: 275px !important;
    min-width: 275px !important;
}

#company-profile .company-details td {
    padding-right: 56px !important;
}

.section-light .company-details th {
    background: #eef2f8;
    color: var(--light-text-primary);
}

.company-details td {
    color: var(--text-secondary);
}

.section-light .company-details td {
    color: var(--light-text-secondary);
}

company-details tr:last-child th,
company-details tr:last-child td {
    border-bottom: none;
}

.business-philosophy {
    margin-top: 60px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--card-shadow);
}

.business-philosophy h3 {
    text-align: center;
    margin-bottom: 28px;
}

.business-philosophy h3 {
    font-size: 2.4rem;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.business-philosophy h3::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 20px auto 0;
}

.company-advantages-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    text-align: left;
    margin-bottom: 28px;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    line-height: 1.35;
}

.company-advantages-title .section-subtitle {
    font-size: 0.72em;
    margin-left: 0;
}

@media (max-width: 768px) {
    .company-advantages-title .section-subtitle {
        display: inline;
        margin-top: 0;
    }
}


.business-list {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.business-item {
    background: var(--light-card-bg);
    border: 1px solid var(--light-card-border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: var(--light-card-shadow);
    display: grid;
    gap: 10px;
}

.business-item h4 {
    color: var(--heading-color);
    margin-bottom: 6px;
}

.business-item p {
    color: var(--text-primary);
    line-height: 1.6;
}

.business-item p.en {
    color: var(--text-tertiary);
    font-size: 0.98rem;
}

.business-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 26px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 15, 15, 0.92);
    color: var(--text-primary);
    text-align: left;
    transition: border-color 0.2s ease;
    height: 100%;
}

.business-list {
    align-items: stretch;
}

.business-card-number {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    color: var(--accent);
}

.business-card-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.business-card-lead {
    display: block;
    color: var(--text-secondary);
    line-height: 1.8;
    min-height: 0;
    margin-bottom: 12px;
}

.business-card-en {
    display: block;
    color: var(--text-tertiary);
    line-height: 1.7;
    font-size: 0.98rem;
}

.en-text {
    position: static;
    min-height: 8.5em;
}

.section-lead {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

#news.section ~ .section .summary-text p,
#news.section ~ .section .company-strengths li,
#news.section ~ .section .company-details td,
#news.section ~ .section .business-card-lead,
#news.section ~ .section .business-item p,
#news.section ~ .section .service-item p,
#news.section ~ .section .case-points li,
#news.section ~ .section .recruit-points li,
#news.section ~ .section .faq-item p,
#news.section ~ .section .accordion-body,
#news.section ~ .section .history-list p,
#news.section ~ .section .contact-info p,
#news.section ~ .section .contact-method p,
#news.section ~ .section .form-embed p {
    font-size: 1.1rem;
}

#news.section ~ .section .business-item p.en,
#news.section ~ .section .business-card-en {
    font-size: 1.05rem;
}

#news.section ~ .section .case-meta {
    font-size: 0.95rem;
}

#news.section ~ .section .case-tag {
    font-size: 0.85rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 760px;
    margin: 0 auto;
}

.service-item {
    text-align: left;
    padding: 30px;
    background: var(--bg-elevated);
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    cursor: pointer;
    outline: none;
}

.section-dark .service-item {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.section-dark .service-item h4 {
    color: var(--light-text-primary);
}

.section-dark .service-item p {
    color: var(--light-text-secondary);
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.35);
}

.service-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-item h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.service-item-en {
    margin: 0 0 10px;
    color: var(--text-tertiary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.service-detail ul {
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

service-detail li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.service-detail li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.service-contact {
    margin-top: 20px;
    font-weight: 600;
    color: var(--text-primary);
}

/* 導入事例セクション */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.case-item {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.staff-card .case-points {
    display: none;
}

.section-light .case-item {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.case-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    width: fit-content;
}

.case-meta {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}


.section-light .case-meta {
    color: var(--light-text-tertiary);
}

.case-points {
    list-style: none;
    display: grid;
    gap: 10px;
}

case-points li {
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.section-light .case-points li {
    color: var(--light-text-secondary);
}

.case-points li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.case-result {
    color: var(--accent);
    font-weight: 600;
}

/* 会社概要 詳細情報 */
.company-extra {
    margin-top: 60px;
}

.company-extra-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
    color: var(--heading-color);
}

.company-accordion {
    display: grid;
    gap: 16px;
}

company-accordion details {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.section-light .company-accordion details {
    background: rgba(255, 255, 255, 0.9);
}

.company-accordion summary {
    cursor: pointer;
    padding: 18px 24px;
    font-weight: 700;
    font-size: 1.15rem;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.company-accordion summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.company-accordion .access-details summary::after {
    display: none;
}

.company-accordion .access-details summary {
    cursor: default;
}

.company-accordion .access-details summary::-webkit-details-marker {
    display: none;
}

.company-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.accordion-body {
    padding: 0 24px 24px;
    color: var(--text-secondary);
}

/* 沿革 */
.history-content {
    max-width: 900px;
    margin: 0 auto;
}

.history-lead {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.history-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.history-list li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px 24px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.history-year {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.history-list p {
    margin: 6px 0 0;
    color: var(--text-secondary);
}

/* アクセス */
.access-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr;
    align-items: start;
}

access-info p {
    color: var(--light-text-secondary);
    margin-bottom: 12px;
}

.map-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(15, 23, 42, 0.35);
    font-size: 1rem;
}

.map-embed {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 会社情報詳細 */
.company-info {
    margin-top: 40px;
    text-align: center;
}

.company-info h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

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

.company-info-item {
    background: var(--bg-elevated);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    text-align: left;
}

.company-info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--heading-color);
}

.company-info-item p {
    color: var(--text-secondary);
}

/* アクセス */
.access-map iframe {
    width: 100%;
    height: 350px;
    border: none;
    border-radius: 10px;
}

/* 採用情報セクション */
.recruit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.recruit-card {
    background: var(--bg-elevated);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.section-light .recruit-card {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.recruit-card h3 {
    color: var(--heading-color);
}

.recruit-points {
    list-style: none;
    display: grid;
    gap: 10px;
}

.recruit-points li {
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.recruit-points li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.recruit-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.recruit-actions button,
.recruit-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    background: var(--accent);
    color: #1c1917;
}

.recruit-actions button:hover,
.recruit-actions a:hover {
    background: var(--accent-hover);
}

/* よくある質問セクション */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    background: var(--bg-elevated);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.section-dark .faq-item {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.faq-item summary {
    padding: 20px;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    list-style: none;
    color: var(--text-primary);
}

.section-dark .faq-item summary {
    color: var(--light-text-primary);
}

.faq-item summary::marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-item p {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

.section-dark .faq-item p {
    color: var(--light-text-secondary);
}

/* お問い合わせセクション */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
}

#close-protection,
#training,
#security-management,
#special-equipment {
    scroll-margin-top: 80px;
}

.contact-info,
.contact-form {
    text-align: center;
}

.contact-form-body {
    text-align: center;
    align-items: center;
}

.form-row {
    align-items: center;
    text-align: center;
}

.form-row label {
    text-align: left;
    align-self: stretch;
}

.field-tag {
    color: #e11d48;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 6px;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    max-width: 720px;
}

.contact-info h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-methods {
    display: grid;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    font-size: 2rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.contact-method strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.section-light .contact-method strong {
    color: var(--light-text-primary);
}

.contact-form {
    background: var(--bg-elevated);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.section-light .contact-form {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.contact-form h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.contact-form-body {
    display: grid;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: var(--text-primary);
}

.section-light .form-row label {
    color: var(--light-text-primary);
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-row textarea {
    resize: vertical;
    min-height: 160px;
}

input::placeholder,
textarea::placeholder {
    color: rgba(100, 116, 139, 0.7);
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.agree-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.agree-row a {
    color: var(--accent);
    text-decoration: underline;
}

.agree-row a:hover {
    color: var(--accent-hover);
}

#contact-msg {
    min-height: 1.3em;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

#contact-msg.info {
    color: var(--text-secondary);
}

#contact-msg.success {
    color: #15803d;
}

#contact-msg.error {
    color: #dc2626;
}

.btn-contact {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    width: 50%;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.05rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

/* お問い合わせフォーム文字サイズの調整 */
#contact .contact-info h3 {
    font-size: 1.1rem;
}

#contact .contact-info p {
    font-size: 0.98rem;
    line-height: 1.7;
}

#contact .contact-intro-text {
    text-align: center;
}

#contact .contact-form h3 {
    font-size: 1.18rem;
}

#contact .form-row label {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    font-size: 0.95rem;
    line-height: 1.45;
}

#contact .field-tag {
    font-size: 0.72em;
    letter-spacing: 0.02em;
}

#contact .form-row input,
#contact .form-row select,
#contact .form-row textarea {
    max-width: 540px;
    font-size: 0.96rem;
    line-height: 1.55;
}

#contact .btn-contact {
    font-size: 1rem;
}

/* フッター */
.footer {
    background: #f1f5f9;
    color: var(--light-text-primary);
    padding: 50px 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

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

.footer-section.footer-social-section {
    grid-column: 1 / -1;
    justify-self: center;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--light-text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--light-text-secondary);
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: var(--heading-color);
}

.footer-social-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social {
    display: flex;
    gap: 32px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.footer-social .social-icon {
    color: var(--light-text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 52px;
    height: 52px;
}

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

.footer-social .social-icon:hover {
    color: #fff;
    background: var(--accent);
}

.footer-social {
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    width: 100%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
}

.footer-bottom p {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    justify-content: flex-end;
}

.privacy-btn {
    background: rgba(216, 183, 102, 0.12);
    border: 1px solid rgba(216, 183, 102, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 999px;
    min-width: 160px;
    text-align: center;
    font-weight: 600;
}

.privacy-btn:hover {
    background: rgba(216, 183, 102, 0.22);
    color: var(--text-primary);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--heading-color);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1500;
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--bg-elevated);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.section-light .modal-content {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-header .close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.section-light .modal-header .close {
    color: var(--light-text-primary);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    color: var(--text-secondary);
}

.section-light .modal-body {
    color: var(--light-text-secondary);
}

.modal-body h4 {
    margin-bottom: 12px;
}

.modal-body h5 {
    font-size: inherit;
    margin: 12px 0 6px;
}

.modal-body ul {
    margin: 10px 0 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
}

.policy-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.section-light .policy-nav {
    color: var(--light-text-primary);
}

.policy-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.policy-modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.policy-modal-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.policy-page {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.7;
}

.policy-page h4 {
    margin: 4px 0 2px;
}

.policy-page p {
    margin: 0;
}

.policy-page ul {
    margin: 2px 0 12px;
}

#terms-modal .policy-page {
    gap: 10px;
}

#terms-modal .policy-page h4 {
    margin: 0 0 2px;
}

#terms-modal .policy-page h5 {
    margin: 14px 0 4px;
}

#terms-modal .policy-page p {
    margin: 0;
}

#terms-modal .policy-page ul {
    margin: 4px 0 12px;
}

/* スタッフ紹介モーダル */
.staff-modal-content {
    max-width: 960px;
}

.staff-modal-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 16px;
}

.staff-modal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-modal-header #staff-modal-title {
    text-align: center;
    margin: 0;
}

.staff-modal-title-line {
    display: block;
    line-height: 1.2;
}

.staff-modal-title-role {
    font-size: 0.95em;
    letter-spacing: 0.08em;
    opacity: 0.75;
}

.staff-modal-title-name {
    font-size: 1.25em;
    margin-top: 6px;
}

.staff-works-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(216, 183, 102, 0.4);
    color: var(--text-primary);
    background: rgba(216, 183, 102, 0.12);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.staff-works-link:hover {
    background: rgba(216, 183, 102, 0.22);
    color: var(--text-primary);
}

.staff-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.staff-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.staff-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.staff-modal-layout.no-image-layout {
    grid-template-columns: 1fr;
}

.staff-modal-media {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.staff-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.staff-photo-nav.prev {
    left: 10px;
}

.staff-photo-nav.next {
    right: 10px;
}

.staff-modal-media.has-multi-photos .staff-photo-nav {
    display: inline-flex;
}

.staff-photo-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.staff-photo-count {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.staff-modal-media.no-image {
    display: none;
}

.staff-modal-media.no-image .staff-photo-nav {
    display: none;
}

.staff-modal-media.no-image .staff-photo-count {
    display: none;
}

.staff-modal-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.staff-modal-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.staff-modal-section {
    display: grid;
    gap: 10px;
    margin-bottom: 1em;
}

.staff-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.staff-modal-section-title i {
    color: var(--accent);
}

.staff-modal-section .case-points {
    margin: 0;
    padding: 0;
}

.staff-modal-section .case-points li {
    color: var(--text-secondary);
    padding-left: 0;
}

.staff-modal-section .case-points li::before {
    position: static;
    display: inline-block;
    margin-right: 8px;
}

/* サービス案内モーダル */
.service-modal-content {
    max-width: 860px;
}

.service-modal-header {
    align-items: center;
}

.service-modal-controls {
    display: flex;
    align-items: center;
    gap: 35px;
}

.service-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.service-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* お知らせモーダル */
.news-modal-content {
    max-width: 720px;
}

.news-modal-header {
    align-items: center;
}

.news-modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-modal-nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.news-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.news-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.works-modal-content {
    max-width: 900px;
    width: min(92vw, 900px);
}

.works-modal-body {
    padding: 0;
}

.works-modal-body iframe {
    width: 100%;
    height: min(70vh, 680px);
    border: 0;
    display: block;
}

.news-modal-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.news-modal-title {
    margin: 0;
}

.news-modal-controls .close {
    font-size: 28px;
    line-height: 1;
    margin-left: 12px;
    cursor: pointer;
}

.news-modal-body {
    color: var(--light-text-secondary);
}

.news-modal-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* お問い合わせセクション */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
    justify-items: center;
}

#close-protection,
#training,
#security-management,
#special-equipment {
    scroll-margin-top: 80px;
}

.contact-info,
.contact-form {
    text-align: center;
}

.contact-form-body {
    text-align: center;
    align-items: center;
}

.form-row {
    align-items: center;
    text-align: center;
}

.form-row label {
    text-align: left;
    align-self: stretch;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    max-width: 720px;
}

.contact-info h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.contact-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.contact-methods {
    display: grid;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-method i {
    font-size: 2rem;
    color: var(--accent);
    width: 40px;
    text-align: center;
}

.contact-method strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.section-light .contact-method strong {
    color: var(--light-text-primary);
}

.contact-form {
    background: var(--bg-elevated);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.section-light .contact-form {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.contact-form h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--heading-color);
}

.contact-form-body {
    display: grid;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: var(--text-primary);
}

.section-light .form-row label {
    color: var(--light-text-primary);
}

.form-row input,
.form-row select,
.form-row textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.form-row textarea {
    resize: vertical;
    min-height: 160px;
}

.hp-field {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.agree-row label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.agree-row a {
    color: var(--accent);
    text-decoration: underline;
}

.agree-row a:hover {
    color: var(--accent-hover);
}

#contact-msg {
    min-height: 1.3em;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

#contact-msg.info {
    color: var(--text-secondary);
}

#contact-msg.success {
    color: #15803d;
}

#contact-msg.error {
    color: #dc2626;
}

.btn-contact {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 30px;
    width: 50%;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.05rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-left: auto;
    margin-right: auto;
}

.btn-contact:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}

/* フッター */
.footer {
    background: #f1f5f9;
    color: var(--light-text-primary);
    padding: 50px 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

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

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.footer-section p {
    margin-bottom: 10px;
    color: var(--light-text-secondary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--light-text-secondary);
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: var(--heading-color);
}

.footer-social {
    display: flex;
    gap: 32px;
    justify-content: center;
    width: 100%;
}

.footer-social .social-icon {
    color: var(--light-text-primary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 52px;
    height: 52px;
}

.footer-social .social-icon:hover {
    color: #fff;
    background: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom-inner {
    width: 100%;
    max-width: 1120px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
}

.footer-bottom p {
    color: var(--light-text-secondary);
    font-size: 0.9rem;
    text-align: left;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    justify-content: flex-end;
}

.privacy-btn {
    background: transparent;
    border: none;
    color: var(--light-text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
}

.privacy-btn:hover {
    color: var(--heading-color);
}

.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--heading-color);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1500;
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--bg-elevated);
    margin: 5% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
}

.section-light .modal-content {
    background: var(--light-bg);
    border: 1px solid var(--light-card-border);
    box-shadow: var(--light-card-shadow);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.modal-header .close {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
}

.section-light .modal-header .close {
    color: var(--light-text-primary);
}

.modal-body {
    padding: 30px;
    max-height: 70vh;
    overflow-y: auto;
    color: var(--text-secondary);
}

.section-light .modal-body {
    color: var(--light-text-secondary);
}

.modal-body h4 {
    margin-bottom: 12px;
}

.modal-body ul {
    margin: 10px 0 20px;
    padding-left: 20px;
}

.modal-body li {
    margin-bottom: 6px;
}

.policy-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
}

.section-light .policy-nav {
    color: var(--light-text-primary);
}

.policy-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.policy-modal-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.policy-page {
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 1.7;
}

.policy-page h4 {
    margin: 4px 0 2px;
}

.policy-page p {
    margin: 0;
}

.policy-page ul {
    margin: 2px 0 12px;
}

/* スタッフ紹介モーダル */
.staff-modal-content {
    max-width: 960px;
}

.staff-modal-header {
    align-items: center;
}

.staff-modal-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.staff-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.staff-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.staff-modal-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 24px;
    align-items: start;
}

.staff-modal-media {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.staff-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.staff-modal-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.staff-modal-role {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.staff-modal-section {
    display: grid;
    gap: 10px;
}

.staff-modal-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.staff-modal-section-title i {
    color: var(--accent);
}

.staff-modal-section .case-points {
    margin: 0;
}

.staff-modal-section .case-points li {
    color: var(--text-secondary);
}

/* サービス案内モーダル */
.service-modal-content {
    max-width: 860px;
}

.service-modal-header {
    align-items: center;
}

.service-modal-controls {
    display: flex;
    align-items: center;
    gap: 35px;
}

.service-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.service-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* お知らせモーダル */
.news-modal-content {
    max-width: 720px;
}

.news-modal-header {
    align-items: center;
}

.news-modal-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-nav {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
}

.news-nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.news-modal-date {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.news-modal-title {
    margin: 0;
}

.news-modal-controls .close {
    font-size: 28px;
    line-height: 1;
    margin-left: 12px;
    cursor: pointer;
}

.news-modal-body {
    color: var(--light-text-secondary);
}

.news-modal-body p {
    margin-bottom: 16px;
    line-height: 1.7;
}

/* メディアクエリ */
@media (max-width: 1024px) {
    .header {
        padding: 0 16px;
    }

    .header-container {
        flex-direction: row;
        justify-content: center;
        position: relative;
        width: 100%;
    }

    .menu-toggle {
        /* update: keep hamburger centered within its hit area */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        z-index: 1401;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        /* update: required fixed panel with scroll */
        height: 100dvh;
        max-height: 100dvh;
        width: min(320px, 85vw);
        background: rgba(10, 10, 10, 0.9);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        padding: 16px 0 20px;
        display: flex;
        flex-direction: column;
        z-index: 1500;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .menu-close {
        position: absolute;
        top: 10px;
        right: 12px;
        width: 44px;
        height: 44px;
        border: none;
        border-radius: 0;
        background: transparent;
        color: #fff;
        font-size: 32px;
        font-weight: 700;
        line-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        opacity: 0;
        transform: translateX(8px) scale(0.82) rotate(-18deg);
        pointer-events: none;
        transition: opacity 0.24s ease, transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.2s ease;
    }

    .menu-close:hover {
        color: var(--accent);
    }

    .main-nav.is-open .menu-close {
        opacity: 1;
        transform: translateX(0) scale(1) rotate(0deg);
        pointer-events: auto;
    }

    .main-nav.is-open {
        transform: translateX(0);
    }


    .main-nav ul {
        flex-direction: column;
        gap: 4px;
        justify-content: flex-start;
        margin-top: 60px;
        margin-left: 0;
        margin-right: 0;
        flex: 1;
        min-height: 0;
        /* update: keep left gutter for menu items */
        padding: 0 24px;
        width: 100%;
        max-width: none;
        overflow: visible;
        /* update: enforce left-aligned menu text */
        text-align: left;
        align-items: flex-start;
    }

    .main-nav li {
        flex: none;
    }

    .menu-item-group {
        flex: none;
        width: 100%;
    }

    .main-nav a {
        justify-content: flex-start;
        min-height: 0;
        height: auto;
        padding: 12px 0;
        line-height: 1.4;
        font-size: 1rem;
        /* update: enforce left-aligned text in mobile menu */
        text-align: left;
    }

    .submenu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        background: transparent;
        border: none;
        padding: 0 0 0 10px;
        width: auto;
        margin: 6px 0 0;
    }

    .submenu-item {
        font-size: 0.9rem;
    }

    .menu-item-group {
        display: flex;
        flex-direction: column;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: var(--text-primary);
        width: 34px;
        height: 34px;
        border-radius: 50%;
        position: absolute;
        right: 12px;
        top: 6px;
        cursor: pointer;
    }

    .submenu-toggle-icon {
        position: relative;
        width: 12px;
        height: 12px;
    }

    .submenu-toggle-icon::before,
    .submenu-toggle-icon::after {
        content: '';
        position: absolute;
        inset: 0;
        margin: auto;
        width: 12px;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s ease;
    }

    .submenu-toggle-icon::after {
        transform: rotate(90deg);
    }

    .menu-item-group.is-open .submenu-toggle-icon::after {
        transform: rotate(0deg);
    }

    .menu-item-group .menu-item {
        padding-right: 40px;
    }

    .menu-item-group .submenu {
        /* update: avoid overflow clipping for submenus */
        display: none;
    }

    .menu-item-group.is-open .submenu {
        /* update: expand submenu in normal flow */
        display: block;
    }

    .mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1050;
    }

    .mobile-backdrop.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .menu-mobile-only {
        display: block;
    }

    /* update: keep hamburger anchored to the right within header */
    .header-right {
        margin-left: auto;
    }

    .company-name {
        /* update: center logo on mobile header */
        position: relative;
        left: auto;
        transform: none;
        text-align: center;
        margin: 0 auto;
        font-size: 20px;
        max-width: calc(100vw - 120px);
    }

    .company-name img {
        width: auto;
        max-width: 100%;
        height: 44px;
        object-fit: contain;
    }

    .hero {
        height: 70vh;
        margin-top: var(--header-h, 92px);
    }

    .slide-content h1 {
        font-size: 3rem;
    }

    .slide-content p {
        font-size: 1.2rem;
    }

    .company-overview {
        grid-template-columns: 1fr;
    }

    .company-details th {
        width: 100%;
    }

    .company-details table {
        display: block;
    }

    .company-details tr {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: left;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .footer-actions {
        position: static;
        transform: none;
        justify-content: flex-start;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        display: none;
    }

    .footer-actions {
        flex-wrap: wrap;
        row-gap: 8px;
        column-gap: 12px;
    }

    .privacy-btn {
        flex: 1 1 100%;
        min-width: 0;
        font-size: 0.8rem;
    }

    .back-to-top {
        margin-left: 0;
        right: 16px;
        bottom: 16px;
    }

    .footer-social {
        flex-wrap: wrap;
        row-gap: 16px;
        column-gap: 24px;
    }
}

@media (max-width: 768px) {
    h2 {
        font-size: 26px;
    }

    .section {
        padding: 80px 0;
    }

    .section-lead {
        font-size: 0.95rem;
    }

    .slide-content {
        padding: 24px;
    }

    .slide-content h1 {
        font-size: 2.2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .staff-modal-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .staff-modal-media img {
        display: block;
        width: 100%;
        height: auto !important;
        max-height: min(65vh, 520px);
        aspect-ratio: auto;
        object-fit: contain !important;
        object-position: center top;
    }

    .staff-modal-media {
        overflow: visible;
    }

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

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

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

    .company-details th,
    .company-details td {
        padding: 14px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .hero {
        height: 60vh;
    }

    .slide-content {
        padding: 20px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }

    .company-image img {
        height: 200px;
    }

    .contact-form {
        padding: 20px;
    }

    .btn-contact {
        width: 100%;
        text-align: center;
    }

}

/* スクロールアニメーション（JS有効時のみ） */
.js-scroll-animate .reveal-on-scroll {
    opacity: 0;
    filter: blur(2px);
    transform: translate3d(var(--reveal-x, 0), var(--reveal-y, 46px), 0) scale(var(--reveal-scale, 0.965));
    transition: opacity 1.45s cubic-bezier(0.22, 0.61, 0.36, 1), transform 1.45s cubic-bezier(0.22, 0.61, 0.36, 1), filter 0.95s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.js-scroll-animate .reveal-on-scroll.animate {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
}

.js-scroll-animate .reveal-heading {
    --reveal-x: 0;
    --reveal-y: 30px;
    --reveal-scale: 1;
}

.js-scroll-animate .reveal-card-flow {
    --reveal-scale: 0.99;
    will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .js-scroll-animate .reveal-on-scroll {
        filter: none;
        transform: translate3d(0, 8px, 0);
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
}

/* カスタムスクロールバー */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-muted);
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.header-container {
    max-width: none;
    margin: 0;
    justify-content: flex-start;
}


@media (max-width: 1024px) {
    .header {
        position: fixed;
        top: 0;
        z-index: 1300;
    }

    .header .company-name {
        display: inline-flex;
        position: relative;
        left: auto;
        transform: none;
        text-align: center;
        margin: 0 auto;
        max-width: calc(100vw - 120px);
    }

    .header .company-name img {
        width: auto;
        max-width: 100%;
        height: 44px;
        object-fit: contain;
    }
}

@media (max-width: 1024px) {
    header .mobile-menu .menu-socials {
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        max-width: 320px;
        display: flex;
        gap: 16px;
        justify-content: center;
        padding: 20px 16px 28px;
        color: #f5f7fb;
    }

    header .mobile-menu .menu-socials .social-icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid #f5f7fb;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #f5f7fb;
        background: #141414;
    }

    header .mobile-menu .menu-socials .social-icon svg {
        width: 20px;
        height: 20px;
        color: currentColor;
    }
}


.mobile-menu .menu-socials {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  justify-content: center;
  padding: 20px 16px 28px;
  margin: 0 auto;
  max-width: 320px;
}



@media (max-width: 1024px) {
    .main-nav {
        width: min(300px, 84vw);
    }
}

.mobile-menu .social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #111;
    border-radius: 50%;
    background: #ffffff;
    color: #111;
}

.mobile-menu .social-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}
/* 光学中心の微調整（必要なら有効化） */
.mobile-menu .social-icon[data-brand="x"]         svg{ transform: translateY(0.5px); }
.mobile-menu .social-icon[data-brand="instagram"] svg{ transform: translateY(0.5px); }
.mobile-menu .social-icon[data-brand="youtube"]   svg{ transform: translateY(0.3px); }

@media (min-width: 1025px) {
  .mobile-menu .menu-socials {
    display: none !important;
  }
}


/* ===== スマホドロワー内SNSアイコン調整 ===== */
@media (max-width: 1024px) {
  .mobile-menu .menu-socials {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 0 30px 24px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    /* update: keep SNS icons in a vertical stack at menu end */
    margin-top: 16px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    text-align: left;
  }

  .mobile-menu .social-icon {
    /* update: smaller icon glyph while keeping tap area */
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1.5px solid #000;  /* 黒枠 */
    background: transparent;   /* 背景なし */
    color: #000;               /* 黒アイコン固定 */
  }

  .mobile-menu .social-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;        /* 黒で統一 */
    display: block;
  }

  .mobile-menu .social-icon:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transition: 0.2s;
  }
}

.news-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  font-size: 12px;
  line-height: 1;
  border-radius: 999px;
  background: #eef1f6;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.news-badge-admin {
  background: #eaf6ed;
  color: #166534;
  border-color: #86efac;
}

/* ===== Luxe theme overrides ===== */
body {
    background-color: var(--bg-main);
}

h1,
h2,
h3,
h4 {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    letter-spacing: 0.03em;
}

.section {
    background: transparent;
}

.section-dark {
    background: linear-gradient(180deg, #0b0b0b 0%, #060606 100%);
    color: var(--text-primary);
}

.section-light {
    background: linear-gradient(180deg, #0f0f0f 0%, #0a0a0a 100%);
    color: var(--text-primary);
}

.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--heading-color);
}

h2 {
    font-size: 28px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h2::after {
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.mobile-break {
    display: none;
}

.section-subtitle {
    display: inline;
    font-size: 0.78em;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.7;
    margin-left: 6px;
}

@media (max-width: 768px) {
    .mobile-break {
        display: block;
    }

    .section-subtitle {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        letter-spacing: 0.06em;
    }
}

.header {
    background: rgba(6, 6, 6, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
}

.header.is-scrolled {
    background: rgba(6, 6, 6, 0.97);
}

.company-name {
    font-family: 'Yu Mincho', 'Hiragino Mincho ProN', 'Times New Roman', serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 26px;
    margin-left: -12px;
}

.main-nav {
    background: rgba(8, 8, 8, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    top: var(--header-h, 92px);
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.06em;
}

.main-nav a:hover {
    color: var(--accent);
    text-decoration: none;
}

.hero {
    margin-top: calc(var(--header-h, 92px) + var(--nav-h, 82px));
    height: 92vh;
    background: #020202;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.85) 20%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 1;
}

.slide-content {
    left: 8%;
    top: 6%;
    transform: none;
    text-align: left;
    background: transparent;
    border: none;
    padding: 18px 24px;
    border-radius: 0;
    width: fit-content;
    max-width: min(78vw, 760px);
    backdrop-filter: none;
    z-index: 2;
}

.slide-content h1 {
    font-size: 2.2rem;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    white-space: nowrap;
    line-height: 1.2;
}

.slide-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (min-width: 769px) {
    .slide-content {
        width: fit-content;
        max-width: min(78vw, 760px);
    }

    .slide-content p {
        font-size: 1.2rem;
    }
}

.hero-dots {
    gap: 12px;
}

.dot {
    width: 40px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

dot.active {
    background: var(--accent);
    transform: none;
}

.section-lead,
.summary-text p,
.company-strengths li,
.company-details td,
.case-points li,
.recruit-points li,
.contact-info p,
.contact-method p,
.form-embed p,
.business-item p,
.business-item p.en {
    color: var(--text-secondary);
}

.company-strengths,
.company-details table,
.business-philosophy,
.business-item,
.service-item,
.case-item,
.resource-card,
.company-accordion details,
.history-list li,
.recruit-card,
.faq-item,
.news-item,
.contact-form,
.modal-content {
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.section-light .company-details table,
.section-light .company-strengths,
.section-light .company-accordion details,
.section-light .history-list li,
.section-light .resource-card {
    background: rgba(15, 15, 15, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-light .company-details th {
    background: transparent;
    color: var(--text-primary);
}

.company-details th {
    background: transparent;
    color: var(--text-primary);
}

.email-image {
    display: inline-block;
    height: 1.4em;
    width: auto;
    vertical-align: text-bottom;
}

.news-note-link {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.news-intro {
    text-align: center;
    margin-top: 25px;
}

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

.note-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(216, 183, 102, 0.28);
    color: var(--text-primary);
    background: rgba(216, 183, 102, 0.08);
    border-color: rgba(216, 183, 102, 0.28);
    text-decoration: none;
    font-weight: 600;
}

.note-link:hover {
    background: rgba(216, 183, 102, 0.22);
    color: var(--text-primary);
}

.news-date,
.news-item .date,
.news-item-title,
.news-item-text {
    color: var(--text-primary);
}

.news-item-link {
    color: var(--accent);
    display: block;
}

.news-btn {
    color: var(--accent);
    text-decoration-color: rgba(216, 183, 102, 0.6);
}

.news-message {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary);
}

.news-badge {
    background: rgba(216, 183, 102, 0.12);
    color: var(--accent);
    border-color: rgba(216, 183, 102, 0.35);
}

.news-badge-admin {
    background: rgba(216, 183, 102, 0.18);
    color: var(--accent);
    border-color: rgba(216, 183, 102, 0.45);
}

.resource-link {
    color: var(--accent);
}

.footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section h4 {
    color: var(--heading-color);
}

.footer-section p,
.footer-section li,
.footer-section li a {
    color: var(--text-secondary);
}

.footer-section li a:hover {
    color: var(--text-primary);
}

.footer-social .social-icon,
.footer-social .social-icon:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.25);
}

.footer-bottom {
    background: #020202;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.back-to-top {
    color: var(--accent);
    border-color: rgba(216, 183, 102, 0.6);
}

.back-to-top:hover {
    background: rgba(216, 183, 102, 0.12);
}

.section-lead {
    margin: 0 auto 56px;
    line-height: 1.9;
}

.company-overview {
    gap: 70px;
}

.business-list,
.service-grid,
.case-grid,
.recruit-grid {
    gap: 40px;
}

.news-list {
    display: grid;
    gap: 32px;
}

.news-dynamic {
    display: grid;
    gap: 36px;
}

#news .container {
    max-width: 860px;
}

.news-item {
    padding: 18px 24px;
}

@media (max-width: 768px) {
    #news .container {
        max-width: 480px;
    }

    #news .news-item,
    #news .news-dynamic,
    #news .news-item-link {
        min-width: 0;
    }

    #news .news-item-title,
    #news .news-item-text,
    #news .news-item-link {
        white-space: normal;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    #news .news-meta {
        flex-wrap: wrap;
    }
}

.contact-content {
    gap: 70px;
}

@media (max-width: 1024px) {
    #news.section {
        scroll-margin-top: calc(var(--header-h, 64px) + 30px);
    }

    .slide-content {
        left: 50%;
        top: 56%;
        transform: translate(-50%, -50%);
        text-align: left;
        width: min(92%, 560px);
        max-width: none;
        border-left: none;
        border-top: none;
        padding: 20px 24px;
        border-radius: 0;
    }

    .slide-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding-left: 6px;
        padding-right: 12px;
    }

    .header-container {
        justify-content: flex-start;
    }

    .header .company-name {
        position: relative;
        left: auto;
        transform: none;
        margin: 0 0 0 -20px;
        max-width: none;
        text-align: left;
    }

    .header .company-name img {
        width: min(74vw, 430px);
        height: auto;
        max-width: none;
    }

    .menu-toggle {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .hero {
        height: 76vh;
    }

    .slide-content {
        left: 8%;
        top: 6%;
        transform: none;
        text-align: left;
        padding: 18px 20px;
        width: auto;
        max-width: min(88vw, 680px);
    }

    .slide img {
        object-fit: contain;
        object-position: center;
    }

    .slide-content h1 {
        font-size: 2rem;
        letter-spacing: 0.04em;
        white-space: normal;
    }

    .slide-content p {
        font-size: 1.05rem;
    }

    #company-profile .container {
        padding: 0 28px;
        background: transparent;
        color: var(--light-text-primary);
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .staff-modal-header #staff-modal-title {
        font-size: 1.05rem;
        line-height: 1.3;
    }
}

/* recruit.html action links */
.recruit-actions button,
.recruit-actions .recruit-action-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
}

.recruit-close {
    font-size: 2.2rem;
    line-height: 1;
}

.recruit-modal-close {
    font-size: 2rem;
    line-height: 1;
}

.recruit-modal-body {
    white-space: pre-wrap;
}

.contact-confirm-modal-content {
    max-width: 760px;
}

.contact-confirm-body {
    display: grid;
    gap: 20px;
}

.contact-confirm-lead {
    margin: 0;
    line-height: 1.7;
}

.contact-confirm-list {
    display: grid;
    gap: 14px;
    margin: 0;
}

.contact-confirm-item {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-confirm-item dt {
    font-weight: 700;
    color: var(--text-primary);
}

.contact-confirm-item dd {
    margin: 0;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.contact-confirm-item-message dd {
    min-height: 6em;
}

.contact-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.contact-confirm-back,
.contact-confirm-send {
    min-width: 160px;
}

.contact-confirm-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.contact-confirm-back:hover {
    background: rgba(255, 255, 255, 0.06);
}

.contact-confirm-send {
    margin-top: 0;
    margin-left: 0;
    margin-right: 0;
}

.contact-result-modal-content {
    max-width: 560px;
}

.contact-result-body {
    display: grid;
    gap: 20px;
}

.contact-result-message {
    margin: 0;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}

.contact-result-actions {
    display: flex;
    justify-content: center;
}

.contact-result-close {
    margin: 0;
}

@media (max-width: 767px) {
    .contact-confirm-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-confirm-actions {
        flex-direction: column-reverse;
    }

    .contact-confirm-back,
    .contact-confirm-send {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        top: 0;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 1025px) {
    .main-nav {
        position: fixed;
        top: var(--header-h, 92px);
        left: 0;
        right: 0;
        min-height: var(--nav-h, 70px);
        z-index: 1400;
    }

    .hero {
        margin-top: calc(var(--header-h, 92px) + var(--nav-h, 82px));
    }

    .service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1100px;
    }

    #staff .case-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: 1100px;
        margin: 0 auto;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .footer-bottom-inner {
        max-width: 1200px;
        padding: 0 20px;
    }

    .company-overview {
        max-width: 1400px;
        margin: 0 auto;
    }

    #business-philosophy .business-philosophy {
        max-width: 1400px;
        margin: 0 auto;
    }

.access-grid {
        max-width: 900px;
        width: 100%;
        margin: 0 auto;
    }
}

/* contact / footer centering adjustment */
#contact .contact-content {
    max-width: 1120px;
    margin: 0 auto;
    justify-items: center;
}

#contact .contact-info,
#contact .contact-form {
    width: 100%;
    max-width: 940px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.footer-content {
    grid-template-columns: repeat(3, minmax(240px, 340px));
    justify-content: center;
    justify-items: stretch;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-section {
    text-align: left;
}

@media (max-width: 768px) {
    .footer-mobile-hide {
        display: none !important;
    }
}

.footer-bottom-inner {
    justify-content: space-between;
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}

.footer-bottom p {
    text-align: left;
}

.footer-actions {
    margin-left: auto;
    justify-content: flex-end;
}

/* transition arrow buttons: remove circular background/frame */
.policy-nav,
.staff-nav,
.service-nav,
.news-nav,
.staff-photo-nav {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Mobile header logo: force exact center alignment */
@media (max-width: 1024px) {
    .header-container {
        position: relative;
        justify-content: center !important;
    }

    .header .company-name {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0 !important;
        text-align: center !important;
        max-width: calc(100vw - 120px);
    }

    .header .company-name img {
        display: block;
        margin: 0 auto;
        width: min(74vw, 430px);
        height: auto;
        max-width: none;
    }
}

/* Mobile fix: remove gap between fixed header and hero */
@media (max-width: 768px) {
    .hero {
        margin-top: var(--header-h, 64px) !important;
    }
}

/* Header: keep white background consistently */
.header,
.header.is-scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
