/* =========================
   タイピングの学校2カラムレイアウト
========================= */

.position-side {
  width: 90%;
  max-width: none;
  margin: 0 auto;
}
	
.layout-2col {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 90%;
  margin: 0 auto;
  padding-bottom: 20px;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: static;
  top: 100px;
  align-self: flex-start;
  border-radius: 12px;
  margin-top: 24px;
}

.sidebar-inner {
  position: static;
}

.sidebar-box1,
.sidebar-box2 {
  background: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 6px 16px 16px 16px;
  margin-bottom: 20px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
}
	
.sidebar-box1 {
  border: 2px solid #f7d668;
}

.sidebar-box2 {
  border: 2px solid #a0d1f7;
}

.sidebar-orange,
.sidebar-blue{
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-left: 10px;
}

.sidebar-orange{
  border-left: 4px solid #f8b700;
}

.sidebar-blue{
  border-left: 4px solid #0099ff;
}

.sidebar-box1 ul,
.sidebar-box2 ul {
  counter-reset: sidenav;
  list-style: none;
  padding-left: 0.5em;
  margin: 0;
}

.sidebar-box1 li,
.sidebar-box2 li {
  counter-increment: sidenav;
  position: relative;
  padding-left: 2.5em;
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
  line-height: 1.5;
}

.sidebar-box1 li::before,
.sidebar-box2 li::before {
  content: counter(sidenav);
  position: absolute;
  left: 0;
  top: calc(50% - 0.5em);
  transform: translateY(-50%);
  width: 30px;
  height: 34px;
  background: url("https://www.typing-gate.com/wordpress2/wp-content/themes/typing/img/item/typing-school/key1.svg") no-repeat center / contain;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-box1 li::before{
  background: url("https://www.typing-gate.com/wordpress2/wp-content/themes/typing/img/item/typing-school/key1.svg") no-repeat center / contain;
}
.sidebar-box2 li::before {
  background: url("https://www.typing-gate.com/wordpress2/wp-content/themes/typing/img/item/typing-school/key2.svg") no-repeat center / contain;
}

.sidebar-box1 a,
.sidebar-box2 a {
  display: block;
  border-radius: 8px;
  color: #333;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sidebar-box1 a:hover,
.sidebar-box2 a:hover {
  background: #f0f7ff;
  color: #0099ff;
}
	
.home-box {
  text-align: center;
}

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ff9800;
  color: #fff;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 999px; 
  text-decoration: none;
  transition: all 0.2s ease;
}

.home-btn:hover {
  background: #ff7a00;
  transform: translateY(-2px);
}

.icon-school {
  width: 1.2em;   /* 文字サイズに連動 */
  height: auto;
  vertical-align: middle;
}

@media screen and (max-width: 912px) {
  .main-content {
    order: 1;   /* メインを上 */
  }

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

  .sidebar {
    order: 2;   /* サイドバーを下 */
    display: block;
    width: 100%;
    position: static;
    margin-top: 0px;
  }

.sidebar-box1,
.sidebar-box2 {
    margin: 16px 0;
  }

.sidebar-box1 li,
.sidebar-box2 li {
    list-style: none;
    border-bottom: 1px solid #eee;
  }

.sidebar-box1 li:last-child,
.sidebar-box2 li:last-child {
    border-bottom: none;
  }
}