@charset "UTF-8";
@import url("https://image.raku-uru.jp/cms/fontcss/font.css");

/*
 * :root
 * サイト全体で使用する色やフォントを変数として定義します。
 * 色の変更などがこの一箇所で済むため、メンテナンス性が向上します。
*/
:root {
  /* カラー */
  --color-text: #1a130c;
  --color-background: #fff;
  --color-link: #000;
  --color-link-active: #00f;
  --color-primary: #EA572B;
  --color-secondary: #ff7b65;
  --color-white: #fff;
  --color-dark: #333;
  --color-gray-border: #d2d2d2;
  --color-gray-background: #f6f6f7;

  /* フォント */
  --font-family-base: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "游ゴシック", "Yu Gothic", "游ゴシック体", "YuGothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  --font-family-serif: "Sawarabi Mincho", "Times New Roman", "游明朝", YuMincho, "ヒラギノ明朝 ProN W3", "Hiragino Mincho ProN", serif;
  --font-family-icon: "icomoon";

  /* 角丸 */
  --border-radius-small: 2px;
  --border-radius-medium: 5px;
  --border-radius-circle: 50%;

  /* トランジション */
  --transition-base: 0.3s;
}

/*
 * 1. Modern CSS Reset & Base Styles
 * 現代的なリセットと基本的なスタイルを定義します。
*/

/* 全要素に適用するボックスモデルの指定 */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 基本的なリセット */
html, body {
  height: 100%;
}

body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ol, ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

input, button, textarea, select {
  font: inherit;
  outline: none;
  border: none;
  background: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

button, input[type="submit"] {
  cursor: pointer;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 基本スタイル */
html {
  font-size: 62.5%; /* 1rem = 10px にするための設定 */
}

body {
  font-family: var(--font-family-base);
  font-size: 1.6rem; /* 基本のフォントサイズを16pxに */
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-background) ;
  word-break: break-all;
}

a {
  color: var(--color-link);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-link-active);
  text-decoration: underline;
}

/*
 * 2. Layout
 * サイトの基本的な骨格を定義します。
*/
#wrapper {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

#container {
  flex-grow: 1; /* フッターを最下部に固定するため */
}

.inner {
  width: 94%;
  margin: 0 auto;
}

.inner_980 {
  width: 94%;
  margin: 0 auto;
  max-width: 980px;
}

/* * 3. Header
 * ヘッダーとナビゲーション。Flexboxで構築し、SP/PCの切り替えをシンプルに。
*/
#header {
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 10px;
}

.logo {
  flex-grow: 1;
  text-align: center;
}

.site-name img {
  max-height: 55px;
}

.menubtn {
  width: 55px;
  height: 55px;
  background-color: var(--color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000; /* ナビゲーションより手前 */
  position: relative; /* z-indexを効かせるため */
}

#jq-open-btn::before {
  font-family: var(--font-family-icon);
  font-size: 1.6rem;
  color: var(--color-white);
  content: "\e926"; /* Open Icon */
}

#jq-open-btn.close::before {
  content: "\e904"; /* Close Icon */
}

#global-nav {
  display: none; /* 初期状態は非表示。JSで .is-open を付与して表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 1900;
  overflow-y: auto;
}

body.is-nav-open #global-nav {
  display: block;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
}

.header-menu li {
  width: calc(100% / 3);
}

.header-menu li a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-bottom: 2px solid #262626;
  transition: background-color var(--transition-base);
}

.header-menu li a:hover {
  background-color: var(--color-dark);
  text-decoration: none;
}

/* PC Styles for Header */
@media screen and (min-width: 960px) {
  .menubtn {
    display: none;
  }
  
  #global-nav {
    display: block;
    position: static;
    background: none;
    height: auto;
  }
  
  #header {
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
  }

  .header-top {
    height: auto;
    padding: 10px 0;
  }

  .logo {
    order: 2;
    text-align: center;
  }
  
  .search-area {
    order: 1;
    width: 280px;
  }
  
  .header-menu {
    order: 3;
    width: auto;
    flex-wrap: nowrap;
  }
  
  .header-menu li {
    width: auto;
    margin-left: 5px;
  }

  .header-menu li a {
    height: 34px;
    padding: 0 15px;
    border: none;
    border-radius: var(--border-radius-small);
  }
  
  /* カテゴリーナビ */
  .cat-menu {
    display: flex;
    justify-content: center;
    background-color: var(--color-primary);
    height: 40px;
  }
  
  .cat-menu > li > a, .cat-menu > li > b {
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 40px;
    color: var(--color-white);
  }
  
  li.cat-dropdown {
    position: relative;
  }
  
  li.cat-dropdown:hover > ul {
    display: block;
  }
  
  li.cat-dropdown > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 100;
  }
  
  li.cat-dropdown li a {
    display: block;
    padding: 8px 15px;
    color: var(--color-dark);
    border-top: 1px solid #eee;
  }

  li.cat-dropdown li a:hover {
    background-color: #f0f0f0;
    text-decoration: none;
  }
}

/*
 * 4. Main Content & Components
*/

/* 共通セクション */
.section-block {
  padding: 20px 0;
}

.section-head {
  padding-bottom: 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-primary);
  display: flex;
  align-items: baseline;
  gap: 15px;
}

.title1 {
  font-size: 2.0rem;
  font-weight: bold;
  color: var(--color-primary);
}

.sub-title {
  font-size: 1.4rem;
}

/* 商品リスト */
.list-product {
  display: grid;
  gap: 20px;
}

/* カラム設定 */
.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-3 { grid-template-columns: repeat(2, 1fr); } /* SPでは2列 */
.col-4 { grid-template-columns: repeat(2, 1fr); } /* SPでは2列 */
.col-6 { grid-template-columns: repeat(2, 1fr); } /* SPでは2列 */

.list-product li {
  text-align: center;
}

.item-photo {
  position: relative;
  margin-bottom: 10px;
  aspect-ratio: 1 / 1; /* 正方形を維持 */
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* coverかcontainを選択 */
}

.item-info .item-name {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.3;
}

.item-info .item-price {
  margin-top: 8px;
}

.tax {
  font-size: 0.8em;
  color: #999;
}

/* バッジのスタイル (CSS変数で対応) */
.icon-badge::before {
  content: var(--badge-text, "");
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 10;
  background-color: var(--badge-color, var(--color-secondary));
  color: var(--color-white);
  padding: 2px 8px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: var(--border-radius-small);
  line-height: 1.5;
}
/* 使用例： <div class="icon-badge" style="--badge-text:'NEW'; --badge-color: #86c03f;"></div> */


/* PCでのカラム設定 */
@media screen and (min-width: 768px) {
  .col-3 { grid-template-columns: repeat(3, 1fr); }
  .col-4 { grid-template-columns: repeat(4, 1fr); }
  .col-6 { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 960px) {
  .col-6 { grid-template-columns: repeat(4, 1fr); }
}


/* テーブルのレスポンシブ対応 */
/*
 * レスポンシブテーブルには .table-responsive クラスを付与してください。
 * SP表示で縦積みになります。
*/
@media screen and (max-width: 767px) {
  .table-responsive thead {
    display: none; /* ヘッダーを非表示 */
  }

  .table-responsive,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100%;
  }

  .table-responsive tr {
    margin-bottom: 15px;
    border: 1px solid var(--color-gray-border);
  }

  .table-responsive td {
    text-align: right; /* 値を右寄せに */
    position: relative;
    padding-left: 50%; /* ラベル用のスペースを確保 */
    border: none;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .table-responsive td::before {
    content: attr(data-label); /* data-label属性のテキストを表示 */
    position: absolute;
    left: 10px;
    width: calc(50% - 20px);
    text-align: left;
    font-weight: bold;
  }
}

/* Youtube */
.youtube {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 20px auto;
  aspect-ratio: 16 / 9;
}

.youtube iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*
 * 5. Footer
*/
#footer {
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
  border-top: 3px solid var(--color-primary);
}

.copyright {
  font-size: 1.2rem;
}

/*
 * .wysiwyg-data はユーザーが自由に入力するコンテンツエリアであり、
 * スタイルが衝突しないよう詳細なリセットがかけられています。
 * 意図しない影響を避けるため、ここではエラー修正のみ行い、大きな変更は加えていません。
 */
.wysiwyg-data {
  /* ...元のスタイルからエラー部分を除いて記述... */
  /* ここでは省略しますが、元のCSSの.wysiwyg-dataセクションをコピーし、末尾の壊れた行を削除してください */
}

/*Youtube最大値指定*/
.youtube{
    position: relative;
     width:100%;
     max-width: 560px;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    clear: both; 
}

.youtube::before{
  content:"";
  display: block;
  width:100%;
  padding-top:56.25%;
}
.youtube iframe{
  position:absolute;
  top:0;
  right:0;
  width:100%;
  height:100%;
}


