@charset "UTF-8";
/*
Theme Name: DAIKAI drawer plus
Theme URI: https://www.nl-daikai.co.jp/
Author: -
Description: ティーライフ株式会社 ダイカイ コーポレートサイト用テーマ。WordPress本体の機能のみで動作（ACF不要）。
Version: 1.2.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: daikai
*/

/* =========================================================
   Base / Tokens
   WP化の際は style.css に切り出してください
========================================================= */
:root{
  /* 文字サイズの基準（rem・1rem=16px / PC→SP）
     html の font-size を変えるとサイト全体が同じ比率で拡大縮小
     見出し 英字2.875/2.125・日本語1.3125/1.0625 ・Moreボタン 英字1.4375・日本語1
     強調ボタン 1.1875/1.0625 ・カードタイトル/リード 1.0625/1
     本文 1/1 ・補足/日付/注記 .875 ・ラベル最小 .8125
     例外：下層ページH1 3.4375/2.4375、ブランドPRODUCTS 2.4375/1.875、サイドナビ .9375 */
  /* パレット（PDF準拠） */
  --c-sage:#96a494;  --c-sage-h:#85937f;  /* 主役：WEB発注・PDFダウンロード（白文字） */
  --c-teal:#a6b7b5;  --c-teal-h:#94a6a4;  /* 準主役：More・発注系・お問い合わせ・NEW・絞り込み（白文字） */
  --c-mist:#bdc8cc;                       /* 罫線・タグ枠のみ（ボタンには使わない） */
  --c-ink:#3b4546;                        /* 白背景ボタンの文字色 */
  --c-tint:#eef2f2;                       /* 白ボタンのホバー */
  --c-main:var(--c-sage);
  --c-main-dark:#6f7f6d;                  /* リンクホバー・現在地などの文字色 */
  --c-menu-bg:#eceae5;    /* メニュー背景 */
  --c-beige:#e4dfd7;      /* Message / Company 背景 */
  --c-text:#444;
  --c-sub:#888;
  --c-line:#d4dadc;
  --c-ph:#d9d9d9;         /* 画像プレースホルダー */
  --c-footer:#5a5a5a;
  --f-en:"Quicksand","Noto Sans JP",sans-serif;
  --f-ja:"Noto Sans JP","Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif;
  --side-w:210px;         /* 左メニュー幅 */
  --inner-max:1000px;
}
*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;scroll-behavior:smooth;scroll-padding-top:20px}
body{margin:0;font-family:var(--f-ja);color:var(--c-text);font-size:1rem;line-height:1.8;background:#fff;-webkit-font-smoothing:antialiased;overflow-wrap:anywhere;overflow-x:clip}
main,.section,.inner{min-width:0}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
ul,ol{list-style:none;margin:0;padding:0}
h1,h2,h3,p{margin:0}
:focus-visible{outline:2px solid var(--c-main-dark);outline-offset:3px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* 画像の仮置き：読み込めない場合はグレー */
.ph{background:var(--c-ph);overflow:hidden;position:relative}
.ph img{width:100%;height:100%;object-fit:cover}
/* リンク画像のホバー：半透明（タッチ端末では無効） */
a img,button.ph img,.pop-card__img img{transition:opacity .3s}
@media (hover:hover){a:hover img,button.ph:hover img,.pop-card__img:hover img{opacity:.7}}

/* =========================================================
   Layout（疑似2カラム：メニュー固定＋コンテンツ）
========================================================= */
.inner{--inner-pr:40px;max-width:calc(var(--inner-max) + var(--side-w) + 80px);margin:0 auto;padding:0 var(--inner-pr) 0 calc(var(--side-w) + 60px)}
.section{padding:90px 0}
.section--beige{background:var(--c-beige)}

/* 見出し */
.sec-ttl{position:relative;display:flex;align-items:baseline;gap:12px;margin-bottom:36px;padding-bottom:10px}
/* 下線：左はコンテンツ端、右は画面端まで伸ばす */
.sec-ttl::after{content:"";position:absolute;left:0;bottom:0;height:1px;background:#333;right:calc(-1 * (var(--inner-pr) + max(0px, (100vw - var(--inner-max) - var(--side-w) - 80px) / 2)))}
.sec-ttl .en{font-family:var(--f-en);font-weight:700;font-size:2.875rem;letter-spacing:.02em;line-height:1.2;color:#333}
.sec-ttl .ja{font-size:1.3125rem;color:var(--c-text)}
.sec-ttl--plain{padding-bottom:0;flex-direction:column;gap:4px}
.sec-ttl--center{justify-content:center}
.sec-ttl--plain::after,.sec-ttl--center::after{display:none}

/* Moreボタン */
.more{display:flex;justify-content:flex-end;margin-top:32px}
.btn-more{display:inline-flex;align-items:center;gap:10px;background:var(--c-teal);color:#fff;border-radius:999px;padding:8px 30px;font-size:1rem;transition:background .2s}
.btn-more .en{font-family:var(--f-en);font-weight:600;font-size:1.4375rem;line-height:1.4}
.btn-more:hover{background:var(--c-teal-h)}

/* =========================================================
   Side menu（PC：固定 / SP：ハンバーガー）
========================================================= */
.side{position:fixed;z-index:100;top:20px;left:20px;width:var(--side-w);max-height:calc(100vh - 40px);overflow-y:auto;background:var(--c-menu-bg);padding:42px 20px 30px;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.side__logo{display:block;text-align:center;margin-bottom:30px}
.side__logo .name{display:block;font-family:var(--f-en);font-weight:700;font-size:1.3125rem;letter-spacing:.04em;color:#333;line-height:1.2}
.side__logo .sub{display:block;font-size:0.875rem;color:var(--c-sub);margin-top:4px}
.side__logo img{width:100%;max-width:150px;margin:0 auto}
.sp-header .name img{height:30px;width:auto}
.side__nav ul{padding-left:22px}
.side__nav a{display:block;font-size:0.9375rem;font-weight:700;color:#333;line-height:1.6;padding:5px 0 5px 16px;position:relative;transition:color .2s}
.side__nav a::before{content:"・";position:absolute;left:0;top:5px}
.side__nav a:hover,.side__nav a.is-current{color:var(--c-main-dark)}
.side__sns{margin-top:22px;padding-left:22px}
.side__sns a{display:inline-block;width:42px;height:42px}
.side__sns svg{width:100%;height:100%}
.side__bnr{display:block;margin-top:18px}
.side__bnr img{width:100%}

/* ハンバーガー（SPのみ表示） */
.sp-header{display:none}
.hamburger{width:44px;height:44px;border:0;background:transparent;padding:10px;cursor:pointer;position:relative}
.hamburger span{display:block;height:2px;background:#333;margin:5px 0;transition:transform .3s,opacity .3s}
.is-menu-open .hamburger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.is-menu-open .hamburger span:nth-child(2){opacity:0}
.is-menu-open .hamburger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* =========================================================
   WEB ORDER フロートバナー
========================================================= */
.float-order{display:flex;flex-direction:column;align-items:center;justify-content:center;background:var(--c-sage);color:#fff;border:3px solid rgba(255,255,255,.7);border-radius:16px;padding:24px 52px;box-shadow:0 6px 20px rgba(0,0,0,.2);transition:background .2s}
.float-order .en{font-family:var(--f-en);font-weight:700;font-size:1.5625rem;letter-spacing:.06em;line-height:1.3}
.float-order .ja{font-size:1rem;margin-top:2px}
.float-order:hover{background:var(--c-sage-h)}

/* =========================================================
   ページトップ
========================================================= */
.pagetop{position:fixed;z-index:90;right:20px;bottom:24px;width:50px;height:50px;border-radius:50%;border:1px solid var(--c-teal);background:rgba(255,255,255,.95);color:var(--c-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;opacity:0;visibility:hidden;transform:translateY(10px);transition:opacity .3s,visibility .3s,transform .3s,background .2s,color .2s}
.pagetop svg{width:16px;height:16px}
.pagetop span{font-family:var(--f-en);font-weight:600;font-size:0.8125rem;line-height:1;margin-top:2px}
.pagetop.is-show{opacity:1;visibility:visible;transform:none}
.pagetop:hover{background:var(--c-teal);color:#fff}

/* =========================================================
   Hero
========================================================= */
.hero{position:relative;height:min(62vw,720px);min-height:360px;overflow:hidden;background:var(--c-ph)}
.hero__slide{position:absolute;inset:0;opacity:0;transition:opacity 1.2s ease}
.hero__slide.is-active{opacity:1;z-index:1}
.hero__slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.06);transition:transform 6s linear}
.hero__slide.is-active img{transform:scale(1)}
.hero__dots{position:absolute;z-index:2;left:50%;bottom:20px;transform:translateX(-50%);display:flex;gap:10px}
.hero__dots button{width:10px;height:10px;padding:0;border:1px solid #fff;border-radius:50%;background:rgba(255,255,255,.4);cursor:pointer;transition:background .2s}
.hero__dots button[aria-current="true"]{background:#fff}
@media (prefers-reduced-motion:reduce){.hero__slide img{transform:none!important}}

/* =========================================================
   Message
========================================================= */
.message{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
.message__text p{font-size:1rem;line-height:2}
.message__imgs{position:relative;padding-bottom:30%}
.message__imgs .img1{width:62%;aspect-ratio:4/5}
.message__imgs .img2{position:absolute;right:0;bottom:0;width:62%;aspect-ratio:4/3;border:6px solid var(--c-beige)}

/* =========================================================
   News（WP：タグ news の記事）
========================================================= */
.news-list li{border-bottom:1px solid #eee}
.news-list li:first-child{border-top:1px solid #eee}
.news-item{display:grid;grid-template-columns:200px 1fr;gap:28px;padding:18px 0;align-items:start}
.news-item > *{min-width:0} /* グリッド子要素のはみ出し防止 */
.news-item .ph{aspect-ratio:16/10}
.news-item .post-meta{margin-bottom:2px}
.news-item h3{font-size:1.0625rem;font-weight:500;margin:2px 0 6px}
.news-item p{font-size:1rem;color:#666;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.news-item:hover h3{color:var(--c-main-dark);text-decoration:underline}

/* =========================================================
   Product（WP：タグ product の記事 / 横スクロール）
========================================================= */
.product{position:relative}
.product__track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:4px;scrollbar-width:none}
.product__track::-webkit-scrollbar{display:none}
.product-card{flex:0 0 calc((100% - 40px)/3);min-width:0;scroll-snap-align:start}  /* min-width:0＝長い文章でカード幅が広がらないように */
.product-card .ph{aspect-ratio:4/3}
.product-card time{display:block;font-family:var(--f-en);font-size:0.875rem;color:var(--c-sub);margin-top:10px}
.product-card h3{font-size:1.0625rem;font-weight:500;margin-top:2px}
.product-card p{font-size:0.875rem;color:#777;padding-bottom:8px;border-bottom:1px solid var(--c-line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card:hover h3{color:var(--c-main-dark)}
.product__arrow{position:absolute;top:calc(50% - 40px);width:40px;height:40px;border-radius:50%;border:0;background:rgba(255,255,255,.95);box-shadow:0 2px 8px rgba(0,0,0,.18);cursor:pointer;display:none;align-items:center;justify-content:center;color:var(--c-main-dark);font-size:1rem;z-index:2}
.product__arrow--prev{left:-20px}
.product__arrow--next{right:-20px}
.product.is-scrollable .product__arrow{display:flex}
.product__arrow[disabled]{opacity:0;pointer-events:none}

/* =========================================================
   Order
========================================================= */
.order-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.order-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;background:var(--c-sage);color:#fff;border-radius:12px;text-align:center;padding:20px;transition:background .2s}
.order-btn .en{font-family:var(--f-en);font-weight:600;font-size:1.6875rem;line-height:1.4;letter-spacing:.06em}
.order-btn .ja{font-size:1.0625rem;margin-top:4px}
.order-btn:hover{background:var(--c-sage-h)}

/* =========================================================
   POP Display（WP：タグ pop の記事）
========================================================= */
.pop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px 20px}
.pop-item .ph{aspect-ratio:4/3}
.pop-item h3{font-size:1.0625rem;font-weight:500;margin-top:6px}
.pop-item:hover h3{color:var(--c-main-dark)}

/* =========================================================
   Instagram（プラグイン読み込み予定）
========================================================= */
.insta + .insta{margin-top:50px}
.insta__head{display:flex;align-items:center;gap:10px;font-size:1rem;margin-bottom:16px}
.insta__head svg{width:22px;height:22px;flex-shrink:0}
.insta__feed{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.insta__feed .ph{aspect-ratio:4/5}

/* =========================================================
   Online shop
========================================================= */
.shop-lead{font-size:1.0625rem;font-weight:700}
.shop-note{font-size:0.875rem;color:#666;margin-bottom:22px}
.shop-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.shop-bnr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;aspect-ratio:2/1;background:#ebebeb;font-size:1rem;font-weight:700;text-align:center;transition:opacity .2s}
.shop-bnr:hover{opacity:.8}

/* =========================================================
   Company
========================================================= */
.company{font-size:1rem;line-height:1.9}
.company dl{margin:0}
.company__name{margin-bottom:22px}
.company__offices{display:grid;grid-template-columns:1fr 1fr;gap:24px 40px;margin-bottom:18px}
.company__offices h3{font-size:1rem;font-weight:700}
.company__offices h3 a{font-weight:400;font-size:0.875rem;color:var(--c-main-dark);text-decoration:underline;margin-left:4px}
.company__note{font-size:0.875rem;margin-bottom:28px}
.company__links p{margin-bottom:6px}
.company__links ul{display:flex;flex-wrap:wrap;gap:6px 22px}
.company__links a{text-decoration:underline}
.company__links a:hover{color:var(--c-main-dark)}

/* =========================================================
   Contact
========================================================= */
.contact{text-align:center}
.btn-contact{display:flex;align-items:center;justify-content:center;gap:16px;max-width:700px;margin:0 auto;background:var(--c-teal);color:#fff;border-radius:999px;padding:18px 30px;font-size:1.1875rem;transition:background .2s}
.btn-contact svg{width:30px;height:30px}
.btn-contact:hover{background:var(--c-teal-h)}
.contact__text{font-size:0.875rem;margin-top:18px;line-height:1.9}

/* =========================================================
   Footer
========================================================= */
.footer{background:var(--c-footer);color:#fff;padding:14px 0}
.footer small{display:block;font-family:var(--f-en);font-size:0.875rem}

/* =========================================================
   NEWラベル（WP：公開から30日以内 or ACFで手動ON）
========================================================= */
.badge-new{position:absolute;top:8px;left:8px;z-index:1;background:var(--c-teal);color:#fff;font-family:var(--f-en);font-weight:700;font-size:0.8125rem;letter-spacing:.08em;line-height:1.7;padding:1px 10px;border-radius:999px}

/* =========================================================
   下層ページ共通
========================================================= */
.page-head{padding:110px 0 0}
.sec-ttl--page .en{font-size:3.4375rem}
.breadcrumb{display:flex;flex-wrap:wrap;gap:4px 8px;font-size:0.875rem;color:var(--c-sub);margin:-24px 0 30px}
.breadcrumb li+li::before{content:"＞";margin-right:8px}
.breadcrumb a{text-decoration:underline}
.page-lead{font-size:1rem;margin-bottom:28px}
.page-body{padding-bottom:110px}
.pager{display:flex;justify-content:center;gap:8px;margin-top:56px}
.pager a,.pager span{min-width:38px;height:38px;display:flex;align-items:center;justify-content:center;border:1px solid var(--c-line);border-radius:50%;font-family:var(--f-en);font-size:1rem}
.pager a:hover{border-color:var(--c-teal);background:var(--c-tint)}
.pager .is-current{background:var(--c-teal);border-color:var(--c-teal);color:#fff}
.empty{text-align:center;padding:60px 0;color:var(--c-sub);font-size:1rem}

/* 絞り込み（WP：カスタムタクソノミーのリンク ?season=aw 等） */
.filter{background:#f3f1ed;border-radius:8px;padding:20px 24px;margin-bottom:34px}
.filter__row{display:flex;gap:14px;align-items:flex-start}
.filter__row+.filter__row{margin-top:12px;padding-top:12px;border-top:1px solid #e2ded6}
.filter__label{flex:0 0 72px;font-size:0.875rem;font-weight:700;padding-top:4px}
.filter__chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-block;border:1px solid var(--c-teal);background:#fff;color:var(--c-ink);border-radius:999px;padding:2px 14px;font-size:0.875rem;line-height:1.8;transition:background .2s,color .2s}
.chip:hover{background:var(--c-tint)}
.chip[aria-current="true"]{background:var(--c-teal);color:#fff}
.filter__foot{display:flex;justify-content:space-between;align-items:center;margin-top:16px;font-size:0.875rem}
.filter__reset{background:none;border:0;padding:0;font:inherit;font-size:0.875rem;color:var(--c-sub);text-decoration:underline;cursor:pointer}

/* 商品一覧 */
.item-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px 18px}
.item-grid > *{min-width:0}  /* 長い商品名で列幅が崩れないように */
.item-card[hidden]{display:none}
.item-card .ph{aspect-ratio:1/1}
.item-card__brand{font-size:0.875rem;color:var(--c-sub);margin-top:10px}
.item-card h2{font-size:1.0625rem;font-weight:500;line-height:1.6}
.item-card__tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}
.item-card__tags span{font-size:0.8125rem;line-height:1.8;border:1px solid var(--c-mist);border-radius:3px;padding:0 6px;color:#555}
.item-card:hover h2{color:var(--c-main-dark)}

/* 販促POP一覧 */
.pop-list{display:grid;grid-template-columns:repeat(4,1fr);gap:40px 20px}
.pop-card{min-width:0;scroll-margin-top:30px;border-radius:8px;outline:3px solid transparent;outline-offset:8px;transition:outline-color .4s;display:flex;flex-direction:column}
.pop-card__dl{margin-top:auto!important;padding-top:10px}  /* 同じ行のカードでボタンの位置を下端に揃える */
.pop-card__img{flex-shrink:0;min-height:0;overflow:hidden}
.pop-card .pop-card__img img{position:absolute;inset:10px;width:calc(100% - 20px);height:calc(100% - 20px);max-width:none;object-fit:contain}  /* 縦長のPOPでも枠は正方形のまま */
.pop-card.is-target{outline-color:var(--c-teal)}
.pop-card[hidden]{display:none}
.pop-card__img{display:block;width:100%;aspect-ratio:1/1;border:0;padding:10px;background:#f3f1ed;cursor:zoom-in;position:relative}
.pop-card__img img{width:100%;height:100%;object-fit:contain}
.pop-card__zoom{position:absolute;right:8px;bottom:8px;background:rgba(255,255,255,.92);border-radius:999px;font-size:0.8125rem;padding:2px 12px;color:var(--c-text)}
.pop-card__brand{font-size:0.875rem;color:var(--c-sub);margin-top:12px}
.pop-card h2{font-size:1rem;font-weight:500;line-height:1.6}
.pop-card__spec{font-size:0.875rem;color:#666}
.pop-card__dl{display:flex;gap:8px;margin-top:10px}
.btn-dl{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--c-sage);color:#fff;border:1px solid var(--c-sage);border-radius:6px;padding:9px 10px;font-size:1rem;transition:background .2s,color .2s}
.btn-dl:hover{background:var(--c-sage-h)}
.btn-dl--sub{background:#fff;color:var(--c-ink);border-color:var(--c-teal)}
.btn-dl--sub:hover{background:var(--c-tint)}
.btn-dl svg{width:16px;height:16px;flex-shrink:0}

/* ライトボックス */
.lightbox{border:0;padding:0;background:transparent;max-width:min(92vw,1000px);max-height:92vh;overflow:visible}
.lightbox::backdrop{background:rgba(0,0,0,.78)}
.lightbox img{display:block;max-width:100%;max-height:calc(92vh - 50px);width:auto;margin:0 auto;background:#fff}
.lightbox__cap{color:#fff;text-align:center;font-size:1rem;margin-top:10px}
.lightbox__close{position:fixed;top:14px;right:14px;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#333;font-size:1.5625rem;line-height:1;cursor:pointer}

/* =========================================================
   ブランドページ（single-brand.php 想定）シンプル版
   ・PCは上部ヘッダー（左メニューなし）でメインサイトと差別化
   ・色は body の --brand を差し替え（ACFカラーピッカー）
   ・商品エリアだけ色帯＋大きめ表示で主役に
========================================================= */
.brand{--brand:#7da35f;--brand-h:#6c9150;--brand-tint:#f3f6ef}
.brand .side__nav a:hover,.brand .side__nav a.is-current{color:var(--brand-h)}
.side__sns--brand{display:flex;gap:10px}
.side__back{display:block;margin-top:20px;padding-top:14px;border-top:1px solid #dad6ce;font-size:0.75rem;color:var(--c-sub)}
.side__back:hover{color:var(--c-text);text-decoration:underline}
.brand .hero{height:min(52vw,640px)}
.brand .badge-new{background:var(--brand);color:#fff}

.b-part{padding-top:90px}
.b-part--follow{padding-top:28px}
.b-ttl{text-align:center;margin-bottom:34px}
.b-ttl .en{display:block;font-family:var(--f-en);font-weight:700;font-size:1.875rem;letter-spacing:.12em;line-height:1.3;color:#333}
.b-ttl .ja{display:block;font-size:0.875rem;color:var(--c-sub);margin-top:6px}

.b-text{max-width:720px;margin:0 auto;font-size:1.0625rem;line-height:2.1}
.b-text p+p{margin-top:1.2em}
.b-text small{display:block;font-size:0.875rem;color:#666;margin-top:1em;line-height:1.8}

.b-images{display:grid;gap:16px}
.b-images a{display:block}
.b-images .ph{aspect-ratio:var(--ar,1080/500)}

.b-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.b-gallery li.is-full{grid-column:1/-1}
.b-gallery button{display:block;width:100%;padding:0;border:0;cursor:zoom-in;aspect-ratio:36/35}
.b-gallery li.is-full button{aspect-ratio:1080/695}

.b-chara{display:grid;grid-template-columns:repeat(4,1fr);gap:40px 24px}
.b-chara__img{aspect-ratio:1/1;display:flex;align-items:center;justify-content:center}
.b-chara__img img{width:100%;height:100%;object-fit:contain}
.b-chara h3{font-size:1.0625rem;font-weight:700;text-align:center;margin:10px 0 4px}
.b-chara p{font-size:0.875rem;line-height:1.8;color:#666}

/* 商品エリア（主役） */
.b-products{margin-top:100px;padding:84px 0 96px;background:var(--brand-tint)}
.b-products .b-ttl .en{font-size:2.4375rem;color:var(--brand-h)}
.b-products .b-text{margin-bottom:36px}
.b-products .b-images--after{margin-top:64px}
.b-products .item-grid{grid-template-columns:repeat(3,1fr);gap:44px 24px}
.b-products .item-card .ph{background:#fff}
.b-products .item-card h2{margin-top:12px}
.b-cta{display:flex;justify-content:center;margin-top:48px}
.btn-brand{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:#fff;border-radius:999px;padding:15px 52px;font-size:1.1875rem;font-weight:500;transition:background .2s}
.btn-brand:hover{background:var(--brand-h)}

/* 記事カード（控えめ：リンクは文字リンク） */
.b-cards{display:grid;gap:0;border-top:1px solid #e8e8e8}
.b-card{display:grid;grid-template-columns:340px 1fr;gap:36px;align-items:start;padding:36px 0;border-bottom:1px solid #e8e8e8}
.b-card .ph{aspect-ratio:370/224}
.b-card h3{font-size:1.0625rem;font-weight:700;line-height:1.6;margin:0 0 8px}
.b-card p{font-size:1rem;line-height:1.95}
.b-card p+p{margin-top:.8em}
.b-card small{display:block;font-size:0.875rem;color:#777;margin-top:.6em}
.b-card__links{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:10px}
.b-link{font-size:1rem;color:var(--brand-h);text-decoration:underline;text-underline-offset:3px}
.b-link:hover{text-decoration:none}

/* 会社情報（全ブランド共通・最小限） */
.b-company{margin-top:110px;padding:40px 0;border-top:1px solid #e6e6e6;text-align:center;font-size:0.875rem;line-height:2;color:#666}
.b-company a{text-decoration:underline}

@media (min-width:901px){
  .brand{padding-top:68px}
  html:has(.brand){scroll-padding-top:84px}
  .brand .inner{max-width:1160px;padding:0 40px}
  .brand .side{top:0;left:0;right:0;width:auto;height:68px;max-height:none;overflow:visible;display:flex;align-items:center;gap:32px;padding:0 40px;background:rgba(255,255,255,.96);box-shadow:none;border-bottom:1px solid #ececec}
  .brand .side__logo{display:flex;align-items:baseline;gap:10px;margin:0;text-align:left}
  .brand .side__logo .sub{margin-top:0}
  .brand .side__nav{margin-left:auto}
  .brand .side__nav ul{display:flex;gap:24px;padding-left:0}
  .brand .side__nav li+li{margin-top:0}
  .brand .side__nav a{padding:0;font-family:var(--f-en);font-weight:600;font-size:1rem;line-height:1.8;color:var(--c-text);letter-spacing:.06em}
  .brand .side__nav a.is-current{font-weight:600}
  .brand .side__nav a::before{display:none}
  .brand .side__sns{margin-top:0;padding-left:0}
  .brand .side__sns a{width:26px;height:26px}
  .brand .side__back{display:none}
}

/* =========================================================
   アイコン（矢印＝サイト内 / 外部＝別サイトが開く）
========================================================= */
.i-arrow,.i-ext{display:inline-block;width:1.15em;height:1.15em;flex-shrink:0;vertical-align:-.18em;background:currentColor;-webkit-mask:var(--ico) no-repeat center/contain;mask:var(--ico) no-repeat center/contain}
.i-arrow{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='8.8' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M8.6 6.4L12.2 10l-3.6 3.6' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.i-ext{--ico:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M11.5 3.5h5v5M16.5 3.5L9 11M14.5 11.5v4a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-9a1 1 0 0 1 1-1h4' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* WEB発注バナー：閉じるボタン */
.float-wrap{position:fixed;z-index:90;top:20px;right:20px}
.float-order__close{position:absolute;top:-10px;right:-10px;width:26px;height:26px;padding:0;border-radius:50%;border:1px solid #ccc;background:#fff;color:#555;font-size:1rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 6px rgba(0,0,0,.15)}
.float-order__close:hover{background:#f2f2f2}
.is-order-closed .float-wrap{display:none}

/* ファーストビュー：最新のお知らせ */
/* FVは画面いっぱい（SPはお知らせ帯を含めて1画面に収める） */
.hero-wrap{position:relative;display:flex;flex-direction:column;height:100vh;height:100svh;min-height:520px}
.hero-wrap .hero{flex:1;height:auto;min-height:0}
/* Scroll の目印（中央下）。ドットはコンテンツの左端に寄せる */
.hero-wrap .hero__dots{left:calc(var(--side-w) + 60px);bottom:24px;transform:none}
.hero-scroll{position:absolute;z-index:3;left:50%;bottom:0;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:10px;color:#fff;font-family:var(--f-en);font-weight:600;font-size:0.8125rem;letter-spacing:.2em;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.hero-scroll__line{position:relative;width:1px;height:70px;background:rgba(255,255,255,.45);overflow:hidden}
.hero-scroll__line::after{content:"";position:absolute;left:0;top:-100%;width:100%;height:100%;background:#fff;animation:heroScroll 2s cubic-bezier(.6,0,.4,1) infinite}
@keyframes heroScroll{0%{top:-100%}65%,100%{top:100%}}
@media (prefers-reduced-motion:reduce){.hero-scroll__line::after{animation:none;top:0}}
.hero-news{position:absolute;z-index:3;right:24px;bottom:24px;display:flex;align-items:center;gap:14px;width:min(400px,42vw);background:rgba(255,255,255,.95);padding:12px 16px 12px 12px;border-radius:8px;box-shadow:0 4px 16px rgba(0,0,0,.12);transition:background .2s}
.hero-news:hover{background:#fff}
.hero-news .ph{flex:0 0 64px;height:64px;border-radius:4px}
.hero-news__body{flex:1;min-width:0}
.hero-news__title{font-size:1rem;line-height:1.5;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-news > .i-arrow{width:22px;height:22px;color:var(--c-sage)}

/* カテゴリラベル・お知らせタブ */
.cat{display:inline-block;font-size:0.8125rem;line-height:1.6;padding:0 8px;border:1px solid var(--c-teal);border-radius:3px;color:var(--c-ink);white-space:nowrap}
.post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px 10px;font-size:0.875rem;color:var(--c-sub)}
.post-meta time{font-family:var(--f-en)}
.news-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}
.news-tab{display:inline-block;border:1px solid var(--c-teal);background:#fff;color:var(--c-ink);border-radius:999px;padding:3px 16px;font-size:0.875rem;line-height:1.8;transition:background .2s,color .2s}
.news-tab:hover{background:var(--c-tint)}
.news-tab[aria-current="true"]{background:var(--c-teal);color:#fff}
.news-list li[hidden]{display:none}
.news-empty{padding:40px 0;text-align:center;color:var(--c-sub);border-bottom:1px solid #eee}

/* 横スクロールの位置表示 */
.product__progress{position:relative;height:2px;background:#e2e8e9;margin-top:18px;overflow:hidden}
.product__progress span{position:absolute;top:0;left:0;height:100%;width:100%;background:var(--c-teal);transition:width .2s}
.product:not(.is-scrollable) .product__progress{visibility:hidden}

/* 発注：注釈 */
.order-note{font-size:0.875rem;color:#666;line-height:1.7;margin-top:10px}
.order-btn{position:relative}
.order-btn > .i-ext,.order-btn > .i-arrow{position:absolute;right:16px;bottom:16px;width:20px;height:20px}

/* セクション間の写真（2か所のみ） */
.photo-break--top{padding-top:90px}
.photo-break--bottom{padding-bottom:90px}
.photo-duo{display:grid;grid-template-columns:7fr 5fr;gap:40px;align-items:start}
.photo-duo .ph:first-child{aspect-ratio:4/3}
.photo-duo .ph:last-child{aspect-ratio:4/5;margin-top:100px}
.photo-duo--rev{grid-template-columns:5fr 7fr}
.photo-duo--rev .ph:first-child{aspect-ratio:4/5;margin-top:100px}
.photo-duo--rev .ph:last-child{aspect-ratio:4/3;margin-top:0}

/* 会社概要：表 */
.company-table{margin:0;border-top:1px solid #cdc6b9}
.company-table > div{display:grid;grid-template-columns:180px 1fr;gap:24px;padding:18px 4px;border-bottom:1px solid #cdc6b9}
.company-table dt{font-weight:700}
.company-table dd{margin:0}
.company-table .map{font-size:0.875rem;color:var(--c-main-dark);text-decoration:underline;margin-left:8px;white-space:nowrap}
.company-table .note{font-size:0.875rem;color:#666}
.company-table ul{display:flex;flex-wrap:wrap;gap:6px 24px}
.company-table ul a{text-decoration:underline;text-underline-offset:3px}
.company-table ul a:hover{color:var(--c-main-dark)}
.company-table .i-ext{width:.95em;height:.95em;margin-left:3px}
.shop-bnr{position:relative}
.shop-bnr > .i-ext{position:absolute;right:12px;bottom:12px;width:18px;height:18px;color:#666}
.contact__privacy{font-size:0.875rem;color:#666;margin-top:10px}
.contact__privacy a{text-decoration:underline}

/* フッター */
.footer__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 24px}
.footer__links{display:flex;gap:20px}
.footer__links a{font-size:0.875rem;text-decoration:underline;text-underline-offset:3px}
.footer__links a:hover{text-decoration:none}

/* プライバシーポリシー */
.policy{max-width:820px}
.policy > p,.policy li{line-height:2}
.policy h2{font-size:1.1875rem;font-weight:700;margin:2.4em 0 .7em;padding-left:12px;border-left:3px solid var(--c-sage);line-height:1.5}
.policy ol{list-style:decimal;padding-left:1.6em}
.policy__date{text-align:right;margin-top:3em;font-size:0.875rem}
.draft-note{background:#fff7e3;border:1px solid #efd9a3;border-radius:6px;padding:12px 16px;font-size:0.875rem;margin-bottom:32px}

/* =========================================================
   フェードイン
   ・JSが「最初の画面より下にある要素」にだけ .reveal を付与
     → JSが動かない場合や、最初から見えている要素は常に表示
   ・一度表示したら再度は動かない
   ・OSの「視差効果を減らす」設定では動かさない
========================================================= */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease;transition-delay:var(--d,0s)}
.reveal.is-shown{opacity:1;transform:none}
.brand .reveal{transform:translateY(28px);transition-duration:.9s}
@media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

/* =========================================================
   Tablet
========================================================= */
@media (max-width:1100px){
  :root{--side-w:190px}
  .inner{--inner-pr:30px;padding-left:calc(var(--side-w) + 50px)}
  .news-item{grid-template-columns:160px 1fr;gap:20px}
  .pop-list{grid-template-columns:repeat(3,1fr)}
  .item-grid{grid-template-columns:repeat(3,1fr)}
}

/* =========================================================
   SP（〜900px）
========================================================= */
@media (max-width:900px){
  html{font-size:93.75%}  /* SPは全体を約94%に（本文15px相当） */
  body{font-size:1rem;padding-top:60px}
  .inner{--inner-pr:20px;padding:0 20px}
  .section{padding:60px 0}
  .sec-ttl .en{font-size:2.125rem}
  .sec-ttl .ja{font-size:1.0625rem}

  /* SPヘッダー */
  .sp-header{display:flex;position:fixed;z-index:110;top:0;left:0;right:0;height:60px;padding:0 10px 0 16px;padding-top:env(safe-area-inset-top,0px);align-items:center;justify-content:space-between;background:#fff;box-shadow:0 1px 6px rgba(0,0,0,.08)}
  .sp-header .name{font-family:var(--f-en);font-weight:700;font-size:1.1875rem;color:#333}

  /* メニュー：右からスライド */
  .side{top:60px;left:auto;right:0;width:min(80vw,300px);height:calc(100% - 60px);max-height:none;box-shadow:none;background:var(--c-menu-bg);padding:30px 28px;transform:translateX(100%);visibility:hidden;transition:transform .3s,visibility .3s}
  .is-menu-open .side{transform:none;visibility:visible}
  .side__logo{display:none}
  .side__nav ul{padding-left:0}
  .side__nav a{font-size:0.9375rem;padding:12px 0 12px 18px;border-bottom:1px solid #dad6ce}
  .side__nav a::before{top:12px}
  .side__sns{padding-left:0;margin-top:24px}
  .side__sns a{width:40px;height:40px}
  .side__bnr{max-width:240px}
  .brand .side__sns a{width:32px;height:32px}
  .overlay{position:fixed;inset:60px 0 0;z-index:95;background:rgba(0,0,0,.35);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}
  .is-menu-open .overlay{opacity:1;visibility:visible}
  .is-menu-open{overflow:hidden}

  /* フロートバナー：右下 */
  .float-wrap{top:auto;bottom:calc(16px + env(safe-area-inset-bottom,0px));right:14px}
  .float-order{height:62px;padding:0 20px;border-width:2px;border-radius:12px}
  .float-order .en{font-size:1.1875rem}
  .float-order .ja{font-size:0.9375rem;margin-top:0}
  /* ページトップはWEB発注バナーの上に縦積み */
  .pagetop{right:14px;bottom:calc(16px + 62px + 54px + env(safe-area-inset-bottom,0px));width:44px;height:44px}

  .hero{height:70vw;min-height:0}

  .message{grid-template-columns:1fr;gap:30px}
  .message__imgs{max-width:420px;margin:0 auto;width:100%}

  .news-item{grid-template-columns:110px 1fr;gap:14px;padding:14px 0}
  .news-item h3{font-size:1rem}

  .product-card{flex-basis:72%}
  .product__arrow{display:none!important}

  .order-grid{gap:12px}
  .order-btn{min-height:110px;padding:14px 8px}
  .order-btn .en{font-size:1.0625rem}
  .order-btn .ja{font-size:0.875rem}

  .pop-grid{grid-template-columns:repeat(2,1fr);gap:18px 12px}

  .insta__feed{grid-template-columns:repeat(2,1fr);gap:10px}

  .shop-grid{grid-template-columns:1fr;gap:14px}

  .company__offices{grid-template-columns:1fr}

  .btn-contact{font-size:1.0625rem;padding:14px 20px}
  .btn-contact svg{width:24px;height:24px}

  .page-head{padding-top:40px}
  .sec-ttl--page .en{font-size:2.4375rem}
  .breadcrumb{margin:-20px 0 22px}
  .page-body{padding-bottom:70px}
  .filter{padding:16px}
  .filter__row{flex-direction:column;gap:6px}
  .filter__label{flex:none;padding-top:0}
  .item-grid{grid-template-columns:repeat(2,1fr);gap:26px 12px}
  .item-card h2{font-size:1rem}
  .pop-list{grid-template-columns:repeat(2,1fr);gap:28px 12px}
  .pop-card__dl{flex-direction:column;gap:6px}
  .btn-dl{padding:7px 8px;font-size:0.8125rem}

  .brand .hero{height:64vw}
  .b-part{padding-top:60px}
  .b-ttl{margin-bottom:26px}
  .b-ttl .en{font-size:1.5625rem}
  .b-text{font-size:1rem;line-height:2}
  .b-gallery{grid-template-columns:repeat(2,1fr);gap:4px}
  .b-chara{grid-template-columns:repeat(2,1fr);gap:26px 14px}
  .b-products{margin-top:64px;padding:56px 0 64px}
  .b-products .b-ttl .en{font-size:1.875rem}
  .b-products .b-images--after{margin-top:44px}
  .b-products .item-grid{grid-template-columns:repeat(2,1fr);gap:28px 12px}
  .btn-brand{width:100%;max-width:340px;padding:14px 20px;font-size:1.0625rem}
  .b-card{grid-template-columns:1fr;gap:16px;padding:28px 0}
  .b-company{margin-top:70px}

  .product-card h3,.pop-item h3,.pop-card h2,.b-card h3,.b-chara h3{font-size:1rem}
  .hero-wrap .hero__dots{left:auto;right:20px;bottom:calc(92px + env(safe-area-inset-bottom,0px));transform:none}  /* WEB発注バナーの上 */
  .hero-scroll{left:24px;transform:none;font-size:0.75rem;gap:8px}
  .hero-scroll__line{height:54px}  /* 右下のWEB発注バナーと重ならないよう左寄せ */
  .hero-wrap{height:calc(100vh - 60px);height:calc(100svh - 60px);min-height:420px}
  .hero-news{order:-1;position:static;width:auto;border-radius:0;box-shadow:none;background:#fff;border-bottom:1px solid #e8e8e8;padding:12px 20px}
  .news-tabs{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px 20px;padding:0 20px 4px;scrollbar-width:none}
  .news-tabs::-webkit-scrollbar{display:none}
  .news-tab{flex-shrink:0}
  .order-note{font-size:0.8125rem;margin-top:6px}
  .order-btn > .i-ext,.order-btn > .i-arrow{right:10px;bottom:10px;width:15px;height:15px}
  .photo-break--top{padding-top:56px}
  .photo-break--bottom{padding-bottom:56px}
  .photo-duo{gap:12px}
  .photo-duo .ph:last-child,.photo-duo--rev .ph:first-child{margin-top:48px}
  .company-table > div{grid-template-columns:1fr;gap:2px;padding:14px 2px}
  .footer__inner{flex-direction:column;justify-content:center}
  .float-order__close{top:-9px;right:-6px}
  .is-order-closed .pagetop{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
  .footer{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))} /* フロートバナーと重ならないように */
}

/* =========================================================
   WordPress用の追加
========================================================= */
/* 管理バー表示時（ログイン中）の位置ずれ補正 */
@media (min-width:901px){
  .admin-bar .side,.admin-bar .float-wrap{top:52px}
  .admin-bar .side{max-height:calc(100vh - 72px)}
  .admin-bar .hero-wrap{height:calc(100svh - 32px)}
}
@media (max-width:900px){
  .admin-bar .sp-header{top:46px}
  .admin-bar .side{top:106px}
}
/* メニューの現在地（WPのクラス） */
.side__nav .current-menu-item > a{color:var(--c-main-dark)}
/* ページ送り（paginate_links の出力） */
.pager .current{background:var(--c-teal);border-color:var(--c-teal);color:#fff}
.pager .dots{border:0}
/* 本文（ブロックエディタ） */
.entry{max-width:820px}
.entry > * + *{margin-top:1.2em}
.entry h2{font-size:1.1875rem;font-weight:700;margin-top:2.2em;padding-left:12px;border-left:3px solid var(--c-sage);line-height:1.5}
.entry h3{font-size:1.0625rem;font-weight:700;margin-top:1.8em}
.entry p,.entry li{line-height:2}
.entry ul{list-style:disc;padding-left:1.4em}
.entry ol{list-style:decimal;padding-left:1.6em}
.entry a{text-decoration:underline}
.entry img{height:auto}
.entry figure{margin:1.6em 0}
.single-head{margin-bottom:28px}
.single-head .post-meta{margin-bottom:8px}
.single-title{font-size:1.5625rem;font-weight:700;line-height:1.5}
.single-eyecatch{margin:0 0 30px;max-width:820px}
.single-eyecatch img{width:100%}
.single-back{margin-top:56px}
.single-terms{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.single-terms span{font-size:0.8125rem;border:1px solid var(--c-mist);border-radius:3px;padding:0 8px;color:#555}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}
@media (max-width:900px){.product-detail{grid-template-columns:1fr;gap:24px}.single-title{font-size:1.3125rem}}

/* =========================================================
   お問い合わせフォーム（Contact Form 7）
   フォームの中身は CF7 の「フォーム」タブに cf-row の形で記述
========================================================= */
.cf-lead{margin-bottom:32px;line-height:2}
.cf-lead small{display:block;font-size:0.875rem;color:#666;margin-top:6px}
.cf-table{border-top:1px solid #e3e3e3;margin-bottom:36px}
.cf-row{display:grid;grid-template-columns:240px 1fr;gap:24px;align-items:start;padding:22px 4px;border-bottom:1px solid #e3e3e3}
.cf-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;font-weight:700;padding-top:11px;line-height:1.6}
.cf-req,.cf-opt{display:inline-block;font-size:0.8125rem;font-weight:500;line-height:1.7;padding:0 8px;border-radius:3px}
.cf-req{background:var(--c-sage);color:#fff}
.cf-opt{background:#ececec;color:#666}
.cf-note{font-size:0.875rem;color:#777;margin-top:6px;line-height:1.7}
.cf-field .wpcf7-form-control-wrap{display:block}
.wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 input[type="url"],.wpcf7 input[type="number"],.wpcf7 select,.wpcf7 textarea{
  width:100%;max-width:100%;font:inherit;font-size:1rem;line-height:1.6;color:var(--c-text);background:#fff;border:1px solid #cfd5d5;border-radius:6px;padding:12px 14px;transition:border-color .2s,box-shadow .2s}
.wpcf7 textarea{min-height:220px;resize:vertical}
.wpcf7 select{appearance:none;-webkit-appearance:none;padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23777' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 14px center/12px 8px}
.wpcf7 input:focus,.wpcf7 select:focus,.wpcf7 textarea:focus{outline:none;border-color:var(--c-sage);box-shadow:0 0 0 3px rgba(150,164,148,.25)}
.wpcf7 ::placeholder{color:#aaa}
.wpcf7 .cf-short input,.wpcf7 .cf-short select{max-width:320px}
/* ラジオ・チェックボックス */
.wpcf7-radio,.wpcf7-checkbox{display:flex;flex-wrap:wrap;gap:10px 26px;padding-top:10px}
.wpcf7-list-item{margin:0}
.wpcf7-list-item label{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.wpcf7 input[type="radio"],.wpcf7 input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:var(--c-sage);cursor:pointer}
/* 同意・送信 */
.cf-agree{text-align:center;margin-bottom:28px}
.cf-agree a{text-decoration:underline;text-underline-offset:3px}
.cf-submit{text-align:center}
.wpcf7 .wpcf7-submit{appearance:none;-webkit-appearance:none;display:inline-block;width:min(100%,380px);border:0;border-radius:999px;background:var(--c-teal);color:#fff;font:inherit;font-size:1.1875rem;letter-spacing:.04em;padding:18px 40px;cursor:pointer;transition:background .2s,opacity .2s}
.wpcf7 .wpcf7-submit:hover{background:var(--c-teal-h)}
.wpcf7 .wpcf7-submit:disabled{opacity:.45;cursor:not-allowed}
.cf-submit .wpcf7-spinner{display:block;margin:14px auto 0}
/* エラー・送信結果 */
.wpcf7-not-valid-tip{color:#c0392b;font-size:0.875rem;margin-top:6px}
.wpcf7 input.wpcf7-not-valid,.wpcf7 select.wpcf7-not-valid,.wpcf7 textarea.wpcf7-not-valid{border-color:#d9534f;background:#fffafa}
.wpcf7 form .wpcf7-response-output{margin:28px 0 0;padding:14px 18px;border:1px solid;border-radius:6px;text-align:center;line-height:1.8}
.wpcf7 form.sent .wpcf7-response-output{border-color:var(--c-sage);background:#f2f5f1;color:#4d5a4b}
.wpcf7 form.invalid .wpcf7-response-output,.wpcf7 form.unaccepted .wpcf7-response-output,.wpcf7 form.failed .wpcf7-response-output,.wpcf7 form.aborted .wpcf7-response-output,.wpcf7 form.spam .wpcf7-response-output,.wpcf7 form.payment-required .wpcf7-response-output{border-color:#e3b7b7;background:#fdf4f4;color:#a23b3b}
.entry .wpcf7{max-width:none}
.entry:has(.wpcf7){max-width:960px}
@media (max-width:900px){
  .cf-row{grid-template-columns:1fr;gap:8px;padding:18px 2px}
  .cf-label{padding-top:0}
  /* iPhoneで入力時に画面が拡大されないよう16px以上に */
  .wpcf7 input[type="text"],.wpcf7 input[type="email"],.wpcf7 input[type="tel"],.wpcf7 input[type="url"],.wpcf7 input[type="number"],.wpcf7 select,.wpcf7 textarea{font-size:16px}
  .wpcf7 .cf-short input,.wpcf7 .cf-short select{max-width:100%}
  .wpcf7-radio,.wpcf7-checkbox{flex-direction:column;gap:12px;padding-top:4px}
  .wpcf7 .wpcf7-submit{font-size:1.0625rem;padding:16px 30px}
}

/* アイキャッチなしのお知らせ：ロゴを中央に表示 */
.ph .ph__logo{object-fit:contain;padding:0 16%;background:var(--c-menu-bg)}
.hero-news .ph .ph__logo{padding:0 10%}

/* reCAPTCHAロゴ非表示（※フォーム付近に reCAPTCHA の表記を入れること＝Googleの規約） */
.grecaptcha-badge{visibility:hidden}
.cf-recaptcha{font-size:0.8125rem;color:#888;text-align:center;margin-top:16px;line-height:1.8}
.cf-recaptcha a{text-decoration:underline}

/* ONLINE SHOP：バナーの下にショップ名 */
.shop-item{display:block}
.shop-name{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:12px;font-size:1rem;font-weight:700;line-height:1.5}
.shop-name .i-ext{width:1em;height:1em;color:#888}
.shop-item:hover .shop-name{text-decoration:underline;text-underline-offset:3px}
/* ONLINE SHOP：複数リンク */
.shop-item--multi .shop-name{margin-bottom:12px}
.shop-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 10px}
.shop-link{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--c-teal);border-radius:999px;background:#fff;color:var(--c-ink);padding:5px 16px;font-size:0.875rem;line-height:1.6;transition:background .2s}
.shop-link:hover{background:var(--c-tint)}
.shop-link .i-ext{width:.95em;height:.95em;color:#888}

/* =========================================================
   ブランドページ（WordPress・ブロックエディタ版）
   .brand-content の中はコアブロック。見出しH2がメニューになる
========================================================= */
.brand .side__logo .brand-logo{max-height:40px;width:auto}
.brand .sp-header .name img{height:30px;width:auto}
@media (min-width:901px){ .admin-bar.brand .side{top:32px} }
.brand-content{padding-bottom:10px}
.brand-content--nohero{padding-top:20px}
.brand-content > *,.brand-content .b-band > *,.brand-content .b-band > .wp-block-group__inner-container > *{margin-top:0;margin-bottom:0}
/* 見出し（英字）＋サブ（日本語） */
.brand-content h2.wp-block-heading{text-align:center;font-family:var(--f-en);font-weight:700;font-size:1.875rem;letter-spacing:.12em;line-height:1.3;color:var(--brand-h);margin-top:90px}  /* 見出しはすべてブランドカラー */
.brand-content h2.wp-block-heading + .b-sub{text-align:center;font-size:0.875rem;color:var(--c-sub);margin-top:6px}
.brand-content h2.wp-block-heading + p:not(.b-sub),.brand-content .b-sub{margin-bottom:34px}
.brand-content h2.wp-block-heading:not(:has(+ .b-sub)){margin-bottom:34px}
/* 本文 */
.brand-content > p:not(.b-sub),.brand-content :where(.b-band,.b-band > .wp-block-group__inner-container) > p:not(.b-sub){max-width:720px;margin-left:auto;margin-right:auto;line-height:2.1}
.brand-content > p + p,.brand-content :where(.b-band,.b-band > .wp-block-group__inner-container) > p + p{margin-top:1.2em}
.brand-content .b-note{font-size:0.875rem;color:#666;line-height:1.8}
.brand-content a{color:var(--brand-h);text-decoration:underline;text-underline-offset:3px}
.brand-content .btn-brand{color:#fff;text-decoration:none}
/* 画像 */
.brand-content > .wp-block-image{margin-top:30px}
.brand-content > .wp-block-image + .wp-block-image{margin-top:16px}
.brand-content .wp-block-image img{width:100%;height:auto;display:block}
/* ギャラリー */
.brand-content .wp-block-gallery.b-gallery{gap:6px!important}
.brand-content .wp-block-gallery.b-gallery figure.wp-block-image{margin:0}
/* キャラクター */
.brand-content .wp-block-columns.b-chara{display:grid!important;grid-template-columns:repeat(4,1fr);gap:40px 24px}
.brand-content .b-chara > .wp-block-column{margin:0!important;flex-basis:auto!important}
.brand-content .b-chara .wp-block-image{margin:0}
.brand-content .b-chara .wp-block-image img{aspect-ratio:1/1;object-fit:contain}
.brand-content .b-chara h3{font-size:0.9375rem;font-weight:700;text-align:center;margin:10px 0 4px}
.brand-content .b-chara p{font-size:0.8125rem;line-height:1.8;color:#666}
/* 商品エリア（色帯・画面幅いっぱい） */
.brand-content .b-band{margin:100px calc(50% - 50vw) 0;padding:0 max(40px,calc(50vw - 540px));background:#fff}
.brand-content .b-band h2.wp-block-heading{margin-top:0}  /* 大きさはほかの見出しと同じ */
.brand-content .b-band .item-grid{grid-template-columns:repeat(3,1fr);gap:44px 24px;margin-top:36px}
.brand-content .b-band .item-card h2{margin-top:12px}
.brand-content .b-band .item-card{color:inherit;text-decoration:none}
.brand-content .b-band .b-cta{margin-top:48px}
.brand-content .b-band .empty{margin-top:30px}
/* コンテンツ（1行ずつ） */
.brand-content h2.wp-block-heading ~ .wp-block-media-text.b-row:first-of-type{border-top:1px solid #e8e8e8}
.brand-content .wp-block-media-text.b-row{padding:36px 0;border-bottom:1px solid #e8e8e8;align-items:start}
.brand-content .b-row .wp-block-media-text__media img{aspect-ratio:370/224;object-fit:cover;width:100%;height:auto}
.brand-content .b-row .wp-block-media-text__content{padding:0!important}
.brand-content .b-row h3{font-size:1.0625rem;font-weight:700;line-height:1.6;margin-bottom:6px}
.brand-content .b-row p{line-height:1.95}
@media (min-width:901px){
  .brand-content .wp-block-media-text.b-row{grid-template-columns:340px 1fr!important;gap:36px}
}
@media (max-width:900px){
  .brand-content h2.wp-block-heading{font-size:1.5rem;margin-top:60px}
  .brand-content .wp-block-columns.b-chara{grid-template-columns:repeat(2,1fr);gap:26px 14px}
  .brand-content .b-band{margin-top:64px;padding:0 20px}
  .brand-content .b-band .item-grid{grid-template-columns:repeat(2,1fr);gap:28px 12px}
  .brand-content .b-band .b-cta{margin-top:36px}
  .brand-content .wp-block-media-text.b-row{grid-template-columns:1fr!important;gap:16px;padding:28px 0}
  .brand-content .wp-block-media-text.b-row .wp-block-media-text__media{grid-row:1}
  .brand-content .wp-block-media-text.b-row .wp-block-media-text__content{grid-row:2}
}

/* 本文の表（固定ページ） */
.entry .wp-block-table{margin:1.6em 0;overflow-x:auto}
.entry table{width:100%;border-collapse:collapse;font-size:0.9375rem;line-height:1.8}
.entry th,.entry td{border:1px solid #d6d6d6;padding:12px 14px;vertical-align:top;text-align:left}
.entry thead th{background:var(--c-beige);font-weight:700}
.entry td:first-child{width:38%}
.entry h3{font-size:1.0625rem;font-weight:700;margin-top:1.8em}
.entry .has-text-align-right{text-align:right}
@media (max-width:900px){ .entry table{min-width:520px;font-size:0.875rem} }

/* Instagram（プラグイン表示） */
.insta__plugin + *{margin-top:0}
.insta:has(.insta__plugin) + .insta{margin-top:40px}

/* 本文へスキップ（キーボード操作時だけ表示） */
.skip-link{position:absolute;left:-9999px;top:8px;z-index:1000;background:#fff;color:#333;padding:8px 16px;border-radius:4px;box-shadow:0 2px 8px rgba(0,0,0,.2)}
.skip-link:focus{left:8px}
/* 検索結果 */
.search-list{border-top:1px solid #eee}
.search-list li{border-bottom:1px solid #eee}
.search-item{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:baseline;padding:18px 4px}
.search-item .cat{grid-row:1;align-self:center}
.search-item__title{font-size:1.0625rem;font-weight:500}
.search-item__excerpt{grid-column:2;font-size:0.875rem;color:#666;line-height:1.8}
.search-item:hover .search-item__title{color:var(--c-main-dark);text-decoration:underline}
@media (max-width:900px){.search-item{grid-template-columns:1fr}.search-item__excerpt{grid-column:1}}

/* ブランドページ一覧（/brand/）：1行ずつ（画像大きめ） */
.brand-list{border-top:1px solid #e6e6e6}
.brand-list > li{border-bottom:1px solid #e6e6e6}
.brand-row{--brand:var(--c-sage);display:grid;grid-template-columns:340px 1fr;gap:36px;align-items:center;padding:32px 0}
.brand-row > *{min-width:0}
.brand-row .ph{aspect-ratio:16/10;border-radius:6px}
.brand-row__name{font-family:var(--f-en);font-weight:700;font-size:1.625rem;letter-spacing:.08em;line-height:1.3;color:#333}
.brand-row__name::after{content:"";display:block;width:32px;height:3px;border-radius:2px;background:var(--brand);margin-top:10px}
.brand-row__logo{max-height:48px;width:auto}
.brand-row__sub{font-size:0.9375rem;color:var(--c-sub);margin-top:8px}
.brand-row__desc{font-size:0.9375rem;line-height:1.9;margin-top:12px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.brand-row__more{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:0.875rem;color:var(--c-main-dark)}
.brand-row:hover .brand-row__more{text-decoration:underline;text-underline-offset:3px}
@media (max-width:1100px){ .brand-row{grid-template-columns:260px 1fr;gap:24px} }
@media (max-width:900px){ .brand-row{grid-template-columns:1fr;gap:16px;padding:24px 0} .brand-row__name{font-size:1.375rem} }

/* 中身が少ないページでもフッターを画面の下端に */
body{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
body > main{flex:1 0 auto}
body > .footer{flex-shrink:0}

/* Instagram（Smash Balloon）：アカウント名のフォントをサイトに合わせる */
#sb_instagram .sb_instagram_header h3,.sb_instagram_header h3{font-family:"Quicksand","Noto Sans JP",sans-serif}

/* ブランドページ：CONTENTS（タグを付けた記事＝お知らせと同じ表示） */
.brand-content .b-posts{margin:0}
.brand-content .b-posts a,.brand-content .b-posts a:hover{color:inherit;text-decoration:none}
.brand-content .b-posts .news-item:hover h3{color:var(--brand-h);text-decoration:underline}
.brand-content .b-more{text-align:right;margin-top:20px}
.brand-content .b-more a{display:inline-flex;align-items:center;gap:6px;font-size:0.9375rem;color:var(--brand-h);text-decoration:none}
.brand-content .b-more a:hover{text-decoration:underline}

/* ブランドページ：CONTENTS（ブランドコラム）の画像をPCで大きめに */
@media (min-width:901px){ .brand-content .b-posts .news-item{grid-template-columns:320px 1fr;gap:32px;align-items:center} .brand-content .b-posts .news-item h3{font-size:1.1875rem} }
@media (min-width:901px) and (max-width:1100px){ .brand-content .b-posts .news-item{grid-template-columns:260px 1fr} }
/* ブランドページのCONTENTSでは日付を表示しない（一覧・詳細ページには表示） */
.brand-content .b-posts .post-meta time{display:none}
/* ブランドページのCONTENTS：ラベルも非表示にして、本文（抜粋）を多めに表示 */
.brand-content .b-posts .post-meta{display:none}
.brand-content .b-posts .news-item h3{margin-top:0}
.brand-content .b-posts .news-item p{-webkit-line-clamp:4;line-height:1.9}
@media (max-width:900px){ .brand-content .b-posts .news-item p{-webkit-line-clamp:3} }
/* ブランドページのCONTENTS：「コラムを読む」 */
.news-item__more{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-size:0.875rem;font-weight:500;color:var(--brand-h,var(--c-main-dark))}
.news-item:hover .news-item__more{text-decoration:underline;text-underline-offset:3px}

/* ブランドページ：ファーストビューを画面いっぱいに（ヘッダーの下から画面下端まで） */
.brand .hero{height:calc(100vh - 68px);height:calc(100svh - 68px);min-height:480px}
.admin-bar.brand .hero{height:calc(100svh - 100px)}
@media (max-width:900px){
  .brand .hero{height:calc(100vh - 60px);height:calc(100svh - 60px);min-height:420px}
  .admin-bar.brand .hero{height:calc(100svh - 106px)}
}
/* ブランドコラム：SPは縦並び（画像の下に文章）。ブランドページのCONTENTSとブランドコラム一覧 */
@media (max-width:900px){
  .brand-content .b-posts .news-item,.post-type-archive-column .news-item{grid-template-columns:1fr;gap:12px;padding:20px 0}
  .brand-content .b-posts .news-item .ph,.post-type-archive-column .news-item .ph{aspect-ratio:16/10}
  .brand-content .b-posts .news-item h3,.post-type-archive-column .news-item h3{font-size:1.0625rem}
}

/* WEB発注バナー：上の縁にカエルが腰かける（足をバナーにかける） */
.float-order{position:relative}
.float-order__mascot{position:absolute;right:44px;bottom:calc(100% - 22px);width:56px;height:auto;pointer-events:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.15))}
@media (min-width:901px){ .float-wrap{top:62px} .admin-bar .float-wrap{top:94px} }  /* カエルが座る分、バナーを少し下げる */
@media (max-width:900px){ .float-order__mascot{right:30px;bottom:calc(100% - 10px);width:38px} }

/* 商品カード：ブランド名の行を常に確保・商品名は2行まで・タグはカードの下端に揃える */
.item-card{display:flex;flex-direction:column}
.item-card__brand{min-height:1.8em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.item-card h2{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item-card__tags{margin-top:auto;padding-top:6px}

/* ブランドページ：CHARACTER は最後の段も中央揃え（PC4列・SP2列） */
.brand-content .wp-block-columns.b-chara{display:flex!important;flex-wrap:wrap!important;justify-content:center;gap:40px 24px}
.brand-content .wp-block-columns.b-chara > .wp-block-column{flex:0 0 calc((100% - 72px) / 4)!important;max-width:calc((100% - 72px) / 4)}
@media (max-width:900px){
  .brand-content .wp-block-columns.b-chara{gap:26px 14px}
  .brand-content .wp-block-columns.b-chara > .wp-block-column{flex:0 0 calc((100% - 14px) / 2)!important;max-width:calc((100% - 14px) / 2)}
}

/* トップのProduct：商品名は2行まで・説明文と下線はカードの下端に揃える */
.product-card{display:flex;flex-direction:column}
.product-card h3{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.product-card p{margin-top:auto}

/* =========================================================
   旧CGIページ（お取引様専用：在庫検索・PDFカタログ）の外枠用
   中身は iframe の別ページなので、枠の幅は従来どおり760px
========================================================= */
.legacy-frames{overflow-x:auto;-webkit-overflow-scrolling:touch}
.legacy-frames iframe{display:block;width:760px;max-width:none;border:1px solid #e3e3e3;border-radius:6px;background:#fff}
.legacy-frames iframe + iframe{margin-top:24px}
.legacy-note{font-size:0.875rem;color:#666;margin-bottom:20px}
@media (max-width:900px){ .legacy-note{font-size:0.8125rem} }

/* ブランドページ：画像スタイル「幅70%（中央寄せ）」 */
.brand-content .wp-block-image.is-style-narrow{width:70%;margin-left:auto;margin-right:auto}
@media (max-width:900px){ .brand-content .wp-block-image.is-style-narrow{width:100%} }
/* ブランドページ：CONTENTS の「More さらに見る」（ブランドカラー） */
.brand-content .b-btn-more{background:var(--brand);color:#fff;text-decoration:none}
.brand-content .b-btn-more:hover{background:var(--brand-h);color:#fff}
.brand-content .b-posts + .more{margin-top:28px}
/* ブランドページ：DOWNLOAD（配布） */
.brand-content .wp-block-columns.b-dl{display:flex!important;flex-wrap:wrap!important;justify-content:center;gap:40px 24px}
.brand-content .wp-block-columns.b-dl > .wp-block-column{flex:0 0 calc((100% - 48px) / 3)!important;max-width:calc((100% - 48px) / 3);margin:0!important}
.brand-content .b-dl .wp-block-image{margin:0}
.brand-content .b-dl .wp-block-image img{aspect-ratio:4/3;object-fit:contain;background:var(--brand-tint);border-radius:6px}
.brand-content .b-dl h3{font-size:1rem;font-weight:700;margin:14px 0 4px}
.brand-content .b-dl p{font-size:0.875rem;line-height:1.8;color:#555}
.brand-content .b-dl .wp-block-buttons{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.brand-content .b-dl .wp-block-button__link{display:inline-flex;align-items:center;background:var(--brand);color:#fff;border-radius:999px;padding:6px 16px;font-size:0.8125rem;line-height:1.6;text-decoration:none;transition:background .2s}
.brand-content .b-dl .wp-block-button__link:hover{background:var(--brand-h);color:#fff}
.brand-content .b-dl-note{text-align:center;margin-top:24px!important}
@media (max-width:900px){
  .brand-content .wp-block-columns.b-dl > .wp-block-column{flex:0 0 100%!important;max-width:100%}
}

/* ブランドページは発注バナーがないので、SPでもTOPボタンは右下に */
@media (max-width:900px){ .brand .pagetop{bottom:calc(16px + env(safe-area-inset-bottom,0px))} }

/* ブランドページ：PRODUCTS の「More さらに見る」 */
.brand-content .b-band .item-grid + .more,.brand-content .b-band .empty + .more{margin-top:32px}

/* 左メニューのバナー（複数） */
.side__bnrs{display:flex;flex-direction:column;gap:10px;margin-top:18px}
.side__bnrs .side__bnr{margin-top:0}
