/* カスタマイズ用CSS */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

:root { --tgp-black:#262626; --tgp-gray:#bfbfbf; }  /* 色は参考画像からの推定値。スポイトで調整 */
body { font-family:"Noto Sans JP",sans-serif; color:#333; }

/* 黒帯の見出し（サイドバー・おすすめ・ガイドで共通） */
.tgp-bar { background:var(--tgp-black); color:#fff; padding:10px 16px; font-weight:700; letter-spacing:.15em; }

.tgp-hero { background:#F5F2EF; padding:35px 0 50px; margin-bottom:50px; }
.tgp-hero .swiper-slide { width:min(78vw,770px); }
.tgp-hero .swiper-slide img { width:100%; display:block; }
.tgp-hero .swiper-pagination-bullet { background:#888; opacity:1; }
.tgp-hero .swiper-pagination-bullet-active { background:#000; }
.tgp-hero__swiper { padding-bottom:40px; }
.tgp-hero .swiper-pagination { bottom:0; }

.tgp-about__inner { display:grid; grid-template-columns:1fr 1fr; gap:40px; max-width:1100px; margin:80px auto; align-items:center; border:3px solid #F5F2EF; padding:20px 30px;}
.tgp-about__label { display:inline-block; border-bottom:1px solid #333; font-size:14px; }
.tgp-about__title { font-size:24px; font-weight:700; }
@media (max-width:767px){ .tgp-about__inner { grid-template-columns:1fr; margin:40px 16px; } }

/* フッター：ダーク背景、左にロゴとSNS、縦線、右にリンク2列（修正版） */
.ec-footerRole.tgp-footer {
    background: #262626;
    border-top: 0;
    padding: 48px 20px 24px;
    color: #fff;
}

.ec-footerRole.tgp-footer .tgp-footer__inner {
    width: 100%;
    max-width: 1130px;
    margin: 0 auto;
    padding: 0;
}

.ec-footerRole.tgp-footer .tgp-footer__main {
    display: flex;
    align-items: stretch;
}

.ec-footerRole.tgp-footer .tgp-footer__brand {
    flex: 0 0 auto;
    width: 300px;
    padding-right: 40px;
    border-right: 1px solid #fff;
    text-align: left;
}

.ec-footerRole.tgp-footer .tgp-footer-logo img {
    display: block;
    width: 200px;
    max-width: 100%;
    height: auto;
    margin-left: 0;
}

.ec-footerRole.tgp-footer .tgp-footer__sns {
    display: flex;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.ec-footerRole.tgp-footer .tgp-footer__sns a {
    display: inline-block;
    color: #fff;
}

.ec-footerRole.tgp-footer .tgp-footer__links {
    display: flex;
    flex: 0 1 auto;
    gap: 56px;
    padding-left: 56px;
}

/* リンクの列：幅の縮みと、余計な枠線を打ち消す */
.ec-footerRole.tgp-footer .ec-footerNavi {
    display: block !important;
    flex: 0 0 auto;
    width: auto !important;
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    list-style: none;
    text-align: left;
}

.ec-footerRole.tgp-footer .ec-footerNavi .ec-footerNavi__link {
    display: block;
    width: auto !important;
    margin: 0 0 12px;
    padding: 0 !important;
    border: 0 !important;
}

.ec-footerRole.tgp-footer .ec-footerNavi .ec-footerNavi__link a {
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    white-space: nowrap;
    text-decoration: none;
}

.ec-footerRole.tgp-footer .ec-footerNavi .ec-footerNavi__link a:hover,
.ec-footerRole.tgp-footer .tgp-footer__sns a:hover {
    opacity: 0.7;
}

.ec-footerRole.tgp-footer .ec-footerTitle {
    margin-top: 32px;
    text-align: center;
}

.ec-footerRole.tgp-footer .ec-footerTitle__copyright {
    color: #bfbfbf;
    font-size: 12px;
}

/* スマートフォン：縦に並べ、ロゴとSNSは中央寄せ */
@media screen and (max-width: 767px) {
    .ec-footerRole.tgp-footer .tgp-footer__main {
        display: block;
    }

    .ec-footerRole.tgp-footer .tgp-footer__brand {
        width: auto;
        padding: 0 0 24px;
        border-right: 0;
        border-bottom: 1px solid #fff;
        text-align: center;
    }

    .ec-footerRole.tgp-footer .tgp-footer-logo img {
        margin-left: auto;
        margin-right: auto;
    }

    .ec-footerRole.tgp-footer .tgp-footer__sns {
        justify-content: center;
    }

    .ec-footerRole.tgp-footer .tgp-footer__links {
        gap: 32px;
        padding: 24px 0 0;
        justify-content: center;
    }
}

.tgp-guide { background:var(--tgp-gray); padding:80px 0; }
.tgp-guide__box { background:#fff; max-width:1000px; margin:0 auto; padding:50px;
  display:grid; grid-template-columns:1fr 1fr; gap:0 40px; }
.tgp-guide__title { grid-column:1 / -1; text-align:center; font-size:24px; margin-bottom:40px; }
@media (max-width:767px){ .tgp-guide__box { grid-template-columns:1fr; padding:24px; } }

/* 商品のおすすめ一覧を4列に */
.ec-shelfGrid { display:grid; grid-template-columns:repeat(4,1fr); gap:30px 28px; }
@media (max-width:767px){ .ec-shelfGrid { grid-template-columns:repeat(2,1fr); gap:20px 14px; } }

/* カートを角丸のカプセル型に */
.ec-cartNavi { background:#f2f2f2; border-radius:30px; padding:6px 18px; }

/* 標準スライダーを非表示 */
.ec-sliderRole { display:none; }

/* 左サイドバー */
.tgp-side { font-size:14px; }
.tgp-side__search { margin-bottom:30px; }
.tgp-side__searchTitle { margin:0; }
.tgp-side__searchBox { display:flex; border:1px solid #ccc; }
.tgp-side__searchBox input { flex:1; min-width:0; border:0; padding:8px 10px; }
.tgp-side__searchBox button { border:0; background:none; padding:0 10px; cursor:pointer; }
.tgp-side__catTitle { font-size:16px; font-weight:700; margin:0 0 10px; padding-bottom:8px; border-bottom:1px solid #666; }
.tgp-side__cat, .tgp-side__cat ul { list-style:none; margin:0; padding:0; }
.tgp-side__cat a { display:block; padding:8px 10px; font-size:13px; color:#333; }
.tgp-side__cat ul { padding-left:12px; }
.tgp-side__cat ul a { font-size:12px; }

/* ===== おすすめ商品（4列グリッド） ===== */
.ec-newItemRole .ec-newItemRole__list {
  display:grid !important;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:30px 28px;
  margin:0; padding:0;
}
.ec-newItemRole .ec-newItemRole__list > .ec-newItemRole__listItem {
  width:auto !important; max-width:none !important;
  margin:0 !important; padding:0 !important; float:none !important;
}
/* 最初の1つ（黒帯の見出し）は横いっぱいに */
.ec-newItemRole .ec-newItemRole__list > .ec-newItemRole__listItem:first-child {
  grid-column:1 / -1 !important;
}

/* 黒帯の見出し */
.ec-newItemRole__listItemHeading {
  width:100%; box-sizing:border-box;
  background:var(--tgp-black); color:#fff; padding:12px 20px; margin:0;
  display:flex !important; align-items:center; gap:14px;
}
.ec-newItemRole__listItemHeading .ec-secHeading__en {
  font-size:18px; font-weight:700; letter-spacing:.25em; color:#fff; white-space:nowrap;
}
.ec-newItemRole__listItemHeading .ec-secHeading__line { display:none; }
.ec-newItemRole__listItemHeading .ec-secHeading__ja { font-size:12px; color:#fff; white-space:nowrap; }
/* 「more」ボタンは使わない（あとで「商品一覧へ」ボタンを作ります） */
.ec-newItemRole__listItemHeading .ec-inlineBtn--top { display:none; }

/* 商品 */
.ec-newItemRole__listItem img { width:100%; aspect-ratio:1/1; object-fit:cover; }
.ec-newItemRole__listItemTitle { color:#555; font-size:14px; margin:10px 0 4px; }
.ec-newItemRole__listItemPrice { font-weight:700; }
@media (max-width:767px){
  .ec-newItemRole .ec-newItemRole__list { grid-template-columns:repeat(2, minmax(0,1fr)); gap:20px 14px; }
}

/* ===== NEWS ===== */
.ec-newsRole .ec-secHeading { text-align:center; margin-bottom:30px; }
.ec-newsRole .ec-secHeading__en { display:block; font-size:32px; font-weight:700; }
.ec-newsRole .ec-secHeading__line { display:none; }
.ec-newsRole .ec-secHeading__ja { display:block; font-size:13px; color:#888; }
.ec-newsRole__newsItem { border-bottom:1px solid #e5e5e5; }
.ec-newsRole__newsDate { font-weight:700; font-size:13px; }
.ec-newsRole__newsCloseBtn { display:inline-flex; align-items:center; justify-content:center;
  width:20px; height:20px; border-radius:50%; background:#000; color:#fff; font-size:12px; }

.ec-newItemRole__listItemHeading .ec-secHeading__ja {
  position:static !important; top:auto !important;
  margin:0 !important; line-height:1; align-self:center;
}
.ec-newItemRole__listItemHeading .ec-secHeading__en { line-height:1; }

/* 余白の試し直し */
.ec-newItemRole .ec-newItemRole__list { align-content:start; grid-auto-rows:min-content; }

/* 黒帯の箱の余白と高さをリセット */
.ec-newItemRole .ec-newItemRole__list > .ec-newItemRole__listItem:first-child {
  align-self:start !important;
  height:auto !important; min-height:0 !important;
  margin:0 !important; padding:0 !important;
}
.ec-newItemRole .ec-newItemRole__listItemHeading {
  margin:0 !important; position:static !important; top:auto !important;
  height:auto !important; min-height:0 !important;
}

/* 商品一覧へボタン */
.tgp-moreBtn { text-align:center; margin-top:50px; }
.tgp-moreBtn a { display:inline-flex; justify-content:space-between; align-items:center;
  width:260px; padding:18px 24px; box-sizing:border-box;
  border:1px solid #333; color:#333; }
.tgp-moreBtn a::after { content:""; width:16px; border-top:1px solid #333; }

/* 上端をそろえる */
.ec-newItemRole { padding-top:0 !important; margin-top:0 !important; }

/* NEWSをすっきりさせる */
.ec-newsRole .ec-secHeading__en { letter-spacing:.05em; }
.ec-newsRole__news { background:none !important; padding:0 !important; }
.ec-newsRole__newsItem { background:none !important; box-shadow:none !important; }

/* to top ボタン（丸い固定ボタン） */
.ec-blockTopBtn { font-size:0; width:50px; height:50px; border-radius:50%; background:#555; padding:0; text-align:center; }
.ec-blockTopBtn::before { content:"to top"; font-size:11px; line-height:50px; color:#fff; }

/* NEWSの背景と枠をリセット */
.ec-newsRole, .ec-newsRole * { background:transparent !important; box-shadow:none !important; }
.ec-newsRole, .ec-newsRole__news { border:0 !important; }
.ec-newsRole__news { padding:0 !important; }

/* 黒丸の矢印だけ戻す */
.ec-newsRole .ec-newsRole__newsCloseBtn { background:#000 !important; }

/* ===== メインビジュアル：ドットを画像の下に ===== */
.tgp-hero { padding-bottom:20px; }
.tgp-hero .tgp-hero__swiper { padding-bottom:44px; }
.tgp-hero .swiper-pagination.swiper-pagination-bullets { bottom:0; }

/* ===== About us：写真を440pxまでにして、文字側を広げる ===== */
.tgp-about__inner { grid-template-columns:minmax(0,1fr) minmax(0,440px); }
.tgp-about__img img { width:100%; height:auto; display:block; }
.tgp-about__title { line-height:1.5; }
@media (max-width:767px){ .tgp-about__inner { grid-template-columns:1fr; } }

/* ===== NEWS：下に余白 ===== */
.ec-newsRole { padding-bottom:80px; }

/* ===== ご利用ガイド ===== */
.tgp-guide__title { font-weight:700; }
.tgp-guide .tgp-bar { font-size:16px; letter-spacing:.1em; margin:0 0 14px; }
.tgp-guide__col .tgp-bar:not(:first-child) { margin-top:32px; }
.tgp-guide__col p { font-size:14px; line-height:1.9; margin:0 0 8px; }

/* ===== フッターの上下の余白 ===== */
.ec-footerRole { margin-top:80px !important; }            /* 下層ページ：余白を戻す */
.front_page .ec-footerRole { margin-top:0 !important; }   /* トップページだけ余白なし */
.ec-layoutRole__contentBottom { margin-bottom:0 !important; }

/* ===== ヘッダー（PC） ===== */
@media (min-width:768px){
  .ec-layoutRole__header {
    display:grid; grid-template-columns:auto 1fr; align-items:center;
    max-width:1000px; margin:0 auto; padding:18px 0 16px; column-gap:30px;
  }
  .ec-headerRole { grid-column:1; grid-row:1 / span 2; padding:0 !important; margin:0 !important; }
  .ec-headerTitle { text-align:left !important; padding:0 !important; margin:0 !important; }
  .ec-headerTitle__title h1 a { font-size:28px; font-weight:700; }

  .ec-headerNaviRole { grid-column:2; grid-row:1; justify-self:end;
    width:auto !important; max-width:none !important; padding:0 !important; margin:0 !important; }
  .ec-headerNaviRole__left { display:none; }          /* 検索はサイドバーにあるため */

  .tgp-gnav { grid-column:2; grid-row:2; justify-self:end; display:flex; gap:32px; margin-top:14px; }
  .ec-categoryNaviRole { grid-column:1 / -1; grid-row:3; }
}
.tgp-gnav a { color:#333; font-size:13px; font-weight:700; }
.ec-headerNav__itemIcon { display:none; }              /* アイコンを消して文字だけに */
@media (max-width:767px){ .tgp-gnav { display:none; } }  /* スマホはメニュー（ドロワー）を使う */

/* ===== ヘッダー右上：横一列にして右端へ ===== */
@media (min-width:768px){
  .ec-headerNaviRole { display:flex !important; justify-content:flex-end !important; align-items:center !important; }
  .ec-headerNaviRole__right { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important;
    align-items:center; width:auto !important; gap:16px; }
  .ec-headerNaviRole__nav, .ec-headerRole__cart { width:auto !important; flex:none !important; }
  .ec-headerNav { display:flex !important; flex-direction:row !important; flex-wrap:nowrap !important; width:auto !important; gap:20px; }
  .ec-headerNav .ec-headerNav__item { display:block !important; width:auto !important; margin:0 !important; white-space:nowrap; }
}
/* アイコンを消す（標準CSSに勝つため !important） */
.ec-headerNav .ec-headerNav__item .ec-headerNav__itemIcon { display:none !important; }

/* ===== 商品一覧ページ ===== */
.ec-shelfGrid { display:grid !important; grid-template-columns:repeat(4, minmax(0,1fr)); gap:30px 28px; }
.ec-shelfGrid__item { width:auto !important; max-width:none !important; margin:0 !important; padding:0 !important; float:none !important; }
.ec-shelfGrid__item img { width:100%; aspect-ratio:1/1; object-fit:cover; }
.ec-shelfGrid__item .ec-blockBtn--action { width:100%; }

/* ===== 色をサイトのトーンに合わせる ===== */
.ec-price__price { color:#262626; }
.ec-blockBtn--action { background:var(--tgp-black); border-color:var(--tgp-black); }
.ec-blockBtn--action:hover { background:#444; border-color:#444; }
.ec-blockBtn--cancel { background:#fff; color:#262626; border:1px solid #262626; }
.ec-blockBtn--cancel:hover { background:#f2f2f2; }
a { color:#333; }

/* ゲスト購入ボタン（ログイン画面右側） */
.ec-guest a, .ec-guest button {
  background:#fff !important; color:#262626 !important; border:1px solid #262626 !important;
}
.ec-guest a:hover, .ec-guest button:hover {
  background:#262626 !important; color:#fff !important;
}

/* 商品一覧：カートに入れるフォーム（数量・選択肢・ボタン）を非表示 */
.ec-shelfGrid__item form { display:none !important; }
/* 商品一覧：「カートに入れる」ボタンも非表示 */
.ec-shelfGrid__item .ec-productRole__btn,
.ec-shelfGrid__item .add-cart { display:none !important; }

/* キャンセル系ボタン（カートに戻る など）：文字色を黒に */
a.ec-blockBtn--cancel,
button.ec-blockBtn--cancel,
.ec-totalBox__btn .ec-blockBtn--cancel {
  background:#fff !important; color:#262626 !important; border:1px solid #262626 !important;
}
a.ec-blockBtn--cancel:hover,
button.ec-blockBtn--cancel:hover,
.ec-totalBox__btn .ec-blockBtn--cancel:hover {
  background:#f2f2f2 !important; color:#262626 !important;
}

/* 特定商取引法に基づく表記：行間を詰める */
#page_help_tradelaw .ec-borderedDefs dd,
#page_help_tradelaw .ec-borderedDefs dd * {
  line-height:1.7 !important;
}
#page_help_tradelaw .ec-borderedDefs dd p {
  margin:0 0 .6em !important;
}
#page_help_tradelaw .ec-borderedDefs dd p:empty {
  display:none;
}

.tgp-guide {
  background-color: #f5f0e6;
}

.ec-productRole__description {
  line-height: 1.6;
}

/* TGPショップロゴ */
.tgp-shop-logo {
    margin: 0;
    text-align: left;
}

/* TGPオンラインストア ロゴ */
.ec-headerTitle__title .tgp-shop-logo {
    margin: 0;
    text-align: left;
    float: left;
}

/* ロゴ：PCは左寄せ、スマートフォンは中央寄せ */
.ec-headerTitle .ec-headerTitle__title .tgp-shop-logo {
    margin: 0;
    text-align: left;
}

.ec-headerTitle .ec-headerTitle__title .tgp-shop-logo img {
    display: block;
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-left: 0;
    margin-right: auto;
}

/* スマートフォン：中央寄せ */
@media screen and (max-width: 767px) {
    .ec-headerTitle .ec-headerTitle__title .tgp-shop-logo {
        text-align: center;
    }

    .ec-headerTitle .ec-headerTitle__title .tgp-shop-logo img {
        margin-left: auto;
        margin-right: auto;
        width: 110px;
    }
}

.tgp-bar,
.ec-newItemRole__listItemHeading {
  background-color: #391C06 !important;
}

.ec-drawerRole { background: #000; }
.tgp-drawer { padding: 24px 22px 28px; color: #fff; }
.tgp-drawer__list {
  list-style: none; margin: 0; padding: 0 0 20px;
  border-bottom: 1px solid #aaa; margin-bottom: 20px;
}
.tgp-drawer__list li a {
  display: block; padding: 6px 0; color: #fff;
  font-size: 14px; line-height: 1.6; text-decoration: none;
}
.tgp-drawer__sns { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.tgp-drawer__sns a { color: #fff; }

/* 商品一覧ページ：スマホは2列（TOPのおすすめ商品と同じ） */
@media (max-width:767px){
  .ec-shelfGrid {
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
    gap:20px 14px;
  }
}
.ec-shelfGrid__item p { margin:10px 0 4px; font-size:14px; color:#555; }
.ec-shelfGrid__item .price02-default { font-weight:700; color:#262626; }

/* ===== クレジットカード入力画面（スマホ） ===== */
@media (max-width:767px){
  /* 項目名と入力欄を縦に並べる */
  #add_card_form dl { display:block !important; padding:14px 0; }
  #add_card_form dt { width:auto !important; margin:0 0 8px; padding:0; }
  #add_card_form dd { width:auto !important; margin:0; padding:0; }

  /* 入力欄は画面の幅いっぱいに */
  #add_card_form input[type="text"],
  #add_card_form input[type="tel"],
  #add_card_form input[type="number"],
  #add_card_form input:not([type]) {
    width:100% !important; max-width:none !important;
    box-sizing:border-box;
  }

  /* 名前：名と姓を上下に並べる */
  #add_card_form .ec-halfInput {
    display:flex; flex-direction:column; gap:8px;
  }
  #add_card_form .ec-halfInput input { width:100% !important; }

  /* 有効期限などの選択欄 */
  #add_card_form select { max-width:100%; box-sizing:border-box; }

  /* 説明文：赤字をやわらげる */
  #add_card_form dd p {
    margin:8px 0 0; font-size:12px; line-height:1.6; color:#666;
  }
}
/* カートの小さな画面：「閉じる」ボタン下の注記 */
.tgp-cartNote { font-size: 13px; line-height: 1.5; margin: 8px 0 0; text-align: left; color: #000; }