:root {
    /* Colors */
    --bg-color: #0d0f12; /* Dark elegant background */
    --bg-color-light: #16191f; /* Slightly lighter background for cards */
    --text-color: #e0e0e0;
    --text-color-muted: #999;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif-ja: 'Noto Serif JP', serif;
    --font-serif-en: 'Cormorant Garamond', serif;

    /* Layout */
    --container-max-width: 1200px;
    --container-padding: 0 24px;
    --section-padding: 100px 0;
}

/* -----------------------------
   Reset & Base Styles
----------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px; /* ヘッダー固定分のオフセット */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    letter-spacing: 0.05em;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif-ja);
    font-weight: 400;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

img, svg {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

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

.section {
    padding: var(--section-padding);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    margin-bottom: 60px;
}

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

.section-title {
    font-size: 2rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.section-subtitle {
    font-family: var(--font-serif-en);
    font-size: 1rem;
    color: var(--text-color-muted);
    letter-spacing: 0.2em;
}

.excerpt {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

/* Placeholder Styles */
.image-placeholder {
    background-color: var(--bg-color-light);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-color-muted);
    font-size: 0.85rem;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.image-placeholder::before {
    content: attr(data-placeholder);
}

/* -----------------------------
   Header
----------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #0d0f12; /* Solid dark background matching screenshot */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtle border instead of gradient */
}

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

.logo-ja {
    display: block;
    font-family: var(--font-serif-ja);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
    margin-bottom: 4px;
}

.logo-en {
    display: block;
    font-family: var(--font-serif-en);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.6);
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

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

body.nav-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--bg-color-light);
    padding: 120px 40px 40px;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border-color);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

/* ナビオーバーレイ (メニュー開いた時の背景暗転) */
body.nav-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 998;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.nav-open .global-nav {
    right: 0;
}

.global-nav ul {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.global-nav a {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    display: block;
    width: 100%;
}

/* -----------------------------
   Hero Section
----------------------------- */
.hero {
    height: 100vh;
    position: relative;
    /* display flex / align-items removed to let container handle layout */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--bg-color);
    background-size: 650px auto; /* モバイル: 画像の横幅を650pxに固定し、2人を表示 */
    background-position: 95% 80px; /* 右寄りに配置して2人をフレームに収める */
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(13, 15, 18, 0) 0%,
        rgba(13, 15, 18, 0.2) 25%,
        rgba(13, 15, 18, 0.8) 40%,
        rgba(13, 15, 18, 1) 50%
    );
    z-index: -1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.hero-title-main {
    font-size: 2.4rem;
    font-family: var(--font-serif-ja);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.hero-desc {
    font-size: 1.05rem;
    line-height: 2;
    letter-spacing: 0.1em;
}

.hero-text-bottom {
    margin-top: auto;
}

.hero-catch {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-solid-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: #fff;
    color: var(--bg-color);
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: opacity 0.3s;
    min-width: 200px;
}

.btn-solid-white:hover {
    opacity: 0.8;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: background-color 0.3s;
    min-width: 200px;
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* -----------------------------
   News & Column Section
----------------------------- */
.dual-columns {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.section-header.left {
    text-align: left;
    margin-bottom: 40px;
}

.list-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.list-item time {
    display: block;
    font-family: var(--font-serif-en);
    letter-spacing: 0.1em;
    color: var(--text-color-muted);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.item-title a {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.6;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.item-title a:hover {
    color: #fff;
    opacity: 0.7;
}

/* -----------------------------
   Services Section
----------------------------- */
.service-cards {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 60px;
}

.service-card {
    border: 1px solid var(--border-color);
    padding: 40px;
    background-color: #111;
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-name {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.service-name-en {
    font-family: var(--font-serif-en);
    color: var(--text-color-muted);
    letter-spacing: 0.1em;
    font-style: italic;
}

.service-desc {
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px 24px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-list li {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.service-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translateY(-50%);
}

.service-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    border: 1px solid var(--border-color);
    background-color: #111;
    color: var(--text-color);
    flex: 1;
    text-align: center;
    transition: all 0.3s ease;
}

.service-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.service-btn-icon {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.service-btn-title {
    font-family: var(--font-serif-ja);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.service-btn-sub {
    font-size: 0.8rem;
    color: var(--text-color-muted);
}

.service-btn.non-clickable {
    cursor: default;
}

.service-btn.non-clickable:hover {
    background-color: #111;
    border-color: var(--border-color);
}

.service-btn.cta-clickable {
    background-color: #fff;
    color: var(--bg-color);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.service-btn.cta-clickable:hover {
    background-color: #f0f0f0;
    border-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.service-btn.cta-clickable .service-btn-icon {
    color: var(--bg-color);
}

.service-btn.cta-clickable .service-btn-sub {
    color: rgba(0,0,0,0.7);
}

/* -----------------------------
   Greeting Section
----------------------------- */
.greeting-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 60px;
}

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

.greeting-text h3 {
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.greeting-text p {
    font-size: 0.95rem;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
}

.greeting-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 4px;
}

/* -----------------------------
   Features Section
----------------------------- */
.feature-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 100px;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-image {
    width: 100%;
    height: 300px;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-text {
    flex: 1;
}

.feature-number {
    display: block;
    font-family: var(--font-serif-en);
    font-size: 4rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.15); /* コントラスト改善 */
    margin-bottom: -20px;
}

.feature-title {
    font-size: 1.6rem;
    line-height: 1.5;
    margin-bottom: 32px;
}

.feature-icon {
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.8);
}

.feature-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* -----------------------------
   Column & Access & Footer ...
   (Will complete in media queries)
----------------------------- */
.column-list.text-only {
    grid-template-columns: 1fr;
    gap: 0;
}

.text-only-item {
    border-bottom: 1px solid var(--border-color);
}

.text-only-item:first-child {
    border-top: 1px solid var(--border-color);
}

.text-only-item a {
    display: block;
    padding: 24px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    transition: opacity 0.3s ease;
}

.text-only-item h3 {
    margin: 0;
}

.column-image {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.column-title {
    font-size: 1.1rem;
    line-height: 1.5;
}

.access-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.info-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.info-icon {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.info-body h4 {
    font-size: 0.85rem;
    color: var(--text-color-muted);
    margin-bottom: 4px;
    font-family: var(--font-sans);
}

.info-body p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.schedule-block {
    margin-top: 40px;
}

.schedule-title {
    font-size: 1rem;
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
}

.schedule-table th, .schedule-table td {
    padding: 16px 8px;
    border-bottom: 1px solid var(--border-color);
}

.schedule-table th {
    font-weight: normal;
    color: var(--text-color-muted);
}

.schedule-table td.slash {
    color: rgba(255, 255, 255, 0.15);
}

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

.schedule-notes li {
    margin-bottom: 6px;
}

.access-map-title {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.access-map-title h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
}

.access-map {
    width: 100%;
    height: 300px;
    margin-bottom: 24px;
    filter: invert(90%) hue-rotate(180deg) contrast(1.1); /* Match dark map appearance */
}

.access-routes {
    font-size: 0.85rem;
}

.access-routes li {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.route-time {
    color: var(--text-color-muted);
}

.access-route-note {
    font-size: 0.8rem;
    color: var(--text-color-muted);
    margin-top: 24px;
}

.footer {
    padding: 60px 0 32px;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
    align-items: center;
}

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

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.footer-bottom {
    text-align: center;
    font-family: var(--font-serif-en);
    font-size: 0.8rem;
    color: var(--text-color-muted);
    letter-spacing: 0.1em;
}

/* ----- Contact CTA Section ----- */
.contact-cta {
    text-align: center;
}

.contact-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.contact-cta-buttons .btn-solid-white,
.contact-cta-buttons .btn-outline-white {
    min-width: 280px;
    justify-content: space-between;
}

/* -----------------------------
   Responsive (Desktop)
----------------------------- */
/* ヘッダーナビ: 992px以上で横並び表示（途切れ防止のため動的にサイズ調整） */
@media (min-width: 992px) {
    .menu-toggle {
        display: none;
    }

    .global-nav {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: transparent;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .global-nav ul {
        flex-direction: row;
        gap: clamp(12px, 1.5vw, 20px);
        align-items: center;
    }

    .global-nav a {
        font-size: clamp(0.75rem, 0.9vw, 0.85rem);
        color: rgba(255, 255, 255, 0.8);
        font-weight: 300;
        transition: color 0.3s ease;
        white-space: nowrap;
    }

    .global-nav a:hover {
        color: #fff;
    }

    .nav-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px clamp(12px, 1.5vw, 20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .nav-btn:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.5);
    }
}

/* レイアウト全般: 768px以上でデスクトップ表示 */
@media (min-width: 768px) {
    .hero-bg {
        background-size: cover;
        background-position: center center;
    }
    .hero::before {
        background: linear-gradient(to right, rgba(13, 15, 18, 0.85) 0%, rgba(13, 15, 18, 0.15) 60%, rgba(13, 15, 18, 0.3) 100%);
    }

    .hero-title-main { font-size: 3.5rem; }
    .hero-desc { font-size: 1.2rem; }
    .hero-catch { font-size: 1.4rem; margin-bottom: 0; }
    .hero-text-bottom {
        display: flex;
        align-items: center;
        gap: 40px;
    }
    .hero-buttons { margin-top: 0; }

    .service-cards {
        flex-direction: row;
    }

    .service-buttons {
        flex-direction: row;
        align-items: stretch;
    }

    .service-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .dual-columns {
        flex-direction: row;
        gap: 80px;
    }

    .news-box, .column-box {
        flex: 1;
        min-width: 0;
    }

    .greeting-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 80px;
    }

    .greeting-text {
        flex: 1;
    }

    .greeting-image {
        flex: 1;
        width: 100%;
        max-width: 500px;
        height: auto;
    }

    .feature-item {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }

    .feature-item.reverse {
        flex-direction: row-reverse;
    }

    .feature-image {
        width: 50%;
        height: 400px;
    }

    .column-list:not(.text-only) {
        grid-template-columns: repeat(3, 1fr);
    }

    .access-content {
        flex-direction: row;
        gap: 80px;
    }

    .access-left, .access-right {
        flex: 1;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-nav {
        flex-direction: row;
        gap: 32px;
    }
}
