:root {
    /* Professional Light Theme Colors */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --primary-color: #0f172a;
    /* Navy Blue for trust */
    --accent-color: #2563eb;
    /* Blue for highlights */
    --border-color: #e2e8f0;
    --input-bg: #ffffff;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;

    /* Spacing */
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 32px;
    --spacing-xl: 64px;
    --spacing-xxl: 100px;

    /* Layout */
    --container-width: 1100px;
    --header-height: 70px;

    /* Overlays & Effects */
    /* Overlays & Effects - Reduced Opacity for Clearer Images */
    --hero-overlay-start: rgba(255, 255, 255, 0.1);
    --hero-overlay-end: rgba(255, 255, 255, 0.2);
    --philosophy-overlay-start: rgba(255, 255, 255, 0.2);
    --philosophy-overlay-end: rgba(255, 255, 255, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: none;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --text-shadow: none;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* 横スクロール防止（アニメーション用） */
}

/* Animations */
.animate-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for grid items */
.delay-100 {
    transition-delay: 0.1s;
}

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

.delay-300 {
    transition-delay: 0.3s;
}

body {
    font-family: var(--font-jp), var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

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

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 40px;
    border-radius: 4px;
    /* Sharper corners for pro look */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    letter-spacing: 0.05em;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-wide {
    width: 240px;
}

.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: inline-block;
    /* Wrap content */
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 16px 48px;
    border-radius: 2px;
    /* Sharper edges */
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

/* Center the inline-block header within the container */
.container:has(> .section-header) {
    text-align: center;
}

/* Fallback for centering if :has isn't supported or structure differs */
.section {
    text-align: center;
}

.section .container {
    text-align: left;
    /* Reset for content */
}

.section .container .section-header {
    margin-left: auto;
    margin-right: auto;
    display: table;
    /* Alternative centering trick if needed, but margin auto works on block/table */
    display: inline-block;
}

.section-title {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #ffffff;
    /* 完全な白 */
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* 視認性向上のためのシャドウ */
    transition: box-shadow 0.3s ease;
}

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

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-list a {
    font-size: 0.95rem;
    /* サイズを少し大きく */
    font-weight: 600;
    /* 太くして視認性向上 */
    color: var(--text-primary);
}

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

.nav-btn {
    padding: 10px 24px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 4px;
}

.nav-btn:hover {
    background-color: var(--accent-color);
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
}

/* Hero */
.hero {
    height: 100vh;
    /* パス指定：シングルクォートで確実に囲む。Windows環境でも相対パスで動作するよう修正 */
    background-image: linear-gradient(var(--hero-overlay-start), var(--hero-overlay-end)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* 左寄せに変更 */
    position: relative;
    color: var(--primary-color);
    margin-top: -80px;
    /* ヘッダー分上げる */
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    padding: 0 5%;
    background: var(--glass-bg);
    /* 文字が見やすいように背景追加 */
    backdrop-filter: blur(5px);
    padding: 3rem;
    border-radius: 0 8px 8px 0;
    border: var(--glass-border);
    margin-left: 0;
    text-align: left;
    /* 左寄せ */
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

.hero-title-large {
    font-size: 1.5em;
    display: inline-block;
    margin-left: 0.5em;
    font-style: italic;
    /* Emphasize the last line */
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    /* 視認性向上のため濃く */
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 500;
}

/* 削除: 古いhero-backgroundは不要 */
.hero-background {
    display: none;
}

/* Images & Layout Adjustments */
/* Hero以外の画像サイズを縮小・調整 */
.section-image {
    max-width: 100%;
    width: 300px;
    height: 200px;
    /* 高さを固定して統一 */
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.business-grid {
    display: flex;
    justify-content: center;
    /* 画像を中央配置 */
    gap: 2rem;
    margin-top: 2rem;
}

/* .image-title removed */

.careers-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.careers-image {
    text-align: right;
    padding-right: 2rem;
}

.careers-image img {
    max-width: 450px;
    /* 1.5倍に拡大 */
    width: 100%;
    height: auto;
    min-height: 250px;
}

@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
        justify-content: center;
    }

    .hero-content {
        margin: 0 1rem;
        border-radius: 8px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .business-grid,
    .careers-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .careers-image {
        text-align: center;
        padding-right: 0;
    }
}

/* Philosophy */
.philosophy {
    background-color: var(--bg-color);
    background-color: var(--bg-color);
    background-image: linear-gradient(var(--philosophy-overlay-start), var(--philosophy-overlay-end)), url('images/cityscape.jpg');
    background-size: cover;
    background-position: center;
    /* background-attachment: fixed; を削除して全体が見えるように */
}

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

.philosophy-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.philosophy-card:hover {
    transform: translateY(-5px);
}

.philosophy-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--primary-color);
}

/* Sub-heading within the card (e.g. "技術の力で...") */
.philosophy-card p:nth-of-type(1) {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.philosophy-card .desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Company */
/* Company */
.company {
    background-color: #f8fafc;
    /* Pale Slate Base */
    background-image:
        radial-gradient(at 10% 10%, hsla(210, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(260, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, #ffffff 0px, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
}

.company-content {
    background-color: rgba(255, 255, 255, 0.9);
    /* White card on top of gradient */
    padding: 60px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.company-data {
    display: table;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.data-row {
    display: table-row;
    border-bottom: 1px solid var(--border-color);
}

.data-row dt,
.data-row dd {
    display: table-cell;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    /* 上揃えを追加 */
}

.data-row:last-child dt,
.data-row:last-child dd {
    border-bottom: none;
}

.data-row dt {
    width: 30%;
    font-weight: 700;
    color: var(--primary-color);
}

.data-row dd {
    color: var(--text-secondary);
}

/* Careers */
.careers {
    background-color: var(--primary-color);
    /* Dark Mesh Gradient Overlay */
    background-image:
        radial-gradient(at 20% 20%, rgba(56, 189, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(129, 140, 248, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(255, 255, 255, 0.05) 0px, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
    color: white;
    text-align: left;
    /* Changed from center to left */
}

.careers-content {
    text-align: left;
    /* Changed from center to left */
}

.careers-content h2 {
    color: white;
    margin-bottom: 24px;
}

.careers-lead {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: white;
}

.careers-text {
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1rem;
    line-height: 1.8;
}

.careers-list {
    display: flex;
    justify-content: flex-start;
    /* Changed from center to flex-start */
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.job-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.job-item h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: white;
}

.job-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.careers .btn-secondary {
    border-color: white;
    color: white;
}

.careers .btn-secondary:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Contact - Mesh Gradient Style (Trend 2025) */
/* Contact - Light Mesh Gradient */
.contact {
    background-color: #f8fafc;
    /* Pale Slate Base */
    background-image:
        radial-gradient(at 10% 10%, hsla(210, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(260, 100%, 90%, 1) 0px, transparent 50%),
        radial-gradient(at 50% 50%, #ffffff 0px, transparent 50%);
    background-size: cover;
    background-attachment: fixed;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-image {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-image img {
    width: 100%;
    max-width: 450px;
    height: auto;
    min-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form {
    width: 100%;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.9rem;
}

.required {
    color: #ef4444;
    font-size: 0.8rem;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--input-bg);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    /* 丸くトリミング */
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.footer-logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    display: inline-block;
    margin-bottom: 0;
}

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

.footer-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-primary);
}

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

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .header-height {
        height: 60px;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 120px 0 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-background {
        width: 100%;
        height: 50%;
        opacity: 0.2;
        clip-path: none;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 8px 0;
    }

    .nav-btn {
        display: block;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .company-content {
        padding: 24px;
    }

    .data-row {
        display: block;
    }

    .data-row dt,
    .data-row dd {
        display: block;
        width: 100%;
        padding: 12px 0;
        border: none;
    }

    .data-row dt {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .data-row dd {
        padding-top: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* New Styles for Improvements */

/* Service List */
.service-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0;
}

.service-list li {
    margin-bottom: 2rem;
    padding-left: 0;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 1.5rem;
}

.service-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.service-list li p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Benefits List (Careers) */
.job-benefits-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    color: white;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    max-width: 700px;
}

.benefits-list li {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-list li strong {
    font-size: 1.1rem;
    color: white;
    margin-left: 8px;
}

.benefit-detail {
    display: block;
    margin-top: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
    padding-left: 28px;
    /* Align with text */
    line-height: 1.6;
}

.check-icon {
    color: #4ade80;
    /* Brighter green */
    font-weight: bold;
    font-size: 1.2rem;
}

.benefits-list li {
    font-weight: 700;
    color: #ffffff;
    /* 背景がDarkなので白に変更 */
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    color: var(--accent-color);
    font-weight: 800;
}

/* Section CTA */
.section-cta {
    margin-top: 3rem;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px dashed var(--border-color);
}

.section-cta p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Card Icons */
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    background-color: #eff6ff;
    /* 薄い青背景 */
    color: var(--accent-color);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

/* Form Notification (Toast) */
.form-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #22c55e;
    /* Green-500 */
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s ease;
    font-weight: 500;
}

.form-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}