:root {
    /* Color Palette - Updated to match painless-dentist.com */
    --color-primary: #5584bf;      /* Official Blue */
    --color-accent: #f39800;       /* Official Orange */
    --color-bg-light: #ffffff;
    --color-bg-soft: #f5f5f0;      /* Official Cream/Beige */
    --color-bg-accent: #fcebc1;    /* Official Pale Yellow */
    --color-text: #333333;
    --color-text-muted: #777777;
    --color-navy: #1a2a3a;

    /* Fonts */
    --font-serif: "Noto Serif JP", serif;
    --font-sans: "Noto Sans JP", sans-serif;

    /* Design Tokens */
    --radius-lg: 30px;
    --radius-md: 15px;
    --radius-full: 500px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-accent: 0 5px 15px rgba(243, 152, 0, 0.2);
    --section-padding: 8rem 2rem;
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
}

h1, h2, h3, .serif {
    font-family: var(--font-serif);
    font-weight: 500;
}

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

ul {
    list-style: none;
}

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

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Decorative Backgrounds */
.dot-pattern {
    background-image: radial-gradient(var(--color-accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.15;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape-deco {
    position: absolute;
    background-color: var(--color-bg-accent);
    border-radius: var(--radius-full);
    z-index: 1;
    opacity: 0.5;
    pointer-events: none;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
    padding-bottom: 1.5rem;
    margin-top: 0.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 3px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0px;
}

.badge-benefit {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.3rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-accent);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: 0.4s;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

header.scrolled .logo, header.scrolled .nav-links a {
    color: var(--color-primary);
}

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

.logo {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--color-white);
    letter-spacing: 0.05rem;
    line-height: 1.2;
}

.corp-name {
    font-size: 0.7rem;
    margin-right: 0.5rem;
    display: inline-block;
}

.mobile-only {
    display: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-white);
    font-size: 0.9rem;
    letter-spacing: 0.05rem;
}

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

/* Mobile Menu Button */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-white);
    transition: 0.4s;
    border-radius: 2px;
}

header.scrolled .menu-btn span {
    background-color: var(--color-primary);
}

.menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.menu-btn.active span {
    background-color: var(--color-primary) !important;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 1050;
    transition: 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

body.no-scroll {
    overflow: hidden;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--color-bg-soft);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 30%, rgba(255, 255, 255, 0.1) 100%);
    z-index: 1;
}

.hero-img {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    color: var(--color-text);
}

.hero-copy {
    margin-top: 2rem;
}

.hero-copy h1 {
    font-size: 3.5rem;
    line-height: 1.5;
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.hero-copy p {
    font-size: 1.2rem;
    max-width: 500px;
    border-left: 4px solid var(--color-accent);
    padding-left: 1.5rem;
    color: var(--color-text-muted);
}

/* Introduction Section */
.intro {
    padding: var(--section-padding);
    background-color: var(--color-bg-soft);
    text-align: center;
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
}

.intro-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.intro-text .highlight {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 2.5rem;
    display: block;
    font-weight: 700;
}

/* Professional Work Section */
.professional {
    padding: var(--section-padding);
    background-color: var(--color-bg-accent);
}

.professional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
}

.env-card {
    background: var(--color-bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.env-card h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-left: 4px solid var(--color-accent);
    padding-left: 1rem;
}

.staff-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.stat-item {
    background: var(--color-bg-accent);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
}

.job-description h3, .rewarding h3 {
    font-size: 1.6rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    display: inline-block;
}

.job-list {
    margin: 2rem 0;
}

.job-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.job-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

.job-description .note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.rewarding-card {
    background-color: var(--color-bg-light);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border-left: 8px solid var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.rewarding-card p {
    margin-bottom: 1rem;
}

/* Roundtable (Discussion) Section */
.roundtable {
    padding: var(--section-padding);
    background-color: var(--color-bg-soft);
}

.theme-card {
    background: var(--color-bg-light);
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 3rem;
    align-items: center;
    border-radius: var(--radius-lg);
}

.theme-card:nth-child(even) {
    flex-direction: row-reverse;
}

.theme-content {
    flex: 1;
}

.theme-tag {
    color: var(--color-accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.theme-title {
    font-size: 1.8rem;
    color: var(--color-navy);
    margin-bottom: 1.5rem;
}

.theme-img-wrapper {
    flex: 0 0 450px;
    position: relative;
    padding: 10px;
}

.theme-img-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--color-accent) 2px, transparent 2px);
    background-size: 15px 15px;
    z-index: -1;
}

.theme-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 10px solid var(--color-bg-accent);
    box-shadow: 10px 10px 0 var(--color-primary);
}

.discussion-box {
    margin-top: 1.5rem;
}

.comment {
    font-style: italic;
    color: var(--color-text-muted);
    position: relative;
    padding-left: 2rem;
}

.comment::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -15px;
    font-size: 4rem;
    color: var(--color-accent);
    opacity: 0.3;
}

/* Benefit (2.5 days off) */
.benefit {
    padding: var(--section-padding);
    background: var(--color-bg-accent);
    color: var(--color-white);
    position: relative;
}

.benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: var(--color-primary);
    padding: 4rem;
    border-radius: var(--radius-lg);
}

.benefit-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.benefit-text p {
    margin-bottom: 1.5rem;
}

.benefit-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 20px 20px 0 var(--color-accent);
}

/* FAQ (Real Voice) Section */
.faq {
    padding: var(--section-padding);
    background-color: var(--color-bg-light);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.faq-item {
    background-color: var(--color-bg-soft);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    border-left: 6px solid var(--color-accent);
}

.faq-q {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.q-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.faq-q h3 {
    font-size: 1.3rem;
    color: var(--color-navy);
    line-height: 1.4;
    margin: 0;
}

.faq-a {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding-left: 0.5rem;
}

.a-icon {
    flex: 0 0 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
}

.a-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--color-text);
}

.a-content p:last-child {
    margin-bottom: 0;
}

/* Requirements Table */
.requirements {
    padding: var(--section-padding);
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

.req-table th, .req-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.req-table th {
    width: 250px;
    color: var(--color-primary);
    font-weight: 700;
    background-color: var(--color-bg-accent);
}

/* CTA */
.cta {
    padding: 8rem 2rem;
    background: var(--color-greige-light);
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1.5rem 5rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 1.2rem;
    font-weight: 700;
    margin-top: 2rem;
    border-radius: var(--radius-full);
    transition: 0.4s;
    box-shadow: 0 5px 15px rgba(243, 152, 0, 0.3);
}

.btn:hover {
    background-color: #e68a00;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(243, 152, 0, 0.5);
}

/* Footer */
footer {
    padding: 6rem 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-family: var(--font-serif);
    color: var(--color-white);
    margin-bottom: 1rem;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 992px) {
    .professional-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .theme-card, .theme-card:nth-child(even) {
        flex-direction: column;
        padding: 2rem;
    }
    .theme-img {
        flex: none;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .hero-copy h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem 1.2rem;
    }

    body {
        line-height: 1.6;
    }

    .container {
        padding: 0 1rem;
    }

    .badge-benefit {
        font-size: 0.8rem;
        padding: 0.2rem 0.8rem;
    }

    .nav-links {
        display: none;
    }
    
    header {
        padding: 1rem 0;
    }
    
    .hero {
        height: auto;
        flex-direction: column;
        padding-top: 60px;
        background-color: #fff;
    }

    .logo {
        font-size: 0.75rem; /* Reduced to fit in 1 line */
        text-align: left;
        width: auto;
        white-space: nowrap;
        letter-spacing: -0.02rem; /* Tighten slightly */
    }

    .corp-name {
        font-size: 0.55rem;
        margin-right: 0.3rem;
        display: inline-block; /* Back to inline for 1-line requirement */
        line-height: 1;
    }

    .menu-btn {
        display: flex;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 60%, rgba(255,255,255,1) 100%);
        height: 300px;
        top: 60px; /* Same as hero padding-top */
        width: 100%;
        z-index: 2;
    }

    .hero-content {
        padding: 2rem 1rem 4rem;
        text-align: center;
        width: 100%;
        z-index: 3;
    }

    .hero-copy {
        margin-top: 0;
    }

    .hero-copy h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }

    .hero-copy p {
        font-size: 0.95rem;
        padding-left: 0;
        border-left: none;
        border-top: 3px solid var(--color-accent);
        padding-top: 1.5rem;
        margin: 0 auto;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .intro-text .highlight {
        font-size: 1.4rem;
    }

    .env-card {
        padding: 1.5rem;
    }

    .theme-card {
        padding: 1.2rem;
        border-radius: var(--radius-md);
        gap: 1.5rem;
    }
    
    .theme-img-wrapper {
        padding: 0;
    }

    .theme-img {
        height: auto;
        aspect-ratio: 4 / 3;
        border: 5px solid var(--color-bg-accent);
        box-shadow: 6px 6px 0 var(--color-primary);
    }

    .benefit-grid {
        padding: 2.5rem 1.5rem;
    }
    
    .benefit-text h2 {
        font-size: 1.8rem;
    }

    .faq-item {
        padding: 1.5rem;
    }

    .faq-q, .faq-a {
        gap: 1rem;
    }

    .q-icon, .a-icon {
        flex: 0 0 32px;
        height: 32px;
        font-size: 1rem;
    }

    /* Requirements Table - Mobile Stacked Card View */
    .req-table thead {
        display: none;
    }
    
    .req-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #eee;
        border-radius: var(--radius-md);
        overflow: hidden;
        background: #fff;
    }
    
    .req-table th {
        display: block;
        width: 100%;
        padding: 0.8rem 1rem;
        background-color: var(--color-bg-accent);
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
    
    .req-table td {
        display: block;
        width: 100%;
        padding: 1rem;
        border-bottom: none;
        font-size: 0.95rem;
    }

    .btn {
        width: 100%;
        padding: 1.2rem 1rem;
        font-size: 1.1rem;
    }
}
