/* ベースレイアウト */
.container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 100px;
    padding: 20px 8px;
}

.column-content {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.sidebar {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .column-content {
        order: 1;
    }
}

.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
}


.article-text {
    font-size: clamp(1.4rem, 3.3vw, 1.8rem);
    margin-top: 30px;
}
.article-image {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.article-summary {
    font-size: clamp(1.4rem, 3.3vw, 1.8rem);
    margin-bottom: 20px;
    color: #555;
}

.article-content h2 {
    font-size: clamp(1.6rem, 3.3vw, 2rem);
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1262b2;
}

.article-content p {
    color: #333;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.recommended-articles ul {
    list-style-type: none;
    padding: 0;
}

.recommended-articles ul li {
    margin-bottom: 10px;
}

.recommended-articles ul li a {
    text-decoration: none;
    color: #1262b2;
}

/* =====ハンバーガーメニュstyle===== */
.openbtn {
    display: block;
    position: relative;
    cursor: pointer;
    width: 60px;
    height: 50px;
    border-radius: 5px;
    z-index: 30;
}

.openbtn .openbtn-area {
    transition: all 0.4s;
}

.openbtn span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 10px;
    height: 3px;
    background: #4b6aa5;
    width: 45%;
}

.page-id-89 .openbtn span {
    background: #fff;
}

.openbtn.active span {
    background: #f7f5f5;
}

.openbtn span:nth-of-type(1) {
    top: 15px;
}

.openbtn span:nth-of-type(2) {
    top: 23px;
}

.openbtn span:nth-of-type(3) {
    top: 31px;
}

.openbtn.active .openbtn-area {
    transform: rotateY(-360deg);
}

.openbtn.active span:nth-of-type(1) {
    top: 18px;
    left: 13px;
    transform: translateY(6px) rotate(-135deg);
    width: 30%;
}

.openbtn.active span:nth-of-type(2) {
    opacity: 0;
}

.openbtn.active span:nth-of-type(3) {
    top: 30px;
    left: 13px;
    transform: translateY(-6px) rotate(135deg);
    width: 30%;
}

.mask-menu-item {
    font-size: 24px;
    margin-bottom: 12px;
    color: #ffffff;
}
.mask-menu-item a {
    color: #ffffff;
}

#mask-menu.show {
    opacity: 0.9;
    transform: translate(0);
}
#mask-menu {
    color: #fff;
    transition: all 0.5s;
    display: grid;
    place-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #4b6aa5;
    z-index: 10;
    cursor: pointer;
    transform: translate(100%);
}

/* =====headerstyle===== */
.site-header {
    min-height: 100px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    padding: 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.header_siteid {
    padding: 0;
}

.header_siteid a.siteid {
    background-size: 240px 48px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    display: inline;
}

.main-nav ul li a {
    text-decoration: none;
    color: #333;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.main-nav ul li a:hover {
    color: #1262b2;
}

.cta-button .button {
    background-color: #1262b2;
    color: #fff;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button .button:hover {
    background-color: #0b4a8a;
}

/* =====吹き出しstyle===== */

/* イントロ受験生の吹き出し */
.intro-chat-bubble {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* 吹き出しとアイコンの間隔を調整 */
    margin: 10px 0 5px;
}

.intro-chat-bubble .avatar {
    text-align: center;
}

.intro-chat-bubble .avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%; /* アイコンを丸くする */
}

.intro-chat-bubble .avatar-name {
    font-size: 1rem;
    color: #666;
}

.intro-chat-bubble .bubble {
    background-color: #d0ebff; /* 背景色をそのまま適用 */
    color: #000;
    padding: 12px 10px;
    border-radius: 15px;
    font-size: 1.6rem;
    line-height: 1.8;
    max-width: 80%;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1); /* 影を追加 */
    border-top-left-radius: 0; /* 左上を直角にする */
}

@media screen and (max-width: 768px) {
    body {
        padding-left: 0;
    }
    .container {
        padding: 20px 8px 8px;
    }
    .column-content {
        padding: 12px 5px;
    }
    .header_siteid a.siteid {
        background-size: 120px 25px;
    }
    .main-nav {
        display: none;
    }
    .site-header {
        min-height: 60px;
    }
}

.chat-card {
    width: 100%;
    padding: 20px 6px;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* メインの吹き出し */
.chat {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.chat-bubble-left, .chat-bubble-right {
    display: flex;
    align-items: flex-start;
}

.chat-bubble-left {
    flex-direction: row;
}

.chat-bubble-right {
    justify-content: flex-end;
}

.chat-bubble-right .bubble {
    order: 1;
}

.chat-bubble-right .avatar {
    order: 2;
}

.avatar {
    text-align: center;
    margin: 0 10px;
}

.avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.avatar-name {
    font-size: 1rem;
}

.bubble {
    max-width: 80%;
    padding: 12px 10px; 
    border-radius: 15px;
    font-size: 16px; 
    line-height: 1.6;
    box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
}

.bubble-left {
    background-color: #f0f0f0; 
    color: #333333; 
    border-top-left-radius: 0;
}

.bubble-right {
    background-color: #d0ebff;
    color: #000000;
    border-top-right-radius: 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* 吹き出し内の重要部分に引くアンダーラインcss */
.important {
    background-color: #ffff99; /* 薄い黄色のマーカー */
    padding: 0 2px;
    font-weight: bold;
    color: inherit;
    border-radius: 2px;
}

/* article-titleのスタイル調整 */
.article-title {
    font-size: clamp(1.8rem, 3.3vw, 2.4rem);
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.article-title::before,
.article-title::after {
    content: '';
    display: block;
    height: 2px;
    background-color: #1262b2;
    width: 50px;
    margin: 10px auto;
}

.article-title::before {
    margin-bottom: 10px;
}

.article-title::after {
    margin-top: 10px;
}

/* article-textのスタイル調整 */
.article-text {
    font-size: clamp(1.4rem, 3.3vw, 1.8rem);
    margin-top: 30px;
    line-height: 1.8;
    color: #333;
}

/* article-content h2 見出し装飾 */
.article-content h2 {
    font-size: clamp(1.6rem, 3.3vw, 2rem);
    margin-top: 20px;
    margin-bottom: 10px;
    color: #1262b2;
    border-left: 5px solid #1262b2;
    padding: 10px;
    background-color: #f0f8ff;
    border-radius: 5px;
}

/* article-summaryのスタイル調整 */
.article-summary {
    font-size: clamp(1.4rem, 3.3vw, 1.8rem);
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
}

/* breadcrumbのスタイル調整 */
.breadcrumb {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    padding: 5px 10px;
    border-radius: 5px;
}


.recommended-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 12px; /* 行間・列間のスペース */
}

.recommended-article-item {
    width: calc(50% - 6px); /* 2列で横並び。gapの半分を引いて調整 */
    margin-bottom: 0; /* gapで調整するので不要 */
}

.recommended-article-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.recommended-article-thumb {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    display: block;
}

.recommended-article-title {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #222;
    text-align: center;
    line-height: 1.4;
    width: 100%;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0 auto;
}