/* 比較表 大手塾との比較 */

.table-wrap{
    overflow-x:auto;
    margin:25px 0;
}

.table-wrap table{
    width:100%;
    min-width:700px;
    border-collapse:collapse;
    background:#fff;
    font-size:0.95rem;
    line-height:1.8;
}

.table-wrap th,
.table-wrap td{
    border:1px solid #ddd;
    padding:14px;
    vertical-align:top;
}

.table-wrap thead th{
    background:#2c3e50;
    color:#fff;
    text-align:center;
    font-weight:bold;
}

.table-wrap tbody th{
    background:#f7f7f7;
    width:150px;
    font-weight:bold;
    white-space:nowrap;
}

.table-wrap tbody tr:nth-child(even){
    background:#fcfcfc;
}

@media(max-width:768px){

.table-wrap table{
    font-size:0.9rem;
}

.table-wrap th,
.table-wrap td{
    padding:10px;
}

.table-wrap tbody th{
    width:100px;
}

}

/* ポイントボックス */

.point-box-blue{
    margin-top:24px;
    padding:24px;
    background:#f5f9ff;
    border:1px solid #d7e6ff;
    border-radius:12px;
}

.point-box-blue h3{
    margin-top:0;
    margin-bottom:16px;
    font-size:1.15rem;
    line-height:1.6;
}

.point-box-blue p:last-child{
    margin-bottom:0;
}


/* アコーディオン */
.grade-toggle{
    margin-top:24px;
}

.grade-toggle-item{
    margin-bottom:16px;
    border:1px solid #d9e2ef;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}

.grade-toggle-item summary{
    cursor:pointer;
    padding:20px 22px;

    font-size:1.08rem;
    font-weight:700;
    line-height:1.7;

    background:#f5f9ff;

    list-style:none;
}

.grade-toggle-item summary::-webkit-details-marker{
    display:none;
}

.grade-toggle-item summary::after{
    content:"＋";
    float:right;
    font-weight:700;
    color:#4d6fa5;
}

.grade-toggle-item[open] summary::after{
    content:"－";
}

.grade-toggle-body{
    padding:20px 22px 24px;
}

.grade-toggle-body p:first-child{
    margin-top:0;
}

.grade-toggle-body p:last-child{
    margin-bottom:0;
}

@media screen and (max-width: 768px){

    .grade-toggle-item summary{
        padding:18px;
        font-size:1rem;
        line-height:1.8;
    }

    .grade-toggle-body{
        padding:18px 18px 22px;
    }

}


/* 学校別のアコーディオン */

.school-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.school-accordion-item {
    border: 1px solid #dcdcdc;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.school-accordion-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 18px 48px 18px 20px;
    font-size: 1.05rem;
    font-weight: bold;
    background: #f5f7fb;
    transition: background 0.2s;
}

.school-accordion-item summary:hover {
    background: #edf2fa;
}

.school-accordion-item summary::-webkit-details-marker {
    display: none;
}

.school-accordion-item summary::after {
    content: "＋";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    font-weight: normal;
    color: #666;
    transition: transform 0.2s;
}

.school-accordion-item[open] summary::after {
    content: "－";
}

.school-accordion-item .school-link-grid {
    padding: 20px;
}

.school-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.school-link-card {
    display: block;
    padding: 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    transition: transform 0.2s, box-shadow 0.2s;
}

.school-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.school-name {
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
    font-weight: bold;
}

.school-link-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
}

.school-link-card.boys {
    border-left: 5px solid #5b8def;
}

.school-link-card.girls {
    border-left: 5px solid #e78bb7;
}

.school-link-card.coed {
    border-left: 5px solid #58b89d;
}

@media (max-width: 768px) {

    .school-accordion-item summary {
        padding: 16px 44px 16px 16px;
        font-size: 1rem;
    }

    .school-accordion-item .school-link-grid {
        padding: 16px;
    }

    .school-link-grid {
        grid-template-columns: 1fr;
    }
}

.school-accordion-item summary.boys {
    background: #eef5ff;
    color: #24456f;
}

.school-accordion-item summary.girls {
    background: #fff0f3;
    color: #704052;
}

.school-accordion-item summary.coed {
    background: #eef7f4;
    color: #245447;
}

.school-accordion-item summary.other {
    background: #f7f2ec;
    color: #55473c;
}

.school-accordion-item summary.boys:hover {
    background: #e4effd;
}

.school-accordion-item summary.girls:hover {
    background: #ffe8ee;
}

.school-accordion-item summary.coed:hover {
    background: #e4f3ed;
}

.school-accordion-item summary.other:hover {
    background: #f2e9df;
}



/* 会話形式 */
.line-talk {
    max-width: 900px;
    margin: 0 auto;
}

.line-row {
    display: flex;
    margin: 20px 0;
}

.line-parent {
    justify-content: flex-start;
}

.line-child {
    justify-content: flex-end;
}

.line-bubble {
    position: relative;
    max-width: 75%;
    padding: 15px 20px;
    border-radius: 12px;
    line-height: 1.8;
    margin: 0;
    border: 1px solid #bbb;
}

.line-parent .line-bubble {
    background: #f6e8dc;
}

.line-child .line-bubble {
    background: #e9eef9;
}

/* 左吹き出し */

.line-parent .line-bubble::after {
    content: "";
    position: absolute;
    left: 30px;
    bottom: -12px;
    width: 0;
    height: 0;
    border-top: 12px solid #f6e8dc;
    border-right: 12px solid transparent;
}

.line-parent .line-bubble::before {
    content: "";
    position: absolute;
    left: 29px;
    bottom: -13px;
    width: 0;
    height: 0;
    border-top: 13px solid #bbb;
    border-right: 13px solid transparent;
}

/* 右吹き出し */

.line-child .line-bubble::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: -12px;
    width: 0;
    height: 0;
    border-top: 12px solid #e9eef9;
    border-left: 12px solid transparent;
}

.line-child .line-bubble::before {
    content: "";
    position: absolute;
    right: 29px;
    bottom: -13px;
    width: 0;
    height: 0;
    border-top: 13px solid #bbb;
    border-left: 13px solid transparent;
}

@media (max-width: 768px) {

    .line-bubble {
        max-width: 90%;
        font-size: 0.95rem;
    }

}


/* =========================================
   個人契約ページ専用 比較表
   他CSSとの競合を避けるため kojinkeiyaku 接頭辞を付与
========================================= */

.kojinkeiyaku-comparison-table-wrap{
  width:100%;
  overflow-x:auto;
  margin:24px 0 28px;
  -webkit-overflow-scrolling:touch;
}

.kojinkeiyaku-comparison-table{
  width:100%;
  min-width:640px;
  border-collapse:separate;
  border-spacing:0;
  table-layout:fixed;
  background:#fff;
  border:1px solid #d8e2ee;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 8px 24px rgba(0,0,0,0.06);
}

.kojinkeiyaku-comparison-table th,
.kojinkeiyaku-comparison-table td{
  padding:16px 14px;
  font-size:15px;
  line-height:1.8;
  vertical-align:middle;
  border-bottom:1px solid #e7eef5;
  word-break:break-word;
  background:#fff;
}

.kojinkeiyaku-comparison-table thead th{
  background:#1f3f66;
  color:#fff;
  font-weight:700;
  text-align:center;
  border-bottom:none;
}

.kojinkeiyaku-comparison-table thead th:first-child{
  width:22%;
  border-top-left-radius:14px;
}

.kojinkeiyaku-comparison-table thead th:nth-child(2),
.kojinkeiyaku-comparison-table thead th:nth-child(3){
  width:39%;
}

.kojinkeiyaku-comparison-table thead th:last-child{
  border-top-right-radius:14px;
}

.kojinkeiyaku-comparison-table tbody th{
  background:#f4f8fc;
  color:#1f3f66;
  font-weight:700;
  text-align:left;
}

.kojinkeiyaku-comparison-table tbody td{
  text-align:left;
}

.kojinkeiyaku-comparison-table tbody tr:nth-child(even) td{
  background:#fbfdff;
}

.kojinkeiyaku-comparison-table tbody tr:last-child th,
.kojinkeiyaku-comparison-table tbody tr:last-child td{
  border-bottom:none;
}

@media only screen and (max-width:767px){

  .kojinkeiyaku-comparison-table-wrap{
    margin:20px 0 24px;
  }

  .kojinkeiyaku-comparison-table{
    min-width:560px;
  }

  .kojinkeiyaku-comparison-table th,
  .kojinkeiyaku-comparison-table td{
    padding:13px 10px;
    font-size:13px;
    line-height:1.7;
  }
}


/* 保護者の方の声 */
.voice-school{
    font-weight:bold;
    margin-bottom:8px;
}