:root {
    --primary: #0A192F;
    --accent: #FFD700;
    --accnet-glow: rgba(255, 215, 0, 0.4);
    --secondary: #172A45;
    --text-main: #E6F1FF;
    --text-dim: #8892B0;
    --bg-dark: #020C1B;
    --glass: rgba(23, 42, 69, 0.7);
    --glass-border: rgba(100, 255, 218, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.max-width-small {
    max-width: 700px;
}

section {
    padding: 100px 0;
}

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

/* Typography */
h1,
h2,
h3 {
    margin-bottom: 20px;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.highlight {
    color: var(--accent);
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 30px 0;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    transition: transform 0.3s;
}

.logo:hover {
    transform: scale(1.05);
}

.twn-logo-css {
    width: 100px;
    height: 40px;
    transition: all 0.3s ease;
}

.twn-logo-css svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 12px var(--accnet-glow)) drop-shadow(0 0 3px #000);
}

header.scrolled .twn-logo-css {
    width: 80px;
    height: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accnet-glow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px;
    /* ヘッダーの高さ分下にずらす */
}

.hero-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5) contrast(1.2) saturate(1.1) hue-rotate(-10deg);
    /* クールなカラー調整 */
}

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(2, 12, 27, 0.5), rgba(2, 12, 27, 0.95));
    z-index: 1;
}

/* Hero Background --規制現場風演出 */
.hero-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            rgba(10, 25, 47, 0.97) 0%,
            rgba(30, 50, 80, 0.92) 40%,
            rgba(15, 35, 60, 0.97) 100%);
    z-index: 0;
}

.hero-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

/* SVGシーン用スタイル */
.scene-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80%;
    max-height: 420px;
}

/* 誘導員の誘導棒腕を揺らす */
.baton-arm {
    animation: swingBaton 1.4s ease-in-out infinite;
    transform-origin: 582px 190px;
}

/* 看板の揺れ */
.anim-sign {
    animation: swaySign 3.2s ease-in-out infinite;
    transform-origin: 85px 320px;
}

.anim-sign2 {
    animation: swaySign 4s ease-in-out infinite reverse;
    transform-origin: 820px 320px;
}

/* コーン列の点灯感 */
.cones-row {
    animation: conePulse 2.5s ease-in-out infinite;
}

/* 誘導員の体の微振れ */
.guard-figure {
    animation: guardSway 2.2s ease-in-out infinite;
}

@keyframes swingBaton {

    0%,
    100% {
        transform: rotate(-25deg);
    }

    50% {
        transform: rotate(12deg);
    }
}

@keyframes swaySign {

    0%,
    100% {
        transform: rotate(-2.5deg);
    }

    50% {
        transform: rotate(2.5deg);
    }
}

@keyframes conePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.55;
    }
}

@keyframes guardSway {

    0%,
    100% {
        transform: rotate(-1deg);
    }

    50% {
        transform: rotate(1deg);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    /* テキストを中央揃え */
    width: 100%;
}

.hero-content p {
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    /* ボタンを中央揃え */
}

#typing-text::after {
    content: "|";
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--text-dim);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 30px;
}

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

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 40px;
}

.card h3 {
    color: var(--accent);
    margin-bottom: 15px;
}

/* Campaign */
.campaign-box {
    border: 2px solid var(--accent);
}

.campaign-header {
    text-align: center;
    margin-bottom: 40px;
}

.badge {
    background: var(--accent);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: inline-block;
}

.deadline {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.2rem;
}

.price-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-dim);
    font-size: 1.5rem;
}

.new-price {
    font-size: 3rem;
    color: var(--accent);
    font-weight: 900;
}

.new-price small {
    font-size: 1rem;
    font-weight: 400;
}

.discount-code {
    background: rgba(255, 215, 0, 0.1);
    border: 1px dashed var(--accent);
    padding: 15px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: center;
}

.discount-code .code {
    font-weight: 900;
    font-size: 1.4rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.price-details ul {
    list-style: none;
}

.price-details li {
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}

/* Recruitment */
.recruitment-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.recruitment-img {
    flex: 1;
    min-width: 300px;
}

.recruitment-content {
    flex: 1;
    min-width: 300px;
}

.check-list {
    list-style: none;
    margin: 30px 0;
}

.check-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Recruitment Banner CSS */
.recruitment-banner-css {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border: 4px solid #000;
    position: relative;
    overflow: hidden;
}

.recruitment-banner-css::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.1),
            rgba(0, 0, 0, 0.1) 10px,
            transparent 10px,
            transparent 20px);
}

.banner-inner {
    position: relative;
    z-index: 1;
}

.banner-text {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 5px;
}

.banner-icon {
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

.banner-subtext {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
}

.mt-3 {
    margin-top: 1rem;
}

.check-list li::before {
    content: "🚧";
    /* 工事現場風 */
    color: var(--accent);
    font-weight: 900;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-dim);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 5px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accnet-glow);
}

select {
    width: 100%;
    padding: 12px;
    background: rgba(2, 12, 27, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    border-radius: 5px;
    appearance: none;
    cursor: pointer;
}

.form-success-msg {
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 180, 80, 0.15);
    border: 1px solid #00b450;
    border-radius: 8px;
    color: #7fffb0;
    font-weight: 700;
    text-align: center;
    line-height: 1.8;
}

.form-error-msg {
    margin-top: 20px;
    padding: 16px;
    background: rgba(220, 0, 0, 0.15);
    border: 1px solid #cc0000;
    border-radius: 8px;
    color: #ff9090;
    font-weight: 700;
    text-align: center;
}

/* Contact Info */
.contact-info-box {
    margin-bottom: 30px;
}

.contact-info-box p {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 5px;
}

.contact-info-box a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 40px 0;
    background: var(--bg-dark);
    border-top: 1px solid var(--glass-border);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .new-price {
        font-size: 2rem;
    }
}