/* テンプレートページ全体のスタイル */
.template-page {
    padding: 2rem;
    margin: 0 auto;
    max-width: 1200px;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* 日付 */
.page-date {
    font-size: 0.9rem;
    color: #888888;
    margin-bottom: 1rem;
    text-align: right;
}

/* タイトル */
.page-title {
    font-size: 2rem;
    /* margin-bottom: 2rem; */
    text-align: center;
}
/* タイトル */
.page-title2 {
    margin-bottom: 2rem;
    text-align: center;
}

/* 画像 */
.image-container {
    margin: 2rem 0;
    text-align: center;
}

.title-image {
    height: 30rem  !important;
    border-radius: 10px;
    width: 100%; /* 横幅を親要素に合わせる */
    object-fit: cover; /* トリミングを適用 */
}

.article-image {
    max-width: 30% !important;;
    height:35rem !important;;
    border-radius: 10px;
    object-fit: cover; /* トリミングを適用 */
    object-position: top; /* 画像の上部を優先して表示 */
    overflow: hidden; /* トリミング部分を隠す */
}

/* 本文 */
.page-body h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
}

.page-body p {
    margin: 1rem 0;
    font-size: 1rem;
}

.page-body ul {
    list-style-type: disc;
    margin: 1rem 0 1rem 2rem;
}

.page-body ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.sub-wrapper{
    margin: 0 2rem;
}

/* パンくずリストのスタイル */
.breadcrumb {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.breadcrumb li {
    display: inline;
}

.breadcrumb li a {
    color: #007BFF;
    text-decoration: none;
}

.breadcrumb li a:hover {
    text-decoration: underline;
}

.breadcrumb li::after {
    content: ">";
    margin: 0 0.5rem;
    color: #999;
}

.breadcrumb li:last-child::after {
    content: "";
}

/* 見出しセクション全体のスタイル */
.section-heading-wrapper {
    background-color: #f5f5f5; /* グレーの背景色 */
    height: auto; /* 固定の高さを解除 */
    width: 100%; /* 横幅を要素全体に広げる */
    display: flex; /* Flexbox を有効にする */
    align-items: center; /* 縦方向の中央揃え */
    justify-content: flex-start; /* 横方向を左寄せ */
    padding: 0.6rem; /* 内側の余白を調整 */
    box-sizing: border-box; /* paddingを含めたサイズ計算 */
}

/* 見出しテキストのスタイル */
.section-heading {
    font-size: 1.3rem !important; /* フォントサイズ */
    font-weight: bold !important; /* 太字 */
    color: #000000 !important; /* テキストの色 */
    margin: 0 !important; /* 不要な余白を排除 */
    padding-left: 1rem;
}


/* 見出し3のスタイル */
.section-subheading {
    font-size: 1rem; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    color: #000000; /* テキストの色 */
    margin: 1.5rem 0; /* 上下の余白 */
    position: relative; /* 下線の位置調整のため */
}

/* 見出し3の下線 */
.section-subheading::after {
    content: "";
    display: block;
    width: 100%; /* 下線の幅 */
    height: 1px; /* 下線の高さ */
    background-color: #dadada; /* 薄いグレーの色 */
    position: absolute;
    bottom: -5px; /* テキストの下に余白を確保 */
    left: 0;
}

/* 本文一塊　section-block */
.section-block {
    margin: 5rem 0;
}

/* ボタン全体のラッパー */
.bottom-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0; /* 上下の余白 */
}

/* ボタンのスタイル */
.bottom-button {
    display: inline-block;
    background-color: #000; /* ボタンの背景色（黒） */
    color: #fff; /* テキストの色（白） */
    font-size: 1rem; /* フォントサイズ */
    text-decoration: none; /* リンクの下線を削除 */
    padding: 0.75rem 1.5rem; /* ボタン内の余白 */
    border-radius: 10px; /* 角を丸くする */
}

/* ホバー時のスタイル */
.bottom-button:hover {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #000000;
}

/* section-block のスタイル */
.section-block-line {
    text-align: center; /* セクション内の中央揃え */
    padding: 2rem 1rem; /* セクションの内側余白 */
}

/* ボタンのスタイル */
.section-block-line .view-more {
    display: inline-block; /* 横幅を文字に合わせる */
    background-color: #06C755; /* 背景色 */
    color: #FFFFFF; /* テキストの色 */
    font-size: 1rem; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    text-decoration: none; /* リンクの下線を削除 */
    padding: 0.75rem 1.5rem; /* ボタン内の上下・左右の余白 */
    border-radius: 10px; /* 角を丸くする */
    transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease; /* ホバー時のアニメーション */
    text-align: center; /* テキストの中央揃え */
    margin: 1.5rem auto; /* 上下の余白を追加し、中央揃え */
}

/* ホバー時のスタイル */
.section-block-line .view-more:hover {
    background-color: #FFFFFF; /* ホバー時の背景色 */
    color: #06C755; /* ホバー時のテキスト色 */
    border: 2px solid #06C755; /* ホバー時のボーダー */
}

/* 画像コンテナのスタイル */
.section-block-line .image-container {
    display: flex; /* フレックスボックスを使用 */
    justify-content: center; /* 水平方向に中央揃え */
    align-items: center; /* 垂直方向に中央揃え（高さが必要な場合） */
    height: 300px; /* コンテナの高さを固定 */
    overflow: hidden; /* コンテナ外の部分を隠す */
    margin: 1.5rem 0; /* 上下の余白 */
}

/* 画像のスタイル */
.section-block-line .article-image {
    width: 100%; /* 横幅を親要素に合わせる */
    height: auto; /* 縦横比を維持 */
    object-fit: cover; /* トリミングを適用 */
}

.map-section {
    text-align: center;
    padding: 20px;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid #ccc; /* 必要なら枠線を追加 */
    border-radius: 8px; /* 角を丸くする */
    overflow: hidden; /* 余分な部分を隠す */
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* PDF */
.pdf-container {
    width: 100%;
    height: 600px; /* 適宜高さ調整 */
    border: 1px solid #000; /* 黒い枠線 */
    border-radius: 8px; /* 角を少し丸める */
    overflow: hidden; /* 枠線が角丸に沿うようにするため */
    margin-top: 1rem;
}

/* 電話用のリンク */
.call-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0066cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
  }

  .call-link:hover {
    background: #004999;
  }

  /* サブ見出しの非表示 */
.sub-wrapper {
    display: none; /* 初期状態で非表示 */
}
.sub-wrapper.active {
    display: block; /* 表示状態 */
}

.section-heading-wrapper {
    cursor: pointer; /* クリック可能に */
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between; /* 左右に配置 */
    align-items: center; /* 垂直方向の中央揃え */
}
.section-heading-wrapper img {
    width: 20px; /* アイコンのサイズを調整 */
    height: 20px;
    margin-right: 30px; /* 左に移動 */

}
.section-heading-wrapper:hover {
    background-color: #ddd;
}

/* 見出しテキストのスタイル */
.section-heading-no {
    font-size: 1.3rem !important; /* フォントサイズ */
    font-weight: bold !important; /* 太字 */
    color: #000000 !important; /* テキストの色 */
    margin: 0 !important; /* 不要な余白を排除 */
    padding-left: 1rem;
}

.section-heading-no span {
    font-size: 1rem; /* 必要に応じて調整 */
    font-weight: bold; /* 太字を薄くする場合 */
    margin-left: 0.5rem;
}

/* 見出しセクション全体のスタイル */
.section-heading-wrapper-no {
    background-color: #f5f5f5; /* グレーの背景色 */
    height: auto; /* 固定の高さを解除 */
    width: 100%; /* 横幅を要素全体に広げる */
    display: flex; /* Flexbox を有効にする */
    align-items: center; /* 縦方向の中央揃え */
    justify-content: flex-start; /* 横方向を左寄せ */
    padding: 0.6rem; /* 内側の余白を調整 */
    box-sizing: border-box; /* paddingを含めたサイズ計算 */
}

/* 見出し3のスタイル */
.section-subheading-no {
    font-size: 1rem; /* フォントサイズ */
    font-weight: bold; /* 太字 */
    color: #000000; /* テキストの色 */
    margin: 1.5rem 0; /* 上下の余白 */
    position: relative; /* 下線の位置調整のため */
}

/* 見出し3の下線 */
.section-subheading-no::after {
    content: "";
    display: block;
    width: 100%; /* 下線の幅 */
    height: 1px; /* 下線の高さ */
    background-color: #dadada; /* 薄いグレーの色 */
    position: absolute;
    bottom: -5px; /* テキストの下に余白を確保 */
    left: 0;
}

.highlight-text {
    font-size: 1.2rem; /* 必要に応じて調整 */
    font-weight: bold; /* 太字にしたい場合 */
}

.sub-wrapper-no{
    margin: 0 2rem;
}

/* ボタン風のデザイン例 */
.pdf-link {
    display: inline-block;
    padding: 12px 20px;
    color: #fff;
    background-color: #007acc;
    text-decoration: none;
    border-radius: 4px;
    font-size: 16px;
    }
    .pdf-link:hover {
    background-color: #005c99;
    }

/* スマートフォンのデザイン調整 */
@media screen and (max-width: 768px) {

    /* タイトル */
    .page-title {
        font-size: 1.3rem;
        margin: 0;
    }

    /* タイトル */
    .page-title2 {
        font-size: 1rem;
    margin-bottom: 0.5rem;
    text-align: center;
    }

        
    /* 本文一塊　section-block */
    .section-block {
        margin: 1rem 0;
    }

    /* 見出しテキストのスタイル */
    .section-heading {
        font-size: 0.8rem !important; /* フォントサイズ */
        font-weight: bold !important; /* 太字 */
        color: #000000 !important; /* テキストの色 */
        margin: 0 !important; /* 不要な余白を排除 */
        padding-left: 0 !important;
        text-align: left;
    }

    /* 画像 */
    .image-container {
        margin: 0.1rem 0;
        text-align: center;
    }

    .article-image {
        max-width: 100%;
        height: auto;
        border-radius: 5px !important;
        margin-top: 0.5rem !important;
    }

    .sub-wrapper{
        margin: 0 1rem;
    }

    /* 見出し3のスタイル */
    .section-subheading {
        font-size: 0.8rem; /* フォントサイズ */
        font-weight: bold; /* 太字 */
        color: #000000; /* テキストの色 */
        margin: 2rem 0; /* 上下の余白 */
        position: relative; /* 下線の位置調整のため */
    }

    /* 本文 */
    .page-body p {
        margin: 1rem 0;
        font-size: 0.8rem;
    }

    .page-body ul li {
        margin-bottom: 0.5rem;
        font-size: 0.8rem;
    }

    /* サボテン画像 */
    .saboten-image{
        height: 150px !important; /* 必要な縦幅を指定 */
        overflow: hidden; /* 余分なコンテンツを隠す */
    }

    /* section-block のスタイル */
    .section-block-line p {
        font-size: 0.8rem;
        margin: 1.2rem 0;
    }

    /* ボタンのスタイル */
    .section-block-line .view-more {
        display: inline-block; /* 横幅を文字に合わせる */
        background-color: #06C755; /* 背景色 */
        color: #FFFFFF; /* テキストの色 */
        font-size: 0.7rem !important; /* フォントサイズ */
        font-weight: bold; /* 太字 */
        text-decoration: none; /* リンクの下線を削除 */
        padding: 0.75rem 1.5rem; /* ボタン内の上下・左右の余白 */
        border-radius: 10px; /* 角を丸くする */
        transition: background-color 0.3s ease, color 0.3s ease, border 0.3s ease; /* ホバー時のアニメーション */
        text-align: center; /* テキストの中央揃え */
        margin: 1.5rem auto; /* 上下の余白を追加し、中央揃え */
    }

    /* ホバー時のスタイル */
    .section-block-line .view-more:hover {
        background-color: #FFFFFF; /* ホバー時の背景色 */
        color: #06C755; /* ホバー時のテキスト色 */
        border: 2px solid #06C755; /* ホバー時のボーダー */
    }

    /* 画像コンテナのスタイル */
    .section-block-line .image-container {
        display: flex; /* フレックスボックスを使用 */
        justify-content: center; /* 水平方向に中央揃え */
        align-items: center; /* 垂直方向に中央揃え（高さが必要な場合） */
        height: 300px; /* コンテナの高さを固定 */
        overflow: hidden; /* コンテナ外の部分を隠す */
        margin: 1.5rem 0; /* 上下の余白 */
    }

    /* 画像のスタイル */
    .section-block-line .article-image {
        width: 100%; /* 横幅を親要素に合わせる */
        height: auto; /* 縦横比を維持 */
        object-fit: cover; /* トリミングを適用 */
    }

    .article-image {
        max-width: 50% !important;;
        height:15rem !important;;
        border-radius: 10px;
        object-fit: cover; /* トリミングを適用 */
        object-position: top; /* 画像の上部を優先して表示 */
        overflow: hidden; /* トリミング部分を隠す */
    }

    
    .title-image {
        height: 7rem  !important;
        border-radius: 10px;
        width: 100%; /* 横幅を親要素に合わせる */
        object-fit: cover; /* トリミングを適用 */
    }

    /* PDF */
    .pdf-container {
        height: 300px; /* 適宜高さ調整 */

    }

    /* サブ見出しの文字サイズ調整 */
    .highlight-text {
        font-size: 1rem; /* 必要に応じて調整 */
        font-weight: bold; /* 太字にしたい場合 */
    }

    .view-more {
        display: block !important; /* ブロック要素にして中央揃えを簡単に */
        margin: 2rem auto !important; /* 上下に余白を追加し、中央揃え */
        width: 15rem !important; /* ボタンの幅を内容に合わせる */
    }

    .section-heading-no{
        font-size: 1rem !important;; /* 必要に応じて調整 */
        font-weight: bold; /* 太字を薄くする場合 */
        /* margin-left: 0.5rem; */
    }


    .section-heading-no span {
        font-size: 0.8rem; /* 必要に応じて調整 */
        font-weight: bold; /* 太字を薄くする場合 */
        margin-left: 0.5rem;
    }

    .sub-wrapper-no{
        margin: 0 1rem;
    }

}

/* タブレットのデザイン調整 */
@media screen and (min-width: 768px) and (max-width: 1200px) {

    /* 画像 */
    .image-container {
        margin: 0.2rem 0;
        text-align: center;
        max-width: 250% !important;
        height: auto !important;
    }

    .article-image {
        max-width: 250% !important;
        height: auto !important;
        border-radius: 5px !important;
        margin-top: 1rem !important;
        object-fit: cover; /* トリミングを適用 */
    }

    /* 画像のスタイル */
    .section-block-line .article-image {
        width: 100%; /* 横幅を親要素に合わせる */
        height: 15rem !important; /* 縦横比を維持 */
        object-fit: cover; /* トリミングを適用 */
        margin-top: 1rem !important;
    }

    .sub-wrapper{
        margin: 0 2rem;
    }
    
    /* 本文 */
    .page-body p {
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    .page-body ul li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* section-block のスタイル */
    .section-block-line p {
        font-size: 0.9rem;
        margin: 1.6rem 0;
        text-align: left;
    }

    .article-image {
        max-width: 25% !important;;
        height:25rem !important;;
        border-radius: 10px;
        object-fit: cover; /* トリミングを適用 */
        object-position: top; /* 画像の上部を優先して表示 */
        overflow: hidden; /* トリミング部分を隠す */
    }






}




