/*--------------------------------------------
	howto.css
--------------------------------------------- */

/* ============================================
	content
 ============================================ */

#content {
	background: #ffd9f1;
}

section .container {
	position: relative;
	max-width: 800px !important;
	padding: 3rem 0 4rem 0;
}

.container > p {
	margin: 1rem 0 2rem 0;
}

@media screen and (min-width: 800px) {
}

@media screen and (max-width: 799px) {
	section .container {
		padding: 2rem 2rem 4rem 2rem;
	}

}

/* ============================================
	howto_chart
 ============================================ */

#howto_chart li:not(:last-child)::after {
	padding: 0.5rem 0 1rem 0;
	content: "↓";
	display: block;
	text-align: center;
	font-family: funwari, Helvetica, Arial, sans-serif;
 }

#howto_chart li a {
	position: relative;
	display: block;
	padding: 2rem 2rem 2rem 3rem;
	background: rgba(255, 255, 255, 0.3);
	border: 5px solid #fff;
	border-radius: 50rem;
}

#howto_chart li a span {
	position: relative;
	display: inline-block;
	margin-right: 1rem;
	width: 3rem;
	z-index: 10;
	color: #fff;
	text-align: center;
	font-family: funwari, Helvetica, Arial, sans-serif;
}

#howto_chart li a span:before {
	display: none;
}

#howto_chart li a span:after{
	width: 3rem;
	top: -1.1rem;
	left: 0rem;
	font-size: 3.7rem;
	z-index: -1;
}

#howto_chart li a::before {
	position: absolute;
	right: 1.8rem;
	top: 50%;
	margin-top: -0.9rem;
	color: #6b8ce8;
	color: #a8d5ff;
	opacity: 0;
	font-size: 1.8rem;
	transform: translateY(10px); /* 下から */
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#howto_chart li a:hover::before {
	color: #fff;
	color: #a8d5ff;
	opacity: 1;
	transform: translateY(0);
}

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

#howto_chart {
	margin: 0 2rem;
}

}

 /* ============================================
  howto_nav
  ============================================ */

.howto_nav {
	display:flex;
	gap: 32px;
	margin: 0 0 -1rem 0;
	padding: 0 1rem;
	background: rgba(255,255,255,.3);
	border: 5px solid #fff;
	border-radius: 10rem;
}

.howto_nav li {
	position:relative;
	flex: 1;
}

.howto_nav a {
	display:block;
	padding: 2rem 1rem 2rem 0;
	text-align: center;
}

.howto_nav li a span.num {
	position: relative;
	display: inline-block;
	margin-right: 0.5rem;
	width: 3rem;
	z-index: 10;
	color: #fff;
	font-size: 1.7rem;
	text-align: center;
	font-family: funwari, Helvetica, Arial, sans-serif;
}

.howto_nav li a span.num:before {
	display: none;
}

.howto_nav li a span.num:after{
	width: 3rem;
	top: -0.9rem;
	left: -0.0rem;
	font-size: 3.3rem;
	z-index: -1;
}

.howto_nav li + li::before{
	content:"";
	position:absolute;
	left:-16px;
	top:50%;
	transform:translateY(-50%);
	width: 3px;
	height:1.4em;
	background: #fff;
	border-radius:3px;
}

.howto_nav .current a{
	color:#ff8cc4;
}

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

.howto_nav {
	margin-top: 2rem;
	gap: 2px;
}

.howto_nav a {
	padding: 2rem 0.5rem 2rem 0.5rem;
	font-size: 1.4rem;
}

.howto_nav li a span.num {
	display: block;
	padding: 0 0 1.3rem 0;
	width: 100%;
	font-size: 1.4rem;
}

.howto_nav li a span.num:after{
	width: 3rem;
	top: -0.7rem;
	left: 50%;
	margin: 0 0 0 -1.5rem;
	font-size: 2.7rem;
}

.howto_nav li + li::before{
	height: 4rem;
	left: -1px;
}

}

 /* ============================================
 	howto_container
  ============================================ */

.howto_container {
	position: relative;
	max-width: 1000px;
	margin: 5rem auto 1rem auto;
	padding: 5rem 6rem 4rem;
	border-radius: 4rem;
	background: rgba(255, 255, 255, 0.5);
}

.howto_container h2 {
	margin: 0 0 2.5rem 0;
	font-size: 2.8rem;
	font-family: "rooney-sans", "heisei-maru-gothic-std", sans-serif;
}

.howto_container h2 span {
	position: relative;
	display: inline-block;
	margin-right: 0.8rem;
	padding-bottom: 0.2rem;
	width: 3.5rem;
	line-height: 2.8rem;
	z-index: 10;
	color: #fff;
	text-align: center;
	font-size: 2.3rem;
	font-family: funwari, Helvetica, Arial, sans-serif;
}

.howto_container h2 span:before {
	display: none;
 }

.howto_container h2 span:after {
	width: 3.5rem;
	top: -1.0rem;
	left: 0rem;
	font-size: 4.5rem;
	line-height: 4.5rem;
	z-index: -1;
	text-align: center;
}

 .howto_container p {
	 margin: 2rem 0;
}

.howto_container ul.list_mini {
	 margin: 2rem;
}

.howto_container strong {
		color: #e37ac0;
}

.howto_container > h3 {
	font-size: 1.8rem;
}

.howto_container > h4 {
	margin: 3rem 0 2rem 0;
	line-height: 1.8;
	position: relative;
}

.howto_container figure {
	text-align: center;
}

.howto_container figure img {
	display: block;
	margin: 0 auto 2rem auto;
	width: 100%;
	max-width: 350px;
	border: 4px solid #ccc;
}

@media screen and (min-width: 800px) {

.howto_container figure.double {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

figure.double img {
  width: min(350px, calc((100% - 20px) / 2));
  height: auto;
  display: block;
}

}

.stick {
	position: relative;
	margin: 4rem -0.5rem 0 -0.5rem;
	padding: 1.5rem 2rem;
	background: rgba(227, 122, 192, 0.6);
	background: #ffc2e8;
	border-radius: 50rem;
}

.stick.num {
	padding: 1.2rem 2rem 1.2rem 5rem;
}

h3.stick.num span {
	position: absolute;
	display: block;
	top: 50%;
	left: 1.3rem;
	margin: -1.4rem 0 0 0;
	padding: 0 0 0 0.3rem;
	z-index: 1;
	line-height: 2.7rem;
	text-align: center;
	width: 2.7rem;
	height: 2.7rem;
	background: #fff;
	border-radius: 50%;
}

h3.stick.num span:after {
}

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

.howto_container {
 margin: 3rem auto 1rem auto;
 padding: 4rem 2rem 2rem;
 border-radius: 3rem;
}

.howto_container h2 {
 font-size: 2.4rem;
}

.howto_container figure img {
	max-width: 300px;
}

}

/* ============================================
 howto_sub
 ============================================ */

 .howto_container .howto_sub {
	 position: relative;
	 margin: 4rem 0 2rem 0;
	 padding: 2rem 3rem 2rem 3rem;
	 border: 5px solid #bcd1f8;
	 border-radius: 3rem;
 }

.howto_container .howto_sub h3 {
	position: absolute;
	top: -2.3rem; /* 枠の上にかぶせる高さ（調整OK） */
	left: 50%;
	transform: translateX(-50%);
	z-index: 2;
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 30rem;
	background: #8db1f8;
	color: #fff;
	white-space: nowrap;
 }

 .howto_container .howto_sub h4 {
	 position: relative;;
	 margin: 3rem 0 -0.5em 0;
	 padding: 0 0 0.5rem 1.9rem;
	 border-bottom: 3px dotted #bcd1f8;
 }

 .howto_container .howto_sub h4:after {
	 display: none;
 }

 .howto_container .howto_sub h4:before {
	 top: 0.3rem;
	 left: 0;
	 color: #bcd1f8;
 }

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

.howto_container .howto_sub {
	margin: 4rem 0 0 0;
	padding: 1rem 2rem 1rem 2rem;
	border: 4px solid #bcd1f8;
	border-radius: 2rem;
}

.howto_container .howto_sub h4:before {
	top: 0.6rem;
	left: 0;
	font-size: 1.2rem;
}

 }

 /* ============================================
 	howto_next
  ============================================ */

.howto_next {
	display: flex;
	justify-content: space-between; /* 両端配置 */
	margin: 0;
	padding: 0 2rem;
	font-size: 2rem;
}

.howto_next:has(.back):not(:has(.next)) { justify-content: flex-start; }
.howto_next:has(.next):not(:has(.back)) { justify-content: flex-end; }

.howto_next a {
	position: relative;
	display: block;
	padding: 1rem 3rem;
	font-size: 2rem;
}

.howto_next a:before {
	content: "\e900";
	font-family: 'dropchan' !important;
	position: absolute;
	top: 1.05rem;
	right: 0;
	color: #e37ac0;
}

.howto_next li.back a:before {
	right: auto;
	left: 0;
	transform: rotate(180deg);
}

/* レイアウト調整 */
.back a {
flex-direction: row-reverse; /* アイコン左、文字右 */
}

.next a {
flex-direction: row; /* デフォルト: 文字左、アイコン右 */
}
