@charset "UTF-8";
/* =============================================================================
   Generio Store — ショップ全体の見た目 (RM180323)
   -----------------------------------------------------------------------------
   ジェネリオストア https://www.generio.jp/shop/ の見え方にそろえる。
   EC-CUBE本体のテンプレートとCSSは一切触らず、このファイル（全ページで
   最後に読み込まれる）と app/template/default/ に置いた上書きだけで組む。
   戻すときはこのファイルを空にすれば元の見た目に戻る。
   ============================================================================= */

:root {
    /* ジェネリオストアの実測値 (theme_customize.css) */
    --gs-accent: #df7f0d;          /* ボタン・リンク */
    --gs-accent-dark: #c46f0a;     /* ホバー */
    --gs-text: #000000;
    --gs-text-sub: #6b7280;
    --gs-border: #d8dddf;
    --gs-bg: #ffffff;
    --gs-bg-soft: #f4f7f8;         /* レビュー欄などの背景 */
    --gs-width: 1200px;            /* コンテンツの幅 */
    --gs-gutter: 40px;             /* 左右の余白 */
    --gs-font: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ Pro",
               "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
}

/* -----------------------------------------------------------------------------
   1. 文字と色の土台
   -------------------------------------------------------------------------- */
body {
    font-family: var(--gs-font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--gs-text);
    background: var(--gs-bg);
}

.ec-layoutRole,
.ec-layoutRole__contents,
.ec-role,
.ec-pageHeader h1,
.ec-heading,
.ec-heading-bold,
.ec-reportHeading h2 {
    color: var(--gs-text);
}

a { color: var(--gs-accent); }
a:hover { color: var(--gs-accent-dark); }

/* 標準テーマの赤（#de5d50）をアクセント色に置き換える */
.ec-price__price,
.ec-color-accent,
.ec-required,
.ec-errorMessage,
.ec-cartRole__totalAmount { color: inherit; }

.ec-headingTitle {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--gs-text);
    margin: 10px 0 0;
}

/* -----------------------------------------------------------------------------
   2. 幅と余白 — 全体をゆったりさせる
   -------------------------------------------------------------------------- */
.ec-layoutRole__contents {
    max-width: var(--gs-width);
    margin: 0 auto;
    padding: 0 var(--gs-gutter);
}

.ec-headerRole,
.ec-headerNaviRole,
.ec-categoryNaviRole,
.ec-sliderRole,
.ec-eyecatchRole,
.ec-newItemRole,
.ec-topicRole,
.ec-footerRole__inner,
.ec-productRole,
.ec-searchnavRole,
.ec-shelfRole,
.ec-cartRole,
.ec-orderRole,
.ec-registerRole,
.ec-login,
.ec-mypageRole,
.ec-contactRole,
.ec-navlistRole {
    max-width: var(--gs-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--gs-gutter);
    padding-right: var(--gs-gutter);
}

.ec-layoutRole__main,
.ec-layoutRole__mainWithColumn,
.ec-layoutRole__mainBetweenColumn { width: 100%; }

.ec-pageHeader h1 {
    border: 0;
    border-bottom: 1px solid var(--gs-border);
    margin: 0 0 32px;
    padding: 0 0 12px;
    font-size: 26px;
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   3. ヘッダー — ロゴを中央に、操作はアイコンで
      （app/template/default/Block/header.twig と対で使う）
   -------------------------------------------------------------------------- */
.gs-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
    padding: 0 24px;
    background: var(--gs-bg);
    border-bottom: 1px solid var(--gs-border);
}

.gs-header__side {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 0;
}
.gs-header__side--right { justify-content: flex-end; }

.gs-header__logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
}
.gs-header__logo img { display: block; max-width: 150px; height: auto; }
.gs-header__logo--text {
    font-size: 22px;
    font-weight: 700;
    color: var(--gs-text);
    letter-spacing: .04em;
    text-decoration: none;
}

.gs-header__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gs-text);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}
.gs-header__btn:hover { color: var(--gs-accent); }

.gs-header__cart { position: relative; }
.gs-header__badge {
    position: absolute;
    top: -2px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--gs-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

/* 引き出し（ハンバーガーで開くメニュー・検索） */
.gs-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
}
.gs-drawer.is-open { display: block; }
.gs-drawer__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .35);
}
.gs-drawer__panel {
    position: absolute;
    top: 0;
    left: 0;
    width: min(360px, 86vw);
    height: 100%;
    overflow-y: auto;
    padding: 24px;
    background: var(--gs-bg);
    box-shadow: 0 0 24px rgba(0, 0, 0, .12);
}
.gs-drawer--search .gs-drawer__panel {
    left: auto;
    right: 0;
    width: min(420px, 92vw);
}
.gs-drawer__close {
    display: block;
    margin-left: auto;
    border: 0;
    background: none;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--gs-text);
}
.gs-drawer__title {
    margin: 8px 0 16px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--gs-text-sub);
}
.gs-drawer__list { margin: 0; padding: 0; list-style: none; }
.gs-drawer__list li { border-bottom: 1px solid var(--gs-border); }
.gs-drawer__list a {
    display: block;
    padding: 14px 4px;
    color: var(--gs-text);
    font-size: 16px;
    text-decoration: none;
}
.gs-drawer__list a:hover { color: var(--gs-accent); }

/* 引き出しの検索フォーム */
.gs-search { display: flex; gap: 8px; margin: 0 0 24px; }
.gs-search__input {
    flex: 1 1 auto;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--gs-border);
    border-radius: 2px;
    font-size: 16px;
    color: var(--gs-text);
}
.gs-search__btn {
    flex: 0 0 auto;
    height: 44px;
    padding: 0 20px;
    border: 1px solid var(--gs-accent);
    border-radius: 2px;
    background: var(--gs-accent);
    color: var(--gs-text);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

/* ヘッダーブロックは header.twig に集約したので、標準の枠は余白を持たせない */
.ec-layoutRole__header { padding: 0; }

/* -----------------------------------------------------------------------------
   4. ボタン
   -------------------------------------------------------------------------- */
.ec-blockBtn--action,
.ec-inlineBtn--action,
.ec-blockBtn--primary,
.ec-registerRole__actions button,
.ec-cartRole__actions .ec-blockBtn--action {
    width: 100%;
    max-width: none;
    height: 60px;
    line-height: 60px;
    padding: 0 16px;
    background: var(--gs-accent);
    border: 1px solid var(--gs-accent);
    border-radius: 2px;
    color: var(--gs-text);
    font-size: 16px;
    font-weight: 700;
}
.ec-blockBtn--action:hover,
.ec-inlineBtn--action:hover,
.ec-blockBtn--primary:hover {
    background: var(--gs-accent-dark);
    border-color: var(--gs-accent-dark);
    color: var(--gs-text);
}
.ec-blockBtn--action[disabled],
.ec-blockBtn--action:disabled {
    background: #e5e7eb;
    border-color: #e5e7eb;
    color: #9ca3af;
}

.ec-blockBtn--cancel,
.ec-inlineBtn--cancel,
.ec-blockBtn {
    height: 56px;
    line-height: 56px;
    border: 1px solid var(--gs-border);
    border-radius: 2px;
    background: #fff;
    color: var(--gs-text);
    font-weight: 700;
}

/* -----------------------------------------------------------------------------
   5. 商品ページ
   -------------------------------------------------------------------------- */
.ec-productRole { padding-top: 24px; }

/* パンくず */
.gs-breadcrumbs {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 16px;
    line-height: 1.6;
}
.gs-breadcrumbs li { display: inline; }
.gs-breadcrumbs a { color: var(--gs-accent); text-decoration: underline; }
.gs-breadcrumbs__sep { margin: 0 10px; color: var(--gs-text-sub); }
.gs-breadcrumbs__current { color: var(--gs-text); }

/* 左600px / 右480px。ジェネリオストアと同じ配分 */
.ec-productRole .ec-grid2 { gap: 120px; align-items: flex-start; }
.ec-productRole .ec-grid2__cell:first-child { width: 600px; flex: 0 0 600px; }
.ec-productRole .ec-grid2__cell:last-child { width: auto; flex: 1 1 auto; }

/* 商品名の上に出すカテゴリ */
.gs-product__category {
    margin: 0;
    font-size: 16px;
    color: var(--gs-text-sub);
}
.gs-product__category a { color: inherit; text-decoration: none; }
.gs-product__category a:hover { color: var(--gs-accent); }

/* レビューへの導線 */
.gs-product__reviewLink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gs-accent);
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

/* 価格は1行。「税抜（税込価格 ◯円）」 */
.ec-productRole__price,
.ec-productRole__priceRegular { margin: 0; padding: 0; border: 0; }
.gs-product__price {
    margin: 32px 0 0;
    font-size: 16px;
    font-weight: 400;
    color: var(--gs-text);
}
.gs-product__price .gs-product__price-sale {
    margin-left: 10px;
    color: #b91c1c;
    font-weight: 700;
}

/* 規格・数量 */
.ec-productRole__actions { margin: 24px 0 0; }
.ec-productRole__actions .ec-select { margin-bottom: 16px; }
.ec-productRole__actions .ec-select select,
.ec-productRole__actions select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--gs-border);
    border-radius: 2px;
    font-size: 15px;
    color: var(--gs-text);
    background-color: #fff;
}

.ec-productRole__actions .ec-numberInput {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0 0;
}
.gs-quantity__label { font-size: 16px; color: var(--gs-text); }
.gs-quantity__box {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--gs-border);
    border-radius: 2px;
    overflow: hidden;
}
.gs-quantity__btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: #fff;
    color: var(--gs-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.gs-quantity__btn:hover { background: var(--gs-bg-soft); }
.gs-quantity__box input[type="number"],
.gs-quantity__box input[type="text"],
.gs-quantity__box input {
    width: 60px;
    height: 40px;
    border: 0;
    border-left: 1px solid var(--gs-border);
    border-right: 1px solid var(--gs-border);
    border-radius: 0;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
}
.gs-quantity__box input::-webkit-outer-spin-button,
.gs-quantity__box input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* カートに入れる → 幅いっぱい */
.ec-productRole__btn { max-width: none; margin: 24px 0 0; }

/* お気に入りはボタンではなくリンクで */
.gs-product__favorite { margin: 16px 0 0; }
.gs-product__favorite button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gs-accent);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.6;
    text-decoration: underline;
    cursor: pointer;
}
.gs-product__favorite button[disabled] {
    color: var(--gs-text-sub);
    text-decoration: none;
    cursor: default;
}

/* シェア */
.gs-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 32px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--gs-border);
}
.gs-share__label { font-size: 16px; color: var(--gs-text); }
.gs-share__list { display: flex; gap: 14px; margin: 0; padding: 0; list-style: none; }
.gs-share__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--gs-text);
    font-size: 18px;
    text-decoration: none;
}
.gs-share__list a:hover { color: var(--gs-accent); }

/* 商品画像とサムネイル */
.ec-sliderItemRole { margin-bottom: 0; }
.ec-sliderItemRole .item_visual img { width: 100%; height: auto; }
.gs-thumbs {
    position: relative;
    margin: 16px 0 0;
    padding: 0 36px;
}
.gs-thumbs__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.gs-thumbs__track::-webkit-scrollbar { display: none; }
.gs-thumbs__track .slideThumb {
    flex: 0 0 80px;
    width: 80px;
    cursor: pointer;
    border: 1px solid transparent;
}
.gs-thumbs__track .slideThumb img { width: 100%; height: auto; display: block; }
.gs-thumbs__track .slideThumb.is-current { border-color: var(--gs-accent); }
.gs-thumbs__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: 0;
    background: none;
    color: var(--gs-text);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.gs-thumbs__arrow--prev { left: 0; }
.gs-thumbs__arrow--next { right: 0; }
.gs-thumbs__arrow:hover { color: var(--gs-accent); }

/* 商品説明（全幅ブロックは Customize の Subscriber が出している） */
.ec-productRole__descriptionFull { font-size: 16px; line-height: 1.85; }

/* 商品コードは出さない（ジェネリオストアに合わせる） */
.ec-productRole__code { display: none; }
/* 関連カテゴリは商品名の上に出しているので、下の重複表示は隠す */
.ec-productRole__category { display: none; }

/* -----------------------------------------------------------------------------
   6. 商品一覧・トップ
   -------------------------------------------------------------------------- */
.ec-shelfGrid__item { padding: 0 12px 48px; }
.ec-shelfGrid__item-image { height: auto; margin-bottom: 14px; }
.ec-shelfGrid__item img { width: 100%; height: auto; }
.ec-shelfGrid__item p { font-size: 15px; line-height: 1.6; }
/* 商品名は2行まで。行数がまちまちだと棚の高さが揃わない */
.ec-shelfGrid__item .item_name,
.ec-shelfGrid__item a > p:first-of-type {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.2em;
}
.ec-shelfGrid__item .price02-default { font-size: 16px; color: var(--gs-text); font-weight: 700; }
.ec-shelfGrid__item .ec-numberInput { justify-content: flex-start; }

.ec-searchnavRole__topicpath { font-size: 16px; }

/* -----------------------------------------------------------------------------
   7. フッター
   -------------------------------------------------------------------------- */
.ec-footerRole {
    margin-top: 80px;
    border-top: 1px solid var(--gs-border);
    background: var(--gs-bg-soft) !important;
    color: var(--gs-text);
}
/* 元のフッターは黒地に白文字。背景を明るくしたので文字色も戻す */
.ec-footerRole a,
.ec-footerNavi__link a,
.ec-footerTitle__logo a,
.ec-footerTitle__logo,
.ec-footerTitle__copyright { color: var(--gs-text) !important; }
.ec-footerNavi__link a:hover { color: var(--gs-accent) !important; }
.ec-footerTitle__copyright { color: var(--gs-text-sub) !important; font-size: 13px; }
.ec-footerTitle__logo a { font-size: 20px; font-weight: 700; text-decoration: none; }
.ec-footerNavi { padding-top: 8px; }

/* 本文の上に余白を入れる（固定ヘッダーではないが詰まって見えるため） */
.ec-layoutRole__contents { padding-top: 32px; }

/* -----------------------------------------------------------------------------
   8. 画面が狭いとき
   -------------------------------------------------------------------------- */
@media (max-width: 1279px) {
    :root { --gs-gutter: 24px; }
}

@media (max-width: 991px) {
    .ec-productRole .ec-grid2 { gap: 40px; }
    .ec-productRole .ec-grid2__cell:first-child { width: 50%; flex: 0 0 50%; }
}

@media (max-width: 767px) {
    body { font-size: 15px; }
    .ec-headingTitle { font-size: 24px; }
    .gs-header { height: 60px; padding: 0 16px; }
    .gs-header__logo img { max-width: 118px; }
    .ec-productRole .ec-grid2 { display: block; }
    .ec-productRole .ec-grid2__cell:first-child,
    .ec-productRole .ec-grid2__cell:last-child { width: 100%; flex: none; }
    .ec-productRole .ec-grid2__cell:last-child { margin-top: 24px; }
    .gs-breadcrumbs { font-size: 14px; }
    .gs-share { flex-wrap: wrap; gap: 12px; }
}

/* -----------------------------------------------------------------------------
   9. 商品説明文中の表・強調テキスト (RM180323)
   -----------------------------------------------------------------------------
   商品説明はgenerio.jp（rp.generio.jp）のHTMLをそのまま流用しているが、対応する
   CSSは移されていなかったため、表が罫線なしの文字列に、強調テキストが黒字のまま
   表示されていた。該当クラスにだけ見た目を与える（他ページには影響しない）。
   -------------------------------------------------------------------------- */
.ec-productRole__descriptionFull table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 15px;
}

.ec-productRole__descriptionFull th,
.ec-productRole__descriptionFull td {
    border: 1px solid var(--gs-border);
    padding: 10px 14px;
    text-align: center;
    vertical-align: middle;
}

.ec-productRole__descriptionFull thead th {
    background: var(--gs-bg-soft);
    font-weight: 600;
    white-space: nowrap;
}

.ec-productRole__descriptionFull tbody tr:nth-child(even) {
    background: #fafafa;
}

/* 表を包むラッパーが画面幅からはみ出す場合はスクロールできるようにする */
.ec-productRole__descriptionFull .table_1,
.ec-productRole__descriptionFull .table_2,
.ec-productRole__descriptionFull .table_3,
.ec-productRole__descriptionFull .table_4 {
    overflow-x: auto;
}

/* 見出しセルの幅指定クラス（元テンプレートのユーティリティクラスを再現） */
.ec-productRole__descriptionFull .w5   { width: 5%; }
.ec-productRole__descriptionFull .w10  { width: 10%; }
.ec-productRole__descriptionFull .w15  { width: 15%; }
.ec-productRole__descriptionFull .w20  { width: 20%; }
.ec-productRole__descriptionFull .w25  { width: 25%; }
.ec-productRole__descriptionFull .w30  { width: 30%; }
.ec-productRole__descriptionFull .w40,
.ec-productRole__descriptionFull .w-40 { width: 40%; }

.ec-productRole__descriptionFull .table_comment {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: var(--gs-text-sub);
}

.ec-productRole__descriptionFull .table_1_heading,
.ec-productRole__descriptionFull .table_2_heading {
    display: block;
    margin: 24px 0 8px;
    font-weight: 600;
}

/* 強調テキスト（商品2の注意書きで使用） */
.ec-productRole__descriptionFull .em-text_cr_fw600 {
    color: #e60012;
    font-weight: 600;
}

/* 商品説明文中の画像が画面幅をはみ出さないように */
.ec-productRole__descriptionFull img {
    max-width: 100%;
    height: auto;
}

