@charset "utf-8";

:root {
    --main-color: #00A696;
    --accent-color: #ef4444;
    --bright-comp-color: #e0f2fe;
    --section-background-color: #f6f9f7;
    --text-color: #1a1a1a;
    --sub-text-color: #555555;
    --submenu-text-color: #6a6a6a;
    --background-color: #ffffff;
    --border-color: #e9ecef;
}

/* すべてのアンカー対象に適用 */
[id] {
    scroll-margin-top: 80px; /* 固定ヘッダーの高さに合わせる */
}

body, h1, h2, h3, p, ul, li, figure, figcaption {
    margin: 0;
    padding: 0;
    font-family: 'IBM Plex Sans JP', 'Meiryo',sans-serif;
    box-sizing: border-box;
}

body {
    color: var(--text-color);
}

.container {
    margin: 0 auto;
    background-color: var(--primary-bg);
    overflow: hidden;
    width: 100%;
}

a {
    text-decoration: none;   
}

a:hover {
    text-decoration-thickness: .25px; /* 線の太さ */
    text-underline-offset: 2px; /* 文字との距離 */
}

a:link,
a:visited {
  color: var(--text-color);
}

a.disabled {
    pointer-events: none; /* マウスイベントを無効化 */
    cursor: default;      /* カーソルを普通の矢印に */
    color: #666;          /* それっぽくグレー表示に（任意） */
    text-decoration: none;/* 下線を消すなど見た目調整 */
  }

.hover_none {
    text-decoration: none!important;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul {
    list-style: none;
}


.content_maxwidth {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.tx_center {
    text-align: center;
}

.mx_auto {
    margin: 0 auto;
}

.mb_6 {
    margin-bottom: 6rem;
}

.mt_6 {
    margin-top: 6rem;
}

.mb_3 {
    margin-bottom: 3rem;
}

.mt_3 {
    margin-top: 3rem;
}

.pb_3 {
    padding-bottom: 3rem;
}

.pt_3 {
    padding-top: 3rem;
}

@media screen and (max-width:1024px) {
    .content_maxwidth {
        max-width: 90%;
    }
}


.aspect_ratio_auto {
    aspect-ratio: auto!important;
}

/* 区切り線 */
.common_border {
    border: solid 1px #aaa;
}

/* sidebar */
.sidebar_layout_container { display: flex; align-items: stretch; gap: 0; margin: 0 auto; padding: 0 10px; }
.sidebar_area { width: 150px; flex-shrink: 0; }
.sidebar_area {
    border-right: solid rgba(34,34,34,.12) 3px;
}
.sidebar_main_content_area { flex-grow: 1; height: 200vh; border-left: 1px solid var(--border-color); padding-left: 32px; }

.sidebar_nav_section {
    position: sticky;
    top: 40px;
    /* サイドバー全体の高さを画面の高さに制限 */
    max-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 7px; /* スクロールバーのスペースを確保 */
    padding-top: 40px;
}

/* スクロールバー全体のデザイン*/
.sidebar_nav_section::-webkit-scrollbar {
    width: 7px; /* スクロールバーの幅 */
}

/* スクロールバーのつまみ（ドラッグする部分）のデザイン */
.sidebar_nav_section::-webkit-scrollbar-thumb {
    background-color: #ccc; /* つまみの色 */
    border-radius: 3px;
    transition: background-color 0.2s;
}

/* つまみにホバーした時の色 */
.sidebar_nav_section::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}

.sidebar_nav_list {
    display: flex;
    flex-direction: column;
}

.sidebar_nav_item .sidebar_nav_link {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 8px;
    color: var(--text-color);
}

/* ▼▼▼ アクティブ時のスタイルを調整 ▼▼▼ */
/* .sidebar_nav_item:not(.has_children).is_active .sidebar_nav_link {
    background-color: var(--bright-comp-color);
    color: var(--main-color);
} */

/* 親メニュー（開閉機能付き）のリンク */
.sidebar_nav_item.has_children > .sidebar_nav_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.sidebar_nav_item.has_children.is_active > .sidebar_nav_link {
    background-color: var(--bright-comp-color);
    color: var(--main-color);
}

/* 矢印アイコン */
.sidebar_nav_item.has_children > .sidebar_nav_link::after {
    content: '';
    display: block;
    width: 9px;
    height: 9px;
    border-bottom: 2px solid var(--sub-text-color);
    border-right: 2px solid var(--sub-text-color);
    transition: transform 0.3s ease;
    transform: translateY(-2px) rotate(-135deg); /* 開いている状態（上向き） */
}

.sidebar_nav_item.has_children.is_active > .sidebar_nav_link::after {
     border-color: var(--main-color);
}

.sidebar_nav_item.is_closed > .sidebar_nav_link::after {
    transform: translateY(0) rotate(45deg); /* 閉じた状態（下向き） */
}

/* サブメニュー */
.sidebar_submenu_list {
    padding-left: 12px;
    margin: 4px 0 12px;
    overflow: hidden;
    max-height: 500px;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.sidebar_submenu_link {
    display: block;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--submenu-text-color);
    border-radius: 6px;
    font-weight: 500;
}

.sidebar_submenu_link:hover {
    text-decoration: underline;
}

.sidebar_submenu_item.is_active .sidebar_submenu_link {
    color: var(--main-color);
    font-weight: 700;
}

.sidebar_nav_item.is_closed .sidebar_submenu_list {
    max-height: 0;
    margin-top: 0;
    margin-bottom: 0;
}

/* リンク要素を基準点にする */
.sidebar_nav_link.has_tooltip {
    position: relative;
    display: flex; /* 横並びにする */
    justify-content: space-between; /* 両端に寄せる */
    align-items: center;
}

/* インフォメーションマーク "i" のスタイル */
/* .info_mark {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 14px;
    font-family: serif;
    cursor: help;
} */

/* ツールチップ本体のスタイル（最初は非表示） */
.tooltip_text {
    position: absolute;
    bottom: 110%; /* マークの上に表示 */
    left: 50%;
    transform: translateX(-50%);
    width: 220px; /* 横幅を指定 */
    background-color: #333;
    color: white;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 11px; /* 小さい文字 */
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    
    /* 非表示の状態 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 10;
}

/* ツールチップの吹き出しの矢印 */
.tooltip_text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* リンクにホバーした時にツールチップを表示 */
.sidebar_nav_link.has_tooltip:hover .tooltip_text {
    opacity: 1;
    visibility: visible;
}

.sidebar_newtab_img {
    padding-left: 0;
    width: 12px;
}

@media screen and (max-width: 1024px) {
    .sidebar_area { display: none; }
    .sidebar_main_content_area { border-left: none; padding-left: 0; }
    .sidebar_layout_container { padding: 0 20px; }
}