:root {
    --primary: #05265f;
    --primary-light: #0a62dc;
    --dark: #1a1a1a;
    --text: #333;
    --text-light: #666;
    --bg: #fff;
    --bg-pale: #f8f9fa;
    --border: #e0e0e0;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --container: 1100px;
    --container-narrow: 800px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text);
    background-color: var(--bg);
    word-break: break-all;
}

.serif {
    font-family: 'Noto Serif JP', serif;
}

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

ul {
    list-style: none;
}

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

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

.container.narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: 100px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 2.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
}

.bg-pale { background-color: var(--bg-pale); }
.bg-dark { background-color: var(--dark); color: var(--white); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: 0.3s;
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.global-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

@media (max-width: 1024px) {
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%; /* 全画面へ */
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        z-index: 1001;
        padding: 100px 40px;
        visibility: hidden; /* 追加: 非表示時は完全に消す */
        opacity: 0;         /* 追加: 非表示時は透明に */
        pointer-events: none; /* 追加: クリックイベントを無効化 */
    }

    .global-nav.active {
        right: 0;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* メニューオープン時のオーバーレイ的な背景 */
    .global-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: var(--primary);
        opacity: 0.03;
        z-index: -1;
    }
}

.global-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: 0.3s;
}

@media (max-width: 1024px) {
    .global-nav a {
        font-size: 1.4rem;
        font-family: 'Noto Serif JP', serif;
        font-weight: 700;
        padding: 20px 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .global-nav a:last-child {
        border-bottom: none;
        margin-top: 20px;
    }
}

.global-nav a:hover {
    color: var(--primary-light);
}

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

@media (max-width: 1024px) {
    .nav-cta {
        background: var(--primary) !important;
        border-radius: 8px;
        padding: 16px 40px !important;
        max-width: 300px;
    }
}

.nav-cta:hover {
    background: var(--primary-light);
}

.menu-button {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    z-index: 1002;
    padding: 0;
}

@media (max-width: 1024px) {
    .menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.menu-button span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--primary);
    position: absolute;
    transition: 0.3s ease-in-out;
}

.menu-button span:first-child { transform: translateY(-4px); }
.menu-button span:last-child { transform: translateY(4px); }

.menu-button.active span:first-child {
    transform: translateY(0) rotate(45deg);
}

.menu-button.active span:last-child {
    transform: translateY(0) rotate(-45deg);
}

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

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

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background: 
        linear-gradient(90deg, var(--bg) 0%, rgba(255, 255, 255, 0.9) 40%, rgba(255, 255, 255, 0) 70%),
        url('./assets/images/hero-office-clean.png') no-repeat center right / cover;
}

.hero-content {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.hero-eyebrow {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    letter-spacing: 0.1em;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--dark);
}

@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 500px;
        padding-top: 60px;
        background: 
            /*linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%),*/
            url('./assets/images/hero-office-clean.png') no-repeat center center / cover;
        text-align: center;
    }
    .hero-title {
        font-size: 2.2rem;
    }
}

/* Stance */
.stance {
    background: linear-gradient(135deg, #fff 0%, #f0f4f8 100%);
}

.stance-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.15rem;
    text-align: center;
}

.stance-content p + p {
    margin-top: 32px;
}

/* Areas */
.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .area-grid {
        grid-template-columns: 1fr;
    }
}

.area-card {
    background: var(--white);
    padding: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border-top: 4px solid var(--primary);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.area-card:hover {
    transform: translateY(-10px);
}

.area-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.area-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.area-card:hover .area-image img {
    transform: scale(1.1);
}

.area-card > *:not(.area-image) {
    padding-left: 32px;
    padding-right: 32px;
}

.area-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    margin: 32px 0 16px;
    text-transform: uppercase;
}

.area-name {
    font-size: 1.6rem;
    margin-bottom: 24px;
    line-height: 1.4;
    color: var(--dark);
}

.area-desc {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.area-details {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.area-details li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.area-details li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
}

/* Message Box */
.message-box {
    background: var(--white);
    /*border: 1px solid var(--border);*/
    padding: 80px 60px;
    max-width: 900px;
    margin: 0 auto;
    /*box-shadow: var(--shadow);*/
}

@media (max-width: 768px) {
    .message-box {
        padding: 40px 24px;
    }
}

.message-intro {
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.message-intro p + p {
    margin-top: 24px;
}

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

.button {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 16px 48px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1.05rem;
}

.button:hover {
    background: var(--primary-light);
}

.button.secondary {
    background: var(--bg-pale);
    color: var(--text);
    border: 1px solid var(--border);
}

.button.secondary:hover {
    background: var(--border);
}

/* Network */
.network-lead {
    text-align: center;
    max-width: 800px;
    margin: -20px auto 60px;
    opacity: 0.8;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .network-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .network-grid {
        grid-template-columns: 1fr;
    }
}

.network-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-left: 2px solid var(--primary-light);
}

.network-item h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--primary-light);
}

.network-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Office */
.office-layout {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

@media (max-width: 900px) {
    .office-layout {
        flex-direction: column;
    }
}

.office-info {
    flex: 1;
}

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

.info-table th, .info-table td {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.info-table th {
    width: 140px;
    font-weight: 700;
    color: var(--primary);
    vertical-align: top;
}

.office-map {
    flex: 1.2;
    width: 100%;
}

.office-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.map-container {
    height: 300px;
    background: var(--bg-pale);
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
}

/* Contact */
.contact-lead {
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
}

.contact-form {
    /*max-width: 700px;*/
    margin: 0 auto;
    background: var(--white);
    padding: 60px;
    border-radius: 8px;
   /* box-shadow: var(--shadow); */
}

@media (max-width: 768px) {
    .contact-form {
        padding: 32px 24px;
    }
}

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

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

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

.submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    background: #000;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.9rem;
}

/* Message Page */
.page-message {
    padding-top: 160px;
    padding-bottom: 120px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%), url(./assets/images/hero-office-clean.png) no-repeat center center / cover;
}

@media (max-width: 768px) {
    .page-message {
        padding-top: 120px;
        padding-bottom: 60px;
        background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%), url(./assets/images/hero-office-clean.png) no-repeat center center / cover;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 80px;
}

.page-eyebrow {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.page-title {
    font-size: 3rem;
    color: var(--dark);
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
}

.message-body {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text);
}

.message-body p {
    margin-bottom: 40px;
}

.message-footer {
    margin-top: 80px;
    text-align: right;
    border-top: 1px solid var(--border);
    padding-top: 40px;
}

.representative-name {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark);
}

.page-back {
    margin-top: 100px;
    text-align: center;
}
