/* Mixed Styles: Classic Apple Base + Modern Header/Program */
:root {
    --primary-gradient: linear-gradient(135deg, #cfa075 0%, #e6bc94 100%);
    --primary-color: #cfa075;
    --secondary-color: #86868b;
    --text-color: #1d1d1f;
    --bg-color: #ffffff;
    --section-gray: #f5f5f7;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 20px;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.05);
    --modern-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.5;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-large {
    font-size: 24px;
    font-weight: 500;
}

.text-small {
    font-size: 14px;
    color: var(--secondary-color);
}

.text-xsmall {
    font-size: 12px;
    color: var(--secondary-color);
}

.centered {
    text-align: center;
}

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.map-container {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}

@media (max-width: 768px) {
    .map-container {
        border-radius: 0;
    }
    
    .map-container iframe {
        height: 350px;
    }
}
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

/* MODERN Navigation */
.global-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    min-width: 320px;
    height: 54px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    z-index: 9999;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    padding: 15px;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    display: block;
    background: var(--text-color);
    height: 2px;
    width: 25px;
    position: relative;
    transition: all 0.4s ease-in-out;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: '';
    position: absolute;
}

.nav-toggle-label span::before {
    top: 8px;
}

.nav-toggle-label span::after {
    bottom: 8px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
    height: 100%;
    align-items: center;
    padding: 0;
}

.nav-menu li {
    margin: 0 5px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background: rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    .global-nav {
        width: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        height: auto;
        min-width: auto;
    }

    .nav-container {
        justify-content: space-between;
        padding: 0 15px;
        height: 60px;
    }

    .nav-toggle-label {
        display: flex;
        align-items: center;
        height: 60px;
        order: 1;
        padding-right: 0;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        flex-direction: column;
        height: 0;
        overflow: hidden;
        transition: height 0.4s ease-in-out;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .nav-menu a {
        display: block;
        padding: 20px;
        border-radius: 0;
        font-size: 16px;
    }

    .nav-toggle:checked ~ .nav-menu {
        height: calc(100vh - 60px);
        padding-top: 40px;
    }

    .nav-toggle:checked ~ .nav-toggle-label span {
        background: transparent;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::before {
        transform: rotate(45deg);
        top: 0;
    }

    .nav-toggle:checked ~ .nav-toggle-label span::after {
        transform: rotate(-45deg);
        bottom: 0;
    }
}

.nav-apply {
    background: var(--primary-gradient) !important;
    color: var(--white) !important;
}

.nav-apply-button {
    background: var(--primary-gradient);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.3s ease;
    order: 2;
}

.nav-apply-button:hover {
    opacity: 0.9;
}

.pc-only {
    display: block;
}

.sp-only-flex {
    display: none;
}

@media (max-width: 768px) {
    .pc-only {
        display: none;
    }
    .sp-only-flex {
        display: flex;
    }
}

/* Classic Hero Section */
.hero {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    overflow: hidden;
    color: var(--white);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* 余白を持たせて動かせるように */
    z-index: -1;
    will-change: transform;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-sub {
    font-size: 17px;
    font-weight: 600;
    color: #ff9f0a;
    margin-bottom: 10px;
}

.hero-title {
    margin-bottom: 15px;
}

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

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

.hero-lead {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .hero-lead { font-size: 20px; }
}

/* Buttons */
.button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0077ed;
}

.button-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.button-large {
    padding: 18px 36px;
    font-size: 21px;
    font-weight: 600;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-content-with-image {
    display: flex;
    align-items: center;
    gap: 60px;
}

.text-side {
    flex: 1;
}

.image-side {
    flex: 1;
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .section-content-with-image {
        flex-direction: column;
        gap: 40px;
    }
}

.section-gray {
    background-color: var(--section-gray);
    background-image: linear-gradient(rgba(245, 245, 247, 0.85), rgba(245, 245, 247, 0.85)), url('../images/index_p03.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--black);
}

.section-gray .text-small,
.section-gray .note {
    color: var(--black);
    opacity: 0.8;
}

.section-dark {
    background-color: #1d1d1f;
    color: var(--white);
}

.section-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 40px;
}

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

@media (max-width: 768px) {
    .section-title { font-size: 32px; }
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

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

.card {
    background: var(--white);
    padding: 40px;
    border-radius: 18px;
    box-shadow: var(--card-shadow);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 21px;
}

/* MODERN Timeline Section */
.timeline {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-day {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.day-label {
    font-size: 48px;
    font-weight: 800;
    color: #e5e5e7;
    line-height: 1;
}

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

.day-content {
    background: var(--section-gray);
    padding: 40px;
    border-radius: 24px;
    text-align: left;
}

.day-content h4 {
    font-size: 20px;
    margin-bottom: 20px;
}

.day-content ul li {
    list-style: none;
    margin-bottom: 12px;
    padding-left: 28px;
    position: relative;
    font-size: 17px;
}

.day-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

@media (max-width: 600px) {
    .timeline-day {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Info Box */
.info-box {
    padding: 20px;
}

.info-box h3 {
    font-size: 24px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 10px;
}

.price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.note {
    font-style: italic;
    color: var(--secondary-color);
}

/* Apply Section */
#apply {
    background-image: linear-gradient(rgba(0, 50, 0, 0.8), rgba(0, 50, 0, 0.8)), url('../images/index_a08.png');
    background-size: cover;
    background-position: center;
}

.link-white {
    color: var(--white);
    opacity: 0.8;
    text-decoration: underline;
}

.link-white:hover {
    opacity: 1;
}

.text-white {
    color: var(--white);
}

.tel {
    font-size: 24px;
    font-weight: 600;
    margin-top: 10px;
}

/* Netforum Info */
.netforum-container {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 60px;
}

.netforum-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 24px;
    text-align: center;
}

.netforum-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--white);
}

.netforum-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .netforum-box {
        padding: 30px 20px;
    }
    .netforum-title {
        font-size: 20px;
    }
    .netforum-text {
        font-size: 15px;
    }
}

/* Footer */
.footer-info {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-block {
    flex: 0 0 45%;
}

.footer-block h4 {
    font-size: 17px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .footer-info { flex-direction: column; }
    .footer-block { margin-bottom: 30px; }
}

.global-footer {
    background-color: var(--section-gray);
    padding: 30px 0;
    text-align: center;
}

.global-footer p {
    font-size: 12px;
    color: var(--secondary-color);
}

/* Scroll Animation Styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.sp-only {
    display: none;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
}
