/* 背景と全体のスタイル */
body {
    margin: 0;
    font-family: "Zen Kaku Gothic New", Arial, sans-serif;
    font-size: 1em;
    font-weight: 400;
    background-color: #F7F7F8;
    color: #030229;
    /* 背景色 */
}

a {
    text-decoration: none;
    color: #0088CC;
}

.container {
    max-width: 1080px;
    margin: 20px auto;
    display: flex;
    gap: 30px;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.flex-basis-300 {
    flex-basis: 300px;
}

.flex-basis-200 {
    flex-basis: 220px;
}

.items-center {
    align-items: center;
}

.flex-1 {
    flex: 1;
    gap: 45px;
}

.gap-15 {
    gap: 15px;
}

.gap-4 {
    gap: 20px;
}

.ma-b-30 {
    margin-bottom: 30px;
}

/* ヘッダーのスタイル */
header {
    padding: 16px;
}

header h1 {
    margin: 0;
}

/* サイドメニューのスタイル */
nav {
    background-color: #fff;
    width: 250px;
    padding: 16px;
    height: fit-content;
    position: sticky;
    top: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

nav h3 {
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 1em;
}


nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}


nav button,
nav button>a {
    background: none;
    border: none;
    font: inherit;
    font-weight: 500;
    color: inherit;
    cursor: pointer;
    outline: inherit;
    width: 100%;
    text-align: left;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav>ul>li,
nav button>a {
    font-size: 0.9em;
    margin-bottom: 15px;
    text-decoration: none;
    padding: 0 0 0 10px;
}

nav button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

nav ul ul {
    margin-top: 8px;
    padding-left: 16px;
}

/* カウンタの初期化 */
ol {
    margin-top: 8px;
    counter-reset: list-counter;
    padding-left: 16px;
}

ol li {
    list-style: none;
    counter-increment: list-counter;
    position: relative;
    padding-left: 20px;
    display: flex;
    align-items: center;
}

ol li::before {
    content: counter(list-counter) ". ";
    position: absolute;
    left: 0;
    color: #0088CC;
    display: flex;
    align-items: center;
    height: 100%;
}

/* リンクのスタイル�調整 */
ol li a {
    display: flex;
    align-items: center;
    min-height: 17px;
}

nav a {
    color: #0088CC;
    /* リンクカラー */
    text-decoration: none;
    display: block;
    padding: 5px 0;
    border-radius: 4px;
    transition: background-color 0.3s;
}

nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* メインコンテンツのスタイル */
main {
    padding: 24px;
    background-color: #ffffff;
    flex: 1;
    color: #343a40;
    /* テキストカラー */
}

main h2 {
    color: #605BFF;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 0 30px;
}

main p {
    margin-bottom: 16px;
    line-height: 1.6;
}


.bg-card {
    background-color: #F8FDFF;
}

.bg-card p:first-child {
    font-weight: 600;
    margin: 0;
    padding: 10px;
}


.bg-card ul,
.bg-card ol {
    list-style-type: none;
    margin-top: 0;
    padding-left: 10px;
}

.bg-card ul li,
.bg-card ol li {
    font-size: 0.9em;
    padding-bottom: 8px;
}

.text-card-foreground {
    color: #343a40;
}

.shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.rounded {
    border-radius: 8px;
}

.text-primary {
    color: #007bff;
}

.hover\:underline:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* 矢印のスタイル */
.arrow {
    width: 6px;
    height: 6px;
    border-right: 2px solid #0088CC;
    border-bottom: 2px solid #0088CC;
    transform: rotate(-135deg);
    /* 上向き */
    transition: transform 0.3s ease;
    margin-left: 10px;
    flex-shrink: 0;
    margin-top: 5px;
}

/* アクティブ時の矢印 */
.active .arrow {
    transform: rotate(45deg);
    /* 下向き */
    margin-top: 0px;
}

/* 右向き矢印 */
.arrow-right {
    width: 6px;
    height: 6px;
    border-right: 2px solid #0088CC;
    border-bottom: 2px solid #0088CC;
    transform: rotate(-45deg);
    /* 右向き */
    margin-left: 10px;
    flex-shrink: 0;
}

/* ボタンのスタイル調整 */
nav button {
    display: flex;
    align-items: center;
    padding-right: 10px;
}

/* リンク内の矢印配置調整 */
nav button>a {
    display: flex;
    align-items: center;
    width: 100%;
}