p {
  margin: 0 0 1em;
}

#breadCrumbs {
  margin: 20px auto 15px;
}
#breadCrumbs .pieceBody {
  margin: -5px auto 0;
}
#breadCrumbs ol {
  list-style: none; /* 数字のリストスタイルを非表示にする */
  display: flex; /* 明示的にflexコンテナにする */
  flex-wrap: wrap; /* 必要に応じて折り返す */
}
#breadCrumbs li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5em;
}


/* 基本スタイル */
:root {
    --primary-color: #611987;
    --secondary-color: #4c0072;
    --accent-color: #e370bd;
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f4f4f4;
    --header-height: 80px;
}

/* back btn*/
.back-btn {
    display: none;
    text-align: center;
}

.back-btn a {
    display: inline-block;
    padding: 5px 80px;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
}

.contentGpArticleDoc+.back-btn {
    display: block;
}

/* adobeReader download*/
.adobeReader,
.temp7 {
    margin: 1.5em 0 1em;
    padding: 10px 20px 10px 196px;
    border: 1px solid #ffaaaa;
    background: #fff3f3 url("./images/adobe_bn.png") no-repeat 20px center;
}

/* page title*/
#pageTitle {
    margin-bottom: 10px !important;
}

#pageTitle h1 {
    padding: 15px 15px 10px;
    border-top: 1px solid #999;
    border-bottom: 3px solid #dcdcdc;
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    font-size: 150%;
}

.contentGpArticleDoc .date {
    margin-bottom: 1em;
    text-align: right;
}

/* container*/
#container {
    width: 100%;
    margin: 0 auto;
}

/* header*/
#pageHeaderBody {
    clear: both;
    position: relative;
    /*width: 1200px;*/
    margin: 0 auto;
}

/* main*/
#main {
    clear: both;
    /*width: 1200px;*/
    margin: 0 auto 45px;
}

#main::after {
    content: "";
    clear: both;
    display: block;
}

/* wrapper(right column)*/
#wrapper {
    /*float: right;*/
    clear: both;
    /*width: 980px;*/
    margin: 0;
}



.page-header .hamburger-menu span {
    background-color: var(--text-color);
}

.global-nav ul li a {
    font-size: 18px;
}

.page-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(255, 230, 247, 0.95) !important;
}

#breadCrumbs>.pieceContainer {
    /*width: 1200px;*/
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: transparent;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px;
}

.global-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
}

.global-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.page-header:not(.scrolled) .global-nav a {
    color: var(--text-color);
}

.global-nav a:hover,
.global-nav li.current a {
    background-color: var(--primary-color);
    color: white !important;
    text-shadow: none;
    opacity: 1;
}

.hamburger-menu {
    display: none;
}



.page-content {
    position: relative;
    z-index: 5;
    background-color: transparent;
    margin-bottom: 50px;
}

.main-content-wrapper {
    position: relative;
    background-color: white;
    z-index: 10;
    padding-top: 80px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.more-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
}

.more-link:hover {
    color: #fff;
    opacity: 0.8;
}

.sidebar-widget {
    background-color: #f7f5f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0d8e6;
}

.sidebar-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-address,
.footer-copyright {
    text-align: left;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1.0;
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-address,
    .footer-copyright {
        text-align: center;
    }
}

/* 地図モーダル */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.map-modal-overlay.active .map-modal-content {
    transform: scale(1);
}

.map-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}

.map-modal-close:hover {
    transform: rotate(90deg);
    background-color: #555;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Mega Menu Styles --- */
.global-nav>ul>li {
    position: relative;
}

.mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    z-index: -1;
    border-radius: 8px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease, visibility 0s 0.4s;
}

@media (min-width: 1025px) {
    .global-nav li.has-submenu:hover>.mega-menu {
        visibility: visible;
        z-index: 1100;
        clip-path: inset(0 0 0 0);
        transition-delay: 0s;
    }
}

.mega-menu-content {
    display: flex;
    gap: 50px;
}

.submenu-column h4 {
    color: rgb(255, 255, 130);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu-column ul {
    list-style: none;
    flex-direction: column;
    gap: 5px;
}

.submenu-column a {
    color: white !important;
    font-weight: normal;
    font-size: 0.95rem;
    padding: 8px 0;
    text-shadow: none;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease !important;
}

.submenu-column a:hover {
    color: white !important;
    opacity: 0.8;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.submenu-toggle {
    display: none;
}

@media (min-width: 1025px) {
    .mega-menu.mega-menu-single-column {
        white-space: normal;
        width: auto;
        min-width: 280px;
        padding: 20px 30px;
    }

    .mega-menu.mega-menu-single-column .mega-menu-content {
        flex-direction: column;
        gap: 0;
    }

    .mega-menu.mega-menu-single-column .submenu-column h4 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .mega-menu.mega-menu-single-column .submenu-column {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mega-menu.mega-menu-single-column .submenu-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .global-nav {
        flex-grow: 0;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
        z-index: 1001;
    }

    .global-nav {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 20px;
        padding-bottom: 30px;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        visibility: hidden;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.5s ease, visibility 0s 0.5s;
    }

    .global-nav.active {
        visibility: visible;
        clip-path: inset(0 0 0 0);
        transition: clip-path 0.5s ease, visibility 0s;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .global-nav li {
        width: 100%;
        text-align: left;
    }

    .global-nav a {
        display: block;
        padding: 20px;
        color: var(--text-color) !important;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        text-shadow: none;
        width: auto;
    }

    .global-nav li:not(.has-submenu) a {
        width: 100%;
    }

    .global-nav a:hover,
    .global-nav li.current a {
        background-color: #f0f0f0;
        color: var(--text-color) !important;
    }

    .global-nav li.current>a {
        background-color: #e9e5ed;
    }

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        border-radius: 3px;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 9px;
    }

    .hamburger-menu span:nth-child(3) {
        top: 18px;
    }

    /*.page-header:not(.scrolled) .hamburger-menu span { background: white; }*/
    .page-header.scrolled .hamburger-menu span {
        background: var(--text-color);
    }

    .hamburger-menu.active span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .hamburger-menu.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }

    .global-nav li.has-submenu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .global-nav li.has-submenu>a {
        border-bottom: none;
        flex-grow: 1;
    }

    .submenu-toggle {
        display: block;
        width: 60px;
        height: 60px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        border-left: 1px solid #eee;
    }

    .submenu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-style: solid;
        border-color: var(--text-color);
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -75%) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .submenu-toggle[aria-expanded="true"]::before {
        transform: translate(-50%, -25%) rotate(225deg);
    }

    .global-nav .mega-menu {
        display: block;
        position: static;
        transform: none;
        width: 100%;
        background-color: #f7f5f9;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        z-index: auto;
        border-radius: 0;
        white-space: normal;
        clip-path: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .global-nav .mega-menu.active {
        max-height: 500px;
    }

    .global-nav .mega-menu-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .global-nav .submenu-column {
        padding: 10px 20px;
    }

    .global-nav .submenu-column h4 {
        display: none;
    }

    .global-nav .submenu-column ul {
        gap: 0;
    }

    .global-nav .submenu-column a {
        color: var(--light-text-color) !important;
        padding: 12px 30px;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .global-nav .submenu-column a:hover {
        background-color: #e9e5ed !important;
    }

    .submenu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 50px;
    }


}

#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #555;
    opacity: 1;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 画像モーダル */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #333;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}

.image-modal-close:hover {
    transform: rotate(90deg);
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 24px;
    }
}

/* --- CMS生成コンテンツ('関連ブログ')のスタイル調整 --- */
#relationBanner .pieceContainer,
#relationBanner .pieceBody {
    padding: 0;
    margin: 0;
}

#relationBanner .ad_banner {
    list-style: none;
    padding: 0;
    margin: 0;
}

#relationBanner .ad_banner .banner {
    margin-bottom: 15px;
}

#relationBanner .ad_banner .banner:last-child {
    margin-bottom: 0;
}

#relationBanner .ad_banner .banner a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#relationBanner .ad_banner .banner a:hover {
    transform: translateY(-3px);
    opacity: 1;
}


/*追加CSS*/

/**************************************/

p {
  margin: 0 0 1em;
}

#breadCrumbs {
  margin: 20px auto 15px;
}
#breadCrumbs .pieceBody {
  margin: -5px auto 0;
}
#breadCrumbs ol {
  list-style: none; /* 数字のリストスタイルを非表示にする */
  display: flex; /* 明示的にflexコンテナにする */
  flex-wrap: wrap; /* 必要に応じて折り返す */
}
#breadCrumbs li:not(:last-child)::after {
  content: ">";
  margin: 0 0.5em;
}
/* --- サイドバー（バナー）とメインコンテンツを横並びにする設定 --- */
#mainContainer {
    display: flex;
    flex-direction: row-reverse;
    gap: 40px;
    align-items: flex-start;
    padding-top: 20px;
}

#wrapper {
    flex: 1;
    min-width: 0;
}

#links {
    width: 240px;
    flex-shrink: 0;
}

/* スマホ表示（画面幅が狭い時）の調整 */
@media (max-width: 850px) {
    #mainContainer {
        flex-direction: column;
        gap: 20px;
    }

    #links {
        width: 100%;
        order: 2;
    }

    #wrapper {
        order: 1;
    }

    #relationBanner .ad_banner {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
}

/* --- ページ全体の高さを調整して空白を消す --- */
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    /* ページ全体を最低でも画面いっぱいの高さにする */
    margin: 0;
    padding: 0;
}

#main {
    flex: 1;
}

/* フッター自体の余計なマージンをリセット */
.page-footer {
    margin-top: auto;
    position: relative;
    z-index: 10;
}

/* 拡張機能などが勝手に追加する要素による隙間を防止 */
body>div:last-of-type {
    margin-bottom: 0 !important;
}




/* 基本スタイル */
:root {
    --primary-color: #611987;
    --secondary-color: #4c0072;
    --accent-color: #e370bd;
    --text-color: #333;
    --light-text-color: #666;
    --bg-color: #f4f4f4;
    --header-height: 80px;
}

/* back btn*/
.back-btn {
    display: none;
    text-align: center;
}

.back-btn a {
    display: inline-block;
    padding: 5px 80px;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
}

.contentGpArticleDoc+.back-btn {
    display: block;
}

/* adobeReader download*/
.adobeReader,
.temp7 {
    margin: 1.5em 0 1em;
    padding: 10px 20px 10px 196px;
    border: 1px solid #ffaaaa;
    background: #fff3f3 url("./images/adobe_bn.png") no-repeat 20px center;
}

/* page title*/
#pageTitle {
    margin-bottom: 10px !important;
}

#pageTitle h1 {
    padding: 15px 15px 10px;
    border-top: 1px solid #999;
    border-bottom: 3px solid #dcdcdc;
    background: linear-gradient(to bottom, #ffffff 0%, #e6e6e6 100%);
    font-size: 150%;
}

.contentGpArticleDoc .date {
    margin-bottom: 1em;
    text-align: right;
}

/* container*/
#container {
    width: 100%;
    margin: 0 auto;
}

/* header*/
#pageHeaderBody {
    clear: both;
    position: relative;
    /*width: 1200px;*/
    margin: 0 auto;
}

/* main*/
#main {
    clear: both;
    /*width: 1200px;*/
    margin: 0 auto 45px;
}

#main::after {
    content: "";
    clear: both;
    display: block;
}

/* wrapper(right column)*/
#wrapper {
    /*float: right;*/
    clear: both;
    /*width: 980px;*/
    margin: 0;
}



.page-header .hamburger-menu span {
    background-color: var(--text-color);
}

.global-nav ul li a {
    font-size: 18px;
}

.page-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    background-color: rgba(255, 230, 247, 0.95) !important;
}

#breadCrumbs>.pieceContainer {
    /*width: 1200px;*/
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: transparent;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.page-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 45px;
}

.global-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.global-nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    overflow: visible;
}

.global-nav a {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.page-header:not(.scrolled) .global-nav a {
    color: var(--text-color);
}

.global-nav a:hover,
.global-nav li.current a {
    background-color: var(--primary-color);
    color: white !important;
    text-shadow: none;
    opacity: 1;
}

.hamburger-menu {
    display: none;
}



.page-content {
    position: relative;
    z-index: 5;
    background-color: transparent;
    margin-bottom: 50px;
}

.main-content-wrapper {
    position: relative;
    background-color: white;
    z-index: 10;
    padding-top: 80px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    padding: 80px 0;
}

.more-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 30px;
    background-color: var(--secondary-color);
    color: #fff;
    font-weight: 700;
    border-radius: 5px;
}

.more-link:hover {
    color: #fff;
    opacity: 0.8;
}

.sidebar-widget {
    background-color: #f7f5f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0d8e6;
}

.sidebar-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-footer {
    background-color: var(--secondary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-address,
.footer-copyright {
    text-align: left;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    opacity: 1.0;
    color: white;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-address,
    .footer-copyright {
        text-align: center;
    }
}

/* 地図モーダル */
.map-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.map-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.map-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 800px;
    height: 80vh;
    max-height: 600px;
    position: relative;
    padding: 0;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.map-modal-overlay.active .map-modal-content {
    transform: scale(1);
}

.map-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #333;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 35px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}

.map-modal-close:hover {
    transform: rotate(90deg);
    background-color: #555;
}

.map-container {
    width: 100%;
    height: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}


/* --- Mega Menu Styles --- */
.global-nav>ul>li {
    position: relative;
}

.mega-menu {
    position: absolute;
    left: 50%;
    top: calc(100% + 5px);
    transform: translateX(-50%);
    white-space: nowrap;
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 30px 40px;
    z-index: -1;
    border-radius: 8px;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease, visibility 0s 0.4s;
}

@media (min-width: 1025px) {
    .global-nav li.has-submenu:hover>.mega-menu {
        visibility: visible;
        z-index: 1100;
        clip-path: inset(0 0 0 0);
        transition-delay: 0s;
    }
}

.mega-menu-content {
    display: flex;
    gap: 50px;
}

.submenu-column h4 {
    color: rgb(255, 255, 130);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.submenu-column ul {
    list-style: none;
    flex-direction: column;
    gap: 5px;
}

.submenu-column a {
    color: white !important;
    font-weight: normal;
    font-size: 0.95rem;
    padding: 8px 0;
    text-shadow: none;
    background-color: transparent !important;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease !important;
}

.submenu-column a:hover {
    color: white !important;
    opacity: 0.8;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.submenu-toggle {
    display: none;
}

@media (min-width: 1025px) {
    .mega-menu.mega-menu-single-column {
        white-space: normal;
        width: auto;
        min-width: 280px;
        padding: 20px 30px;
    }

    .mega-menu.mega-menu-single-column .mega-menu-content {
        flex-direction: column;
        gap: 0;
    }

    .mega-menu.mega-menu-single-column .submenu-column h4 {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 10px;
    }

    .mega-menu.mega-menu-single-column .submenu-column {
        padding-bottom: 20px;
        margin-bottom: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .mega-menu.mega-menu-single-column .submenu-column:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .global-nav {
        flex-grow: 0;
    }

    .hamburger-menu {
        display: block;
        cursor: pointer;
        width: 30px;
        height: 22px;
        position: relative;
        z-index: 1001;
    }

    .global-nav {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        max-height: calc(100vh - var(--header-height));
        background-color: rgba(255, 255, 255, 0.98);
        padding-top: 20px;
        padding-bottom: 30px;
        overflow-y: auto;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
        visibility: hidden;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.5s ease, visibility 0s 0.5s;
    }

    .global-nav.active {
        visibility: visible;
        clip-path: inset(0 0 0 0);
        transition: clip-path 0.5s ease, visibility 0s;
    }

    .global-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .global-nav li {
        width: 100%;
        text-align: left;
    }

    .global-nav a {
        display: block;
        padding: 20px;
        color: var(--text-color) !important;
        border-bottom: 1px solid #eee;
        border-radius: 0;
        text-shadow: none;
        width: auto;
    }

    .global-nav li:not(.has-submenu) a {
        width: 100%;
    }

    .global-nav a:hover,
    .global-nav li.current a {
        background-color: #f0f0f0;
        color: var(--text-color) !important;
    }

    .global-nav li.current>a {
        background-color: #e9e5ed;
    }

    .hamburger-menu span {
        display: block;
        position: absolute;
        height: 3px;
        width: 100%;
        border-radius: 3px;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .hamburger-menu span:nth-child(1) {
        top: 0;
    }

    .hamburger-menu span:nth-child(2) {
        top: 9px;
    }

    .hamburger-menu span:nth-child(3) {
        top: 18px;
    }

    /*.page-header:not(.scrolled) .hamburger-menu span { background: white; }*/
    .page-header.scrolled .hamburger-menu span {
        background: var(--text-color);
    }

    .hamburger-menu.active span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .hamburger-menu.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }

    .global-nav li.has-submenu {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid #eee;
    }

    .global-nav li.has-submenu>a {
        border-bottom: none;
        flex-grow: 1;
    }

    .submenu-toggle {
        display: block;
        width: 60px;
        height: 60px;
        background-color: transparent;
        border: none;
        cursor: pointer;
        position: relative;
        border-left: 1px solid #eee;
    }

    .submenu-toggle::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 10px;
        height: 10px;
        border-style: solid;
        border-color: var(--text-color);
        border-width: 0 2px 2px 0;
        transform: translate(-50%, -75%) rotate(45deg);
        transition: transform 0.3s ease;
    }

    .submenu-toggle[aria-expanded="true"]::before {
        transform: translate(-50%, -25%) rotate(225deg);
    }

    .global-nav .mega-menu {
        display: block;
        position: static;
        transform: none;
        width: 100%;
        background-color: #f7f5f9;
        backdrop-filter: none;
        padding: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        z-index: auto;
        border-radius: 0;
        white-space: normal;
        clip-path: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .global-nav .mega-menu.active {
        max-height: 500px;
    }

    .global-nav .mega-menu-content {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .global-nav .submenu-column {
        padding: 10px 20px;
    }

    .global-nav .submenu-column h4 {
        display: none;
    }

    .global-nav .submenu-column ul {
        gap: 0;
    }

    .global-nav .submenu-column a {
        color: var(--light-text-color) !important;
        padding: 12px 30px;
        font-size: 0.9rem;
        font-weight: 400;
    }

    .global-nav .submenu-column a:hover {
        background-color: #e9e5ed !important;
    }

    .submenu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        margin-top: 50px;
    }


}

#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: #555;
    opacity: 1;
}

#back-to-top svg {
    width: 24px;
    height: 24px;
}

/* 画像モーダル */
.image-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.image-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-overlay.active .image-modal-content {
    transform: scale(1);
}

.image-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.image-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background-color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: #333;
    z-index: 10;
    transition: transform 0.2s, background-color 0.2s;
}

.image-modal-close:hover {
    transform: rotate(90deg);
    background-color: #f0f0f0;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        line-height: 35px;
        font-size: 24px;
    }
}

/* --- CMS生成コンテンツ('関連ブログ')のスタイル調整 --- */
#relationBanner .pieceContainer,
#relationBanner .pieceBody {
    padding: 0;
    margin: 0;
}

#relationBanner .ad_banner {
    list-style: none;
    padding: 0;
    margin: 0;
}

#relationBanner .ad_banner .banner {
    margin-bottom: 15px;
}

#relationBanner .ad_banner .banner:last-child {
    margin-bottom: 0;
}

#relationBanner .ad_banner .banner a {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#relationBanner .ad_banner .banner a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/*追加*/
/* --- 1. ページ全体の背景と構造 --- */
html { height: 100%; }
body { 
    display: flex; 
    flex-direction: column; 
    min-height: 100%; 
    margin: 0 !important; 
    background-color: #f8f9fa; /* ページ全体の背景を少し落ち着いた色に */
}
#main { flex: 1; width: 100%; }
.page-footer { margin-top: auto; }

/* ロゴのホバー無効化 */
.logo a:hover { opacity: 1 !important; background-color: transparent !important; }

/* --- 2. 記事エリア（#wrapper）をカードデザインにする --- */
#wrapper {
    flex: 1;
    min-width: 0;
    background-color: #ffffff; /* 記事エリアを白く浮かび上がらせる */
    padding: 40px;            /* 中に余裕を持たせる */
    border-radius: 12px;       /* 角を少し丸める */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05); /* 柔らかい影をつけて立体感を出す */
    margin-bottom: 20px;
}

/* タイトル部分の装飾をカードに合わせる */
#pageTitle {
    margin: -40px -40px 30px -40px !important; /* カードのパディングを相殺して上端に合わせる */
}
#pageTitle h1 {
    border-top: none !important;
    border-radius: 12px 12px 0 0; /* 上側だけ角丸 */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%) !important;
    padding: 30px 40px !important;
    color: #333;
    font-size: 1.6rem;
}

/* --- 3. PC版レイアウト --- */
#mainContainer {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 50px;
}
#links { width: 180px; flex-shrink: 0; }

/* バナーの2列設定 */
.ad_banner {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    justify-content: center;
}
.ad_banner .banner { margin: 0 !important; width: 100%; }

/* --- 4. スマホ・タブレット版（1024px以下）の調整 --- */
@media (max-width: 1024px) {
    body { background-color: #ffffff; } /* スマホはスッキリ白背景 */
    #mainContainer { display: block; padding: 10px; }
    
    #wrapper { 
        padding: 20px; 
        border-radius: 0; 
        box-shadow: none; /* スマホではカード感を抑えて読みやすさ優先 */
        border-top: 1px solid #eee;
    }
    
    #pageTitle { margin: -20px -20px 20px -20px !important; }
    #pageTitle h1 { 
        padding: 20px !important; 
        font-size: 1.3rem !important; 
        border-radius: 0;
    }

    /* パンくずリストの上限ガード */
    #breadCrumbs ol {
        display: flex !important;
        flex-wrap: nowrap !important;
        font-size: clamp(10px, 3vw, 14px) !important; 
        white-space: nowrap !important;
        padding: 10px 0 !important;
    }

    /* バナーと戻るボタンの調整 */
    #links { width: 100% !important; margin: 20px 0 !important; display: block !important; }
    .ad_banner .banner { width: calc(50% - 5px) !important; }
    .back-btn { display: block !important; margin: 30px 0 !important; }

    /* Adobe Readerボックス */
    .adobeReader, .temp7 { padding: 15px !important; background-image: none !important; }

    /* 電話番号リンクの色固定 */
    .footer-address a[href^="tel"], .footer-address a { color: #ffffff !important; text-decoration: none !important; }
}

/* 拡張機能などのゴミ要素削除 */
body > div[shadowrootmode], body > div.common, body > ul.popup.common { display: none !important; }