
/* =========================
タイピング方法
========================= */

/* =========================
  h1隠す
========================= */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.boxback11 {
  background: url("/wordpress2/wp-content/themes/typing/img/common/bg_loop.png") repeat-x top center;
  background-size: auto 100%;
}

.container11 {
  position: relative;
  text-align: center;
}

.hero-img {
  width: 50%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media screen and (max-width:768px) {
.hero-img {
  width: 100%;
  }
}

#position {
	font-size:11px;
	position:relative;
	padding-top:20px;
	position:relative;
}
#position ul li:first-child{
	padding-left:20px;
}
#position ul li:first-child:before{
	content: "";
	width: 16px;
	height: 16px;
	background: url("/wordpress2/wp-content/themes/typing/img/common/map.svg") no-repeat center / contain;
	position: absolute;
	left: 0;
	top: 1px;
	
}
#position ul{
	margin:0;
	padding:0;
	color:#888;
}

#position ul li{
	display:inline-block;
	padding-right:8px;
	margin-right:3px;
	position:relative;
}

#position ul li:before{
	content:"";
	background: url("/wordpress2/wp-content/themes/typing/img/common/arrow_right.svg") no-repeat center / contain;
	width: 8px;
	height: 8px;
	position:absolute;
	left: -10px;
	top:4px;
}
#position ul li:last-child:after{
	content:'';
}

.typing-guide p {
  line-height: 1.8;
  margin: 0 0 1em;
}

.typing-guide h2 {
  margin: 1.5em 0 1em;
  font-size: 1.4em;
}

.note {
  font-size: 0.9em;
  border-left: 2px dotted #999;
  padding-left: 15px;
  color: #555;
  margin: 1em 0;
}

.em {
  color: #d00;
  font-weight: bold;
}

.key-flow {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.key-step {
  text-align: center;
}

.key-step img,
.arrow2 img {
  display: block;
  margin: 0 auto;
  height: auto;
}

.arrow2 {
  width: 40px;
}

@media screen and (max-width: 912px) {
  .key-flow {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .key-step {
    flex: 1;
    min-width: 0;
  }

  .key-step img {
    width: 100%;
    max-width: 140px;
  }
	
  .key-step p{
  font-size: 12px;
  }

  .arrow2 {
    flex: 0 0 auto;
  }
}

.bold-text {
  font-size: 16px;
  font-weight: bold;
}

/* =========================
   タイピングの学校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;
  }
}

.background {
  background-color: #f3f3f1;
}
	  
  h1, h2 {
    color: #333;
    margin-bottom: 8px;
  }

  h1 {
	  font-size: 1.8em;
	  font-weight: bold;
	  }
  h2 { 
	  font-size: 1.3em;
	  font-weight: bold;
	  }

  p {
	  margin: 6px 0 12px 0;
	  font-size: 1.1em;
	  color: #000;
	  }

.border-text {
  background: linear-gradient(transparent 50%, #fff176 50%);
  font-weight: bold;
}

  .card2 {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 20px 20px 20px;
    min-width: 220px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
  }

.stage-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
	  
.stage-images {
  display: flex;
  width: 100%;
  gap: 10px;
}

.stage-images2 {
  display: flex;
  width: 100%;
    padding: 20px 0 0 0;
}

.stage-image {
  width: 48px; 
  height: 48px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block; 
}

.linefe2 {
            border-bottom: 2px solid #f8b700;
            width: 100%; /* ラインの幅を調整 */
            margin: 0 auto; /* 画面中央に配置するためのマージン指定 */
            margin-top: 20px; /* 適宜マージンを調整 */
            border-radius: 10px; /* 丸みを付けるためのプロパティ */
        }

.space {
  margin-bottom: var(--mb, 0);
}

a.button_intro, .button_intro  {
	border: none;
	font-family: inherit;
	font-size: inherit;
	color:#fff !important;
	background: #e28b00;
	cursor: pointer;
	padding: 20px 25px;
	display: inline-block;
	outline: none;
	font-size:16px;
	text-align:center;
	-webkit-transition: all 0.3s;
	-moz-transition: all 0.3s;
	transition: all 0.3s;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	font-weight:bold;
	min-width:150px;
	border: 1px solid #e28b00;
}
a.button_intro:hover, .button_intro:hover {
	background: #fff;
	color:#e28b00 !important;
	border: 1px solid #e28b00;
}

.stage-title537 {
  display: flex;
  align-items: center; 
  justify-content: center;
  gap: 12px;
}

.stage-image537 {
  width: 96px;
  height: 96px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.speech-bubble {
  position: relative;
  background: #fff;
  border: 2px solid #333;
  border-radius: 16px;
  padding: 14px 18px;
  line-height: 1.6;
  font-size:15px;
}

.speech-bubble::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 10px 14px 10px 0;
  border-style: solid;
  border-color: transparent #333 transparent transparent;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  left: -11px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 9px 12px 9px 0;
  border-style: solid;
  border-color: transparent #fff transparent transparent;
}