@charset "utf-8";
/*PC・タブレット・スマホ共通設定*/

/*全体の設定*/
*,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
  /*デフォルトの16pxの代わりに、1emが10pxになるように調整する (16px * 0.625 = 10px) */
  /*ブラウザのデフォルトサイズは100% = 1em = 1rem = 16px = 12pt*/
}

body {
  margin: 0;
  padding: 0;
  font-family: "YakuHanJPs", "NotoSansJP", "Hiragino Sans", "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro",
    Meiryo, sans-serif;
  font-size: 1.6rem;
  color: #767164;
  line-height: 2;
  background: #d5ccb4;
  -webkit-text-size-adjust: 100%;
}

a {
  color: #767164;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  word-break: break-all;

  &:hover {
    color: #c1b7a3;
  }
}

dl,
dt,
dd,
q {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  clear: both;
  margin: 30px 0 0px;
  border-radius: 4px;
  line-height: 2;
  font-weight: 700;
}

h1 + h2,
h2 + h2,
h2 + h3,
h3 + h4 {
  margin-top: 15px;
}

h1 {
  color: #fff;
  padding: 5px 20px;
  background: #767164;
  font-size: 1.8rem;

  & a {
    color: #ffffff;
  }
}

h2 {
  padding: 3px 20px;
  border: 2px solid #767164;
  background: #fff;
  font-size: 1.7rem;
}

h3 {
  color: #fff;
  background: #767164;
  padding: 2px 20px;
  border: 1px solid #767164;
  font-size: 1.7rem;

  & a {
    color: #ffffff;
  }
}

h4 {
  padding: 2px 20px;
  border: 1px solid #c1b7a3;
  font-size: 1.6rem;
}

p {
  margin: 21px 0 0;
  padding: 0px 5px;

  & img {
    margin: 7px 0;
  }

  & a {
    text-decoration: underline;
  }
}

blockquote {
  position: relative;
  margin: 21px 5px 0px;
  padding: 0px;
  background: #f9f9f9;
  border-left: 4px solid #efefef;
  z-index: 1;

  &:before {
    display: inline-block;
    position: absolute;
    top: -25px;
    left: -12px;
    content: "“";
    font-family: sans-serif;
    color: #efefef;
    font-size: 90px;
    line-height: 1;
    z-index: -1;
  }
  & p {
    margin: 0px;
    padding: 14px 10px 0;
  }

  & p + p {
    padding-top: 14px;
  }

  & p:last-of-type {
    padding-bottom: 14px;
  }
}

cite {
  display: block;
  margin: 21px 0 0;
  padding: 0px 5px;
  line-height: 1.4;
}

pre {
  background: #333;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1.2;
  margin: 21px 10px 0;
  padding: 10px;
  font-family: Verdana, sans-serif;
  overflow: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

details {
  margin: 7px 0 0;
  padding: 0 5px;

  & p {
    margin-top: 7px;
  }
}

hr {
  margin: 21px 5px;
  border-width: 0 0 1px 0;
  border-style: dashed;
  border-color: #767164;
  height: 0px;
}

img {
  image-rendering: -webkit-optimize-contrast; /* Chrome, Safariなど */
  max-width: 100%;
  height: auto;
  border: none;
  vertical-align: middle;
}

a:hover img {
  opacity: 0.6;
}

form {
  margin: 21px 5px 0;
  padding: 0;
}

figure {
  display: inline-block;
  margin: 21px 5px 0px;
  text-align: center;

  & img {
    height: auto;
    display: block;
    margin-bottom: 3px;
  }

  & img:last-of-type {
    margin-bottom: 0;
  }
}

figcaption {
  font-size: 1.3rem;
  text-align: center;
}

ul,
ol {
  margin: 21px 0 0;
  padding: 0px 10px 0px 28px;
  line-height: 1.6;

  & li {
    margin: 0;
    padding: 3px 0;

    &::marker {
      font-weight: bold;
      color: #c1b7a3;
    }

    & ul,
    & ol {
      margin: 0;
      padding: 0 0 0 20px;
    }
  }
}

/* topページ用 */
ul.mainlist > li {
  font-weight: bold;
  padding-bottom: 7px;

  & ul {
    list-style-type: circle;
    font-weight: normal;
    padding-left: 15px;
  }
}

/* マイコンビニ/FAQページ用 */
ul.none,
ol.none {
  list-style-type: none;
  padding-left: 15px;
}

/* マイコンビニ/「調理用デコについて」ページ用 */
ul.terms > li,
ol.terms > li {
  padding-bottom: 7px;
}

/* 目次 */
/* 参考：https://www.fuji-blo.com/entry/table-of-content */
/* 参考：https://www.granfairs.com/blog/staff/css-ol-styling-with-counter */
/* 参考：https://delaymania.com/202004/web/css-ol-count/ */
/* 参考：http://var.blog.jp/archives/26950294.html */
#toc {
  margin: 21px 5px 0;
  padding: 0;
  position: relative;
  background: #fff;
  border-top: solid 40px #c1b7a3;
  border-right: solid 3px #c1b7a3;
  border-bottom: solid 3px #c1b7a3;
  border-left: solid 3px #c1b7a3;
  border-radius: 4px;
  max-width: 500px;

  &::before {
    position: absolute;
    content: "";
    top: -31px;
    left: 15px;
    display: inline-block;
    height: 1.2em;
    width: 1.2em;
    -webkit-mask: url("/image/description.svg");
    mask: url("/image/description.svg");
    -webkit-mask-size: cover;
    mask-size: cover;
    background-color: #fff;
  }

  &::after {
    position: absolute;
    content: "目次";
    top: -35px;
    left: 40px;
    color: transparent;
    text-shadow: 0 0 0 #fff;
    border: none;
    font-size: 1.7rem;
    font-weight: 700;
  }

  & ol {
    margin: 0px;
    padding: 10px 10px 10px 35px;

    & li {
      font-weight: bold;
      color: #c1b7a3;

      & a {
        text-decoration: none;
      }

      & ol {
        padding: 0 0 0 20px;
        list-style-type: circle;

        & li {
          font-weight: normal;

          & ol {
            list-style-type: square;
          }
        }
      }
    }
  }

  /*
  &.disc>ol {
    padding: 10px 10px 10px 30px;
    list-style-type: disc;
  } */
}

@media screen and (max-width: 450px) {
  #toc li {
    font-size: 1.4rem;
  }

  #toc::before {
    font-size: 1.5rem;
  }
}

#container {
  width: 95%;
  max-width: 1000px;
  margin: 0 auto;

  @media screen and (max-width: 450px) {
    width: 98%;
  }
}

header {
  text-align: center;
  padding: clamp(5px, 2%, 10px) 0px;

  & h1 {
    margin: 0;
    padding: 0;
    background: #d5ccb4;
  }
}

#logo {
  line-height: 1;
  padding: 0 20px;

  & img {
    width: 100%;
    max-width: 500px;
  }
}

/*ナビドロワー https://web.archive.org/web/20200412201121/https://saruwakakun.com/html-css/reference/nav-drawer */

/*ナビドロワー設定*/
#nav-drawer {
  position: fixed;
  z-index: 998;
  top: 10px;
  right: 10px;

  /*チェックボックス等は非表示に*/
  .nav-unshown {
    display: none;
  }

  /*アイコンのスペース*/
  #nav-open {
    display: block;
    width: 25px;
    height: 25px;
    background: #d5ccb4;
    box-sizing: content-box;
    border-radius: 20%;
    padding: 5px 5px 0px 5px;

    /*ハンバーガーアイコンをCSSだけで表現*/
    & span,
    & span:before,
    & span:after {
      position: absolute;
      display: block;
      height: 3px;
      width: 25px;
      border-radius: 3px;
      background: #767164;
      content: "";
      cursor: pointer;
    }

    & span:before {
      bottom: -8px;
    }

    & span:after {
      bottom: -16px;
    }
  }

  /*閉じる用の薄黒カバー*/
  #nav-close {
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0;
    transition: 0.3s ease-in-out;
  }

  /*中身 基礎*/
  #nav-content {
    text-align: left;
    overflow: auto;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;
    width: 85%;
    /*メニューで覆う部分の範囲*/
    max-width: 330px;
    height: 100%;
    background: #fff;
    transition: 0.3s ease-in-out;
    transform: translateX(105%);

    /*メインCSS要素の上書き*/
    & h2,
    & h3 {
      /* font-size: 1.6rem; */
      margin: 10px;
      padding: 2px 10px;
    }

    & h2 {
      background: #d5ccb4;
    }

    & p {
      margin: 10px;
      padding: 7px 10px 10px;
      /* font-size: 1.4rem; */
    }

    & ul {
      margin: 10px 0 0;
    }

    & li > ul {
      margin: 0;
    }

    /* & li {
      font-size: 1.4rem;
    } */
  }

  /*チェックが入ったらもろもろ表示*/
  #nav-input:checked ~ #nav-close {
    display: block;
    /*カバーを表示*/
    opacity: 0.5;
  }

  #nav-input:checked ~ #nav-content {
    transform: translateX(0%);
    box-shadow: -6px 0 25px rgba(0, 0, 0, 0.15);
  }
}

/*コンテンツ（囲み枠のついたブロック）*/
#contents {
  margin-bottom: 15px;
  padding: 2% 2% calc(2% + 15px);
  line-height: 1.8;
  border: 5px solid #767164;
  background: #fff;
  border-radius: 10px;
  white-space: normal;
  line-break: strict;
  word-break: break-word;
  overflow-wrap: break-word;
  word-wrap: break-word;

  /*   > :first-child > h1:first-of-type,
  > :first-child > h2:first-of-type {
    margin-top: 5px;
  } */
}

#mainimg img {
  clear: left;
  width: 100%;
}

/*フッター(ページ最下部のcopyrightのパーツ)設定*/
footer {
  clear: both;
  text-align: center;
  padding: 10px 0px;
  color: #767164;

  & a {
    text-decoration: none;
    border: none;
    color: #767164;
  }

  & .pr {
    display: block;
  }
}

/*テーブル 基本設定*/
table {
  border-collapse: collapse;
  border-spacing: 0;
  word-break: break-all;

  & th {
    background: #e1e1e1;
    font-weight: bold;
  }
}

/*テーブル 主にマイコンビニ商品一覧用*/
.ta3 {
  text-align: center;
  margin: 21px 0 0;

  & td,
  & th {
    border: 1px solid #767164;
    padding: 2px 5px;
  }

  & tbody th {
    text-align: right;
  }

  & tr:nth-child(even) {
    background: #f9f9f9;
  }

  & tr:hover {
    background: #acf2ac;
  }
}

.th-pr {
  white-space: nowrap;

  & tbody th {
    font-size: 1.4rem;
  }
}

.tamidashi {
  padding: 4px 5px;
}

.cond {
  background: #c8c8c8;
  text-align: right;
  font-size: 1.3rem;
  line-height: 1;
}

.cond2 {
  background: #c8c8c8;
  text-align: right;
  font-size: 1.2rem;
  line-height: 1;
}

.cond3 {
  background: #ffc9cc;
}

.cond4 {
  background: #84fcff;
}

/*画像の設定*/
.product {
  max-width: 80px;
  max-height: 80px;
  min-width: 80px;
  min-height: 80px;
}

/* 研究所商品メイン画像 */
.product2 {
  max-width: 50px;
  max-height: 50px;
  min-width: 50px;
  min-height: 50px;
}

/* 研究所商品素材画像 */
.material {
  width: 30px;
  height: 30px;
}

.mate {
  & tr:nth-child(1) {
    height: 43px;
    line-height: 1 !important;
    font-size: 1.3rem;
  }

  & tr:nth-child(2n) {
    background: #fff !important;
    /*2行毎に色を変える*/
  }

  & tr:nth-child(2n + 1) {
    background: #f9f9f9 !important;
    /*2行毎に色を変える*/
  }

  & td {
    padding: 7px !important;
    min-width: 55px;
  }
}

/*画面幅650px以下の設定*/
@media screen and (max-width: 650px) {
  .th-pr tbody th {
    font-size: 1.2rem;
  }

  tbody th .pr {
    font-size: 1rem;
  }

  .product {
    max-width: 50px;
    max-height: 50px;
    min-width: 50px;
    min-height: 50px;
  }

  .cond {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .cond2 {
    font-size: 1rem;
    line-height: 1.3;
  }
}

.x-scroll {
  overflow: auto;
  margin: 21px 0 0;
  padding: 0;

  & .ta3 {
    margin: 0;
  }

  &::-webkit-scrollbar {
    height: 5px;
    /* スクロールバーの高さ */
  }

  &::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* スクロールバーの背景色 */
  }

  &::-webkit-scrollbar-thumb {
    background: #d6d6d6;
    /* スクロールバーの色 */
  }
}

.display-flex {
  /*複数のテーブルを囲む用*/
  display: flex;
  flex-wrap: wrap;
}

/* 記事一覧をソート */
/* class名「search-box」「list_item」「is-hide」はjs依存 */
.search-box_label {
  font-weight: bold;
}

.is-hide {
  display: none;
  /*この値は消しちゃダメ*/
}

.list {
  padding: 0px 0px !important;

  .list_item {
    padding: 3px 0;
    line-height: 1.4;
    list-style-type: none;

    & span:not(.pr) {
      padding: 0 5px;
      font-size: 1.2rem;
      color: #fff;

      @media screen and (max-width: 450px) {
        display: inline-block;
        vertical-align: 1px;
        width: 16px;
        white-space: nowrap;
        color: transparent;
      }
    }

    .Other {
      background-color: #a6a6a6;
    }

    .Gadget {
      background-color: #c50067;
    }

    .Game {
      background-color: #1a1a1a;
    }

    .Minecraft {
      background-color: #56350d;
    }

    .Megaquarium {
      background-color: #00a0dd;
    }

    /* 記事数が増えたら利用する
    .Moonlighter {
      background-color: #008740;
    }
    .Shikudo {
      background-color: #ec9800;
    }
    */

    & a {
      margin-left: 3px;
    }
  }
}

/*おすすめ記事・新着記事など*/
.recommend-entry {
  position: relative;
  border: 1px solid #666;
  margin: 30px 0 7px;
  padding: 7px 10px 5px;

  & .list_item {
    padding: 3px 0 0;

    @media screen and (max-width: 450px) {
      line-height: 1.2;

      & a {
        font-size: 1.4rem;
      }

      & span:not(.pr) {
        width: 14px;
      }
    }
  }
}

.recommend_title {
  position: absolute;
  top: -15px;
  left: 20px;
  padding: 0 0.5em;
  background: #fff;
  font-weight: bold;
  line-height: 1;
}

/* ブログカードのブックマークレットを作成しました  https://vanillaice000.blog.fc2.com/blog-entry-583.html */
/* カード全体像 */
.blogcard {
  position: relative;
  max-width: 600px;
  margin: 21px 5px 0;
  border-radius: 2px;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
  background: white;
  border: 1px solid #e6e6e6;

  & a {
    text-decoration: none;

    &:hover {
      opacity: 0.6;
    }
  }

  .blogcard-content {
    display: flex;
  }

  /* 画像 */
  .blogcard-image {
    width: 40%;
    min-height: 130px;
    border-right: 1px solid #e6e6e6;
    aspect-ratio: 16/9;
  }

  .blogcard-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;

    & img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .blogcard-text {
    flex-grow: 1;
    padding: 10px 20px;
  }

  /* タイトル */
  .blogcard-title {
    margin: 0 0 0.5em;
    padding: 0 0;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    word-break: break-all;
    text-decoration: underline;
  }

  /* 引用 */
  & blockquote {
    position: static;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;

    &::before,
    &::after {
      content: none;
    }
  }

  /* 記事概要 */
  .blogcard-description {
    margin: 0;
    padding: 0;
    font-size: 1.3rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    text-decoration: none !important;
  }

  /* フッター(元記事サイト名とリンク) */
  .blogcard-footer {
    position: absolute;
    right: 0;
    bottom: 8px;
    width: 60%;
    padding: 0 10px;
    font-size: 1.2rem;
    line-height: 1.2;
    background-color: #fff;

    & img {
      margin-right: 5px;
    }
  }

  @media screen and (max-width: 450px) {
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);

    .blogcard-image {
      width: 30%;
      min-height: 85px;
    }

    .blogcard-text {
      padding: 5px 10px;
    }

    .blogcard-title {
      font-size: 1.3rem;
      -webkit-line-clamp: 1;
      line-clamp: 1;
    }

    .blogcard-description {
      font-size: 1.2rem;
      -webkit-line-clamp: 1;
      line-clamp: 1;
    }

    .blogcard-footer {
      bottom: 3px;
      padding: 0 10px;
      width: 70%;
      font-size: 1rem;
    }
  }
}

/* has no image */
.blogcard-hasnoimage {
  & .blogcard-text {
    width: 100%;
  }

  & .blogcard-footer {
    position: static;
    width: 100%;
    padding: 10px 20px;
  }

  @media screen and (max-width: 450px) {
    & .blogcard-footer {
      padding-left: 10px;
      padding-bottom: 5px;
    }
  }
}

/*アプリーチ (アプリ紹介)*/
.appreach {
  position: relative;
  max-width: 600px;
  margin: 21px 5px 0px;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #7c7c7c;
  overflow: hidden;
  text-align: left;

  /* ★ Gridコンテナとして設定 ★ */
  display: grid;
  /* 領域の名前を定義: iconが左、detailが右上の大部分、linksが右下の大部分 */
  grid-template-areas:
    "icon detail"
    "icon links";
  /* 2列の幅を定義: アイコン幅(120px)と残りの幅(1fr) */
  grid-template-columns: 120px 1fr;
  /* 行の隙間（アイコンと詳細/リンクの間）を定義 */
  grid-gap: 10px;

  & p {
    margin: 0;
    padding: 0;
  }

  .appreach__bgimage {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 100%;
    height: 100%;
    background: url("/image/smartphone-icon.svg") no-repeat right bottom;
    background-size: auto 60%;
    opacity: 0.15;
    pointer-events: none;
    /* 画像の上でも他の要素の操作を可能にする */
  }

  .appreach__icon {
    /* iconエリアに配置し、2行分を占有する */
    grid-area: icon;
    overflow: hidden;
    width: 100%; /* grid-template-columnsで幅を指定しているため */
    height: auto;

    & img {
      border-radius: 10%;
    }
  }

  .appreach__detail {
    /* detailエリアに配置 */
    grid-area: detail;
    font-size: 2rem;

    p.appreach__name {
      max-height: 3em;
      font-size: 1.7rem;
      font-weight: bold;
      line-height: 1.2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      overflow: hidden;
      /*要素をはみ出したテキストを表示しない*/
      /*  text-overflow: ellipsis; /*テキストがはみ出た時に … を表示する*/
      /*  white-space: nowrap; /*テキストを改行させず、はみ出させる*/
    }

    p.appreach__info {
      padding-top: 10px;
      font-size: 1.2rem;
      line-height: 1.3;
    }

    .appreach__developper,
    .appreach__price {
      margin-right: 0.5em;
    }

    .appreach__posted {
      font-size: 1.1rem;

      & a {
        margin-left: 0.5em;
      }
    }
  }

  .appreach__links {
    /* linksエリアに配置 */
    grid-area: links;
    align-self: end;
    white-space: nowrap;
    font-size: 0;

    /* リンクバッジ自体を Flexbox で制御し、中央寄せと折り返しを可能にする */
    display: flex;
    justify-content: left;
    flex-wrap: wrap; /* 狭くなったら折り返す */
    gap: 10px; /* ボタン間の隙間 */

    & img {
      width: auto;
      height: auto;
      max-width: 135px;
      min-height: 40px;
    }
  }

  /* DLボタンが下にずれる境目 */
  @media screen and (max-width: 450px) {
    /* ★ 修正: 領域定義をモバイル用に変更 (全て縦並び) ★ */
    grid-template-areas:
      "icon detail"
      "links links"; /* linksを全幅に広げる */
    grid-template-columns: 80px 1fr; /* アイコン幅を小さく、残りを詳細に */
    grid-gap: 5px 10px; /* 行の隙間 5px, 列の隙間 10px */

    .appreach__icon {
      /* iconエリアに配置 (変更なし) */
      width: 80px; /* アイコンを削らないよう幅を固定 */
      height: 80px;
    }

    .appreach__links {
      width: 100%; /* Gridが制御するため、100%は保険 */
      height: auto;
      margin-top: 5px; /* 詳細との間に隙間を設ける */
      text-align: center; /* リンクバッジを中央寄せ */

      /* リンクバッジ自体を Flexbox で制御し、中央寄せと折り返しを可能にする */
      justify-content: center;
    }
  }
}

/* YouTube動画埋め込み用 */
/* https://design.webclips.jp/youtube-movie-size/ */
/* https://hirashimatakumi.com/blog/6601.html */
/* YouTube埋め込みをファサード化（遅延読み込み） */
.movie-wrap {
  width: auto;
  aspect-ratio: 16 / 9;
  max-width: 560px;
  max-height: 315px;
  margin: 21px 5px 0;
  position: relative;
  cursor: pointer;

  .yt-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .yt-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 70px;
    background: url("/image/youtube_social_icon_red_l.png") no-repeat center
      center;
    background-size: contain;
    pointer-events: none;
  }

  @media (max-width: 450px) {
    .yt-play-button {
      width: 64px;
      height: 45px;
      background: url("/image/youtube_social_icon_red_s.png") no-repeat center
        center;
    }
  }
}

/* ニコニコ動画埋め込み用 */
iframe.nico {
  margin: 21px 5px 0;
}

/* Steamウィジェット埋め込み用 */
.steam-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: min(210px, 190 / 533 * 113%);
  overflow: hidden;

  & iframe.steam {
    margin: 21px 0 0;
    padding-right: 5px;
    padding-left: 5px;
    transform-origin: 0 0;
  }
}

/** 広告バナー用 **/
/* footer用 */
.AdScontent {
  text-align: center;
  position: relative;
  margin: 21px auto 0;
  padding-top: 21px;

  &::before {
    content: "スポンサーリンク";
    font-size: 0.8em;
    color: #c1b7a3;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }
}
/* 記事内広告 */
#contents .AdScontent {
  max-width: 100%;
  width: 100%;
  flex-shrink: 1;
  overflow: hidden;

  > ins {
    max-width: 100%;
    width: 100%;
  }
}

/* 広告 recommend上用 */
.adsF {
  margin-top: 35px;
}

@media not screen and (min-width: 900px) {
  /* 画面サイズ900未満の時はLarge広告を非表示 */
  .adA8L {
    display: none;
  }
}

@media screen and (min-width: 900px) {
  /* 画面サイズ900以上の時はSmall広告を非表示 */
  .adA8S {
    display: none;
  }
}

/* 商品紹介リンク用 */
/* (Amazonと楽天リンク) */
/* 新しい AffiliateBox::render() 用のスタイル */
.affiliate-box {
  position: relative;
  margin: 21px 5px 0;
  max-width: 500px;
  max-height: 100%;
  border: 1px solid #d1d1d1;
  border-radius: 5px;
  line-height: 0;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* ADリボンの再現 */
  &::before {
    position: absolute;
    content: "AD";
    top: 0px;
    right: 5px;
    margin-top: 5px;
    padding: 1px 2px;
    line-height: 1;
    font-size: 0.6em;
    color: #f4cece;
    border-radius: 5px;
    border: 1px solid #f4cece;
    z-index: 10;
  }

  /* 画像とタイトル情報を含むコンテナ */
  .product-info {
    padding: 10px 10px 0pt;
    line-height: 1.4;

    .product-image {
      width: auto;
      height: auto;
      margin: 0 auto 10px;
      margin-bottom: 10px;
      display: block; /* 中央寄せのためにブロック化 */
    }

    .product-title {
      font-size: 1.5rem;
      font-weight: bold;
      padding: 0;
      margin: 10px 0 0;
      overflow: hidden;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3;
      line-clamp: 3;
      line-height: 1.4;

      & a {
        color: inherit;
      }
    }

    /* ブランド名・発売日
    .product-meta {
      font-size: 1rem;
      color: #666;
      line-height: 1.2;
      margin-bottom: 10px;
    } */
  }

  /* --- ボタンボックスの再現 --- */
  .buttonbox {
    display: flex;
    justify-content: center;
    margin: 10px 0 0;
    padding: 0 0 10px;

    & > div {
      /* .amazon-button と .rakuten-button */
      margin: 0 5px;
      padding: 2px 3px;
      width: 90px;
      border-radius: 5px;
      font-size: 1.5rem;
      font-weight: bold;
      line-height: 1.4;
      text-align: center;

      & a {
        display: block;
        text-decoration: none;
        color: #fff;
        &:hover {
          color: #fff; /* hover時も色が変わらないように指定 */
        }
      }
    }

    .amazon-button {
      border: 2px solid #f3a847;
      background-color: #f3a847;
    }

    .rakuten-button {
      border: 2px solid #bf0000;
      background-color: #bf0000;
    }
  }

  /* SALE用 */
  .sale-banner-wrapper {
    /* 点滅するバナーを重ねて配置するコンテナ */
    position: relative;
    width: 100%;
    /* テキストの高さに合わせて調整 */
    height: 27px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .sale-banner {
    /* バナー共通スタイル */
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.3;
    text-align: center;
    padding: 5px 0;
    border-radius: 0 0 4px 4px;
    user-select: none;
    cursor: default;

    /* テキスト内容自体は span でラップされています */
    & span {
      display: block;
    }
  }

  /* --- 2. 点滅モード時のスタイル (.sale-flipping) --- */
  .sale-banner-wrapper.sale-flipping {
    /* 点滅する要素は全て絶対配置で重ねる */
    .sale-banner {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;

      /* アニメーション設定 (合計8秒サイクル) */
      animation: textSwitch 8s infinite;
      opacity: 0;
    }

    /* Amazonセール（1つ目の要素） */
    .sale-banner:nth-child(1) {
      animation-delay: 0s;
      background-color: #f3a847; /* Amazonっぽい色 */
    }

    /* 楽天セール（2つ目の要素） */
    .sale-banner:nth-child(2) {
      /* 4秒後にアニメーションを開始 */
      animation-delay: 4s;
      background-color: #bf0000; /* 楽天っぽい色 */
    }
  }

  /* --- 3. 静的モード時のスタイル (一方のみ) --- */
  .sale-banner.static-sale {
    position: static; /* 絶対配置を解除し、通常フローに戻す */
    opacity: 1; /* 常に表示 */
    animation: none; /* アニメーションを停止 */
  }

  /* 静的モードの配色 */
  .sale-banner.static-sale.sale-amazon {
    background-color: #f3a847;
  }
  .sale-banner.static-sale.sale-rakuten {
    background-color: #bf0000;
  }
}

/* --- @keyframes (アニメーション本体) --- */
/* 8秒サイクルで、3.5秒表示 + 0.5秒フェードアウト/インを実現 */
@keyframes textSwitch {
  0% {
    opacity: 0;
  }

  /* 0.5秒かけてフェードイン (8秒のサイクルの 6.25% に相当) */
  6.25% {
    opacity: 1;
  }

  /* 3.5秒間表示を維持 (8秒のサイクルの 43.75% に相当) */
  43.75% {
    opacity: 1;
  }

  /* 4.0秒 (50%) で非表示へフェードアウト */
  50% {
    opacity: 0;
  }

  /* 50%以降は非表示を維持し、次の要素の表示を待つ */
  100% {
    opacity: 0;
  }
}

/* 目次下Amazon商品紹介用 */
/* 広告ボックス全体のスタイル（aタグ） */
.product-frame-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin: 21px 5px 0;
  padding: 0;
  max-width: 500px;
  font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  cursor: pointer;

  &::before {
    position: absolute;
    content: "AD";
    right: 5px;
    bottom: 5px;
    margin-top: 5px;
    padding: 1px 2px;
    line-height: 1;
    font-size: 0.7em;
    color: #ff0000;
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border: 1px solid #ff0000;
    z-index: 5;
  }

  /* ホバー時の装飾（オプション：枠に影を強くするなど） */
  &:hover {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.6;
  }

  /* 画像とテキストを並べるためのコンテナ */
  .content-wrap {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    border: 1px solid #000;
    padding: 15px;
    height: 150px;
    background-color: #ffecd1;
    overflow: hidden;

    &::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 60px;
      background-color: #ff8b3e;
      z-index: 1;
    }

    /* 商品画像のコンテナ */
    .media-container {
      flex-shrink: 0;
      width: 120px;
      z-index: 2;
      display: flex;
      justify-content: center;
      align-items: center;

      /* 商品画像 */
      img {
        max-width: 100%;
        height: auto;
        max-height: 120px;
        display: block;
        border: 1px solid #000;
        opacity: 1;
      }
    }

    /* 商品詳細のコンテナ */
    .info-details {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      height: 100%;
      z-index: 2;

      /* タイトル */
      .item-title {
        font-size: 0.95em;
        font-weight: bold;
        line-height: 1.4;
        margin: 0 0 15px 0;
        padding: 0;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        /* 他のブラウザのための設定（基本的には上記で対応可能） */
        max-height: 4.2em;
      }

      /* 発売日 */
      .date-info {
        font-size: 0.75em;
        color: #ffecd1;
        margin-top: auto;
        margin-bottom: 0px;
        padding: 0;
        position: relative;
      }

      .affiliate-source {
        font-size: 0.95em;
        color: #fff;
        margin-bottom: -8px;
        padding: 0;
        position: relative;
      }
    }
  }
}
.sale-banner-frame-bottom {
  /* 新しいクラス名を使用 */
  /* 絶対配置ではなく、通常フローに配置 */
  max-width: 500px;

  /* デザイン */
  color: #ff0000;
  font-size: 0.95em;
  font-weight: bold;
  text-align: center;
  line-height: 1.5;

  & span {
    display: block;
  }
}

/* トップページの更新履歴 */
.updatehistory {
  font-size: 1.4rem;
}

p.updatehistory {
  margin: 0;
}

/* ブログ内検索(ブログ記事下部) */
.search_on_site-box {
  padding-left: 5px;
  width: 300px;
}

/* ブログ内検索アイコン */
.search_on_site::before {
  content: "";
  display: inline-block;
  height: 1em;
  width: 1.2em;
  -webkit-mask: url("/image/search.svg");
  mask: url("/image/search.svg");
  -webkit-mask-size: cover;
  mask-size: cover;
  background-color: #767164;
}

/* スクリーンリーダー用CSS */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* その他 */
.color_red {
  color: #ff0000;
}

.color_739220 {
  color: #739220;
}

.color_ec9800 {
  color: #ec9800;
}

.color_9cdcda {
  color: #9cdcda;
}

.pr {
  font-size: 1.2rem;
}

.pr2 {
  font-size: 1rem;
}

.pr3 {
  font-size: 1.4rem;
}

.clear {
  clear: both;
  display: block;
  content: "";
  margin: 0px;
}

.dashed {
  border: 1px dashed #e1e1e1;
}

figure.dashed,
img.dashed {
  padding: 2px;
}

.solid {
  border: 1px #e1e1e1 solid;
}

.date {
  color: #d5ccb4;
  font-size: 1rem;
}

.updatedbox {
  display: flex;
  justify-content: flex-end;
  margin: 7px 0 -10px;
  font-size: 1.2rem;

  .date-c {
    padding-right: 10px;

    &::before {
      content: "";
      display: inline-block;
      height: 1em;
      width: 1em;
      -webkit-mask: url("/image/create.svg");
      mask: url("/image/create.svg");
      -webkit-mask-size: cover;
      mask-size: cover;
      vertical-align: middle;
      background-color: #767164;
    }
  }

  .date-l::before {
    content: "";
    display: inline-block;
    height: 1em;
    width: 1em;
    -webkit-mask: url("/image/refresh.svg");
    mask: url("/image/refresh.svg");
    -webkit-mask-size: cover;
    mask-size: cover;
    vertical-align: middle;
    background-color: #767164;
  }
}

.margin-top0 {
  margin-top: 0px;
}

.font-normal {
  font-weight: normal;
}

.font-bold {
  font-weight: bold;
}

.reset {
  all: unset;
}
