/* =============================================
   CME馬油化粧品 共通スタイル v2
   index.htmlのデザインに完全統一
============================================= */

/* ========== RESET & BASE ========== */
*{box-sizing:border-box;margin:0;padding:0;}
:root{
  --gold:#B8860B;--gold-l:#DAA520;--gold-s:#f0c040;
  --red:#c0392b;--red-d:#8e1e14;
  --dark:#120e06;--dark2:#1e1508;--dark3:#2a1d0a;
  --white:#fff;--off:#faf6ee;--off2:#f5f0e5;--gray:#5a5a5a;
  --radius-lg:18px;--radius-md:12px;--radius-sm:8px;
  --shadow-gold:0 8px 32px rgba(184,134,11,.25);
  --shadow-card:0 4px 24px rgba(0,0,0,.09);
  --shadow-card-hover:0 12px 40px rgba(0,0,0,.15);
}
html{font-size:16px;scroll-behavior:smooth;}
body{
  font-family:'Hiragino Mincho ProN','ヒラギノ明朝 ProN','游明朝','Yu Mincho',Georgia,serif;
  background:#fff;color:#1a1208;overflow-x:hidden;padding-bottom:56px;
  -webkit-font-smoothing:antialiased;
}
/* PCでは左バナー分の余白を確保（38px） */
@media(min-width:768px){body{padding-left:38px;}}
@media(min-width:1200px){body{padding-left:0;}}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
h1,h2,h3,h4{margin:0;padding:0;}
p{line-height:1.8;}

/* ========== HEADER ========== */
header{
  background:rgba(18,14,6,.97);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(184,134,11,.18);
  color:white;padding:0;position:sticky;top:0;z-index:200;
}
.hd{max-width:1200px;margin:0 auto;padding:0 24px;display:flex;justify-content:space-between;align-items:center;height:58px;gap:16px;}
.hd-logo img{height:32px;filter:brightness(0) invert(1);opacity:.92;}
.hd-nav{display:none;gap:28px;align-items:center;}
.hd-nav a{
  color:rgba(255,255,255,.68);font-size:13px;letter-spacing:.5px;
  padding-bottom:2px;border-bottom:1px solid transparent;
  transition:color .25s,border-color .25s;
  font-family:-apple-system,'Hiragino Sans',sans-serif;
}
.hd-nav a:hover{color:var(--gold-l);border-color:rgba(218,165,32,.4);}
.hd-nav a.active{color:var(--gold-l);border-color:var(--gold-l);}
.hd-right{display:flex;align-items:center;gap:12px;}
.hd-cart{
  position:relative;width:40px;height:40px;
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);
  border-radius:50%;display:flex;align-items:center;justify-content:center;
  color:rgba(255,255,255,.75);transition:all .2s;
}
.hd-cart:hover{background:rgba(184,134,11,.18);border-color:rgba(184,134,11,.4);color:var(--gold-l);}
.hd-cart-svg{width:18px;height:18px;}
.cart-cnt{position:absolute;top:-3px;right:-3px;background:var(--red);color:white;font-size:10px;font-weight:700;min-width:17px;height:17px;border-radius:9px;display:flex;align-items:center;justify-content:center;padding:0 3px;border:1.5px solid #120e06;}
.cart-cnt.zero{display:none;}
.hamburger{display:flex;flex-direction:column;gap:5px;background:none;border:none;cursor:pointer;padding:6px;width:36px;height:36px;justify-content:center;border-radius:6px;transition:background .2s;}
.hamburger:hover{background:rgba(255,255,255,.07);}
.hamburger span{display:block;width:22px;height:1.5px;background:rgba(255,255,255,.75);border-radius:2px;transition:all .3s;}
.hamburger.active span:nth-child(1){transform:translateY(6.5px) rotate(45deg);}
.hamburger.active span:nth-child(2){opacity:0;}
.hamburger.active span:nth-child(3){transform:translateY(-6.5px) rotate(-45deg);}
@media(min-width:900px){.hd-nav{display:flex!important;}.hamburger{display:none;}}
@media(max-width:899px){.hd-nav{display:none!important;}.hamburger{display:flex;}}

/* モバイルメニュー */
.mobile-menu{
  display:none;position:fixed;top:58px;left:0;right:0;
  background:rgba(12,9,4,.97);backdrop-filter:blur(16px);
  flex-direction:column;padding:6px 0 16px;
  box-shadow:0 16px 32px rgba(0,0,0,.5);
  border-bottom:1px solid rgba(184,134,11,.12);z-index:999;
}
.mobile-menu.active{display:flex;}
.mobile-menu a{
  color:rgba(255,255,255,.72);padding:14px 24px;font-size:15px;
  border-bottom:1px solid rgba(255,255,255,.04);letter-spacing:.3px;
  font-family:-apple-system,'Hiragino Sans',sans-serif;transition:color .2s,background .2s;
}
.mobile-menu a:hover{color:var(--gold-l);background:rgba(184,134,11,.05);}
.mobile-menu a.active{color:var(--gold-l);}
.mobile-phone{padding:16px 24px;border-top:1px solid rgba(184,134,11,.18);margin-top:4px;}
.mobile-phone a{color:var(--gold-l);font-size:17px;font-weight:700;font-family:Georgia,serif;}

/* ========== FIXED BOTTOM BAR ========== */
.fixed-bar{position:fixed;bottom:0;left:0;right:0;z-index:300;display:grid;grid-template-columns:1fr 1fr;height:54px;}
.fb-products{
  background:linear-gradient(135deg,#7a5c00,var(--gold));
  color:white;display:flex;align-items:center;justify-content:center;
  font-size:13px;font-weight:700;letter-spacing:.5px;border-right:1px solid rgba(255,255,255,.1);
  font-family:-apple-system,'Hiragino Sans',sans-serif;
}
.fb-tel{
  background:linear-gradient(135deg,#7a150e,var(--red));
  color:white;display:flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;letter-spacing:.3px;
  font-family:-apple-system,'Hiragino Sans',sans-serif;
}

/* チャット相談バナー */
#chat-banner{position:fixed;right:0;bottom:92px;z-index:999;background:rgba(22,16,6,.92);backdrop-filter:blur(8px);color:white;text-decoration:none;border-radius:10px 0 0 10px;border:1px solid rgba(184,134,11,.25);border-right:none;cursor:pointer;transition:all .25s;}
#chat-banner:hover{background:rgba(184,134,11,.8);}
#chat-banner div{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:14px 8px;min-height:110px;width:36px;}
#chat-banner .cb-icon{font-size:16px;line-height:1;}
#chat-banner .cb-txt{writing-mode:vertical-rl;text-orientation:mixed;font-size:11px;font-weight:700;letter-spacing:2px;line-height:1;font-family:-apple-system,'Hiragino Sans',sans-serif;}

/* ===== 右固定縦長バナー ===== */
.side-banners{position:fixed;left:0;top:50%;transform:translateY(-50%);z-index:998;display:flex;flex-direction:column;gap:6px;}
/* スマホでは左バナーを非表示（本文に被るため） */
@media(max-width:767px){.side-banners{display:none;}}
.side-banner{
  display:flex;align-items:center;justify-content:center;
  width:32px;min-height:120px;
  border-radius:0 10px 10px 0;
  border:1px solid;border-left:none;
  text-decoration:none;color:white;
  cursor:pointer;transition:all .25s;
  position:relative;overflow:hidden;
}
.side-banner:hover{width:36px;}
.side-banner-txt{
  writing-mode:vertical-rl;text-orientation:mixed;
  font-size:10px;font-weight:700;letter-spacing:2px;line-height:1.3;
  font-family:-apple-system,'Hiragino Sans',sans-serif;
  display:flex;flex-direction:column;align-items:center;gap:4px;
  padding:12px 0;
}
.side-banner-label{
  font-size:8px;font-weight:700;letter-spacing:1px;
  background:rgba(255,255,255,.2);border-radius:3px;
  padding:2px 3px;margin-bottom:2px;
  writing-mode:vertical-rl;
}
.side-banner-gold{
  background:linear-gradient(180deg,#7a5c00,#B8860B,#DAA520,#B8860B);
  border-color:rgba(218,165,32,.4);
  box-shadow:3px 0 20px rgba(184,134,11,.3);
}
.side-banner-gold:hover{box-shadow:4px 0 28px rgba(184,134,11,.5);}
.side-banner-red{
  background:linear-gradient(180deg,#7a150e,#c0392b,#e04030,#c0392b);
  border-color:rgba(192,57,43,.4);
  box-shadow:3px 0 20px rgba(192,57,43,.3);
}
.side-banner-red:hover{box-shadow:4px 0 28px rgba(192,57,43,.5);}
/* スマホでは少し小さく */
@media(max-width:480px){
  .side-banner{width:28px;min-height:100px;}
  .side-banner-txt{font-size:9px;letter-spacing:1.5px;}
  .side-banner-label{font-size:7px;}
}

/* ========== SECTIONS COMMON ========== */
.sec{padding:80px 20px;}
.sec-inner{max-width:720px;margin:0 auto;}
.sec-label{font-size:10px;letter-spacing:4px;font-weight:700;color:var(--gold);text-align:center;margin-bottom:12px;text-transform:uppercase;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.sec-title{
  font-family:'Hiragino Mincho ProN','游明朝',Georgia,serif;
  font-size:clamp(24px,5.5vw,36px);font-weight:600;
  text-align:center;line-height:1.5;margin-bottom:12px;color:var(--dark);letter-spacing:.5px;
}
.sec-sub{font-size:13px;color:#888;text-align:center;line-height:1.9;margin-bottom:36px;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.divider{width:40px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:0 auto 48px;}


/* ===== フッター ===== */
footer{background:var(--dark);border-top:1px solid rgba(184,134,11,.13);color:rgba(255,255,255,.52);padding:48px 24px 24px;}
.footer-inner{max-width:1000px;margin:0 auto;}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px;margin-bottom:32px;}
.footer-col h4{font-size:10px;font-weight:700;color:var(--gold);letter-spacing:2.5px;margin-bottom:14px;text-transform:uppercase;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.footer-col ul{list-style:none;}
.footer-col ul li{margin-bottom:9px;}
.footer-col ul li a{font-size:12px;color:rgba(255,255,255,.48);transition:color .2s;font-family:-apple-system,'Hiragino Sans',sans-serif;letter-spacing:.3px;}
.footer-col ul li a:hover{color:var(--gold-l);}
.footer-tel{font-family:Georgia,serif;font-size:20px;font-weight:700;}
.footer-tel a{color:var(--gold-l);}
.footer-bottom{border-top:1px solid rgba(255,255,255,.06);padding-top:18px;text-align:center;font-size:11px;color:rgba(255,255,255,.22);font-family:-apple-system,'Hiragino Sans',sans-serif;letter-spacing:.5px;}
@media(min-width:600px){.footer-grid{grid-template-columns:repeat(4,1fr);gap:20px;}

/* ===== スクロールトップ ===== */


/* ===== ページヒーロー（各ページタイトル）===== */
.page-hero{
  background:linear-gradient(160deg,#000000,#120e06)!important;
  color:white!important;text-align:center!important;
  padding:56px 20px 48px!important;
  position:relative!important;overflow:hidden!important;
  border-bottom:1px solid rgba(184,134,11,.12)!important;
  display:block!important;
}
.page-hero::before{
  content:'';position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:400px;height:400px;border-radius:50%;
  background:radial-gradient(circle,rgba(184,134,11,.06),transparent 60%);
  pointer-events:none;
}
.page-hero-eyebrow{
  font-size:10px!important;letter-spacing:4px!important;color:var(--gold)!important;
  font-weight:700!important;margin-bottom:12px!important;
  font-family:-apple-system,'Hiragino Sans',sans-serif!important;
  position:relative;
}
.page-hero h1{
  font-family:'Hiragino Mincho ProN','游明朝',Georgia,serif!important;
  font-size:clamp(22px,5vw,32px)!important;font-weight:600!important;
  color:white!important;line-height:1.4!important;letter-spacing:1px!important;
  position:relative;margin:0!important;padding:0!important;
  background:none!important;border:none!important;
}
.page-hero p{
  font-size:13px;color:rgba(255,255,255,.55);
  margin-top:10px;line-height:1.8;
  font-family:-apple-system,'Hiragino Sans',sans-serif;
  position:relative;
}

/* ===== ページラッパー ===== */
.page-wrap{max-width:760px;margin:0 auto;padding:48px 20px 64px;}
.page-wrap-wide{max-width:1100px;margin:0 auto;padding:40px 20px 64px;}

/* ===== カード共通 ===== */
.card{background:white;border-radius:18px;box-shadow:0 4px 24px rgba(0,0,0,.09);border:1px solid rgba(0,0,0,.04);transition:box-shadow .3s,transform .3s;}
.card:hover{box-shadow:0 12px 40px rgba(0,0,0,.15);transform:translateY(-2px);}
.card-dark{background:linear-gradient(145deg,var(--dark),var(--dark3));border:1px solid rgba(184,134,11,.12);border-radius:18px;}

/* ===== ボタン共通 ===== */
.btn-gold{display:inline-block;background:linear-gradient(135deg,#8a6800,var(--gold));color:white;padding:13px 32px;border-radius:8px;font-size:14px;font-weight:700;letter-spacing:.5px;box-shadow:0 8px 32px rgba(184,134,11,.25);transition:all .25s;font-family:-apple-system,'Hiragino Sans',sans-serif;border:none;cursor:pointer;text-align:center;}
.btn-gold:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(184,134,11,.4);}
.btn-red{display:inline-block;background:linear-gradient(135deg,#a01810,var(--red));color:white;padding:13px 32px;border-radius:8px;font-size:14px;font-weight:700;letter-spacing:.5px;box-shadow:0 8px 24px rgba(192,57,43,.35);transition:all .25s;font-family:-apple-system,'Hiragino Sans',sans-serif;border:none;cursor:pointer;text-align:center;}
.btn-red:hover{transform:translateY(-2px);box-shadow:0 12px 36px rgba(192,57,43,.5);}
.btn-outline-gold{display:inline-block;border:1px solid rgba(184,134,11,.5);color:var(--gold);padding:12px 28px;border-radius:8px;font-size:13px;font-weight:700;letter-spacing:.5px;transition:all .25s;background:transparent;font-family:-apple-system,'Hiragino Sans',sans-serif;cursor:pointer;text-align:center;}
.btn-outline-gold:hover{background:var(--gold);color:white;border-color:var(--gold);box-shadow:0 8px 32px rgba(184,134,11,.25);}

/* ===== フォーム共通 ===== */
input,textarea,select{width:100%;padding:12px 16px;border:1px solid #e0d8cc;border-radius:8px;font-size:15px;font-family:-apple-system,'Hiragino Sans',sans-serif;background:white;color:#1a1208;transition:border-color .2s,box-shadow .2s;outline:none;-webkit-appearance:none;}
input:focus,textarea:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(184,134,11,.12);}
label{display:block;font-size:13px;font-weight:700;color:#333;margin-bottom:6px;letter-spacing:.3px;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.form-group{margin-bottom:20px;}
textarea{min-height:120px;resize:vertical;line-height:1.7;}

/* ===== テーブル共通 ===== */
table{width:100%;border-collapse:collapse;font-family:-apple-system,'Hiragino Sans',sans-serif;}
th{background:var(--dark);color:rgba(255,255,255,.8);padding:12px 16px;font-size:12px;font-weight:700;letter-spacing:.5px;text-align:left;}
td{padding:12px 16px;font-size:13px;border-bottom:1px solid #f0ebe0;vertical-align:top;line-height:1.7;}
tr:last-child td{border-bottom:none;}
tr:hover td{background:#faf6ee;}

/* ===== ユーティリティ ===== */
.text-gold{color:var(--gold);}
.text-gold-l{color:var(--gold-l);}
.font-serif{font-family:'Hiragino Mincho ProN','游明朝',Georgia,serif;}
.font-sans{font-family:-apple-system,'Hiragino Sans',sans-serif;}

/* ===== 別名クラス（互換性確保） ===== */
.sec-eyebrow{font-size:10px;letter-spacing:4px;font-weight:700;color:var(--gold);text-align:center;margin-bottom:12px;text-transform:uppercase;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.gold-rule{width:40px;height:1px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:0 auto 40px;}
.trust-koune{background:linear-gradient(145deg,var(--dark),var(--dark3));border-radius:18px;padding:28px 24px;margin-bottom:20px;position:relative;overflow:hidden;border:1px solid rgba(184,134,11,.12);}
.trust-koune::before{content:'';position:absolute;top:-30px;right:-30px;width:120px;height:120px;border-radius:50%;background:radial-gradient(circle,rgba(184,134,11,.1),transparent 70%);}
.trust-koune-tag{font-size:10px;letter-spacing:3px;color:var(--gold);font-weight:700;margin-bottom:12px;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.trust-koune h3{font-family:'Hiragino Mincho ProN','游明朝',Georgia,serif;font-size:19px;color:white;margin-bottom:14px;line-height:1.5;}
.trust-koune p{font-size:13px;color:rgba(255,255,255,.78);line-height:2;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.trust-koune strong{color:var(--gold-l);}
.tp{border-left:2px solid var(--gold);background:var(--off);padding:18px 20px;border-radius:0 12px 12px 0;display:flex;gap:14px;align-items:flex-start;}
.tp-icon{font-size:22px;flex-shrink:0;line-height:1;margin-top:2px;}
.tp-body{flex:1;}
.tp h3,.tp-body h3{font-size:14px;font-weight:700;color:var(--gold);margin-bottom:8px;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.tp p,.tp-body p{font-size:13px;color:#555;line-height:1.9;font-family:-apple-system,'Hiragino Sans',sans-serif;}
.mm-special{color:var(--gold-l)!important;font-weight:700;}
.mm-special-red{color:#e86060!important;font-weight:700;}

/* ============================================================
   MOBILE RESPONSIVE FIXES — 2026/04/18
   AI部長提言: モバイル対応は最重要課題
   ============================================================ */

/* ── 全般的なモバイル修正 ── */
@media(max-width:767px){
  body{padding-left:0!important;padding-bottom:60px!important;}
  .sec{padding:48px 16px!important;}
  .sec-title{font-size:clamp(20px,5vw,28px)!important;}
  .sec-sub{font-size:12px!important;margin-bottom:24px!important;}
  .page-wrap{padding:32px 16px 56px!important;}
  
  /* フッター */
  .footer-grid{grid-template-columns:1fr 1fr!important;gap:20px!important;}
  footer{padding:32px 16px 20px!important;}
  
  /* テーブル横スクロール */
  table{display:block;overflow-x:auto;white-space:nowrap;}
  thead,tbody,tr{display:table;width:100%;table-layout:auto;}
  
  /* チャットバナー小さく */
  #chat-banner div{min-height:80px!important;width:30px!important;padding:10px 6px!important;}
  #chat-banner .cb-txt{font-size:10px!important;}
  
  /* 固定バー */
  .fixed-bar{height:50px!important;}
  .fb-products,.fb-tel{font-size:12px!important;padding:0 8px!important;}
}

/* ── 480px以下（小型スマホ） ── */
@media(max-width:480px){
  .sec{padding:36px 14px!important;}
  .sec-title{font-size:clamp(18px,5vw,24px)!important;}
  .divider{margin-bottom:28px!important;}
  
  /* page-hero 小さめに */
  .page-hero{padding:40px 14px 32px!important;}
  .page-hero h1{font-size:clamp(18px,5vw,26px)!important;}
  
  /* フッター1列 */
  .footer-grid{grid-template-columns:1fr!important;}
  
  /* ボタンタッチ対応（最低48px） */
  .cta-btn,button,.btn{min-height:44px!important;}
  
  /* テーブルフォントサイズ */
  th{padding:8px 10px!important;font-size:11px!important;}
  td{padding:8px 10px!important;font-size:12px!important;}
}
