@charset "UTF-8";

/* ============================================================
   1. 通常のワンポイント (usuge_point) 用スタイル
   ============================================================ */
.box {
    display: block;
    padding: 30px;
    box-sizing: border-box;
    margin: 0 0 20px;
    width: 100% !important;
}
.box.is-bg-lt-blue { background-color: #EAF6FD; }
.box.is-bg-lt-gray { background-color: #f5f5f5; }
.box:last-of-type { margin: 0; }
.box__block { margin: 0 0 20px; width: 100%; }
.box__block:last-of-type { margin: 0; }
.box.is-round { border-radius: 10px; }
.box[class*=is-bg-] { border-radius: 5px; }

/* 画像はみ出し修正 */
.usuge_point .image {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0;
}
.usuge_point .figure {
    margin: 0;
    padding: 0;
}
.usuge_point .figure img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   2. 背景ありワンポイント (onepoint) 用スタイル
   外部の .box とのバッティングを完全に防ぐため、全て .onepoint 起点で記述
   ============================================================ */

/* 全体の外枠 */
.onepoint {
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 0 20px !important;
    overflow: visible !important;
}

/* 先生ポイント（吹き出しのみ） */
.onepoint:not(.is-bg-lt-blue) {
    padding: 0 !important;
    background: none !important;
}

/* 背景付ワンポイント */
.onepoint.is-bg-lt-blue {
    padding: 20px !important;
    background-color: #EAF6FD !important;
    border-radius: 5px;
}

/* 内部レイアウト */
.onepoint .onepoint-wrapper {
    font-weight: 500;
    line-height: 1.5em;
    display: flex;
    align-items: center;
    width: 100%;
}

.onepoint .onepoint-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
}

/* テキストエリア共通 */
.onepoint .onepoint-set h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: #0076B6;
    line-height: 1.3;
    font-weight: bold;
}
.onepoint .onepoint-set .txt {
    margin-bottom: 0;
    line-height: 1.6;
}

/* 先生ポイント（吹き出し）のテキスト */
.onepoint:not(.is-bg-lt-blue) .arrow_box {
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
}

/* --- スマホ用設定 (max-width: 641px) --- */
@media only screen and (max-width: 641px) {
    .onepoint .onepoint-wrapper {
        flex-direction: column-reverse;
    }
    .onepoint .onepoint-wrapper img {
        padding: 2.5rem 0 0 0;
        width: 250px;
        margin: 0 auto;
    }
    
    /* 先生ポイント（吹き出し）のテキストボックス */
    .onepoint:not(.is-bg-lt-blue) .onepoint-wrapper .arrow_box {
        position: relative;
        width: 100%;
        background: #EAF6FD;
        padding: 20px;
        text-align: left;
        color: #333333;
        font-size: 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    /* 先生ポイントの吹き出しの角（下向き） */
    .onepoint:not(.is-bg-lt-blue) .onepoint-wrapper .arrow_box:after {
        border: solid transparent;
        content: '';
        height: 0;
        width: 0;
        pointer-events: none;
        position: absolute;
        border-top-width: 20px;
        border-bottom-width: 20px;
        border-left-width: 20px;
        border-right-width: 20px;
        margin-left: -20px;
        border-top-color: #EAF6FD;
        top: 100%;
        left: 50%;
    }
    
    /* 背景付ワンポイントのテキストボックス */
    .onepoint.is-bg-lt-blue .onepoint-wrapper .onepoint-set {
        position: relative;
        width: 100%;
        background: none;
        padding: 20px;
        text-align: left;
        color: #333333;
        font-size: 16px;
        box-sizing: border-box;
    }
}

/* --- PC用設定 (min-width: 642px) --- */
@media only screen and (min-width: 642px) {
    /* 先生ポイント（吹き出し）用：.arrow_box を左側に、画像を右側に */
    .onepoint:not(.is-bg-lt-blue) .onepoint-wrapper {
        flex-direction: row;
        justify-content: center;
    }
    
    /* 背景付ワンポイント用：画像を左側に、.onepoint-set を右側に */
    .onepoint.is-bg-lt-blue .onepoint-wrapper {
        flex-direction: row;
        justify-content: center;
    }
    
    .onepoint .onepoint-wrapper img {
        padding: 1rem 2rem;
        width: 280px;
        flex-shrink: 0;
    }
    
    /* 先生ポイント（吹き出し）のテキストボックス */
    .onepoint:not(.is-bg-lt-blue) .onepoint-wrapper .arrow_box {
        position: relative;
        width: 520px;
        background: #EAF6FD;
        padding: 24px;
        text-align: left;
        color: #333333;
        font-size: 16px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    /* 先生ポイントの吹き出しの角（左向き） */
    .onepoint:not(.is-bg-lt-blue) .onepoint-wrapper .arrow_box:after {
        border: solid transparent;
        content: '';
        height: 0;
        width: 0;
        pointer-events: none;
        position: absolute;
        border-top-width: 13px;
        border-bottom-width: 13px;
        border-left-width: 20px;
        border-right-width: 20px;
        margin-top: -13px;
        border-right-color: #EAF6FD;
        right: 100%;
        top: 50%;
    }
    
    /* 背景付ワンポイントのテキストボックス */
    .onepoint.is-bg-lt-blue .onepoint-wrapper .onepoint-set {
        position: relative;
        width: auto;
        flex-grow: 1;
        background: none;
        padding: 24px;
        text-align: left;
        color: #333333;
        font-size: 16px;
        box-sizing: border-box;
    }
}

.clearfix::after { content: ""; display: block; clear: both; }
.mt-20 { margin-top: 20px; }

/* 以前のスタイルもしばらく維持 */
b { font-weight: bold; }
small { font-size: 0.8em; }
.is-red { color: #e11d48; font-weight: bold; }
a { color: #2563eb; text-decoration: underline; }

/* Table */
table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; }
th, td { border: 1px solid #ddd; padding: 10px; text-align: left; }
th { background: #f8f8f8; }

/* Header styles */
.ttl.is-2 { padding: 4px 0 4px 16px; font-size: 1.5rem; font-weight: bold; margin: 2rem 0 1.25rem; width: 100%; box-sizing: border-box; }
.ttl.is-3 { padding: 4px 0 4px 16px; font-size: 1.25rem; font-weight: bold; margin: 1.5rem 0 1rem; position: relative; width: 100%; box-sizing: border-box; }

.ttl.is-line-left {
    border-left-style: solid;
    border-left-width: 8px;
    padding-left: 12px;
}

.ttl.is-line-b {
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
    padding-left: 0; /* is-line-leftと共用されない想定 */
}

.is-line-orange { border-left-color: #f29600; }
.is-line-gray { border-left-color: #ddd; border-bottom-color: #ddd; }
.is-line-key { border-left-color: #008ca0; }

.box > h3.ttl:first-child, .box > h2.ttl:first-child { margin-top: 0; }
.box > p.txt:last-child { margin-bottom: 0; }

.is-blue { color: #0076B6 !important; }

/* New Components */
.is-vh-center { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 40px; }

.is-bold { font-weight: bold; }
.ul-list { list-style: none; padding: 0; margin: 0 0 20px 0; }
.ul-list .list__item { position: relative; padding-left: 20px; margin-bottom: 8px; }
.ul-list .list__item::before { content: "●"; position: absolute; left: 0; color: #ccc; font-size: 0.8em; top: 0.2em; }
.ul-list .list__item.is-child { padding-left: 40px; font-size: 0.9em; }
.ul-list .list__item.is-child::before { left: 20px; content: "○"; }
.ul-list.is-ul-center .list__item a { text-decoration: none; color: #0076B6; }
.ul-list.is-ul-center .list__item a:hover { text-decoration: underline; }
.ol-list { padding-left: 25px; margin: 0 0 20px 0; }
.ol-list .list__item { margin-bottom: 8px; }
.row.is-gap-3 { gap: 30px; }
@media (min-width: 642px) {
    .row.is-gap-3 > .col.l6 { width: calc(50% - 15px); }
    .row.is-reverse { flex-direction: row-reverse; }
}
.sub-title { display: block; }
.is-center { text-align: center; }
.text-left { text-align: left !important; }

/* TOC（目次）スタイル */
.toc {
    display: flex !important;
}

/* Helper classes for removed inline styles */
.toc-container { display: flex; align-items: stretch; margin-bottom: 20px; padding: 0; }
.toc-label-block { border-right: 1px solid #ddd; padding: 20px 0; }
.toc-list-block { padding: 10px 30px; }
.toc-list-block ul { margin: 0; padding: 10px 0; list-style: none; }

.message-box { border-radius: 10px; display: flex; align-items: center; padding: 1.5rem; gap: 20px; margin-bottom: 20px; }
.is-bg-lightgreen { background-color: #d3ebea; }

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

.twocol-figure img { display: inline-flex; flex-direction: column; align-items: center; margin: 0 auto; max-width: 100%; }

/* usuge_point スタイル */
.usuge_point { 
    display: flex; 
    align-items: center; 
}
.usuge_point .image { 
    width: 140px; 
    flex-shrink: 0; 
    margin: 0; 
}
.usuge_point .figure { 
    margin: 0; 
    padding: 0; 
}
.usuge_point .figure img { 
    max-width: 100%; 
    height: auto; 
    display: block; 
}
.usuge_point .text-content { 
    padding-left: 20px; 
    flex-grow: 1; 
}
@media (max-width: 641px) {
    .usuge_point { 
        flex-direction: column; 
        text-align: center; 
    }
    .usuge_point .image { 
        width: 120px; 
        margin: 0 auto 15px; 
    }
    .usuge_point .text-content { 
        padding-left: 0; 
    }
}

/* Profile スタイル */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}
.profile__inline {
    display: inline-block;
    vertical-align: middle;
}
.profile__img {
    display: flex;
    align-items: center;
}
.profile__img .thumb {
    display: block;
}
.is-round {
    border-radius: 50%;
}
.profile__txt {
    flex-grow: 1;
}

/* PC/SP改行の表示切り替え */
.pc-br { display: inline; }
.sp-br { display: none; }

.pc-only { display: block !important; }
.sp-only { display: none !important; }
@media (max-width: 641px) {
    .pc-br { display: none; }
    .sp-br { display: inline; }
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }
    .ttl.is-2 { font-size: 1.35rem; }
    .ttl.is-3 { font-size: 1.15rem; }
    
    /* Helper SP fixes */
    .toc-container { flex-direction: column; }
    .toc-label-block { border-right: none; border-bottom: 1px solid #ddd; padding: 10px 0; }
    .toc-list-block { padding: 10px 15px; }
    .message-box { flex-direction: column; padding: 1rem; text-align: center; }
}

/* 目次 */
.box.row.is-space-3.is-bg-lt-gray {
    display: flex;
}
/* 小文字(行間を狭める) */
span.txt.is-4{
    display: inline-block;
    margin: 0;
}

/* ============================================================
   PC専用 画像幅調整クラス（先生まとめ用）
   ※既存の width: 280px 等を上書きするために !important を指定
   ============================================================ */
@media only screen and (min-width: 642px) {
    img.is-pc-w100 { width: 100% !important; height: auto !important; }
    img.is-pc-w90  { width: 90% !important;  height: auto !important; }
    img.is-pc-w80  { width: 80% !important;  height: auto !important; }
    img.is-pc-w70  { width: 70% !important;  height: auto !important; }
    img.is-pc-w60  { width: 60% !important;  height: auto !important; }
    img.is-pc-w50  { width: 50% !important;  height: auto !important; }
    img.is-pc-w40  { width: 40% !important;  height: auto !important; }
    img.is-pc-w30  { width: 30% !important;  height: auto !important; }
    img.is-pc-w20  { width: 20% !important;  height: auto !important; }
    img.is-pc-w10  { width: 10% !important;  height: auto !important; }
}

/* ============================================================
   目次用の追加CSS
   ============================================================ */
div.k1ban-toc .ul-list {
  list-style: none;
  padding: 20px 20px 10px;
  margin: 0;
}

div.k1ban-toc li {
  position: relative;
}

div.k1ban-toc .list__item {
  padding-left: 1.1em;
  margin-bottom: 12px;
}

div.k1ban-toc .list__item::before {
  content: '';
  position: absolute;
  top: 1.2em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #bbb;
  transform: translateY(-50%);
}

div.k1ban-toc .list__item__sub {
  padding-left: 2.0em;
  margin-bottom: 12px;
}

div.k1ban-toc .list__item__sub::before {
  content: '';
  position: absolute;
  top: 0.8em;
  left: 1.1em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #bbb;
  transform: translateY(-50%);
}

div.k1ban-toc a {
  text-decoration: none;
  color: #0076B6;
}

div.k1ban-toc a:hover {
  text-decoration: underline;
}

@media screen and (min-width: 768px) {
  div.k1ban-toc .ul-list {
    padding: 20px 20px 10px;
  }
  div.k1ban-toc .ttl.is-3.is-vh-center {
    margin: 1rem 0;
  }
}