/* CSS Variables (Design Tokens) */
:root {
    --primary-color: #0d47a1;
    /* Deep Blue for Protestant Church theme */
    --secondary-color: #1976d2;
    --accent-color: #00bcd4;
    /* Light water blue */
    --text-color: #333333;
    --text-light: #ffffff;
    --bg-color: #f8fcfd;
    --header-bg: rgba(255, 255, 255, 0.95);
    --font-heading: 'Yu Gothic', 'Meiryo', sans-serif;
    --font-body: 'Yu Gothic', 'Meiryo', sans-serif;
    --transition-speed: 0.3s;
}

/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed);
}

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

ul {
    list-style: none;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    transition: background-color var(--transition-speed), box-shadow var(--transition-speed);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header.scrolled {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
    transition: color var(--transition-speed);
}

.header.scrolled .logo {
    color: var(--primary-color);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
    padding-bottom: 5px;
}

.header.scrolled .nav-links a {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.3s;
}

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

/* Video Background for Entire Page (Home) */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    /* 最背面に固定 */
    overflow: hidden;
}

.video-bg-container video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
    /* 視認性向上のためのオーバーレイ */
    z-index: 1;
}

/* Hero Section (Home) - Transparent */
.hero {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    z-index: 1;
}

.page-header {
    position: relative;
    width: 100vw;
    height: 100vh;
    /* Wixのようにトップと同じく画面いっぱいに広げる */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.page-header video,
.page-header img.bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.page-header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* 視認性向上のためのオーバーレイ */
    z-index: 1;
}

.page-header h1,
.page-header p,
.page-header>*:not(video):not(.overlay):not(.bg-img) {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.2rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out forwards;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-speed);
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Sections */
.section {
    padding: 6rem 5%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 15px auto 0;
}

/* 特定のセクションタイトルの下線を消す場合 */
.schedule-title::after {
    display: none;
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.85);
    /* 半透明にして動画を透けさせる */
    backdrop-filter: blur(5px);
    /* 少しぼかしを追加してテキストを見やすくする */
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 3rem;
    color: #555;
}

.about-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-images img {
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
    object-fit: cover;
    aspect-ratio: 4/3;
}

.about-images img:hover {
    transform: translateY(-5px);
}

/* Notice Section */
.notice-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 5%;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.notice-container a {
    transition: opacity 0.3s ease;
}

.notice-container a:hover {
    opacity: 0.85;
    /* マウスを乗せたら少し透けてリンクだと分かるようにする */
}

.notice-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.notice-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.notice-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #007bff;
    /* 青色で目立たせる */
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.notice-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    background-color: #0056b3;
}

/* Services / Schedule */
.schedule {
    background-color: transparent;
    /* 背景を透明にして動画を透けさせる */
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.schedule-card {
    background: transparent;
    padding: 2rem 1rem;
    text-align: center;
    color: #ffffff;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.schedule-card h3 {
    font-size: 1.5rem;
    color: #ffffff !important;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.schedule-card p {
    color: #ffffff !important;
    margin-bottom: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.schedule-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--accent-color);
}

.schedule-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.schedule-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.schedule-card p {
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Call to Action */
.cta {
    background-color: transparent;
    color: var(--text-light);
    text-align: center;
    padding: 6rem 5%;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 3rem 5%;
}

footer .footer-logo {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 700;
}

footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--header-bg);
        flex-direction: column;
        padding: 2rem 0;
        text-align: center;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        display: none;
        /* Hidden by default on mobile */
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-color) !important;
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.1rem;
    }
}

/* END of @media (max-width: 768px) for Header/Hero */

/* Contact Section (Zion Praise Page) */
.contact-section {
    background: #ffffff;
    padding: 80px 5%;
    color: #333;
    position: relative;
    /* 背景動画の上に表示させるため */
    z-index: 10;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.contact-headline {
    font-size: 1.8rem;
    font-weight: normal;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    letter-spacing: 0.05em;
}

/* 連絡先テキストは非表示となったため該当CSSは削除 */

.contact-form {
    width: 100%;
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.contact-form .form-group.half {
    width: 50%;
}

.contact-form label {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #444;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-buttons .btn-submit,
.contact-buttons .btn-tel,
.contact-buttons .btn-fb {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    border: none;
    padding: 15px 10px;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    text-decoration: none;
    border-radius: 4px;
}

.contact-buttons .btn-submit {
    background-color: #ba2649;
    /* 赤紫色 */
}

.contact-buttons .btn-tel {
    background-color: #28a745;
    /* 電話用の緑色 */
}

.contact-buttons .btn-fb {
    background-color: #1877f2;
    /* Facebookの青色 */
}

.contact-buttons .btn-submit:hover,
.contact-buttons .btn-tel:hover,
.contact-buttons .btn-fb:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form .form-group.half {
        width: 100%;
    }

    .contact-headline {
        font-size: 1.4rem;
    }

    .contact-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.cta h2 {
    font-size: 1.8rem;
}

/* Tablet Responsive (iPad etc.) */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .section {
        padding: 4rem 5%;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}