/*
Theme Name: My Theme
Theme URI: https://ez-power-steering.jp
Author: ez-power-steering-japan
Author URI: https://ez-power-steering.jp
Description: ez-power-steering-japan
Version: 1.0
*/

/* ===================================
        リセットCSS
=================================== */

html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, figure,
footer, header, hgroup, menu, nav, section, summary,
time, mark, audio, video {
    margin:0;
    padding:0;
    border:0;
    outline:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}

body {
    line-height:22px;
}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {
    display:block;
}
li{
  list-style: none;
}
blockquote, q {
    quotes:none;
}
blockquote:before, blockquote:after,
q:before, q:after {
    content:'';
    content:none;
}
a {
    margin:0;
    padding:0;
    font-size:100%;
    vertical-align:baseline;
    background:transparent;
}
ins {
    background-color:#ff9;
    color:#000;
    text-decoration:none;
}
mark {
    background-color:#ff9;
    color:#000;
    font-style:italic;
    font-weight:bold;
}
del {
    text-decoration: line-through;
}
abbr[title], dfn[title] {
    border-bottom:1px dotted;
    cursor:help;
}
table {
    border-collapse:collapse;
    border-spacing:0;
}
hr {
    display:block;
    height:1px;
    border:0;  
    border-top:1px solid #ccc;
    margin:1em 0;
    padding:0;
}
input, select {
    vertical-align:middle;
}

/* ===================================
        オリジナルCSS
=================================== */
/* ===================================
            共通
=================================== */
*{
    font-family: 'ヒラギノ明朝 ProN','Hiragino Mincho ProN',sans-serif;
    letter-spacing: 1.2px;
}
a{
    color:#000;
}
a:hover{
    color: #000;
}
.section-title{
    font-size: 1.7em;
    font-weight: normal;
    margin-bottom: 30px;
}
.section-title span{
    font-size: 0.5em;
    padding-left:10px;
}

@media screen and (min-width:768px){
    .section-title{
        font-size: 2em;
    }
}

.more{
    display: block;
    width: 120px;
    padding: 7px 0;
    background-color: #000;
    color: #fff;
    font-size: 0.8em;
    text-align: center;
    text-decoration: none;
    letter-spacing: 5px;
}
.more:hover{
    opacity: 0.6;
    color: #fff;
}
.fadein {
  transition: .7s ease-in-out ;
}

@media screen and (min-width:768px){
    .more{
        width: 150px;
        font-size: 1em;
        letter-spacing: 8px;
    }
}

/* ===================================
             ヘッダー
=================================== */
header.site-header {
  height: 50px;
  width: 100%;
  background-color: #fff;
}
.header-nav {
  position: fixed;  
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  width: 100%;
  padding: 0;
  z-index: 1000;
  background-color: #fff;
}

.header-nav > .m-menu__toggle {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}
.title {
  display: flex;  
  align-items: center;
  gap: 10px;  
  height: 50px;
}
.title a {
  text-decoration: none; 
  display: flex;
  align-items: center;
  color: inherit;
}
.title img {
  width: 70px;
  height: auto;
}
.title h1 {
  font-size: 15px; 
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.m-menu__checkbox {
  display: none;
}
.steering-img img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

@media screen and (max-width:450px){
.title{
    gap:5px;
}
.title img{
    width: 50px;
}
.steering-img img{
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.title h1{
    font-size: 13px ;
}
}
  
  /* ===================================
          ハンバーガーメニュー
  =================================== */
    /* 表示された時のスタイル */
    .nav-menu.is-active {
      /* 画面外から元の位置に戻す */
      transform: translateX(0); 
    }
  svg{
    padding-top: 7px;
  }
  .header-nav .m-menu__checkbox {
    display: none;
  }
  .header-nav label.m-menu__toggle {
    cursor: pointer;
  }
  .header-nav .m-menu {
    position: fixed;
    top: 0;
    left: 0;
    max-width: 450px;
    width: calc(100vw - 30px);
    height: 100vh;
    -moz-transform: translate3d(-450px, 0, 0);
    -o-transform: translate3d(-450px, 0, 0);
    -ms-transform: translate3d(-450px, 0, 0);
    -webkit-transform: translate3d(-450px, 0, 0);
    transform: translate3d(-450px, 0, 0);
    -moz-transition: transform 0.35s;
    -o-transition: transform 0.35s;
    -webkit-transition: transform 0.35s;
    transition: transform 0.35s;
    z-index: 1000;
    overflow: hidden;
    background-color: #fff;
  }
  .header-nav .m-menu__overlay {
    background-color: rgba(103, 103, 103, 0.5);
    position: fixed;
    top: 0;
    width: 100%;
    bottom: 0;
    z-index: 1;
    display: none;
  }
  .header-nav .m-menu__header {
    padding: 0 16px;
    height: 50px;
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-around;
    justify-content: space-around;
    -ms-flex-pack: space-around;
    -webkit-align-items: center;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
  }
  .header-nav .m-menu__header span {
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    width: 100%;
  }
  .header-nav .m-menu .m-menu {
    -moz-transform: translate3d(480px, 0, 0);
    -o-transform: translate3d(480px, 0, 0);
    -ms-transform: translate3d(480px, 0, 0);
    -webkit-transform: translate3d(480px, 0, 0);
    transform: translate3d(480px, 0, 0);
  }
  .header-nav .m-menu ul {
    height: 100%;
    overflow-y: auto;
  }
  .header-nav .m-menu ul li a, .header-nav .m-menu ul li label {
    display: block;
    text-align: left;
    padding: 0 15px;
    line-height: 47px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
    font-size: 1rem;
    border-bottom: 1px solid #e8e8e8;
    position: relative;
  }
  .header-nav .m-menu ul li label.a-label__chevron::after {
    content: "";
    position: absolute;
    display: inline-block;
    height: 10px;
    width: 10px;
    border-color: #333;
    border-style: solid;
    border-width: 1px 1px 0 0;
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    top: 50%;
    margin-top: -5px;
    right: 16px;
  }
  .header-nav .m-menu ul li .-invisible {
    border-bottom: 0;
  }
  .header-nav .m-menu .m-menu label.m-menu__toggle {
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    border-bottom: 0;
    padding: 0;
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
  }
  .header-nav .m-menu__checkbox:checked ~ .m-menu__overlay {
    display: block;
  }
  .header-nav .m-menu__checkbox:checked ~ .m-menu {
    -moz-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }
  .header-nav .m-menu ul li a{
    padding: 0;
    border: none;
  }
  .m-menu li label:hover ,
  .m-menu li a:hover{
    color: white !important; 
    background-color: #333; 
  }
  .back-button:hover{
    background-color: #fff;
  }

/* ===================================
            トップページ
=================================== */
.main-pic img{
  width: 100%;
  height: 100vh;
  object-fit: cover;
}
.top-logo{
  position: absolute;
  bottom: 120px;
  left: 60px;
  color: #fff;
  height: 30px;
  align-items: center;
  display: flex;
}
.top-logo img{
  width: 80px;
  height: auto;
  margin-right: 10px;
}
.top-logo h1{
  font-weight: normal;
  font-size: 1.5em;
}
.pc-menu-list{
  position: absolute;
  top: 0;
  right: 0;
  font-weight: bold;
}
.pc-menu-list ul{
  display: flex;
  align-items: stretch; 
  justify-content: center;
  list-style: none;
  padding: 10px;
}
.pc-menu-list li{
  display: flex; 
  padding: 10px;
}
.pc-menu-list a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 10px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  font-size: 0.9em;
  color: #fff;
  position: relative;
  display: inline-block;
}
.pc-menu-list a::after {
  position: absolute;
  bottom: -3px;
  left: 0;
  content: '';
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}
.pc-menu-list a:hover::after {
  transform: scale(1, 1);
}

.sp-menu-list ul{
  text-align: center;
}
.sp-menu-list a{
  border-radius: 100px;
  display: inline-block;
  width: 300px;
  padding: 8px 10px;
  box-sizing: border-box;
  border: 1px solid #aaa;
  text-decoration: none;
  text-align: center;
  color: #aaa;
  font-size: 0.9em;
}
.sp-menu-list li{
  margin: 20px 0;
}
.sp-menu-list a:hover {
  transition: .2s cubic-bezier(0.45, 0, 0.55, 1);
  transform: translateY(-5px);
  background: #aaa;
  color: #fff;
  transform: scale(1.1);
}

  @media (min-width: 768px) {
    .top-nav .site-header, .sp-menu-list{
        display: none;
    }
  }

  @media (max-width: 768px) {
    .top-logo, .pc-menu-list{
        display: none;
    }
    .main-pic img{
      height: 50%;
    }
  }

/* ===================================
        電動パワーステアリング
=================================== */
.steering-img{
  height: 60vh;
}
.steering-img img{
  height: 60vh;
}
.ez-company{
    display: flex;
    padding: 20px;
    gap: 20px;
}
.ez-company img{
  display: block;
  margin: auto;
  height: 100px;
}
.ez-company-content{
    width: 33%;
    padding: 25px;
    margin: 50px 0;
    background-color: #eee;
}
.ez-company h2{
    margin: 25px 0;
    line-height: 20px;
    text-align: center;
}

@media screen and (max-width:768px){
  .steering-img{
    height: 40vh;
  }
  .steering-img img{
    height: 40vh;
  }
  .ez-company{
    display: block;
  }
  .ez-company-content{
      width: auto;
  }
}

/* ナビメニュー */
.sub-nav-list {
  display: flex;
  align-items: stretch; 
  justify-content: center;
  list-style: none;
  padding: 0;
  border-bottom: 1px solid #ccc;
}
.sub-nav-list li {
  flex: 1;
  display: flex; 
  border-right: 1px solid #ccc;
}
.sub-nav-list li:last-child{
  border-right:none;
}
.sub-nav-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 5px 10px;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  font-size: 0.9em;
}
.sub-nav-list a:hover {
  background-color: #011e35;
  color: #fff;
}

@media (max-width: 768px) {
  .sub-page-nav {
      display: none;
  }
}

/* About Us */
.about-us{
    width: 90%;
    display: flex;
    margin: 100px auto;
}
.about-us img{
    width: 40%;
    object-fit: cover;
}
.about-us-content{
    margin-left: 50px;
}
.about-us-content h2{
    line-height: 50px;
    font-size: 30px;
    margin-bottom: 50px;
}

@media screen and (max-width:768px){
    .about-us{
        display: block;
        margin: 200px auto;
    }
    .about-us img{
      width: 100%;
      height: 350px;
      margin-bottom: 50px;
    }
    .about-us-content{
      padding:0 10px;
      margin: 0;
  }
    .about-us-content h2{
      margin-bottom: 30px;
  }
}

 /* PUBLICATIONS */
.publications{
    width: 90%;
    display: flex;
    margin: 250px auto;
    justify-content: space-between;
}
.publications-content{
    margin-right: 50px;
}
.publications-content h2{
    line-height: 50px;
    font-size: 30px;
    margin-bottom: 50px;
}
.publications a{
    padding: 10px;
    margin-top: 30px;
    width: 120px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: #333;
    border-radius: 6px;
    display: inline-block;
    transition: .3s;
  }
  .publications a:hover {
    transform: scale(1.1);
  }
  .publications-img{
    height: auto;
    width: 60%;
    column-count: 3;
    gap:10;
    
  }

@media screen and (max-width:768px){
  .publications{
   display: block;
  }
  .publications-content{
    margin-bottom: 50px;
  }
  .publications-img{
    width: 100%;
    overflow: scroll;
  }
}

 /* why-choose-us */
.why-choose-us{
    padding: 50px 20px;
    background: #282829;
    text-align: center;
}
.why-choose-us h2{
    text-align: center;
    font-size: 35px;
    margin:50px 0;
    color: #fff;
}
.why-choose-us-wrapper {
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-content: center;
  gap: 20px;
}
.why-choose-us-content {
  background: rgba(255, 255, 255, 0.05); 
  border: 1px solid #fff;
  border-radius: 15px;
  padding: 40px 20px;
  text-align: center;
  color: #fff;
}

/* アイコン部分（疑似要素で作成） */
.why-choose-us-content::before {
  content: ''; 
  display: block;
  width: 80%;
  height: 80px;
  margin: 0 auto 20px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* 各項目ごとのアイコン指定（例） */
.why-choose-us-content:nth-child(1)::before { background-image: url('img/icon4.png'); } /* 革新 */
.why-choose-us-content:nth-child(2)::before { background-image: url('img/icon5.png'); }     /* 安全性 */
.why-choose-us-content:nth-child(3)::before { background-image: url('img/icon6.png'); } /* 独創 */
.why-choose-us-content:nth-child(4)::before { background-image: url('img/icon7.png'); }  /* 経験 */

.why-choose-us-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  letter-spacing: 0.1em;
}
.why-choose-us-content p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #ccc;
  text-align: justify;
}
.why-choose-us-pic{
  width: 90%;
  margin-top: 50px;
}
@media screen and (max-width: 1000px) {
  .why-choose-us-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .why-choose-us-wrapper {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .why-choose-us-content h2 {
      font-size: 25px;
  }
}

@media screen and (max-width:500px){
  .ez-company p, .about-us p, .publications p, .why-choose-us p{
    font-size: 0.9em;
  }
}

/* contact */
.contact-cta-section {
  padding: 100px 20px; 
  text-align: center; 
  background-color: #f8f8f8;
}
.cta-main-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.25rem;
  font-weight: bold;
  text-decoration: none;
  background-color: #333; 
  color: white;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  transition: background-color 0.3s ease, transform 0.1s ease;
}
.cta-main-button:hover {
  color: #fff;
  transform: translateY(-2px);
}
.cta-sub-text {
  margin-top: 20px;
  font-size: 0.9rem;
}
.cta-sub-text a {
  color: #555; 
  text-decoration: underline; 
}

@media screen and (max-width:500px){
  .cta-main-button {
    padding: 15px 20px;
    font-size: 1em;
  }
}

/* ===================================
       取り扱いブランド
=================================== */
.car-brands{
    width: 80%;
    margin: 100px auto;
  }
  .car-brands h2{
    margin-bottom: 30px;
    font-size: 1.3em;
  }
  .eps-price-list{
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 30px 10px;
    margin-bottom: 100px;
    transition: 0.3s;
    max-width: 200px;
    border: 1px solid #b3b3b3;
  }
  .eps-price-list:hover {
    background-color: #b3b3b3;
    color: #fff;
    transition: 0.3s;
  }
  .brand-list ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  .brand-list li{
    margin-bottom: 15px;
    max-width: 200px;
    border: 1px solid #b3b3b3;
  }
  .brand-list a{
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 30px 10px;
    transition: 0.3s;
  }
  .brand-list a:hover {
    background-color: #b3b3b3;
    color: #fff;
    transition: 0.3s;
  }

/* 各メーカー製品一覧 */
.product-container{
  padding: 50px;
}
.breadcrumb-taxonomy{
  margin: 0;
  font-size: 12px;
  color: #333;
  text-transform: uppercase;
}
.breadcrumb-taxonomy a {
  color: #333;
}
.product-container h1{
  font-size: 1.3em;
  margin: 50px 0 30px 0;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}
.product-item {
  border: 1px solid #eee;
  background: #fff;
  transition: transform 0.2s;
  max-width: 300px;
}
.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.product-item a {
  text-decoration: none;
  color: #333;
}
.product-image img {
  width: 100%;
  height: 250px;
  object-fit: cover; 
  display: block;
}
.product-info {
  padding: 15px;
  text-align: center;
}
.product-title {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
}

@media screen and (max-width:768px){
  .container{
    padding: 20px;
  }
}

/* 製品詳細 */
.breadcrumb {
  width: 90%;
  font-size: 12px;
  color: #888;
  margin-bottom: 15px;
  text-transform: uppercase;
  margin: 50px auto;
}
.breadcrumb a {
  color: #333;
}
.detail {
  width: 90%;
  margin: auto;
  padding-bottom: 80px;
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start !important;
}
.detail h2 {
  margin-bottom: 30px;
  font-size: 1.4em !important;
}
.product-info-box {
  position: sticky;
  top: 100px;
  flex: 1; 
  min-width: 0;
}
.product-name {
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 20px 0;
  font-weight: 700;
  border-bottom: 2px solid #333;
  padding-bottom: 15px;
}
.discription-left {
  display: block;
}
.discription-bottom {
  display: none;
}
.btn-contact {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
  transition: background-color 0.3s ease, transform 0.1s ease;
  margin-top: 20px;
}
.btn-contact:hover {
  color: #fff;
  transform: translateY(-2px);
}
.gallery {
  flex: 1.5; 
  min-width: 0;
}
.gallery br {
  display: none;
}
.gallery p {
  margin: 0;
  padding: 0;
  display: contents;
}
.gallery input {
  display: none;
}
.main {
  width: 100%;
  margin-bottom: 30px;
}
.main img {
  margin: 0 auto;
  width: 80%;
  height: auto;
  object-fit: contain;
  display: none;
}
#img1:checked ~ .main .p1,
#img2:checked ~ .main .p2,
#img3:checked ~ .main .p3,
#img4:checked ~ .main .p4,
#img5:checked ~ .main .p5,
#img6:checked ~ .main .p6 {
  display: block;
}
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  justify-content: safe center;
}
.thumbs::before,
.thumbs::after {
  content: "";
  margin: auto;
}
.thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  border-radius: 6px;
}
#img1:checked ~ .thumbs label[for="img1"] img,
#img2:checked ~ .thumbs label[for="img2"] img,
#img3:checked ~ .thumbs label[for="img3"] img,
#img4:checked ~ .thumbs label[for="img4"] img,
#img5:checked ~ .thumbs label[for="img5"] img,
#img6:checked ~ .thumbs label[for="img6"] img  {
  opacity: 1;
  border-color: #000;
}

@media (max-width: 768px) {
  .detail {
    flex-direction: column;
  }
  .detail h2 {
    font-size: 1.1em !important;
  }
  .product-info-box {
    position: static;
  }
  .product-name {
    font-size: 22px;
  }
  .product-info-box, .gallery {
    width: 100%;
  }
  .discription-left {
    display: none;
  }
  .discription-bottom {
    display: block;
    padding-top:30px ;
    margin: auto;
    text-align: center;
  }
}

/* ===================================
            製品
=================================== */
.tab {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: auto;
    margin-top: 30px;
  }
  .tab label {
    flex: 1 1;
    order: -1;
    position: relative;
    min-width: 70px;
    padding: .7em 1em;
    background-color: #f2f2f2;
    color: #999;
    font-size: .9em;
    text-align: center;
    cursor: pointer;
  
  }
  .tab label:has(:checked) {
    background-color: #555;
    color: #fff;
  }
  .tab label:has(:checked)::before {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 9px;
    background-color: #555;
    content: '';
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .tab input {
    display: none;
  }
  .tab label:has(:checked) + div {
    display: block;
  }
  .tab-wrapper {
    display: none;
    width: 100%;
    padding: 50px 0;
  }
  .our-product-contents{
    margin-bottom: 50px;
  }
  .tab-wrapper h3{
    margin-bottom: 20px;
    font-size: 1.3em;
  }
  
  /* 当社の製品 */
  .our-products-wrapper{
    margin-bottom: 100px;
  }
  .safety-inner img{
    float: right;
    width: 40%;
    min-width: 300px;
    margin: 0 0 20px 20px;
  }
  .method-inner img{
    float: left;
    width: 40%;
    min-width: 300px;
    margin: 0 30px 20px 0;
  }
  .our-products-wrapper{
    clear: both;
  }
  .motorsport-img, .pre-war-systems-img{
    display: flex;
    margin-top: 30px;
    justify-content: space-around;
    align-items: center;
    width: 100%; 
    gap: 10px;
  }    
  .motorsport-img img{
    flex: 1; 
    max-width: 50%;
    height: 220px;
    object-fit: cover; 
  }
  .pre-war-systems-img img {
    flex: 1; 
    max-width: 33%;
    height: 180px;
    object-fit: cover; 
  }
  
  @media screen and (max-width:768px){
    .tab-wrapper p{
      font-size: 0.9em;
    }
    .tab-wrapper h3{
      font-size: 1.3em;
    }
    .safety-inner img, .method-inner img{
      float: none;
      margin: 10px 0;
    }
    .motorsport-img, .pre-war-systems-img{
      display:block;
      width: 100%; 
    }    
    .motorsport-img img,.pre-war-systems-img img{
      width: 100%;
      max-width: 100%;
      height: auto;
      margin-bottom: 10px;
    }
  }
  
  /* 電動パワーステアリング部品 */
  .parts-wrapper h3{
    font-size: 1.3em;
    margin-bottom: 40px;
  }
  .parts-inner-top img{
      float: right;
      width: 40%;
      min-width: 300px;
      margin: 0 0 20px 20px;
  }
  .parts-inner-bottom{
    clear: both;
    padding-top: 50px;
  }
  .parts-inner-bottom img{
    display: block;
    width: 50%;
    max-width: 300px;
    margin: 30px 0;
  }
  .product-table {
    margin: 40px 0;
    max-width: 900px;
  }
  .product-table th, .product-table td {
    border: solid 1px black;
  }
  .product-table td{
    padding: 10px;
    vertical-align: middle;
    font-size: 0.9em;
  }
  .parts-img{
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
  }
  .parts-img img{
    width: 50%;
    margin: 0;
  }
  
  @media screen and (max-width:768px){
    .parts-inner-top img{
      float: none;
      margin: 0 20px 20px 0;
  }
  .product-table td{
      font-size: 0.8em;
    }
    .parts-img{
      display: block;
    }
    .parts-img img{
      width: 80%;
      margin-bottom: 10px;
    }
  }

/* ===================================
         よくある質問
=================================== */
.faq{
    width: 80%;
    margin: 100px auto;
    position: relative;
    z-index: 0;
  }
  .faq h2{
    text-align: center;
    margin: 50px 0;
    font-size: 25px;
    font-weight: normal;
  }
  
  /* アコーディオン */
  .faq-accordion {
    margin-bottom: 7px;
    border: 2px solid #d0d0d0;
    border-radius: 5px;
  }
  .faq-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 1em 2em;
    font-size: 1em;
    color: #333333;
    background: #eee;
    cursor: pointer;
  }
  .faq-accordion summary::-webkit-details-marker {
    display: none;
  }
  .faq-accordion summary::after {
    transform: translateY(-25%) rotate(45deg);
    width: 7px;
    height: 7px;
    margin-left: 10px;
    border-bottom: 3px solid #333333b3;
    border-right: 3px solid #333333b3;
    content: '';
    transition: transform .3s;
  }
  .faq-accordion[open] summary::after {
    transform: rotate(225deg);
  }
  .faq-accordion p {
    transform: translateY(-10px);
    opacity: 0;
    margin: 0;
    padding: 1.5em;
    font-size: 0.9em;
    color: #333333;
    transition: transform .5s, opacity .5s;
  }
  .faq-accordion[open] p {
    transform: none;
    opacity: 1;
  }

  @media screen and (max-width:768px){
    .faq{
        width: 90%;
    }
    .faq-accordion summary {
        padding: 1em;
        font-size: 0.9em;
      }
    .faq-accordion summary::after {
        transform: translateY(-25%) rotate(45deg);
        width: 7px;
        height: 7px;
        margin-left: 10px;
        border-bottom: 2px solid #333333b3;
        border-right: 2px solid #333333b3;
        content: '';
        transition: transform .3s;
    }
  }

  /* ===================================
            WOSP
=================================== */
.wosp-img img{
    margin: 50px auto;
    display: block;
    width: 300px;
  }
  .wosp-text{
    width: 80%;
    margin: 50px auto 200px auto;
  }
  .wosp-text h2{
    margin-bottom:20px ;
    font-size: 1.3em;
  }
  .wosp-text p{
    font-size: 0.9em;
    letter-spacing: normal;
  }
  .wosp-product{
    background: #eee;
    padding: 50px;
  }
  .wosp-product h3{
    font-size: 1.3em;
  }
  .wosp-product > div{
    width: 80%;
    margin: 0 auto;
    padding: 100px 0;
  }
  .dynators, .starters{
    border-top: 0.5px solid #000;
  }
  .product-img{
    display: flex;
    gap:5px;
    margin: 30px 0;
  }
  .product-img img{
    width: 25%;
  }
  .wosp-product p{
    font-size: 0.9em;
  }
  
  @media screen and (max-width:768px){
    .wosp-img img{
      width: 230px;
    }
    .wosp-text p, .wosp-product p{
      font-size: 0.8em;
    }
    .wosp-product > div{
      width: 85%;
    }
    .product-img{
      display: block;
      column-count: 2;
    }
    .product-img img{
      width: 100%;
    }
    .wosp-product{
      padding: 0;
    }
  }
  
/* 価格表 */
  .wosp-price-list{
    z-index: 100;
    width: 80%;
    margin: 100px auto;
    text-align: center;
  }
  .wosp-price-list h2{
    font-size: 23px;
    margin: 50px 0 30px 0;
  }
  .wosp-price-list p{
    font-size: 0.8em;
    text-align: left;
  }
  .dropmenu{
    margin-top: 20px;
  }

  @media screen and (max-width:768px){
    .wosp-price-list h2{
      font-size: 18px;
      margin: 20px 0;
    }
  }
  
  /* ドロップダウン */
  .dropmenu > ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
  }
  .parent-menu {
    position: relative;
    margin: 5px;
  }
  .parent-menu a {
    text-decoration: none;
    display: block;
    text-align: center;
    background: #eee;
    color: #333;
    padding: 10px 15px;
  }
  .parent-menu a:hover {
    opacity: 0.7;
  }
  
  /*子階層*/
  .child-menu {
    visibility: hidden;
    width: 100%;
    position: absolute;
    left: 0;
    top: 95%;
    background: #fff;
    -webkit-box-shadow: 0px 3px 10px 2px rgba(25, 26, 26, 0.3);
    box-shadow: 0px 3px 10px 2px rgba(25, 26, 26, 0.3);
    border-radius: 5px;
    transition: all .5s cubic-bezier(0.075, 0.82, 0.165, 1);
    transform: scaleY(0);
    transform-origin: center top;
    opacity: 0;
    display: block;
    z-index: 1000;
  }
  
  /*子階層ドロップダウン*/
  .dropmenu > ul > li:hover .child-menu {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
  }
  .child-menu a {
    padding: 10px 5px; 
    font-size: 0.8em;
    background: #fff;
  }
  .child-menu a:hover{
    background: #eee;
  }
  
  /*子階層の▲の装飾*/
  .child-menu::before {
    content: "";
    display: block;
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 10px 10px 10px;
    border-color: transparent transparent #fff transparent;
    filter: drop-shadow(0 0px 5px rgba(25, 26, 26, 0.3));
    z-index: -1;
  }
  

/* ===================================
           3Dデザイン
=================================== */
.contents{
    width: 80%;
    margin: auto;
  }
  .contents h2{
    margin-top:100px;
    font-size: 1.5em;
  }
  .parts-design {
    width: 100%;
    margin:50px 0;
  }
  .car-3d-box{
    margin: 80px 0;
  }
  .car-3d-box h2{
    font-size: 1.3em;
    margin-bottom: 20px;
  }
  .car-3d-box-img{
    display: flex;
    width: 50%;
    margin: 10px 0;
  }
  .car-3d-box-img img{
    width: 100%;
    margin: 0 5px;
  }
  
  @media screen and (max-width:768px){
    .car-3d-box-img{
      display: block;
      width: 100%;
    }
  
    .car-3d-box-img img{
      margin-bottom: 10px;
    }
  }  

/* ===================================
            お問い合わせ
=================================== */
.contact{
    width: 80%;
    margin: 100px auto;
  }
  .contact h2{
    font-size: 30px;
    margin: 30px 0;
    font-weight: normal;
  }
  .red{
    font-size: 1.3em;
    color: red;
    margin: 80px 0 30px 0;
   text-decoration: underline;
  }
  .contact-text{
    font-size: 0.9em;
  }
  
  @media screen and (max-width:500px){
    .contact{
      margin: 50px auto;
    }
    .red{
      font-size: 1.1em;
    }
    .contact-text{
      font-size: 0.85em;
    }
  }  

/* ===================================
            フッター
=================================== */
footer{
    height: 50px;
    text-align: center;
    border: 1px solid #ccc;
    text-align: center;
}
footer p{
  font-size: 0.8em;
  line-height: 50px;
}
footer ul{
    margin: 0 auto;
    padding: 30px;
}
footer li{
    font-size: 0.9em;
    padding: 10px;
}
footer a{
    color: #fff;
    text-decoration: none;
}
footer a:hover{
    border-bottom: 1px solid #fff;
}

@media screen and (max-width:500px){
  footer p{
    font-size: 0.6em;
    letter-spacing: normal;
  }
}  