
@charset "utf-8";

/* ==========================================
1. 全体の基本設定
   ========================================== */
html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: "BIZ UDPGothic", "UD デジタル 教科書体 N-R", "UD Digi Kyokasho N-R", "Kosugi Maru", "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Meiryo", "Noto Sans JP", sans-serif;
    color: #444444;
    background-color: #fffff0;
    margin: 0;
    line-height: 1.85;
    letter-spacing: 0.03em;
    overflow-x: clip;
}

/* リンクの基本色 */
a {
    text-decoration: none;
    color: #2e8b57;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}


/* ==========================================
2. ヘッダーからAboutまでのエリア
   ========================================== */
.top-area {
    background-image: url('images/bg_header.png');
    background-repeat: no-repeat;
    background-position: calc(100% + 30px) 450px;
    background-size: 500px auto;
}


/* ==========================================
3. ヘッダー
   ========================================== */
.header {
    background: transparent;
    border-bottom: none;
}

.header .container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.3rem;
    font-weight: bold;
    color: #556b55;
    margin: 0;
    letter-spacing: 0.05em;
}


/* ==========================================
4. メインビジュアル（スライドショー）
   ========================================== */
.hero-slider {
    position: relative;
    width: 90%;
    min-width: 375px;
    max-width: 1000px;
    margin: 30px auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-content-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 85%;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero-content-inner h2 {
    font-size: clamp(1.2rem, 3.5vw, 2.2rem);
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.hero-content-inner p {
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    margin: 0;
    opacity: 0.95;
}


/* ==========================================
5. セクション共通 ＆ お知らせ ＆ About
   ========================================== */
.section {
    padding: 50px 55px 50px 100px;
    text-align: center;
    background: rgba(255, 255, 255, 0.7);
    margin: 40px auto;
    border-radius: 100px;
    width: 100%;
    min-width: 375px;
    max-width: 900px;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    overflow-wrap: anywhere;
}

.section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #556b55;
}

.section p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* お知らせセクション */
.info-section {
    background: rgba(255, 255, 255, 0.7) !important;
    border-left: 5px solid #debeaf;
    text-align: left !important;
    padding: 30px 40px !important;
    border-radius: 12px !important;
}

.info-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.info-box {
    background: transparent;
    padding: 20px;
    border-radius: 8px;
    border: none;
    min-width: 375px;
    box-sizing: border-box;
}

.info-date {
    font-size: 0.85rem;
    font-weight: bold;
    color: #8fbc8f;
    margin-bottom: 5px;
    margin-top: 0;
}

.info-text {
    font-size: 0.95rem;
    color: #444;
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .info-section {
        padding: 20px 20px !important;
        border-radius: 12px !important;
    }
}

/* Aboutセクション */
.about-section {
    padding: 50px 20px;
    text-align: left;
    min-width: 375px;
    box-sizing: border-box;
}

.about-section h2 {
    font-size: 1.6rem;
    margin-bottom: 18px;
    color: #556b55;
    text-align: center;
}

.about-text {
    color: #555;
    min-width: 375px;
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 55px 50px 100px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 100px;
    box-sizing: border-box;
    text-align: left;
    line-height: 1.9;
}

@media (max-width: 768px) {
    .about-text {
        padding: 32px 32px 32px 36px;
        border-radius: 48px;
    }
}


/* ==========================================
6. 目次セクション（#mokuji）
   ========================================== */
#mokuji {
    background-color: rgba(185,193,169,0.2);
    background-image: url('images/bg_mokuji_top.png'), url('images/bg_mokuji_bottom.png');
    background-repeat: no-repeat;
    background-position: right top, left bottom;
    background-size: 100% auto, 100% auto;
    padding: 50px 55px 50px 100px;
    border-radius: 100px;
    transform: translateX(-100px);
    width: 100%;
    min-width: 375px;
    max-width: 900px;
    margin: 40px auto;
    box-sizing: border-box;
    font-size: 1.2rem;
}

#mokuji h2 {
    margin-bottom: 1rem;
    color: #556b55;
    white-space: nowrap;
}

#mokuji ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#mokuji li {
    line-height: 1.85;
    margin-left: 1.5rem;
    border-bottom: none;
}

/* 数字（.num） */
#mokuji .num {
    font-family: "Kosugi Maru", "ヒラギノ丸ゴ Pro", "Hiragino Maru Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-weight: bold;
    color: #8fbc8f;
    margin-right: 8px;
}

/* 目次リンク */
#mokuji li a {
    display: inline-block;
    white-space: nowrap;
    color: #2e8b57;
    font-weight: bold;
    transition: color 0.2s;
}

#mokuji li a:hover {
    color: #2e8b57;
    text-decoration: underline;
}

@media screen and (max-width: 768px) {
    #mokuji {
        transform: translateX(-16px);
        padding: 32px 32px 32px 36px;
        border-radius: 48px;
        min-width: 375px;
        max-width: none;
        font-size: 1rem;
    }

    #mokuji li {
        margin-left: 0.5rem;
    }
}


/* ==========================================
7. 1. menu ＆ 2. charge
   ========================================== */
#menu {
    background-color: #fef1eb;
    background-image: url('images/bg1.png');
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 100%;
    padding: 50px 55px 50px 100px;
    border-radius: 100px;
    transform: translateX(60px);
    width: 100%;
    min-width: 375px;
    max-width: 900px;
    margin: 40px 0 40px auto;
    box-sizing: border-box;
    text-align: left;
}

#menu h2 {
    margin-bottom: 1rem;
    color: #556b55;
    text-align: left;
}

#menu p {
    color: #666;
    max-width: 560px;
    margin: 0 auto 0 0;
    padding-left: 2rem;
    text-align: left;
}

#charge {
    background-color: #f5f5dc;
    background-image: url('images/bg2.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 100%;
    padding: 50px 55px 50px 100px;
    border-radius: 100px;
    transform: translateX(-100px);
    width: 100%;
    min-width: 375px;
    max-width: 900px;
    margin: 40px auto 40px 0;
    box-sizing: border-box;
    text-align: left;
}

#charge h2 {
    margin-bottom: 1rem;
    color: #556b55;
    text-align: left;
}

#charge p {
    color: #666;
    max-width: 560px;
    margin: 0 auto 0 0;
    padding-left: 2rem;
    text-align: left;
}

@media screen and (max-width: 768px) {
    #menu {
        transform: translateX(16px);
        padding: 32px 32px 32px 36px;
        border-radius: 48px;
        min-width: 375px;
        max-width: none;
    }

    #menu p {
        padding-left: 2rem;
    }

    #charge {
        transform: translateX(-16px);
        padding: 32px 32px 32px 36px;
        border-radius: 48px;
        min-width: 375px;
        max-width: none;
    }

    #charge p {
        padding-left: 2rem;
    }
}


/* ==========================================
8. introduction / FAQ / ACCESS / mail
   ========================================== */

/* introduction */
.intro-section {
    background: transparent url('images/bg3.png') no-repeat right center / contain !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

.intro-section h2 {
    text-align: left;
}

.intro-content {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.intro-content p {
    margin: 0;
    color: #444;
    max-width: none;
}

.intro-center-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 24px auto 0;
    border-radius: 12px;
}

/* FAQ */
.faq-section {
    background-color: #FAF0E6 !important;
    background-image: url('images/bg4.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto 100%;
    border-radius: 100px !important;
    padding: 50px 55px 50px 100px;
    min-width: 375px;
    box-sizing: border-box;
    text-align: left !important;
}

.faq-section h2 {
    text-align: left;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto 0 0;
    text-align: left;
}

.faq-list p {
    margin: 0 0 20px;
    max-width: none;
    color: #555;
    text-align: left;
}

.toggle-image {
    margin-top: 16px;
}

.toggle-image__btn {
    cursor: pointer;
    font-weight: bold;
    color: #556b55;
}

.toggle-image__body {
    margin-top: 12px;
}

.toggle-image__body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ACCESS */
.access-section {
    width: 100%;
    min-width: 375px;
    max-width: 900px;
    margin: 40px auto;
    padding: 20px 0;
    box-sizing: border-box;
    text-align: left;
}

.access-section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #556b55;
}

.map-wrap iframe {
    width: 100%;
    max-width: 100%;
    display: block;
}

/* mail */
.mail-section {
    background-color: #f6f7d9 !important;
    border-radius: 100px !important;
    padding: 50px 55px 50px 100px;
    min-width: 375px;
    box-sizing: border-box;
    text-align: left !important;
}

.mail-section h2 {
    text-align: left;
}

.mail-box {
    max-width: 700px;
    margin: 0 auto 0 0;
    text-align: left;
}

.mail-note {
    margin: 0 !important;
    max-width: none !important;
    color: #555;
    text-align: left !important;
}

@media screen and (max-width: 768px) {
    .section,
    .faq-section,
    .mail-section {
        padding: 32px 32px 32px 36px;
        border-radius: 48px !important;
    }

    .intro-section {
        padding: 32px 20px;
        border-radius: 0 !important;
    }
}


/* ==========================================
9. フッター ＆ ページトップボタン
   ========================================== */
.footer {
    text-align: center;
    padding: 30px 20px;
    color: #777;
    font-size: 0.9rem;
}

.pagetop {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #8fbc8f;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 50;
}

.pagetop__arrow {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(45deg);
    margin-top: 3px;
}


/* ==========================================
10. スマートフォン表示の最適化
   ========================================== */

@media screen and (max-width: 768px) {

    /* 画面幅からのはみ出しを防止 */
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
    }

    /* 共通コンテナ */
    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    /* メインビジュアル */
    .hero-slider {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 20px auto;
    }

    /* 各セクション共通 */
    .section,
    .about-section,
    .faq-section,
    .mail-section,
    .access-section,
    .info-box,
    .about-text,
    #mokuji,
    #menu,
    #charge {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    /* セクションの左右移動を解除 */
    #mokuji,
    #menu,
    #charge {
        transform: none;
    }

    /* セクションの余白を調整 */
    .section,
    .faq-section,
    .mail-section {
        padding: 28px 20px !important;
        margin: 24px auto;
        border-radius: 32px !important;
    }

    /* お知らせ */
    .info-section {
        padding: 20px !important;
    }

    .info-box {
        padding: 10px;
    }

    /* About */
    .about-section {
        padding: 28px 12px;
    }

    .about-text {
        padding: 28px 20px;
        border-radius: 32px;
    }

    /* 目次 */
    #mokuji {
        padding: 28px 20px;
        margin: 24px auto;
        border-radius: 32px;
        font-size: 1.2rem;
    }

    #mokuji h2 {
        white-space: normal;
    }

    #mokuji li {
        margin-left: 0;
        line-height: 1.85;
    }

    #mokuji li a {
        white-space: normal;
        font-size: inherit;
    }

    /* MENU */
    #menu {
        padding: 28px 20px;
        margin: 24px auto;
        border-radius: 32px;
    }

    #menu p {
        padding-left: 0;
    }

    /* CHARGE */
    #charge {
        padding: 28px 20px;
        margin: 24px auto;
        border-radius: 32px;
    }

    #charge p {
        padding-left: 0;
    }

    /* FAQ */
    .faq-section {
        padding: 28px 20px;
    }

    /* メール */
    .mail-section {
        padding: 28px 20px;
    }

    /* 文字や画像のはみ出し防止 */
    img,
    iframe {
        max-width: 100%;
    }

    p,
    li,
    a {
        overflow-wrap: anywhere;
    }
}


/* ==========================================
11. スマートフォン横向き表示
   ========================================== */

@media screen and (max-width: 768px) and (orientation: landscape) {

    /* 目次の文字サイズを他の本文と統一 */
    #mokuji {
        font-size: 1.2rem;
    }

    #mokuji li a {
        font-size: inherit;
    }

    #mokuji h2 {
        font-size: 1.6rem;
    }
}

