p{
  font-family: "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500;
}

.brand-section {
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  padding-bottom: 40px;
}

.brand-header {
  padding: 24px 16px;
}

.breadcrumb {
  font-size: 12px;
  color: #999;
  margin-bottom: 16px;
}

.brand-logo img {
  width: 220px;
  margin: 0 auto 12px;
}

.brand-text {
  font-size: 20px;
  color: #333;
  line-height: 1.6;
}

/* 動画 */
.hero-video {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-video video {
  width: 100%;
  display: block;
}


/*商品紹介*/

.title{
  text-align: center;
}

/* --- 「サイズを見る ＞」を右寄せにする設定 --- */
.ms-final-text a {
    display: block;      /* 横幅いっぱいに広げてブロック化 */
    text-align: right;   /* テキストを右寄せにする */
    margin-top: 12px;    /* 上の説明文との間に少し隙間を作る（お好みで調整） */
    font-weight: bold;   /* カンプに合わせて少し太字にする場合 */
    text-decoration: underline;
    width: 100%;
}


/* アイテム */
.item {
  scroll-snap-align: center;
  transition: all 0.3s ease;
}

/* カード */
.card {
  padding-bottom: 16px;
}

.card img {
  display: block;
  width: 85%;
}

/* テキスト */
.card-title {
  font-weight: bold;
  font-size: 16px;
  margin: 12px 12px 4px;
}

.card-sub {
  font-size: 12px;
  color: #666;
  margin: 0 12px 8px;
}

.card-text {
  font-size: 12px;
  margin: 0 12px 12px;
  line-height: 1.6;
}

.card-link {
  font-size: 12px;
  margin: 0 12px;
  color: #666;
  text-decoration: underline;
}

/* 中央強調 */
.item.active {
  width: 500px;
  opacity: 1;
  transform: scale(1.05);
}


/**/
/**/
.text_up{
  font-weight: bold;
  background:linear-gradient(transparent 80%, #FFD800 60%);
}


.black_back{
  position: relative;
  background: url(https://perfect-floors.jp/metalsistem/img/msistem_back.jpg);
    height: 750px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatmsistem{
    position: relative;
  z-index: 1;
  color: #fff;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}
.recobtn{
    display: inline-block;
  margin-top: 80px;
  border: 1px solid #fff;
  border-radius: 40px;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  width: 325px;
  padding: 16px;
}
.whatmsistem h2 span{
  color: #4cc0e8; /* 水色アクセント */
  font-weight: bold;
}
.whattext{
  margin: 35px auto 0;
  font-size: 24px;
  line-height: 150%;
}

.reason {
  padding: 88px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.reason-title {
  font-size: 36px;
  margin-bottom: 10px;
  color: #555555;
}

.reason-sub {
  font-size: 14px;
  color: #777777;
  margin-bottom: 40px;
}

/* 横並び */
.reason-wrap {
  display: flex;
  margin: 0 auto;
}

/* 左 */
.reason-left {
  flex: 1;
  max-width: 440px;
}

/* グリッド */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.reason-item {
  background: #f5f5f5;
  padding: 22px 0;
  text-align: center;
  width: 205px;
}

.reason-item img {
  margin-bottom: 10px;
}

.reason-item p {
  font-size: 17px;
  line-height: 170%;
  color: #555;
}

/* 電話 */
.telephone{
  width: 65%;
  margin: 8px auto;
}
.reason-contact .tel {
  font-size: 51px;
  color: #607D8B;
  margin: 40px 0 20px;
}

.reason-contact .time {
  font-size: 26px;
  color: #607D8B;
  line-height: 1.5;
}

/* ボタン */
.contact-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 16px 0 0 ;
  background: #6c8791;
  color: #fff !important;
  border-radius: 30px;
  text-decoration: none;
  width: 440px;
  font-size: 24px;
  height: 53px;
}

/* 右画像 */
.reason-right {
  flex: 1;
}

.reason-right img {
  display: block;
  max-width: 691px;
  margin-left: 7%;
  width: 91%;
}

.historysentence{
    margin: 0px auto 30px;
    line-height: 48px;
    font-size: 16px;
    color: #555555;
    width: 1200px;
}

.feature {
  padding: 80px 0 0;
}

.feature-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  color: #555;
}

/* 横並び */
.feature-block {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto 16px;
}

/* 逆配置 */
.feature-block.reverse {
  flex-direction: row-reverse;
}

/* テキスト */
.feature-text {
  flex: 1;
}

.feature-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
  line-height: 1.6;
  margin-top: 16px;
    font-family: "Noto Sans JP";
}

.feature-text p {
  font-size: 14px;
  color: #555;
}

/* section番号 */
.section-no {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

.section-no span {
  font-size: 28px;
  font-weight: bold;
  display: block;
}

/* 画像 */
.feature-img {
  flex: 1;
}

.feature-img img {
  width: 100%;
  display: block;
}

.section-text {
  font-size: 16px;
  max-width: 1200px;
  margin: 0 auto 24px;
  line-height: 30px;
  letter-spacing: 0.1em;
  color: #555;
}

/* サブエリア */
.feature-sub {
  max-width: 1200px;
  margin: 0 auto 56px;
  text-align: left;
  display: flex;
  gap: 40px;
}

.feature-sub img {
  width: 100%;
  margin-bottom: 10px;
  flex: 1;
}

.feature-sub p {
  font-size: 16px;
  color: #666;
  flex: 1;
  margin: auto;
  line-height: 30px;
}

.product-list p:last-of-type{
  background-color: #555 !important;
  color: #fff !important;
}

a:link{
  color: #fff !important;
}

.metal-content{
  width: 1200px !important;
}
.product-list li{
  width: auto;
}

:root {
    --bg-color: #f7f7f7;
    --text-color-main: #444;
    --text-color-sub: #777;
    --btn-bg-color: #333;
    --font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
}

/* --- オプションパーツエリア（PC版決定版） --- */
.container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 100px auto;
    background-color: #f5f5f5;
    padding: 60px 50px;
    align-items: center;            /* 左右のセクションを上下中央揃え */
    justify-content: space-between; /* 左と右に綺麗に割り振る */
}

/* 左側セクション：ロゴ、テキスト、ボタンを縦に並べる */
.text-section {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parts-logo-area {
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
}

.parts-logo-img {
    height: 38px;
    width: auto;
    display: inline-block;
}

.text-content {
    width: 100%;
    text-align: center;
}

.sub-title {
    font-size: 14px;
    color: var(--text-color-sub);
    margin-top: 0;
    margin-bottom: 35px;
    text-align: center;
}

.btn-parts {
    display: inline-block;
    background-color: var(--btn-bg-color);
    color: #fff !important;
    text-decoration: none;
    width: 100%;
    max-width: 340px;
    padding: 14px 0;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
    transition: opacity 0.3s;
    white-space: nowrap;
}

.btn-parts:hover {
    opacity: 0.8;
}

/* 右側セクション：6分割画像 */
.image-section {
    width: 50%;
    display: flex;
    justify-content: flex-end;
}

.main-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 550px;
}

.time {
    display: block;
}
  
 .metal-logo-uni img{
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  width: 20%;
  max-width: 300px;
 }

  .metal-logo-han img{
  display: block;
  margin: 0 auto;
  margin-bottom: 10px;
  width: 30%;
  max-width: 440px;
 }

 .swiper-wrapper{
  gap: 5% ;
}


@media screen and (min-width: 481px) {
  .sp-only {
    display: none;
  }
}

/*スマホ版*/
@media  (max-width: 480px){
  .hero-video{
    width: 265% !important;
    margin-left: -85% !important;
  }

  .brand-header{
    text-align: left;
  } 
  .brand-logo img{
    width: 200px;
  }
  .brand-text{
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.025em;

  }

  .ms-final-img-box img{
    width: 67% !important;
    height: 67% !important;
  }
  .ms-final-main-title{
    font-size: 24px !important;
    margin: 0px !important;
  }
  .ms-final-prev, .ms-final-next{
    width: 50px !important;
    height: 50px !important;
    top: 33%  !important;
  }
  .ms-final-content{
    bottom: 113px !important;
  }
  .ms-final-sentence{
    font-size: 12px !important;
  }
  .ms-final-text{
    margin-top: -80px !important;
    font-size: 11px  !important;
  }

  .black_back{
    height: unset !important;

  }
  
  .whatmetatext{
    font-size: 20px !important;
  }

  .whattext{
    font-size: 16px !important;
  }

  .pc-only {
    display: none;
  }
  .whattext{
    margin: 24px auto 0 !important;
    line-height: 1.8;
  }

  .whatmsistem{
    padding: 48px !important;
  }

  .recobtn{
    margin-top: 40px !important;
    width: 205px !important;
    padding: 8px;
  }

  .btntext{
    font-size: 16px !important;
  }

  .reason{
    padding: 32px o;
  }
  
  .reason-title{
    font-size: 24px !important;
  }

  .reason-sub{
    font-size: 14px !important;
    line-height: 2;
    font-weight: 500;
    color: #000;
  }
.reason-grid{
  gap: 19px !important;
  grid-template-columns: repeat(2,0fr) !important;
  justify-content: center;
}

.reason-item{
  width: 150px !important;
}

.reason-item img{
  margin-bottom: auto !important;
  width: 27%;
}

.reason-item p{
  font-size: 15px;
}

.reason-contact .time{
  font-size: 18px;
  line-height: 1.5;
}

.reason-right img{
  display: none !important;
}
.ms-final-text a{
  margin-left: -115px !important;
  text-align: right  !important;
  display: block;
}
.swiper-wrapper{
  margin-left: 60px;
  gap: 0 !important;
}
  }

/* --- スマホ版レスポンシブ修正 (@media screen and (max-width: 480px) 内) --- */
@media (max-width: 480px) {
  
  /* セクション全体の余白調整 */
  .reason, .metal-history.sp, .feature, .itemchinretu {
    padding: 40px 16px !important;
    overflow: hidden;
  }

  /* 選ばれる理由セクション */
  .reason-wrap {
    flex-direction: column;
    align-items: center;
  }
  .reason-left {
    max-width: 100% !important;
  }
  .reason-contact .tel {
    font-size: 32px !important; /* 画面内に収まるサイズに */
    margin: 24px 0 8px !important;
  }
  .contact-btn {
    width: 100% !important; /* ボタンを横幅いっぱいに */
    max-width: 300px;
    font-size: 18px !important;
    height: auto !important;
    padding: 12px 0 !important;
  }
  .telephone{
  width: 70%;
}

  /* 歴史セクション */
  .metal-history.sp {
    display: block !important;
  }
  .historysentence, .historyleadtext {
    width: 100% !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: left;
    margin: 20px 20px !important;
    letter-spacing: 1px;
  }
  #meta-history {
    width: 100% !important;
    height: auto !important;
  }
  .history-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
  }
  .histry-image img.sp {
    width: 100% !important;
  }

  /* メタルの魅力セクション */
  .feature-title {
    font-size: 24px !important;
  }
  .feature-block {
    flex-direction: column !important; /* 縦並びに強制 */
    align-items: flex-start !important;
  }
  .feature-text h3 {
    font-size: 20px !important;
    margin-bottom: 16px;
  }
  .feature-img iframe {
    width: 100% !important; /* 動画の横幅をスマホに合わせる */
    height: 200px !important;
  }
  .section-text {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }
  .feature-sub {
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* 商品ラインナップセクション */
  .metal-content {
    width: 100% !important;
  }
  .metalitemlineup {
    display: flex;
    gap: 20px;
    padding: 0;
  }
  .itemmetalline img {
    width: 100% !important;
  }
  .metal-allphoto img {
    width: 100% !important;
  }

  /* オプションパーツセクション */
  .container {
    margin: 40px auto !important;
  }
  .sub-title {
    margin-bottom: 24px !important;
  }
  .btn-parts {
    padding: 14px 0 !important;
    width: 100% !important;
  }

  /* FAQセクション */
  .cat_detail_qa {
    padding: 0 10px;
  }
  .qa_parent {
    font-size: 15px !important;
    padding: 15px !important;
  }
  .qa_child {
    font-size: 14px !important;
    padding: 15px !important;
  }

  /* 関連特集（ブログ） */
  .metablog {
    flex-direction: column !important;
    gap: 15px;
  }
  .mbloglineup {
    width: 100% !important;
  }
  .mbloglineup img {
    width: 100% !important;
  }
}

/* --- スマホ版レスポンシブ最終調整 (@media screen and (max-width: 480px)) --- */
@media screen and (max-width: 480px) {

  /* --- 1. 基本設定 --- */
  .pc-only { display: none !important; }
  .sp-only { display: block !important; }

  .brand-header { text-align: left; }

  /* --- 2. メタルシステムの魅力（feature）全体調整 --- */
  .feature {
    padding: 40px 16px !important;
    overflow: hidden;
  }

  .feature-title {
    font-size: 24px !important;
    margin-bottom: 32px !important;
    font-weight: bold;
    text-align: center;
  }


  /* セクション番号と見出しを常に横並びに */
  .feature-block {
    display: block !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
  }

  .feature-text {
    display: flex !important; /* 横並びを強制 */
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    justify-content: center;
  }

  /* セクション番号画像 (01, 02など) */
  .feature-text img {
    width: 40px !important; /* 視認性の高いサイズに調整 */
    max-width: 40px !important;
    height: auto !important;
    flex-shrink: 0 !important;
  }

  /* 見出しテキスト */
  .feature-text h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    text-align: left !important;
    font-weight: bold !important;
    color: #333;
    letter-spacing: 0.05em !important;
  }

  /* メイン画像・動画 */
  .feature-img {
    width: 100% !important;
    margin-bottom: 20px !important;
  }

  .feature-img img, 
  .feature-img iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
    display: block;
  }

  /* 説明文（section-text） */
  .section-text {
    font-size: 14px !important;
    line-height: 1.8 !important;
    color: #555;
    padding: 0 !important;
    text-align: left !important;
    max-width: 100% !important;
  }

  /* 黄色のマーカー線 */
  .text_up {
    font-weight: bold;
    background: linear-gradient(transparent 70%, #FFD800 70%) !important;
    display: inline;
    letter-spacing: 2px;
  }

  /* サブエリア (画像+テキスト) */
  .feature-sub {
    flex-direction: column !important;
    gap: 15px !important;
    margin-bottom: 40px !important;
    padding: 0 !important;
  }

  .feature-sub img {
    width: 100% !important;
    flex: none !important;
  }

  .feature-sub p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #666;
    flex: none !important;
  }

  /* --- 3. 選ばれる理由（reason） --- */
  .reason { padding: 40px 16px !important; }
  .reason-title { font-size: 24px !important; }
  .reason-main-img-sp {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 30px;
  }
  .reason-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .reason-item {
    padding: 19px 0px !important;
  }
  .reason-contact .tel {
    font-size: 32px !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
  }
  .contact-btn {
    width: 280px !important;
    height: 55px !important;
    line-height: 55px;
    font-size: 16px !important;
    padding: 0 !important;
  }

/* --- 4. 歴史・FAQ・その他（オプションパーツエリアのスマホ最適化） --- */
  h4.metalh4 {
    margin: 0 0 20px !important;
  }
  .historysentence, .historyleadtext {
    width: auto !important;
    margin: 20px 0 !important;
    font-size: 14px !important;
  }

  /* スマホ用コンテナリセット */
  .container { 
    flex-direction: column !important; /* 縦並びに強制 */
    background-color: #f5f5f5 !important;
    padding: 40px 24px !important;
    margin: 40px 16px !important;
    width: calc(87% - 32px) !important;
    justify-content: center !important;
  }

  /* 左側エリアだった箱をスマホ用にリセット */
  .text-section {
    width: 100% !important;
    order: 2; /* 並び順制御：ロゴ・テキスト関係を画像の下（2番目）にする */
  }

  /* ロゴエリアのみ、画像の上に持っていくため単独でorderを指定 */
  .parts-logo-area {
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 24px !important;
    position: absolute;
    top: 40px; /* コンテナのトップからの位置調整 */
    left: 0;
  }

  /* コンテナ上部に絶対配置するため、スマホ時のみcontainerに相対位置を付与 */
  .container {
    position: relative !important;
    padding-top: 90px !important; /* ロゴの分の上の余白を開ける */
  }

  .parts-logo-img {
    height: auto !important;
    width: 70% !important;
    max-width: 240px !important;
    display: inline-block;
  }

  /* 右側エリア（画像）をスマホ用にリセット */
  .image-section {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 24px !important;
    order: 1; /* 並び順制御：画像をロゴの下（1番目）にする */
  }

  .main-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .text-content {
    max-width: 100% !important;
    width: 100%;
  }

  .sub-title {
    font-size: 14px !important;
    color: #444 !important;
    line-height: 1.6 !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important;
    text-align: center !important;
  }

  .btn-parts { 
    display: block !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
    padding: 14px 0 !important; 
    background-color: #444444 !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold;
    border-radius: 4px !important;
    text-align: center;
  }

  /* 残りの既存コード */
  .qa_parent, .qa_child { font-size: 14px !important; padding: 15px !important; }
  .metal-logo img{
    margin-top: 0px !important;
  }
  .metal-hamger{
    width: 53%;
    margin: 0 auto !important;
  }
  .metal-logo-uni img{
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
    width: 40%;
  }
    .metal-logo-han img{
    display: block;
    margin: 0 auto;
    margin-bottom: 10px;
    width: 60%;
  }
  .ms-final-section, .ms-final-swiper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow: hidden !important;
  }
  section.cat_detail_qawrapper{
  width: 96% !important;
  margin: 40px 0 auto !important;
}
}

@media screen and (max-width: 768px) {
    dl.cat_detail_qa {
        margin-left: auto !important;
      }}

</style>