/* =====================================================================
   01. 共通：PC・スマートフォン表示切り替え
   ===================================================================== */
.pc {
  display: block !important;
}

.sp {
  display: none !important;
}

@media only screen and (max-width: 750px) {
  .pc {
    display: none !important;
  }

  .sp {
    display: block !important;
  }
}


/* =====================================================================
   02. ヘッダー：ロゴ・検索フォーム
   ===================================================================== */
/* ロゴ画像の最大高さ（PC・スマートフォン共通） */
.fs-p-logo__image {
  max-height: 120px;
}

/* PC：ロゴの配置と大きさ */
@media screen and (min-width: 1000px) {
  .fs-l-header__contents {
    -ms-grid-rows: auto auto;
    grid-template-rows: auto auto;
    -ms-grid-columns: 30% 40% 30%;
    grid-template-columns: 30% 40% 30%;
  }

  .fs-p-logo {
    padding: 0;
  }

  .fs-l-header__utility *:last-child {
    -ms-grid-row-align: start;
    align-self: start;
  }
}

/* スマートフォン：検索窓まわりの余白 */
@media screen and (max-width: 599px) {
  .fs-p-inputGroup {
    margin: 0px 3px 2px;
  }
}


/* =====================================================================
   03. トップページ・NEWS
   ===================================================================== */
/* トップページ：最新3件＋末尾の「NEWS一覧」リンクを表示
   前提：箇条書きパーツは「ニュースを新しい順」→「NEWS一覧リンク」の順。 */
.fs-body-top .fs-p-dateList > li:nth-child(n+4):not(:last-child) {
  display: none;
}

/* NEWS一覧ページ：共通パーツの末尾にある「NEWS一覧」リンクを非表示
   前提：フリーページ本文に .enterseek-news-archive の囲みがある。 */
.enterseek-news-archive .fs-p-dateList > li:last-child {
  display: none;
}

/* NEWS一覧ページ：各記事の区切り線 */
.enterseek-news-archive .fs-p-dateList > li {
  padding: 8px 0;
  border-bottom: 1px solid #777;
}

.enterseek-news-archive .fs-p-dateList > li:first-child {
  border-top: 1px solid #777;
}


/* =====================================================================
   04. ブランドアイコン・コラムパーツ
   ===================================================================== */
/* トップページ：ブランドアイコンを横並びに配置 */
.fs-body-top .fs-pt-column--4 {
  display: flex;
  flex-wrap: wrap;
}

/* コラムパーツの幅と中央配置 */
.fs-pt-column--4 {
  width: 100%;
}

.fs-pt-column--4 .fs-pt-column__item {
  margin: auto 0;
}

/* ブランド名の説明は最大3行 */
.fs-body-top .fs-pt-column__description,
.fs-body-product .fs-pt-column__description {
  text-align: center;
  line-height: 1.4;
  height: 4.2em;
  overflow: hidden;
}

/* スマートフォン：ブランドアイコンを2列表示 */
@media screen and (max-width: 600px) {
  .fs-body-top .fs-pt-column--4 > .fs-pt-column__item {
    width: 50%;
  }

  .fs-pt-column--4 {
    display: flex;
    flex-wrap: wrap;
  }

  .fs-pt-column--4 a {
    flex-basis: 50%;
  }
}

/* PC・タブレット：ブランドアイコンを4列表示 */
@media screen and (min-width: 601px) {
  .fs-body-top .fs-pt-column--4 > .fs-pt-column__item {
    width: 25%;
  }
}


/* =====================================================================
   05. 商品一覧・商品カルーセル
   ===================================================================== */
/* 商品一覧：768px以上は3列
   旧CSSにあった200件分の nth-child 指定は、CSS Gridの自動配置で代替。
   ※IE11以前の -ms-grid 専用の個別配置はこの整理版では省略。 */
@media screen and (min-width: 768px) {
  .fs-c-productList__list {
    display: grid;
    grid-template-columns: repeat(3, 33.3333333333%);
  }
}

/* トップページ・カテゴリページ：商品キャッチコピーを非表示 */
.fs-body-top .fs-c-productName__copy,
.fs-body-category .fs-c-productName__copy {
  display: none;
}

/* 商品カルーセル：PC */
@media screen and (min-width: 600px) {
  .fs-c-productListCarousel__list__item {
    flex-basis: 260px;
    max-width: 260px;
    min-width: 260px;
    margin: 0 8px;
  }
}

/* 商品カルーセル：スマートフォン */
@media screen and (max-width: 599px) {
  .fs-c-productListCarousel__list__item {
    flex-basis: 140px;
    max-width: 140px;
    min-width: 140px;
    margin: 0 4px;
  }
}


/* =====================================================================
   06. 商品詳細：サブ画像・YouTube動画
   ===================================================================== */
/* スマートフォン：サブ画像を大きく表示 */
@media screen and (max-width: 599px) {
  .fs-c-productThumbnail__image {
    margin: 4px 0.7%;
    flex-basis: 23%;
    min-width: 15%;
  }
}

/* スマートフォン：YouTube埋め込み動画を16:9で表示 */
@media screen and (max-width: 480px) {
  .iframerespo {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    margin: 10% 0;
  }

  .iframerespo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
}


/* =====================================================================
   07. 会社概要（ABOUT）
   ===================================================================== */
/* 会社概要のロゴ画像を中央揃え */
section.fs-c-documentArticle__content > img {
  margin: auto;
  display: block;
}


/* =====================================================================
   08. フッター
   ===================================================================== */
/* 会社概要・特定商取引・個人情報等のリンクを読みやすくする */
.fs-p-footerUtilityMenu__list {
  font-size: 120%;
}
