@charset "utf-8";

/*
---------------------------------------------------------------------------*/

html{
  scroll-behavior:smooth;
}


.feature-link{
  position:relative;
  color:#2f4f6f;
  text-decoration:none;
}

.feature-link::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;

  width:100%;
  height:3px;

  background-image:
    radial-gradient(circle, rgba(0,0,0,.75) 1.2px, transparent 1.2px);

  background-size:6px 3px;
  background-repeat:repeat-x;

  animation:dotsMove 4.0s linear infinite;

  transition:
    background-image .2s ease;
}

.feature-link:hover{
  color:#0b5cab;
}

.feature-link:hover::after{
  background-image:
    radial-gradient(circle, #0b5cab 1.2px, transparent 1.2px);
}

@keyframes dotsMove{
  from{
    background-position:0 0;
  }
  to{
    background-position:10px 0;
  }
}



.tataki {
	margin-left: 30px;
	margin-bottom: 20px;
	font-size: 1.30rem;
	font-weight: 450;
}


/* 既存のCSSに以下を適用/修正 */
.speed-torque-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start; /* これで上辺が揃います */
    gap: 20px;
    margin-top: 17px; /* 以前のH3の上のマージンをこちらへ */
}

.speed-torque-text {
    flex: 1;
}

.speed-torque-image {
    flex: 0 0 30%;
    max-width: 300px;
}




.bigcolumn {
	margin-bottom: 25px;
	padding-bottom: 0;
}
.media-block {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.media-block img {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}
/* テキスト */
.media-block p {
  margin: 0;
}
#select:hover {
	opacity: 0.65;
}
.magbe-container {
	display: flex;
    flex-wrap: nowrap; /* 500pxまでは絶対改行しない */
    gap: 18px;          /* 画像間の余白 */
    margin-bottom: 10px;
    /* justify-content: center; 縦並び時の中央寄せ用 */
}
.cleanq {
	margin: 25px 0 15px 0;
}
.magbe {
	flex: 1;           /* 500px以上では均等に縮小 */
    min-width: 0;      /* 縮小を許可 */
    max-width: 350px;  /* 350px以上にはならない */
    height: auto;
    object-fit: contain;
	padding: 5px 0 2px 0;
}
.magbe-video {
    flex: 1;
    min-width: 0;
    max-width: 350px;  /* 動画だけ350px */
    height: auto;
    object-fit: contain;
    padding: 5px 0 2px 0;
}
.video-row {
    gap: 18px;  /* ←ここで隙間を調整（8px → 16pxなど） */
}
.conta {
	font-size: 1.1rem;
}
.conta:hover{
	opacity: 0.5;
}
.image-row {
  display: flex;
  gap: 15px;
}

.image-item img {
  display: block;
}

.image-item p {
  margin: 3px 0 0 0;
}
h2 {
	margin: 60px 0 15px 0;
	font-size: 1.6rem;
	scroll-margin-top: 20px;
}
h3 {
	margin: 30px 0 30px 0;
	font-size: 1.4rem;
	scroll-margin-top: 20px;
}
.reqpri {
	display: none;
}
.appli {
	list-style-type: disc;
}
.material {
	text-decoration: underline;
}
.bb {
	width: 100%;
	overflow: hidden;
	margin-top: 40px;
}
.tube {
	float: left;
	width: 60%;
}
.rrbox {
	float: left;
	width: 38%;
	padding-left: 2%;
}
footer {
	background-color: #0d62b2;
	padding: 10px;
}
.fmenu {
	text-align: center;
	display: flex;
	justify-content: center;
	margin: 5px 0 0 0;
}
.fmenu li{
	border-left: 1px white solid;
}
.fmenu li:last-child {
	border-right: 1px white solid;
}
.fmenu li a {
	padding: 0 10px;
	color: #fff;
	display: block;
}
.fmenu li a:hover {
	text-decoration: underline;
}
footer p {
	color: #fff;
	text-align: center;
	letter-spacing: 1px;
	line-height: 1.4;
}
.calc {
	background: #dcdcdc;
	padding: 5px 10px;
	border-radius: 5px;
}
.imgtop {
	padding-top:15px;
}
.title {
	font-size: 1.2rem;
	margin-top: 30px;
}
.fs {
	font-size: 0.8rem;
}


@media (max-width : 800px){

.reqpri {
	display: block;
}
.term {
	width: 100%;
}

.speed-torque-container {
        flex-direction: column;
        align-items: center;
    }
    .speed-torque-image {
        width: 300px;
        max-width: 100%;
        margin: 0px 0 20px 0; 
        order: 2; /* スマホ時は画像がテキストの下に来るように */
    }
    .speed-torque-text {
        width: 100%;
        order: 1;
    }





}
/* スマホ対応（縦並びにする） */
@media (max-width: 700px) {
  .media-block {
    flex-direction: column;
	gap: 5px; /* ←ここを小さくする */
  }

  .media-block img {
    width: 100%;
    max-width: 200px; /* 好みで調整 */
  }
}
@media screen and (max-width:640px){
.wc {
	display: flex;
	justify-content: center;
}
.fmenu {
	flex-flow: column;
	display:table-cell;
	vertical-align:top;
}
.fmenu li {
	border: none;
}
.fmenu li:last-child {
	border: none;
}
.fmenu li a {
	text-align: left;
	padding: 3px 10px 0 10px;
	text-decoration: underline;
}
}
@media screen and (max-width: 500px) {
    .magbe-container {
        flex-direction: column; /* 縦並びに変更 */
        align-items: center;    /* 中央寄せ */
    }
	.cleanq {
	margin: 20px 0 15px 0;
	}
    .magbe {
        flex: none;             /* 自動縮小・拡大を解除 */
        width: 300px;           /* 幅を300pxに固定 */
        max-width: 90%;         /* スマホの超小画面（300px以下）でのはみ出し防止 */
        margin-right: 0;
        margin-bottom: 10px;    /* 縦並び時の画像間の隙間 */
    }
	.magbe-video {
        flex: none;
        width: 300px;
        max-width: 90%;
        margin-bottom: 10px;
    }
}
@media screen and (max-width:360px){
.fmenu li a {
	font-size: 0.93rem;
}
}

@media (max-width: 454px) {
.solve {
	font-size: 1.30rem; 
	margin-top: 15px;
}

.tataki {
	margin-left: 30px;
	margin-bottom: 20px;
	font-size: 1.25rem;
}
}

/* イラスト集 */

.illu {
	margin: 15px 0 3px 0; 
	padding: 0;
}

.magnetic-wrapper {
  display: flex;
  gap: 0px;
  align-items: flex-start;
}

.magnetic-image {
  width: 450px;
  height: auto;
  flex-shrink: 0;
}

.magnetic-text {
  flex: 1;
}

.magnetic-text p{
  padding-left: 10px;
}


/* 800px未満で縦並び */
@media (max-width: 799px) {
  .magnetic-wrapper {
    flex-direction: column;
  }

  .magnetic-image {
    width: 100%;
    max-width: 450px;
  }
  
  .magnetic-text p {
	margin-top: 0;
	padding-left: 0;
	}
  .illu {
	margin-top: 20px;	
	}
	
	  .double-image {
    width: 100%;
    max-width: 450px;
  }

  .double-image .magnetic-image {
    width: 100%;
    height: auto;
    display: block;
  }
	
}

.double-image {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 450px;
  max-width: 100%;
}

.double-image .magnetic-image {
  width: 100%;
  height: auto;
}