/* -------------------------------------------
   1. 基本設定 / リセット
------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* アンカーリンクの移動をスムースにする */
    scroll-behavior: smooth;
}

body {
    font-family: 'Meiryo', 'メイリオ', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

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

/* 全体をラップし、フッターを最下部に固定 */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* -------------------------------------------
   2. ヘッダー / ナビゲーション
------------------------------------------- */

/* 言語切り替えボタンのコンテナ */
.language-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.lang-button {
    padding: 8px 12px;
    background-color: #5A2D0D;
    color: #fff;
    border: 1px solid #ffffffb2;
    border-radius: 5px;
    font-size: 0.9em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lang-button:hover {
    background-color: #D2B48C;
    color: #5A2D0D;
}

.loading {
    cursor: wait;
    opacity: 0.7;
}

/* ヒーローセクション（背景画像エリア） */
.hero {
    position: relative; /* ロゴを重ねるための基準位置 */
    height: 85vh; /* ビューポートの高さの85% */
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    background-image: url('images/image01.jpg'); /* 背景画像をここに指定 */
    background-color: #fcf8ed;
    background-size: cover;
    background-position: center;
}

/* ヒーローセクションのロゴ */
.hero-logo {
    width: 80%;
    max-width: 500px;
}

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

/* 下層ページのヘッダーロゴ */
.hero-logo-subpage {
    text-align: center; /* ロゴを中央寄せ */
    padding: 20px 0;
    background-color: #5A2D0D;
}

.hero-logo-subpage img {
    width: 250px;
    height: auto;
}


/* ナビゲーションのコンテナ */
.header-nav-container {
    background-color: #5A2D0D;
}

/* グローバルメニュー */
.global-nav {
    max-width: 960px; /* .container と幅を合わせる */
    margin: 0 auto;
    text-align: center;
    padding: 15px 20px;
}

.global-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.global-nav ul li {
    margin: 0 20px;
}

.global-nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.global-nav ul li a:hover {
    background-color: #D2B48C;
    color: #5A2D0D;
}

.hamburger-menu {
    display: none;
}

/* -------------------------------------------
   3. セクション共通スタイル
------------------------------------------- */

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-family: 'Meiryo', sans-serif;
    font-size: 2.5em;
    color: #8B4513;
    margin-bottom: 40px;
    position: relative;
}

.bg-light {
    background-color: #fcf8ed;
}

/* 導線ボタン */
.center-btn {
    text-align: center;
    margin-top: 40px;
}

.text-btn {
    display: inline-block;
    padding: 12px 40px;
    background-color: transparent;
    border: 2px solid #A0522D;
    color: #A0522D;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.text-btn:hover {
    background-color: #A0522D;
    color: #fff;
}

/* -------------------------------------------
   言語切り替え
------------------------------------------- */
.lang-en {
    display: none;
}
body.show-en .lang-ja {
    display: none;
}
body.show-en .lang-en {
    display: inline;
}
/* インライン要素になってしまうのを防ぐ */
body.show-en iframe.lang-en {
    display: block;
}

.mobile-br {
    display: none;
}

/* -------------------------------------------
   特別集会のご案内
------------------------------------------- */
#special-event {
    background-color: #f5eeb6;
    text-align: center;
}

.event-details {
    max-width: 600px;
    margin: 0 auto 30px;
    text-align: left;
}

.event-details dl {
    margin-bottom: 20px;
}

.event-details dt {
    font-weight: bold;
    color: #8B4513;
    display: inline-block;
    width: 80px;
}

.event-details dd {
    display: inline;
    margin-left: 10px;
}

.event-schedule {
    width: 100%;
    border-collapse: collapse;
}

.event-schedule th,
.event-schedule td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.event-schedule th {
    background-color: #ca5f5f;
    color: #fff;
    width: 150px;
}

/* -------------------------------------------
   PDFモーダル
------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    height: 80vh;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: -10px;
    right: 5px;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* -------------------------------------------
   4. ABOUTセクション (scripture-and-about)
------------------------------------------- */

.scripture-and-about {
    padding: 60px 20px;
    text-align: center;
    background-color: #fcf8ed;
}

.scripture-text {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 0 auto 30px;
    max-width: 960px;
}

.scripture-quote {
    font-family: 'Meiryo', sans-serif;
    font-size: 1em;
    line-height: 1.8;
    color: #333;
    font-weight: normal;
    font-style: italic;
    margin-bottom: 15px;
    text-align: left;
}

.scripture-verse {
    font-family: 'Meiryo', sans-serif;
    font-size: 1em;
    color: #888;
    font-style: italic;
    text-align: right;
}

.scripture-and-about hr {
    width: 50%;
    margin: 30px auto;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-text {
    font-size: 1em;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

/* スライドショーセクション */
.slide-section {
    width: 100%;
    padding: 40px 0;
    background-color: #fcf8ed;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.slider {
    width: 100%;
    max-width: 960px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.slide-container {
    height: 100%;
    display: flex;
    width: 200%;
    animation: slideLoop 25s linear infinite;
}

.slide-container img {
    height: auto;
    width: 10%;
    object-fit: cover;
    display: block;
}

@keyframes slideLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* -------------------------------------------
   5. 集会のご案内セクション
------------------------------------------- */
.note {
    text-align: center;
    margin-top: 20px;
    color: #555;
    font-size: 0.9em;
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

th {
    background-color: #A0522D;
    color: #fff;
    font-weight: bold;
}

.highlight {
    background-color: #FAEBD7;
}

/* -------------------------------------------
   6. アクセスセクション
------------------------------------------- */
.access-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.map-container {
    flex: 2;
    min-width: 300px;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
}

.address-info {
    flex: 1;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 1.1em;
}

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

.address-info th, .address-info td {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: left;
    white-space: nowrap;
}

.address-info th {
    background-color: #A0522D;
    color: #fff;
    font-weight: bold;
    width: auto;
    border-radius: 0;
    padding-left: 15px;
}

/* -------------------------------------------
   7. フッター
------------------------------------------- */
footer {
    background-color: #5A2D0D;
    color: #fff;
    padding: 40px 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-info, .footer-nav {
    flex: 1;
    min-width: 250px;
}

.footer-info h3, .footer-nav h4 {
    font-family: 'Meiryo', sans-serif;
    color: #FFF;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 10px;
    font-size: 0.9em;
}

.footer-info a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #FAEBD7;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright p {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.7);
}

/* -------------------------------------------
   8. 下層ページ共通
------------------------------------------- */
.page-hero {
    position: relative;
    height: 40vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-image: url('images/image02.jpg'); /* 背景画像 */
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明の黒オーバーレイ */
    z-index: 1;
}

.page-hero h1 {
    font-family: 'Meiryo', sans-serif;
    font-size: 2.8em;
    color: #fff;
    padding: 15px 30px;
    background-color: rgba(0, 0, 0, 0.5); /* 半透明の黒背景 */
    border-radius: 8px;
    z-index: 2;
}

.button-navigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
}

/* サブタイトル（H3） */
.subsection-title {
    font-size: 1.5em;
    color: #8B4513;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 5px solid #A0522D;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 特徴リスト */
.feature-list {
    list-style: none;
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto 20px auto;
    counter-reset: list-counter; /* カウンターをリセット */
}

.feature-list li {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 15px 15px 15px 45px; /* 左の余白を調整 */
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    text-align: left;
    line-height: 1.7;
}

.feature-list li::before {
    counter-increment: list-counter; /* カウンターをインクリメント */
    content: counter(list-counter); /* カウンターの値を表示 */
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #A0522D;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
}


/* 2カラムレイアウト */
.two-column-section {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.column-text {
    flex: 2;
}

.column-image {
    flex: 1;
    text-align: center;
}

.column-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


/* -------------------------------------------
   9. レスポンシブデザイン
------------------------------------------- */
@media (max-width: 768px) {
    .lang-button {
        line-height: 1.3;
        padding: 6px 12px;
    }

    .mobile-br {
        display: initial;
    }

    .global-nav {
        display: block;
        padding: 5px 0;
    }

    .global-nav ul {
        flex-wrap: nowrap;
    }

    .global-nav ul li {
        margin: 0 5px;
        width: auto;
    }

    .global-nav ul li a {
        padding: 10px 5px;
        font-size: 0.8em;
    }

    .hamburger-menu {
        display: none !important;
    }
    
    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }
    
    .hero {
        height: 60vh;
    }

    .scripture-and-about {
        padding: 30px 20px;
    }

    .access-info {
        flex-direction: column;
    }

    .map-container, .address-info {
        width: 100%;
    }
    
    .address-info th, .address-info td {
        white-space: normal;
    }

    .button-navigation {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .two-column-section {
        flex-direction: column;
    }

    .column-text {
       order: 1;
    }
    .column-image {
       order: 2;
       width: 100%;
       margin-top: 20px; /* 画像の上の余白 */
    }
}


