/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    --color-bg: #121212;
    --color-bg-panel: #1e1e1e;
    --color-bg-stripe: #262626;
    --color-text: #f0f0f0;
    --color-text-muted: #a0a0a0;
    
    /* 建設現場イメージカラー */
    --color-yellow: #ffcc00;      /* 安全第一のセーフティイエロー */
    --color-yellow-hover:#e6b800;
    --color-orange: #ff6600;      /* 警告カラー・アクセントオレンジ */
    --color-blue: #1c3d5a;        /* 青写真（設計図）のブルー */
    --color-border: #333333;
    
    /* フォント */
    --font-primary: 'Zen Kaku Gothic New', sans-serif;
    --font-accent: 'Outfit', sans-serif;
    
    --header-height: 80px;
}

/* トラ柄（警告パターン）の背景用グラデーション */
.stripe-pattern {
    background: repeating-linear-gradient(
        -45deg,
        var(--color-yellow),
        var(--color-yellow) 15px,
        #000000 15px,
        #000000 30px
    );
}

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

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow: hidden; /* PCではブラウザデフォルトのスクロールを無効化 */
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--color-border);
    z-index: 100;
}

.header-inner {
    max-width: 100%;
    height: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* トラ柄の極細アクセントラインをヘッダー下部に追加 */
.main-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: repeating-linear-gradient(
        -45deg,
        var(--color-yellow),
        var(--color-yellow) 10px,
        #000000 10px,
        #000000 20px
    );
}

.logo a {
    display: flex;
    flex-direction: column;
}

.logo-en {
    font-family: var(--font-accent);
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    color: var(--color-yellow);
    line-height: 1;
}

.logo-jp {
    font-size: 0.65rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    padding: 10px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-yellow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* ハンバーガーメニュー (モバイル用) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.mobile-menu {
    display: block;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--header-height));
    background-color: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(15px);
    z-index: 99;
    padding: 40px 20px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu.is-active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.mobile-nav a {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mobile-nav a span {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.mobile-nav a:hover {
    color: var(--color-yellow);
}

/* 道路およびダンプトラックの表示は削除されました */

/* ==========================================================================
   MAIN SCROLL CONTAINER & SECTIONS (PC HORIZONTAL)
   ========================================================================== */
.scroll-container {
    display: flex;
    flex-wrap: nowrap;
    width: 100vw; /* 表示幅は画面幅に固定 */
    height: 100vh;
    overflow-x: hidden; /* スクリプトでスクロールを制御するため隠す */
    overflow-y: hidden;
    position: relative;
    z-index: 10;
    background-image: url('../images/bg_construction.png');
    background-size: auto 100%;
    background-repeat: repeat-x;
}

.scroll-section {
    width: 100vw;
    height: 100vh;
    flex-shrink: 0;
    position: relative;
    padding: calc(var(--header-height) + 40px) 60px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--color-border);
    overflow: hidden;
}

.section-inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 各セクションのタイトル */
.section-title {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border-left: 4px solid var(--color-yellow);
    padding-left: 15px;
}

.section-title .en {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 2.2rem;
    color: var(--color-yellow);
    letter-spacing: 0.05em;
    line-height: 1;
}

.section-title .jp {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    font-weight: 700;
    margin-top: 4px;
}

.section-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.6;
}

/* ==========================================================================
   1. HERO SECTION (TOP)
   ========================================================================== */
.hero-section {
    background-color: rgba(21, 21, 21, 0.7);
    position: relative;
}

/* 青写真（設計図）風のグリッド背景 */
.section-bg-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(31, 58, 82, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 58, 82, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    padding: 0 40px;
}

.hero-content .badge {
    display: inline-block;
    background-color: var(--color-yellow);
    color: #000;
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 15px;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.05em;
    margin-bottom: 30px;
}

.hero-title span {
    display: block;
}

.highlight-yellow {
    color: var(--color-yellow);
    position: relative;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* スクロール誘導表示 */
.scroll-guide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.guide-text {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-yellow);
}

.guide-arrow {
    width: 120px;
    height: 2px;
    background-color: var(--color-yellow);
    position: relative;
    overflow: hidden;
}

.guide-arrow::after {
    content: '';
    position: absolute;
    top: -4px;
    right: 0;
    width: 10px;
    height: 10px;
    border-top: 2px solid var(--color-yellow);
    border-right: 2px solid var(--color-yellow);
    transform: rotate(45deg);
}

/* ==========================================================================
   2. PRESIDENT SECTION
   ========================================================================== */
.president-section {
    background-color: rgba(26, 26, 26, 0.85);
    position: relative;
    overflow: hidden;
}

.president-bg-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-family: var(--font-accent);
    font-weight: 900;
    font-size: 14vw;
    color: rgba(255, 204, 0, 0.03); /* 超極薄の黄色で背景に馴染ませる */
    z-index: 1;
    pointer-events: none;
    letter-spacing: 0.05em;
    user-select: none;
}

.president-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.president-img-box {
    position: relative;
    flex-shrink: 0;
    width: 320px;
    height: 380px;
    cursor: pointer;
    overflow: visible;
}

.president-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid var(--color-border);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.illust-img {
    opacity: 1;
    z-index: 3;
}

.real-img {
    opacity: 0;
    z-index: 2;
}

/* 本物の社長表示時のフェード切り替え */
.president-img-box.show-real .illust-img {
    opacity: 0;
    z-index: 2;
}

.president-img-box.show-real .real-img {
    opacity: 1;
    z-index: 3;
}

.frame-deco {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--color-yellow);
    border-radius: 10px;
    z-index: 1;
    transition: border-color 0.3s ease;
}

.president-img-box:hover .frame-deco {
    border-color: var(--color-orange);
}

/* 本物の社長をアンヴェイル（表示）するためのクリックヒント */
.reveal-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(18, 18, 18, 0.9);
    border: 1px solid var(--color-yellow);
    color: var(--color-yellow);
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 4px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    z-index: 5;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.president-img-box:hover .reveal-hint {
    opacity: 1;
    background-color: var(--color-yellow);
    color: #000;
}

.president-text-box {
    flex-grow: 1;
}

.president-text-box h4 {
    font-size: 1.8rem;
    color: var(--color-yellow);
    margin-bottom: 20px;
}

.message-p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.signature {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.signature .title {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.signature .name {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-text);
    margin-top: 5px;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   3. CREW SECTION
   ========================================================================== */
.crew-section {
    background-color: rgba(19, 19, 19, 0.85);
}

.crew-grid {
    display: flex;
    gap: 30px;
}

.crew-card {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.crew-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-yellow);
}

.crew-avatar-wrapper {
    width: 100%;
    height: 220px;
    background-color: #1a1a1a;
    overflow: hidden;
    position: relative;
}

.crew-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.crew-card:hover .crew-avatar {
    transform: scale(1.05);
}

.crew-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 204, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crew-hover-overlay span {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 1rem;
    color: #000;
    letter-spacing: 0.1em;
    border: 2px solid #000;
    padding: 8px 20px;
}

.crew-card:hover .crew-hover-overlay {
    opacity: 1;
}

.crew-info {
    padding: 20px;
}

.crew-info .role {
    font-size: 0.75rem;
    color: var(--color-yellow);
    font-weight: 700;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 8px;
}

.crew-info .name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.crew-info .quote {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ==========================================================================
   4. ABILITY SECTION
   ========================================================================== */
.ability-section {
    background-color: rgba(24, 24, 24, 0.85);
}

.ability-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ability-card {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* デザイン用アクセントコーナー */
.ability-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background-color: var(--color-yellow);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.ability-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.ability-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-text);
}

.ability-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ==========================================================================
   5. STRENGTHS SECTION
   ========================================================================== */
.strengths-section {
    background-color: rgba(20, 20, 20, 0.85);
}

.strengths-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.strength-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 30px;
}

.strength-item:last-child {
    border-bottom: none;
}

.strength-item .num {
    font-family: var(--font-accent);
    font-weight: 800;
    font-size: 3rem;
    color: var(--color-yellow);
    line-height: 1;
    opacity: 0.8;
}

.strength-body h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.strength-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    max-width: 800px;
}

/* ==========================================================================
   6. RESULT SECTION
   ========================================================================== */
.result-section {
    background-color: rgba(26, 26, 26, 0.85);
}

.result-gallery {
    display: flex;
    gap: 30px;
}

.gallery-item {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    width: calc(33.333% - 20px);
    transition: border-color 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--color-yellow);
}

.gallery-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.work-icon {
    font-size: 3rem;
}

.gallery-info {
    padding: 20px;
}

.gallery-info .tag {
    display: inline-block;
    background-color: #333;
    color: var(--color-yellow);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.gallery-info h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.gallery-info p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

/* ==========================================================================
   7. BASE SECTION
   ========================================================================== */
.base-section {
    background-color: rgba(19, 19, 19, 0.85);
}

.base-container {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.base-info-table {
    flex: 1;
}

.base-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.base-info-table th,
.base-info-table td {
    padding: 15px;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.base-info-table th {
    width: 160px;
    text-align: left;
    color: var(--color-yellow);
    font-weight: 700;
}

.base-info-table td {
    color: var(--color-text);
}

.base-map-box {
    width: 400px;
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.map-placeholder {
    text-align: center;
}

.map-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.map-label {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.75rem;
    background-color: var(--color-yellow);
    color: #000;
    padding: 4px 12px;
    font-weight: 700;
    border-radius: 4px;
}

/* ==========================================================================
   8. RECRUIT SECTION
   ========================================================================== */
.recruit-section {
    background-color: rgba(24, 24, 24, 0.85);
}

.job-card {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 35px;
    position: relative;
}

.job-status {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--color-orange);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
}

.job-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-yellow);
    margin-bottom: 25px;
}

.job-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-row {
    display: flex;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 15px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-row .label {
    width: 180px;
    font-weight: 700;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.detail-row .val {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text);
}

/* ==========================================================================
   9. CONTACT SECTION
   ========================================================================== */
.contact-section {
    background-color: rgba(18, 18, 18, 0.85);
}

.contact-form-wrapper {
    background-color: var(--color-bg-panel);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

/* トラ柄の飾りラインをフォーム上部に設置 */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: repeating-linear-gradient(
        -45deg,
        var(--color-yellow),
        var(--color-yellow) 10px,
        #000000 10px,
        #000000 20px
    );
}

.rec-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: flex;
    gap: 20px;
}

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

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

label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
}

label .required {
    color: var(--color-orange);
    margin-left: 5px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    background-color: #121212;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-yellow);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.2);
}

textarea {
    height: 120px;
    resize: none;
}

.submit-btn {
    background-color: var(--color-yellow);
    color: #000;
    border: none;
    border-radius: 6px;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: center;
    min-width: 280px;
}

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

.submit-btn:active {
    transform: translateY(0);
}

/* 送信完了表示 */
.form-success-msg {
    display: none;
    text-align: center;
    padding: 40px 20px;
}

.form-success-msg.is-visible {
    display: block;
}

.rec-form.is-hidden {
    display: none;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.form-success-msg h4 {
    font-size: 1.6rem;
    color: var(--color-yellow);
    margin-bottom: 15px;
}

.form-success-msg p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.reset-btn {
    background-color: transparent;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.bottom-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    padding: 15px 30px;
    z-index: 60; /* 道路の上に重ねる */
}

.bottom-footer p {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   CREW MODAL
   ========================================================================== */
.crew-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: none; /* JSで表示制御 */
    align-items: center;
    justify-content: center;
}

.crew-modal.is-active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.modal-container {
    background-color: var(--color-bg-panel);
    border: 2px solid var(--color-yellow);
    border-radius: 16px;
    width: 90%;
    max-width: 700px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
    animation: modalShow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalShow {
    from { transform: scale(0.9) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 5;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--color-yellow);
}

.modal-content {
    padding: 40px;
}

.modal-crew-details {
    display: flex;
    gap: 30px;
}

.modal-crew-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--color-yellow);
}

.modal-crew-body {
    flex: 1;
}

.modal-crew-body .role {
    font-size: 0.8rem;
    color: var(--color-yellow);
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.modal-crew-body h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 10px;
}

.modal-crew-body .bio {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: 20px;
}

.modal-crew-qna {
    margin-top: 10px;
}

.qna-item {
    margin-bottom: 12px;
}

.qna-item h5 {
    color: var(--color-yellow);
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.qna-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* PC表示かつ縦幅が低い画面（ノートPCやブラウザ縮小時）のレスポンシブ調整 */
@media (min-width: 769px) {
    /* 保険としてコンテンツ全体が溢れたら縦スクロールできるようにする */
    .contact-section .section-inner {
        max-height: 100%;
        overflow-y: auto;
        padding-right: 10px; /* スクロールバー用の余白 */
        scrollbar-width: thin;
        scrollbar-color: var(--color-yellow) transparent;
    }
    .contact-section .section-inner::-webkit-scrollbar {
        width: 6px;
    }
    .contact-section .section-inner::-webkit-scrollbar-track {
        background: transparent;
    }
    .contact-section .section-inner::-webkit-scrollbar-thumb {
        background-color: var(--color-yellow);
        border-radius: 3px;
    }
}

@media (min-width: 769px) and (max-height: 850px) {
    .contact-section.scroll-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 20px;
    }
    .contact-section .section-title {
        margin-bottom: 1rem;
    }
    .contact-section .section-desc {
        margin-bottom: 1rem;
    }
    .contact-form-wrapper {
        padding: 20px 30px;
    }
    .rec-form {
        gap: 15px;
    }
    .contact-form-wrapper textarea {
        height: 80px;
    }
    .submit-btn {
        padding: 12px 24px;
    }
}

@media (min-width: 769px) and (max-height: 680px) {
    .contact-section.scroll-section {
        padding-top: calc(var(--header-height) + 10px);
        padding-bottom: 10px;
    }
    .contact-section .section-title {
        margin-bottom: 0.5rem;
    }
    .contact-section .section-desc {
        display: none; /* 説明文を非表示にして高さを確保 */
    }
    .contact-form-wrapper {
        padding: 15px 20px;
    }
    .rec-form {
        gap: 10px;
    }
    .contact-form-wrapper textarea {
        height: 60px;
    }
    .submit-btn {
        padding: 10px 20px;
    }
}


/* ==========================================================================
   RESPONSIVE DESIGN (スマホ時は通常の縦スクロールへ切り替え)
   ========================================================================== */
@media (max-width: 768px) {
    html {
        height: auto;
        overflow: visible;
    }
    body {
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .main-header {
        height: 60px;
        --header-height: 60px;
    }
    
    .header-inner {
        padding: 0 20px;
    }

    .main-nav {
        display: none; /* PC用ナビを非表示 */
    }

    .menu-toggle {
        display: flex; /* ハンバーガーメニューを表示 */
    }

    /* ハンバーガーアニメーション */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--color-yellow);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--color-yellow);
    }

    /* モバイル時は縦スクロール化 */
    .scroll-container {
        display: block;
        width: 100%;
        height: auto;
        background-size: cover;
        background-repeat: repeat-y;
        background-attachment: scroll;
    }

    .scroll-section {
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding: 100px 20px 40px 20px;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .section-inner {
        max-width: 100%;
    }

    .bottom-footer {
        position: relative;
        text-align: center;
        background-color: #111;
        padding: 20px;
        margin-bottom: 0;
    }

    /* TOP */
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-lead {
        font-size: 1rem;
    }

    /* PRESIDENT */
    .president-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .president-img-box {
        width: 240px;
        height: 280px;
    }

    /* CREW */
    .crew-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .crew-card {
        width: 100%;
    }

    /* ABILITY */
    .ability-container {
        grid-template-columns: 1fr;
    }

    /* RESULT */
    .result-gallery {
        flex-direction: column;
        gap: 20px;
    }
    
    .gallery-item {
        width: 100%;
    }

    /* BASE */
    .base-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .base-map-box {
        width: 100%;
        height: 250px;
    }

    .base-info-table tr {
        display: flex;
        flex-direction: column;
        border-bottom: 1px solid var(--color-border);
        padding: 10px 0;
    }

    .base-info-table th,
    .base-info-table td {
        padding: 4px 0;
        border-bottom: none;
        font-size: 0.85rem;
    }

    .base-info-table th {
        width: 100%;
        color: var(--color-yellow);
    }

    /* RECRUIT & CONTACT */
    .job-card {
        padding: 20px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-row .label {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    /* MODAL */
    .crew-modal {
        padding: 20px;
    }

    .modal-container {
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    .modal-close {
        top: 10px;
        right: 15px;
        font-size: 2.2rem;
        z-index: 100;
        color: #fff;
        background-color: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        line-height: 1;
    }

    .modal-content {
        padding: 40px 20px 20px 20px;
        overflow-y: auto;
        flex: 1;
    }

    .modal-crew-details {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .modal-crew-img {
        width: 150px;
        height: 150px;
    }
}

/* ==========================================================================
   FUTURISTIC SVG ICONS
   ========================================================================== */
.futuristic-icon {
    width: 48px;
    height: 48px;
    stroke: var(--color-yellow);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(255, 204, 0, 0.4));
    transition: transform 0.3s ease, filter 0.3s ease, stroke 0.3s ease;
}

.ability-card:hover .futuristic-icon {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 0 8px rgba(255, 204, 0, 0.8));
    stroke: var(--color-orange);
}

/* 施工実績用のSVGアイコンスタイル */
.result-icon {
    width: 50px;
    height: 50px;
    color: #fff;
    stroke: #fff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
    transition: transform 0.3s ease, filter 0.3s ease, stroke 0.3s ease;
}

.gallery-item:hover .result-icon {
    transform: scale(1.1) translateY(-2px);
    stroke: var(--color-yellow);
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.8));
}
