/* ==========================================================================
   Base &amp; Utility Styles
   ========================================================================== */

/* 画面のダブルタップでの拡大を禁止 */
html {
  touch-action: manipulation;
}

/* 横スクロールを防止 */
html,
body {
  overflow-x: hidden;
}

/* Clearfix: フロート解除 */
.clearfix::before,
.clearfix::after {
  content: "";
  display: block;
  clear: both;
}

/* ==========================================================================
   Layout: Header (#masthead)
   ========================================================================== */

#masthead .site-title {
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #fff; /* タイトルは白 */
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease-in-out;
}

#masthead .site-description {
  /* サブタイトル */
  font-size: 14px;
  color: #000; /* モバイルでは上書きされる */
  letter-spacing: 1px;
  font-style: italic;
}

/* 別のサイトタイトル定義 (テーマのデフォルト？) */
h1.site-title,
div.site-title {
  clear: none;
  font-size: 1.785712em;
  font-weight: bold;
  padding: 1em 1em 0 0; /* 上右下左 */
  margin-bottom: 0;
  float: left;
  line-height: 1.2em;
  text-align: center; /* PCでは上書きされる */
}
h1.site-title a,
div.site-title a {
  color: #000;
}
h1.site-title img,
div.site-title img {
  width: 40%; /* PCでは上書きされる */
  height: auto;
  padding: 0;
  margin: 0;
}

/* サイト説明 (非表示にする？) */
/* .site-description {
  display: none; /* 元のコードでは 'hidden' だったが 'none' が正しい */
/* } */

/* グローバルナビゲーションの余白 */
.snav {
  padding-top: 1.5em;
}

/* ==========================================================================
   Layout: Main Content Area
   ========================================================================== */

/* 固定ページのメインコンテンツ幅 (Metasliderコンテナ？) */
/* !important が多いため、テーマやプラグインのスタイルを強制上書きしている可能性 */
#metaslider_container_2295 {
  max-width: 1000px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 10px !important; /* 左右に10pxのパディング */
}

/* ブログ記事のフォントサイズと行間 */
/* !important が使用されているため、他のスタイルを強制上書き */
.entry-content,
.entry-content p,
.entry-content li {
  font-size: 1.1rem !important;
  line-height: 1.7rem !important;
}

.entry-title {
  margin-bottom: 30px;
  font-size: 1.5rem !important;
}

.entry-content li {
  margin-bottom: 1.5rem;
}

.icatch {
  margin-bottom: 20px;
}

.itemcode {
  display: none;
}

.item-sku {
  margin: 15px auto !important;
}

.post-thumbnail {
  width: 300px;
  height: auto;
}

.wp-post-image {
    max-width: 100%;
    height: auto;
}

/* 記事内の著者情報を非表示 */
.entry-meta .author {
  display: none;
}

.item_page_title {
  font-size: 1.5rem;
}

.detail-box {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ==========================================================================
   Layout: Sidebar (#secondary)
   ========================================================================== */

#secondary h3 {
  border-bottom: 1px solid #eee;
}

#secondary.widget-area p {
  padding: 5px;
}

/* カテゴリリストのアイコン */
.widget_welcart_category ul li::before {
  content: "➤"; /* シンプルな矢印アイコン */
  margin-right: 8px;
  color: #bbb;
  font-size: 14px;
  display: inline-block;
  font-weight: bold;
}

/* ==========================================================================
   Layout: Footer
   ========================================================================== */

footer {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
  color: #fff;
  padding: 0px 20px; /* 上下0, 左右20px */
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

/* フッターカラム */
.colophon {
  display: flex;
  flex-wrap: wrap;
}



/* ==========================================================================
   Headings (h2, h3)
   ========================================================================== */

/* main内の最初のH2を非表示 */
#main h2:first-child {
  display: none;
}

/* 見出し2（H2）バー風デザイン */
/* !important が使用されているため注意 */
h2 {
  padding: 10px;
  height: 40px; /* 固定高さ */
  line-height: 20px; /* heightからpaddingを引いた値 */
  background-color: #444444;
  color: #ffffff;
  font-size: 18px !important;
  box-sizing: border-box; /* paddingを含めて高さを計算 */
}

/* 見出し3（H3）基本スタイル */
h3 {
  position: relative; /* ::after の基準 */
  font-weight: bold;
  padding-bottom: 10px; /* 下線のスペース */
  font-size: 1.2rem; /* 17px や 1.3rem と混在していたため統一 (要調整) */
  text-align: left;
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 20px auto; /* 上下のマージンを追加 */
  border-left: none !important; /* 強制解除 */
}

/* 記事内のH3フォントサイズ (上記h3基本スタイルと統合 or 個別指定) */
.entry-content h3 {
  font-size: 1.3rem; /* 他のh3と異なるサイズ */
  /* 他のh3スタイルを継承しつつ、font-sizeのみ上書き */
}

/* H3のアンダーライン（左1/3が黒、残りが薄いグレー） */
h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #000000 33%, #ddd 33%);
}

.item-description h3 {
  margin-top: 0;
}


/* ==========================================================================
   Specific Components / Sections
   ========================================================================== */

/* YouTube埋め込みレスポンシブ対応 */
.youtube {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 50px;
  overflow: hidden; /* iframeがはみ出さないように */
}
.youtube iframe {
  width: 100%;
  height: 100%;
  border: 0; /* iframeのデフォルトボーダー削除 */
}

/* 検索バー */
.wp-block-search__inside-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px;
  background: #fff;
  overflow: hidden; /* 角丸のため */
}
.wp-block-search__input {
  flex: 1; /* 残りのスペースを埋める */
  border: none;
  font-size: 16px;
  color: #333;
  padding: 8px;
  outline: none;
  background: transparent;
  min-width: 0; /* flexアイテムの縮小問題を回避 */
}
.wp-block-search__button {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px; /* 入力欄と合わせる */
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  flex-shrink: 0; /* ボタンが縮まないように */
}
.wp-block-search__button:hover {
  background: #555;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

/* What's New セクション */
.news { /* .news クラス自体を非表示 */
  display: none;
}

.whatsnew {
  padding: 50px;
}

.whatsnew h2,
.il-title { /* .il-title は別のスタイル定義と重複 */
  color: #808080;
  font-size: 1.5rem;
  margin-top: 50px;
}

.whatsnew dl {
  font-size: 1.2rem;
  padding: 10px;
}
.whatsnew dt,
.whatsnew dd {
  font-size: 0.7em; /* dlのフォントサイズに対して相対的 */
  /* 必要に応じて margin や padding を追加 */
}

/* .il-title スタイル (上記と重複) */
.il-title {
  color: #efefef; /* 上記の #808080 を上書き */
  border-bottom: 1px solid gray;
}

/* Lineセクション (Flexboxレイアウト) */
.line-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.line-image {
  box-sizing: border-box;
  flex-basis: 10%; /* PCでは上書きされる */
  flex-grow: 3;
  text-align: center;
  padding: 50px;
}
.line-desc {
  box-sizing: border-box;
  flex-basis: 90%; /* PCでは上書きされる */
  padding: 30px 40px; /* 上下30px, 左右40px (PCで上書き) */
  font-size: 1rem;
}

/* ==========================================================================
   Media Queries (Responsive Styles)
   ========================================================================== */

/* Mobile (max-width: 768px) */
@media screen and (max-width: 768px) {
  #masthead .site-title {
    font-size: 22px;
    letter-spacing: 1px;
  }
  #masthead .site-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8); /* モバイルでは白っぽい色に */
  }
}

/* PC (min-width: 1025px) */
@media screen and (min-width: 1025px) {
  /* ナビゲーションの横幅調整 */
  .nav-menu-open {
    max-width: 1000px;
    margin: 5px auto !important;
  }

  /* サイトタイトル (PC) */
  h1.site-title,
  div.site-title {
    padding: 1em 1em 0 0; /* 上右下左 */
    line-height: 2em;
    text-align: left;
    padding-top: 0; /* 元のコードから調整 */
  }
  h1.site-title img,
  div.site-title img {
    width: 42%;
    padding-top: 1em;
  }

  /* Lineセクション (PC) */
  .line-desc {
    flex-basis: 60%;
    padding: 30px 100px 30px 0; /* 上右下左 */
  }

  /* カートに入れるボタン (PC) */
  /* !important が多いため注意 */
  div.incart-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 10px !important;
  }
  div.incart-btn a {
    background: linear-gradient(90deg, #ffcc00, #ff9900) !important;
    font-weight: bold !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    border: none !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.3s ease-in-out !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    font-size: 14px !important;
    color: #333 !important; /* 文字色を追加 (見えなくなる可能性) */
  }
  div.incart-btn a:hover {
    background: linear-gradient(90deg, #ff9900, #ff6600) !important;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3) !important;
    transform: scale(1.02) !important;
  }

  /* ナビゲーションメニュー均等配置 (PC) */
  /* !important が多いため注意 */
  ul#menu-main-menu.header-nav-container.cf {
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
  }
  ul#menu-main-menu.header-nav-container.cf li {
    flex: 1 !important;
    text-align: center !important;
  }
  ul#menu-main-menu.header-nav-container.cf li a {
    display: block !important;
    padding: 12px 15px !important;
    text-decoration: none !important;
    color: #fff !important; /* メニューリンクの色 */
    font-size: 16px !important;
    font-weight: bold !important;
    transition: background-color 0.3s ease; /* ホバー効果を追加 */
  }
   ul#menu-main-menu.header-nav-container.cf li a:hover {
     background-color: rgba(255, 255, 255, 0.1); /* ホバー時の背景色 */
   }

} /* End of PC Media Query */
