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

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

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

  h3 { 
	  font-size: 1.3em;
	  font-weight: bold;
	  }

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

.sub-orange {
  color: #333;
  background: #fff3e0;
  border-radius: 8px;
  padding: 5px 15px;
  border-left: 6px solid #ff9800;
  margin-bottom: 15px;
}

.sub-green {
  color: #333;
  background: #edfffc;
  border-radius: 8px;
  padding: 5px 15px;
  border-left: 6px solid #85ea60;
  margin-bottom: 15px;
}

.mark-red{
  background: #ffd6d6;
  padding: 2px 6px;
  border-radius: 4px;
}

.mark-blue{
  background: #d6f3ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.mark-green{
  background: #dff7d6;
  padding: 2px 6px;
  border-radius: 4px;
}

/* =========================
  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%;
}

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

.boxback13 {
  background: url("/wordpress2/wp-content/themes/typing/img/common/bg_loop3.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;
}

.container12 {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
}

.container12 h1 {
    color: #0e0046;
    font-size: 32px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
   padding-bottom: 20px;
}

/* 左右の -- */
.container12 h1::before,
.container12 h1::after {
    content: "-";
    font-size: 40px;
    font-weight: bold;
    color: #0e0046;
    flex-shrink: 0;
}

.hero-img2 {
    width: 30%;
    height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 30px;
}

.hero-img4 {
  width: 30%;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 30px;

  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
  border: 1px solid #ddd;
}

@media screen and (max-width:767px) {
.container12 h1 {
    font-size: 20px;
}

.hero-img2,
.hero-img4 {
  width: 75%;
  }
}

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

.hero-img2,
.hero-img4 {
  width: 50%;
  }
}

.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;
  }
}

.step-num1 {
  display: flex;
  align-items: flex-start;
}

.step-num1 .step-num2 {
  width: 1.5em; 
  flex-shrink: 0;
}

.step-num1 .step-num3 {
  flex: 1;
}

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

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

.first-letter {
  font-size: 1.8em;
  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-image {
  width: 48px; 
  height: 48px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block; 
}
	  
.stage-images {
  display: flex;
  width: 100%;
  gap: 10px;
}

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

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

.linefe2 {
            border-bottom: 2px solid #f8b700;
            width: 100%;
            margin: 0 auto;
            margin-top: 20px;
            border-radius: 10px;
        }

.linefe3 {
            border-bottom: 2px solid #85ea5b;
            width: 100%;
            margin: 0 auto;
            margin-top: 20px;
            border-radius: 10px;
        }

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;
}

@media screen and (max-width: 1024px) {
		h1 {
		font-size: 1.6em;
	}
.speech-bubble {
  font-size: 1.6rem;
}
  .stage-images {
	gap: 0px;
    flex-direction: column;
  }
 }

.page-nav{
  position: relative;
  display:flex;
  gap:20px;
  margin:30px 0;
  align-items:center;
  justify-content:center;
}

.page-nav .page-card.prev{
  margin-right:auto;  /* 左に寄せる */
}

.page-nav .page-card.next{
  margin-left:auto;   /* 右に寄せる */
}

.page-card{
  display:flex;
  align-items:center;
  width:38%;
  background:#fff;
  border-radius:12px;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  transition:0.25s;
}

.page-card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.12);
}

.page-card-img img{
  width:160px;
  height:84px;
  object-fit:cover;
}

.page-card-text{
  padding:12px 16px;
}

.nav-label{
  font-size:12px;
  color:#888;
  display:block;
  margin-bottom:4px;
}

.page-card h4{
  font-size:16px;
  color:#333;
  margin:0;
}

.next{
  justify-content:space-between;
}

.page-school-btn{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:14px 20px;
  background:#ff9800;
  color:#fff;
  border-radius:999px;
  text-decoration:none;
  font-weight:bold;
  box-shadow:0 4px 10px rgba(0,0,0,0.1);
  white-space:nowrap;
}

.page-school-btn:hover{
  background:#ff7a00;
  transform:translate(-50%, -2px);
}

.page-icon-school{
  width:20px;
  height:20px;
}

@media (max-width: 1024px){
  .page-nav{
    flex-direction:column;
    align-items:stretch;
  }
  .page-card{
    width:100%;
  }
  .page-school-btn{
    order: 999;
    position:static;
    transform:none;
    margin:10px 0;
    width:100%;
    flex-direction: row;
  }
  .page-school-btn:hover{
    transform:none;
  }
}

.learning-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 16px;
}
.learning-table th, .learning-table td {
    border: 1px solid #ccc;
    padding: 12px;
    text-align: center;
    vertical-align: middle;
}
.learning-table th {
    background-color: #f0f0f0;
    font-weight: 600;
}
.learning-table tbody tr:nth-child(even) {
    background-color: #fafafa;
}

.left-align-table tbody td {
  text-align: left;
}

@media screen and (max-width: 768px) {

  .left-align-table {
    border: none;
  }

  .left-align-table thead {
    display: none;
  }

  .left-align-table,
  .left-align-table tbody,
  .left-align-table tr,
  .left-align-table td {
    display: block;
    width: 100%;
  }

  .left-align-table tr {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
  }

  .left-align-table td {
    border: none;
    padding: 8px 0;
    text-align: left;
  }

  /* 見出しもこの表だけに限定 */
  .left-align-table td:nth-child(1)::before {
    content: "自治体、学校";
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }

  .left-align-table td:nth-child(2)::before {
    content: "パソコン教室";
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }

  .left-align-table td:nth-child(3)::before {
    content: "個人";
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
  }

  .left-align-table ul {
    padding-left: 1em;
    margin: 0;
  }
}

.verb-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.verb-row {
  display: inline-flex;
  align-items: flex-start;
  gap: 15px;
  background: #fff7f7;
  border: 1px solid #f0caca;
  border-radius: 8px;
  padding: 10px;
}

.verb-title {
  min-width: 100px; /* ← ここで揃える */
  font-weight: bold;
  color: #d94b4b;
}

.verb-row2 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
}

.verb-row div {
  font-size: 16px;
}

.verb-title {
  font-weight: bold;
  color: #d94b4b;
}

/* スマホ */
@media (max-width: 600px) {
  .verb-row2 {
    gap: 8px 10px;
  }

  .verb-title {
    min-width: 80px;
  }
}