/* =====================================================
   style3.css
   マットレスLP スマホ専用・軽量版
===================================================== */

/* =====================================================
   基本設定
===================================================== */
*,
*::before,
*::after{
  box-sizing:border-box;
}

:root{
  --base-main:#4E6B5A;
  --base-sub:#F5F3EE;
  --base-accent:#A97B36;
  --accent-color:#A97B36;
  --cta-color:#2F8F63;

  --text-body:#4c564f;
  --text-heading:#4E6B5A;
  --text-sub:#7f8a83;

  --bg-page:#ffffff;
  --bg-soft:#fbfaf7;
  --bg-h2:#f2efe8;
  --bg-panel:#fffdfa;
  --bg-point:#f9f7f2;

  --border-main:#c8d3cc;
  --border-light:#dce4de;
  --border-soft:#dfe7e1;
  --line-color:#c8d3cc;

  --item-btn-green:#4f9778;
  --item-btn-green2:#3f8668;
  --item-btn-border:#38755b;
  --item-btn-text:#ffffff;
  --item-btn-shadow:rgba(0,0,0,.18);
}

html,
body{
  margin:0;
  padding:0;
}

body{
  background:var(--bg-page);
  color:var(--text-body);
  font-family:'メイリオ', Meiryo, 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'ＭＳ Ｐゴシック', sans-serif;
  font-size:15px;
  line-height:1.9;
}


img{
  width:90%;
  height:auto;
  margin:0 auto;
  display:block;
}





a{
  color:var(--base-main);
  text-decoration:underline;
}

p{
  margin:0 0 1.25em 0;
  line-height:1.95;
}

ul,
ol{
  margin:0 0 1.2em 0;
  padding:0;
}

table{
  border-collapse:collapse;
  border-spacing:0;
}

/* =====================================================
   全体枠
===================================================== */
.main-content-frame-wide{
  width:98%;
  margin:0 auto;
  padding:0 2px;
  border-left:none;
  border-right:none;
  background:#ffffff;
}

.main-content-frame-wide > table{
  width:100%;
}

.lp-wrap{
  width:98%;
  margin:0 auto;
  background:#ffffff;
}

.lp-inner{
  padding:20px 2% 56px;
  color:var(--text-body);
  font-size:15px;
  line-height:1.95;
}

/* =====================================================
   見出し
===================================================== */
h1{
  margin:0;
  color:var(--text-heading);
  font-size:10pt;
  line-height:1.5;
  font-family:"ＭＳ 明朝", serif;
}

.site-h1{
  margin:0 0 14px 0;
  text-align:left;
  line-height:1.5;
  font-weight:700;
}

.site-h1-top{
  display:inline-block;
  margin-bottom:8px;
  font-size:0.92rem;
  line-height:1.6;
  color:var(--base-main);
  letter-spacing:0.04em;
}

.site-h1-main{
  display:inline-block;
  font-size:1.45rem;
  line-height:1.5;
  color:#3f2e21;
  letter-spacing:0.02em;
}

h2{
  position:relative;
  margin:34px 0 16px;
  padding:13px 12px 13px 40px;
  font-size:12pt;
  font-weight:700;
  line-height:1.4;
  color:var(--text-heading);
  background:var(--bg-h2);
  border-top:2px solid var(--border-main);
  border-bottom:2px solid var(--border-main);
  border-radius:6px;
}

h2::before{
  content:"";
  position:absolute;
  left:14px;
  top:50%;
  transform:translateY(-50%);
  border-top:7px solid transparent;
  border-bottom:7px solid transparent;
  border-left:10px solid var(--accent-color);
}

h3{
  margin:24px 0 10px;
  padding:10px 12px 10px 16px;
  font-size:11pt;
  font-weight:700;
  line-height:1.45;
  color:var(--text-heading);
  border-left:5px solid var(--accent-color);
  background:transparent;
}

/* =====================================================
   H2下の本文も少し内側へ
===================================================== */
.lp-inner p{
  margin:0 2% 1.25em 2%;
}

.lp-inner p:last-child{
  margin-bottom:0;
}

.lp-inner ul,
.lp-inner ol{
  margin:0 2% 1.2em 2%;
}

/* =====================================================
   上部情報
===================================================== */
.fv-topline-right{
  width:auto;
  text-align:right;
  padding-top:8px;
}

.site-tel{
  margin:0;
  font-size:1.05rem;
  line-height:1.6;
  font-weight:700;
  color:var(--base-main);
  white-space:normal;
}

.site-sub{
  margin:8px 0 0 0;
  font-size:13px;
  line-height:1.7;
  color:var(--text-sub);
}



.catch-copy{
  font-size:60%;
  color:#666;
}

/* =====================================================
   画像3枚
===================================================== */
/* =====================================================
  マットレス画像レイアウト（2枚＋1枚中央）
===================================================== */

.mattress-visual{
  display:flex;
  flex-wrap:wrap;              /* 横並び＋折り返し */
  justify-content:center;      /* 全体を中央寄せ */

  gap:10px;
  margin:8px auto 18px;
  padding:0;
}

/* 1段目（2枚） */
.mv-item{
  width:45%;                   /* 2枚並び */

  border-radius:14px;
  overflow:hidden;
  background:#ffffff;
  border:1px solid #d9e3dd;
  box-shadow:0 4px 12px rgba(78,107,90,0.08);
}

/* 2段目（1枚中央） */
.mv-item:nth-child(3){
  width:45%;
}

/* 画像 */
.mv-item img{
  display:block;
  width:100%;
  height:auto;
  background:#ffffff;
}





/* =====================================================
   ファーストビュー本文
===================================================== */
.fv-intro-clean{
  text-align:left;
  padding:6px 2px 18px;
  margin:0 auto 20px;
}

.fv-lead-clean{
  margin:0 0 18px 0;
  font-size:0.98rem;
  line-height:1.9;
  color:var(--text-body);
}

.fv-headline-clean{
  margin:0 0 16px 0;
  font-size:1.55rem;
  line-height:1.5;
  font-weight:700;
  letter-spacing:0.02em;
  color:#3f2e21;
}

.fv-sublead-clean{
  margin:0 0 24px 0;
  font-size:0.96rem;
  line-height:1.8;
  color:var(--base-main);
}

.fv-note-clean{
  margin:0;
  font-size:0.92rem;
  line-height:1.8;
  color:#6b6b6b;
  text-align:left;
}



/* =====================================================
   CTA（横並び版）
===================================================== */

/* 横並び */
.fv-cta-row{
  display:flex;              /* 横並びに変更 */
  justify-content:center;    /* 中央寄せ */
  gap:10px;                  /* ボタン間の余白 */
  margin:0 auto 18px;
}

/* ボタン */
.fv-cta-btn{
  display:flex;              /* 中央寄せ用 */
  flex-direction:column;     /* 縦並び（テキスト＋span） */
  align-items:center;
  justify-content:center;

  width:100%;
  max-width:300px;           /* 横に広がりすぎ防止 */
  margin:0;                  /* ←縦余白削除 */

  padding:18px 16px;
  border-radius:12px;

  text-decoration:none;
  font-weight:700;
  line-height:1.6;
  color:#ffffff !important;

  box-shadow:0 8px 18px rgba(47,143,99,0.15);
  text-align:center;
}

/* サブテキスト */
.fv-cta-btn span{
  display:block;
  margin-top:4px;
  font-size:0.9rem;
  font-weight:400;
  color:rgba(255,255,255,0.92) !important;
}

/* 電話ボタン */
.fv-cta-tel{
  background:linear-gradient(180deg, #58B084 0%, var(--cta-color) 100%);
  border:1px solid #2A7D56;
}

/* メールボタン */
.fv-cta-mail{
  background:linear-gradient(180deg, #b68b45 0%, var(--base-accent) 100%);
  border:1px solid #8f682b;
}




/* =====================================================
   トップバー
===================================================== */
.topbar{
  width:100%;
  margin:0 auto 22px auto;
  padding:0;
  background:linear-gradient(180deg, #eef3f0 0%, #e3ebe6 100%);
  border:1px solid #cfdad3;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 3px 10px rgba(78,107,90,0.08);
}

.topbar-menu,
.topbar-sub{
  width:100%;
  table-layout:fixed;
}

.topbar-menu td{
  text-align:center;
  vertical-align:middle;
  border-right:1px solid #d4ddd7;
  padding:0;
}

.topbar-menu td:last-child{
  border-right:none;
}

.topbar-menu td a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:50px;
  padding:8px 2px;
  color:var(--base-main);
  text-decoration:none;
  font-size:0.72rem;
  font-weight:700;
  line-height:1.4;
}

.topbar-sub td{
  text-align:center;
  vertical-align:middle;
  padding:0;
  background:#e5ebe8;
  border-top:1px solid #cfd8d3;
  border-right:1px solid #cfd8d3;
}

.topbar-sub td:last-child{
  border-right:none;
}

.topbar-sub td a{
  display:flex;
  align-items:center;
  justify-content:center;
  height:42px;
  padding:8px 2px;
  text-decoration:none;
  color:#333;
  font-size:0.68rem;
  line-height:1.4;
}

/* =====================================================
   汎用ボックス
===================================================== */








.target-call-text,
.lp-box,
.lp-box2,
.section-visual,
.pointline,
.comparison-table,
.product-gallery{
  width:100%;
  margin-left:auto;
  margin-right:auto;
}

.target-call-text{
  margin-bottom:30px;
  padding:14px 10px;
  background:var(--bg-soft);
  border:1px solid var(--border-soft);
  border-radius:12px;
}

.lp-box{
  margin:16px 0 26px;
  padding:14px 10px;
  background:#fffdfa;
  border:1px solid var(--border-light);
  border-radius:12px;
}

.lp-box2{
  margin:16px 0 26px;
  padding:14px 10px;
  background:#2f2f2f;
  border:1px solid var(--border-light);
  border-radius:10px;
  color:#ffffff;
}

.lp-box2 h4{
  margin:0 0 18px;
  padding-left:10px;
  border-left:4px solid #4F9778;
  color:#ffffff;
  font-size:18px;
  font-weight:700;
  line-height:1.5;
}

.lp-box2 p{
  color:#ffffff;
  font-size:15px;
  line-height:1.9;
  margin:0 0 18px;
}

.lp-box2 td{
  color:#ffffff;
}

.lp-box2 a{
  color:#9adfff;
}


/* =====================================================
   ご案内の流れ
===================================================== */
.flow-box{
  width:100%;
  margin:20px auto 30px;
}

.flow-step{
  margin:0 0 14px 0;
  padding:14px 12px;
  background:#fffdfa;
  border:1px solid #dce4de;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.03);
}

.flow-step h3{
  margin:0 0 8px 0;
  padding:0;
  font-size:1rem;
  font-weight:700;
  line-height:1.6;
  color:var(--text-heading);
  border-left:4px solid var(--accent-color);
  padding-left:10px;
  background:none;
}

.flow-step p{
  margin:0;
  padding:2px 2px 0 2px;
  line-height:1.9;
  color:var(--text-body);
}

/* =====================================================
   よくある質問
===================================================== */
.faq-box{
  width:100%;
  margin:0 0 14px 0;
  background:#fffdfa;
  border:1px solid #dce4de;
  border-radius:10px;
  overflow:hidden;
  box-shadow:0 2px 6px rgba(0,0,0,0.03);
}

.faq-q{
  padding:12px 14px;
  background:#f5f3ee;
  color:var(--text-heading);
  font-weight:700;
  line-height:1.7;
  border-bottom:1px solid #dce4de;
}

.faq-a{
  padding:14px;
  color:var(--text-body);
  line-height:1.9;
}

/* =====================================================
   お客様の声（voice）
===================================================== */
.voice-box{
  width:100%;
  margin:14px 0 18px;
  padding:14px 12px;
  background:#fffdfa;
  border:1px solid #dce4de;
  border-radius:10px;
  box-shadow:0 2px 6px rgba(0,0,0,0.03);
}

/* 名前部分 */
.voice-name{
  margin:0 0 8px 0;
  font-weight:700;
  color:var(--text-heading);
  font-size:0.95rem;
  line-height:1.6;
  border-left:4px solid var(--accent-color);
  padding-left:10px;
}

/* 本文 */
.voice-box p{
  margin:0;
  line-height:1.9;
  color:var(--text-body);
}

/* リスト（最初の変化のところ） */
.voice-box .lp-check{
  margin:0;
  padding-left:1.2em;
}

.voice-box .lp-check li{
  margin:0 0 10px 0;
  line-height:1.8;
}

/* =====================================================
   強調
===================================================== */
.pointline{
  display:block;
  margin:16px auto 18px;
  padding:12px 10px;
  font-size:0.96rem;
  line-height:1.85;
  font-weight:600;
  color:#A97B36;
  background:var(--bg-point);
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,0.04);
}

span.pointline{
  display:block;
}

.marker{
  background:linear-gradient(transparent 58%, #f4e4ae 58%);
  font-weight:700;
}

.marker2{
  color:#2f4f43;
  background:linear-gradient(transparent 72%, #f3e3a1 72%);
  padding:0 2px;
  box-decoration-break:clone;
  -webkit-box-decoration-break:clone;
  font-weight:700;
}

/* =====================================================
   リスト
===================================================== */
.lp-check{
  padding-left:1.2em;
  list-style-type:disc;
}

.lp-check li{
  margin:0 0 12px 0;
  padding-left:0.2em;
  line-height:1.9;
}

.lp-check li::marker{
  color:var(--base-accent);
  font-size:0.9em;
}

/* =====================================================
   比較表
===================================================== */
.comparison-table,
.comparison-table tbody,
.comparison-table tr,
.comparison-table th,
.comparison-table td{
  display:block;
  width:100%;
}

.comparison-table{
  border:0;
  margin:20px 0;
  font-size:14px;
}

.comparison-table tr{
  margin-bottom:12px;
  border:1px solid #ddd;
  border-radius:8px;
  overflow:hidden;
  background:#ffffff;
}

.comparison-table th{
  border:0;
  border-bottom:1px solid #ddd;
  background:#f5f5f5;
  padding:10px;
  text-align:left;
  font-weight:700;
}

.comparison-table td{
  border:0;
  border-top:1px solid #eee;
  padding:10px;
}

/* =====================================================
   情報ボックス
===================================================== */
.info-box{
  display:flex;
  flex-direction:column;
  width:100%;
  margin:8px auto;
  border:2px solid #4f9778;
  border-radius:6px;
  overflow:hidden;
  background:#ffffff;
  font-size:15px;
}

.info-label{
  width:100%;
  background:#4f9778;
  color:#ffffff;
  font-weight:bold;
  text-align:center;
  padding:10px 8px;
  line-height:1.2;
}

.info-text{
  width:100%;
  background:#ffffff;
  color:#2f4f43 !important;
  padding:10px;
  text-align:left;
  line-height:1.8;
}

.lp-box2 .info-box,
.lp-box2 .info-text,
.lp-box2 .info-text *,
.lp-box2 .marker2{
  color:#2f4f43;
}

/* =====================================================
   商品注文ボタン
===================================================== */
.item-order-lead{
  font-size:1rem;
  font-weight:700;
  line-height:1.7;
  color:#ffffff;
  text-align:center;
}

.item-order-wrap{
  margin:22px 0 18px;
  text-align:center;
}

a.item-order-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  padding:16px 14px;
  border-radius:14px;
  border:1px solid var(--item-btn-border);
  background:linear-gradient(180deg, var(--item-btn-green) 0%, var(--item-btn-green2) 100%);
  color:var(--item-btn-text) !important;
  text-decoration:none;
  text-align:center;
  font-size:20px;
  font-weight:bold;
  line-height:1.5;
  box-shadow:0 10px 18px var(--item-btn-shadow);
}

/* =====================================================
   画像共通
===================================================== */
.section-visual{
  margin:18px auto;
  text-align:center;
}

.section-visual img{
  height:auto;
  display:block;
  margin:0 auto;
}

/* =====================================================
   横並びテーブルをスマホ用に縦並び化
===================================================== */
.stack-table,
.stack-table tbody,
.stack-table tr,
.stack-table td{
  display:block;
  width:100% !important;
}

.stack-text,
.stack-image{
  padding:6px 2px !important;
}

.stack-image{
  margin-top:6px;
}

.stack-image img{
  width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

/* =====================================================
   商品ギャラリー
===================================================== */
.product-gallery{
  margin:0 auto 10px;
  border:0;
}

.product-gallery td{
  padding:4px 0;
}

.product-gallery a{
  display:inline-block;
  width:48%;
  margin:0 1% 8px;
  vertical-align:top;
}

.product-gallery img{
  width:100%;
  height:auto;
  display:block;
  border-radius:8px;
}

/* =====================================================
   区切り線
===================================================== */
.hr1{
  width:90%;
  margin:16px auto;
  border:0;
  border-top:2px dotted var(--border-main);
}

/* =====================================================
   TOPへ戻る
===================================================== */
.gotop{
  display:block;
  width:52px;
  height:52px;
  background:#FFF;
  border:1px solid #999;
  padding-top:26px;
  text-align:center;
  letter-spacing:-1px;
  font-size:75%;
  text-decoration:none;
  color:#333;
  opacity:0.5;
  position:fixed;
  bottom:14px;
  right:10px;
  z-index:10000;
}

.gotop::before{
  content:"";
  display:block;
  border-top:2px solid #333;
  border-right:2px solid #333;
  width:25%;
  height:25%;
  top:25%;
  left:0;
  right:0;
  margin:auto;
  position:absolute;
  transform:rotate(-45deg);
}







/* メイン（4つ） */
.menu-main{
  display:flex;
  flex-wrap:wrap;
}

.menu-main a{
  width:50%;
  padding:12px;
  text-align:center;
  text-decoration:none;
  border:1px solid #ccc;
  box-sizing:border-box;
  background:#f7f7f7;
}

/* ハンバーガー */
.menu-toggle{
  position:fixed;
  top:10px;
  right:10px;
  font-size:24px;
  background:#fff;
  padding:10px;
  border-radius:8px;
  border:1px solid #ccc;
  cursor:pointer;
  z-index:9999;
}

/* サブメニュー */
.menu-sub{
  position:fixed;
  top:0;
  right:-100%;
  width:70%;
  height:100%;
  background:#fff;
  padding:20px;
  transition:0.3s;
  z-index:9998;
}

.menu-sub a{
  display:block;
  padding:12px 0;
  border-bottom:1px solid #eee;
  text-decoration:none;
}

/* 開いたとき */
.menu-sub.active{
  right:0;
}


/* メイン（4つ） */
.menu-main{
  display:flex;
  flex-wrap:wrap;
}

.menu-main a{
  width:50%;
  padding:12px;
  text-align:center;
  text-decoration:none;
  border:1px solid #ccc;
  box-sizing:border-box;
  background:#f7f7f7;
}



/* =====================================================
   ハンバーガーメニュー（スマホ専用）
===================================================== */

/* ハンバーガーボタン */
.menu-toggle{
  position:fixed;
  top:90px;
  right:12px;

  width:52px;
  height:52px;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:22px;

  background:var(--bg-soft);
  border:1px solid var(--base-accent);
  border-radius:14px;

  box-shadow:0 4px 10px rgba(0,0,0,.08);

  cursor:pointer;
  z-index:20000;
}

/* 押したときの動き */
.menu-toggle:active{
  transform:scale(0.95);
}

/* サブメニュー（閉じている状態） */
.menu-sub{
  position:fixed;
  top:0;
  right:-100%;

  width:75%;
  max-width:320px;
  height:100%;

  background:#ffffff;

  padding:70px 20px 20px;

  box-shadow:-6px 0 16px rgba(0,0,0,.12);

  transition:0.3s ease;

  z-index:19999;
}

/* メニューが開いたとき */
.menu-sub.active{
  right:0;
}

/* メニューリンク */
.menu-sub a{
  display:block;
  padding:14px 6px;

  border-bottom:1px solid #eee;

  text-decoration:none;
  color:var(--text-body);

  font-size:0.95rem;
  line-height:1.6;
}

/* ホバー（スマホでも軽く反応） */
.menu-sub a:active{
  background:#f5f5f5;
}

/* 背景オーバーレイ（うっすら暗く） */
.menu-overlay{
  position:fixed;
  top:0;
  left:0;

  width:100%;
  height:100%;

  background:rgba(0,0,0,0.3);

  opacity:0;
  pointer-events:none;

  transition:0.3s;

  z-index:19998;
}

/* 開いたとき背景ON */
.menu-overlay.active{
  opacity:1;
  pointer-events:auto;
}


/* =====================================================
   フッター
===================================================== */
.sp-footer{
  width:100%;
  margin:20px auto 0;
  padding:16px 12px;
  background:#f5f3ee;
  border-top:1px solid #d8ddd8;
  text-align:center; /* ←中央にする */
}

/* コピーライト */
.sp-footer-copy{
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:#5f665f;
}

/* =====================================================
   by（外に出して右下）
===================================================== */
.sp-footer-byline{
  position:relative;   /* ←これ重要 */
  width:100%;
  padding:4px 12px 10px;
  font-size:11px;
  color:#888;
  text-align:right;
}

/* TOPボタン */
.gotop{
  bottom:10px;
  right:10px;
}