:root {
  --cta_h: 56px;
  --safe_top: env(safe-area-inset-top, 0px);

  /* brand colors */
  --accent: #e63946;               /* CTA赤 */
  --navy: #0b1b3b;                 /* 文字濃紺 */
  --ink: #111;

  /* logo text colors */
  --logo_form: #0b1b3b;            /* 「Form」側の色（濃紺） */
  --logo_doc:  #e5383b;            /* 「doc」側の色（赤）   */

  /* sp menu */
  --sky: #e7f5ff;                  /* メニュー背景の水色 */
  --sky-hover: #d7ecff;            /* hover/tap */
  --nav-overlay: rgba(2,62,138,.25); /* 背面オーバーレイ */

  --space-s: 12px;
  --space-m: 20px;
  --space-l: 28px;

  --buy-col1: 130px;  /* 機種名の列幅 */
  --buy-col2: 70px;  /* 容量の列幅 */

}

/* ===== base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, "ヒラギノ角ゴ ProN", "メイリオ", sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}
main { max-width: 1100px; margin-inline: auto; padding: 16px; }
section { padding: 28px 0; border-bottom: 1px dashed #e6e6e6; }

h1, h2 {
  margin-block: 1.2em 0.8em;  /* 上1.2em 下0.8em */
  line-height: 1.3;
}

/* 先頭のh1/h2は上詰め */
.box > h1:first-child,
.box > h2:first-child,
section > h1:first-child,
section > h2:first-child {
  margin-top: 0;
}

h2 { font-size: 1.2rem; font-weight: 800; }
.box {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}
.spacer { height: 12px; }

/* ===== hero ===== */
.hero_media { inline-size: 100%; block-size: auto; }
.hero_media picture, .hero_media img { display: block; inline-size: 100%; block-size: auto; }

/* ===== buttons===== */
.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 9999px;
  letter-spacing: .02em;
  box-shadow: 0 6px 16px rgba(230,57,70,.35);
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid #111; outline-offset: 2px; background: #d62c3a; }

/* ===== intro ===== */
.intro_ttl { font-size: 1.2rem; font-weight: 800; color: var(--navy); }
.intro_txt { margin: 4px 0 0; }

/* ===== SP header (fixed) ===== */
.site_header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(6px);
  height: 56px;
  padding-top: var(--safe_top);
  border-bottom: 1px solid #eee;
}
.site_header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  padding: 0 16px;
}
.site_header_spacer { height: calc(56px + var(--safe_top)); }

/* ===== brand row: ロゴ + タイトル横並び ===== */
.site_brand { display: flex; align-items: center; gap: 10px; min-width: 0; }

/* ロゴサイズ（視認性アップ） */
.site_brand_logo {
  display: block;
  height: 48px;  /* ← ここがロゴの表示サイズ */
  width: auto;
  object-fit: contain;
  image-rendering: auto;
}

/* タイトル（着色を内包） */
.site_brand_txt {
  font-weight: 900;
  font-size: clamp(13px, 3.4vw, 17px);
  line-height: 1.15;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-width: calc(100vw - 48px - 16px - 56px - 24px);
}
.brand_form { color: var(--logo_form); } /* フォーム側（濃紺） */
.brand_doc  { color: var(--logo_doc);  } /* ドック側（赤）   */

@media (max-width: 340px) { .site_brand_logo { height: 42px; } }

/* ===== hamburger ===== */
.menu_btn {
  appearance: none;
  width: 32px; height: 24px;
  border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0; z-index: 101;
}
.menu_btn span {
  display: block; width: 100%; height: 3px;
  background: #0b1b3b; border-radius: 3px; transition: .2s;
}
.is_menu_open .menu_btn span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.is_menu_open .menu_btn span:nth-child(2) { opacity: 0; }
.is_menu_open .menu_btn span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ===== slide menu (SP) ===== */
.site_nav {
  position: fixed;
  inset: calc(56px + var(--safe_top)) 0 0 0;  /* ヘッダー直下〜下端までのオーバーレイ */
  z-index: 99;
  background: var(--nav-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.is_menu_open .site_nav { opacity: 1; pointer-events: auto; }

/* ===== slide menu (SP) ===== */
/* ===== SP menu: button-like items ===== */

/* 色の微調整（必要なら好みで変更OK） */
:root{
  --menu-item-bg: #f3f9ff;        /* パネル背景（淡い） */
  --menu-item-hover: #e8f3ff;     /* hover/tap */
  --menu-item-press: #dcecff;     /* active */
  --menu-item-sep: #d7e6f7;       /* 仕切り線 */
}

/* 各項目の仕切り線（薄い横線） */
.site_nav .site_nav_list > li + li{
  border-top: 1px solid var(--menu-item-sep);
}

.site_nav .site_nav_list,
.site_nav .site_nav_list > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.site_nav .site_nav_list > li::marker { content: none; }

/* リンクを“横幅いっぱいのボタン”に */
.site_nav .site_nav_list a{
  display: flex;
  align-items: center;
  gap: 10px;
  inline-size: 100%;
  min-height: 52px;                     /* タップ領域確保 */
  padding: 14px 16px;
  background: var(--menu-item-bg);
  text-decoration: none;                /* 下線なし */
  font-weight: 850;
  font-size: clamp(18px, 5.2vw, 22px);  /* 少し大きめ */
  color: var(--navy) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
  transition: background .15s ease, transform .06s ease;
}

/* ホバー／タップ時のフィードバック */
.site_nav .site_nav_list a:hover{
  background: var(--menu-item-hover);
}
.site_nav .site_nav_list a:active{
  background: var(--menu-item-press);
  transform: translateY(1px);
}

/* アクセシビリティ：フォーカスリング */
.site_nav .site_nav_list a:focus-visible{
  outline: 3px solid rgba(11,27,59,.5);
  outline-offset: 2px;
}



/* ===== PC (>=1024px) ===== */
@media (min-width: 1024px) {
  .site_header, .site_header_spacer, .site_nav { display: none; }

  .intro_ttl { font-size: 1.6rem; }
}

/* ===== motion ===== */
@media (prefers-reduced-motion: reduce) {
  .btn, .menu_btn span, .site_nav, .site_nav_list { transition: none; }
}


/* ===== service list ===== */
.service_list{
  display: grid;
  grid-template-columns: 1fr;        /* SPは1列 */
  gap: 10px;
  padding: 0; margin: 8px 0 0;
  list-style: none;
}
@media (min-width: 680px){
  .service_list{ grid-template-columns: 1fr 1fr; } /* >=680pxで2列 */
}

.service_item{
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;   /* [thumb] [name/note] [price] */
  grid-template-rows: auto auto;
  align-items: center;
  gap: 6px 12px;
  padding: 12px 44px 12px 12px;
  background: var(--menu-item-bg, #f3f9ff);
  border: 1px solid #e6eef9;
  border-radius: 12px;
}

/* テキスト */
.service_name{
  grid-column: 2; grid-row: 1;
  font-weight: 850;
  color: var(--navy);
  font-size: clamp(16px, 4.5vw, 18px);
  letter-spacing: .01em;
}
.service_price{
  grid-column: 3; grid-row: 1;
  font-weight: 900;
  color: var(--accent);
  white-space: nowrap;
  font-size: clamp(15px, 4.2vw, 17px);
}
.service_note{
  grid-column: 2 / 4; grid-row: 2;
  color: #52627a;
  font-size: .92rem;
  opacity: .85;
}

.service_note_001::after {
  content: "※引っ越しは2名で対応";
  display: block;
  font-size: 0.8rem;
  color: #888;
  margin-top: 2px;
}


/* サムネ */
.service_thumb{
  grid-row: 1 / span 2;
  inline-size: 56px; block-size: 56px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;                /* 四角丸 */
  background: #eef5ff;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.service_thumb.is_round{ border-radius: 50%; }  /* 丸にしたい時 */

@media (min-width: 680px){
  .service_thumb{ inline-size: 64px; block-size: 64px; }
}

/* 右端の“→” */
.service_item::after{
  content: "";
  position: absolute; top: 50%; right: 14px;
  width: 8px; height: 8px;
  border-top: 2px solid #7a8aa0; border-right: 2px solid #7a8aa0;
  transform: translateY(-50%) rotate(45deg);
  opacity: .9;
}

/* フィードバック */
.service_item:hover{ background: #eaf4ff; border-color: #d6e6fb; }
.service_item:active{ transform: translateY(1px); }
.service_item:focus-within{ outline: 3px solid rgba(11,27,59,.2); outline-offset: 2px; }

/* “おすすめ”バッジ（人気順などで強調） */
.service_item.is_pick::before{
  content: "おすすめ";
  position: absolute; top: -10px; left: 12px;
  font-size: 11px; font-weight: 900; color: #fff;
  background: var(--accent);
  padding: 3px 8px; border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(230,57,70,.25);
}

/* =========================================================
   料金表 ＋ 料金例  （Formdoc LP用）
   ========================================================= */

/* --------------------------------
   カラーパレット
-------------------------------- */
:root{
  --pt-red:   #ff6b6b;
  --pt-orange:#ffa94d;
  --pt-green: #69db7c;
  --pt-blue:  #74c0fc;
  --pt-gold:  #ffe066;
  --pt-gray:  #ced4da;
}

/* --------------------------------
   共通タイトル
-------------------------------- */
.pricing_box h2{
  font-size:1.4rem;
  margin:0 0 10px;
}

/* =========================================================
   料金表（上段）
========================================================= */
.price_notice {
  background: #fff8e1;
  border: 1px solid #f5d77a;
  color: #444;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
  padding: 1em 1.2em;
  margin: 0 0 1.5em;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.price_notice span {
  color: #e53935;
  font-weight: 700;
}



.price_table{
  display:grid;
  grid-template-columns: 1fr;
  gap:12px;
}
@media (min-width:680px){
  .price_table{ grid-template-columns: 1fr 1fr; }
}
@media (min-width:1024px){
  .price_table{ grid-template-columns: 1fr 1fr 1fr; }
}

/* 各カード */
.price_item{
  display:grid;
  grid-template-columns: 72px 1fr;
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px dashed #f0c36a;
  border-radius:12px;
  padding:12px;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
}
.price_item.is_main{
  grid-column: 1 / -1;           /* 横いっぱい */
  border-style: solid;
}

/* アイコン（後で画像差し替え可） */
.pi_icon{
  inline-size:72px;
  block-size:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:34px;
  color:#fff;
  border-radius:10px;
  user-select:none;
}
.pi_icon.person  { background: var(--pt-red);   }
.pi_icon.walk    { background: var(--pt-orange);}
.pi_icon.van     { background: var(--pt-green); }
.pi_icon.tools   { background: var(--pt-blue);  }
.pi_icon.travel  { background: var(--pt-gold);  color:#925; }
.pi_icon.protect { background: #f3d9fa; color:#6b2; }
.pi_icon.dispose { background: var(--pt-gray);  color:#333; }

/* 背景を画像アイコンに差し替える場合
.pi_icon.person{background:#f66 url("img/icons/person.png") center/60% no-repeat; font-size:0;}
*/

.pi_body{ line-height:1.4; }
.pi_title{ font-weight:900; color:var(--navy); }
.pi_title.accent{ color:#e8590c; }             /* 作業費の見出しを強調 */
.pi_value{ font-size:1.05rem; margin-top:2px; }
.pi_note{ font-size:.9rem; color:#555; margin-top:2px; }

/* =========================================================
   料金例（下段）
========================================================= */
.price_notice_sub{
  margin-block: 12px 28px;   /* 上 12px / 下 28px */
  font-weight: 500;
}

.price_notice_sub + .pricing_case{
  margin-top: 20px;
}

.pricing_case + .pricing_case{
  margin-top: 20px;
}

.price_notice_sub {
  background: #f9fbff;
  border: 1px solid #d0e4ff;
  color: #334;
  font-size: 0.95rem;
  text-align: center;
  line-height: 1.6;
  padding: 0.9em 1.2em;
  margin: 1.5em 0 0;
  border-radius: 8px;
}

.price_notice_sub span {
  color: #e53935;
  font-weight: 700;
}

.pricing_case{
  background: #fffdf8;
  border: 1px solid #f0e3c2;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.pricing_icons{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.icon_block{
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  border-radius: 8px;
  padding: 10px 8px;
}
.icon_block span{
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* アイコンカラー */
.icon_block.person { background:#f44336; } /* 赤 */
.icon_block.work   { background:#ff9800; } /* オレンジ */
.icon_block.car    { background:#4caf50; } /* 緑 */

.pricing_desc p{
  margin: 0;
  font-size: .95rem;
  line-height: 1.6;
}
.pricing_total{
  display: inline-block;
  margin-top: 4px;
  font-size: 1.05rem;
  font-weight: 900;
  color: #d32f2f;
}

/* 注意書き */
.pricing_notes{
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: .85rem;
  color: #555;
}
.pricing_notes li{
  margin-bottom: 4px;
}

/* ===============================
   料金例と注意書き（price_example / price_note）
   =============================== */

/* 料金例（ベース） */
.price_example {
  margin: 1.6em 0;
  padding: 1.2em 1.5em;
  background: #f8f9fb;
  border-radius: 8px;
  border-left: 4px solid #09f;
}
.price_example ul { margin:0; padding:0; list-style:none; }
.price_example li { line-height:1.7; margin:.35em 0; color:#333; }
.price_example li strong { color:#111; }

/* 注意書き（共通） */
.price_note {
  margin-top: 1.2em;
  padding: .8em 1.1em;
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 6px;
  font-size: .92rem;
  color: #666;
}

/* “人気”を強調する見た目 */
.price_example--highlight {
  position: relative;
  background: #eef6ff;
  border: 1px solid #cfe7ff;
  border-left-width: 6px;     /* 左ライン太めで視線を誘導 */
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}

/* 人気バッジ（角にちょこんと） */
.price_example--highlight::before {
  content: "人気";
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff;
  background: #09f;
  padding: .25em .55em;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}

/* セクション見出しの揃え（任意：上下の流れを締める） */
.box_pricing h2 {
  margin-top: 2em;
  font-size: 1.25rem;
  border-left: 5px solid #09f;
  padding-left: .6em;
}
.box_pricing h2 + .price_example,
.box_pricing h2 + .pricing_case { margin-top: .8em; }



/* ===== about（代表＋会社紹介） ===== */
.message_box{
  padding: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}

.message_head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.message_label{
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
}
.wave_line{
  flex: 1;
  height: 3px;
  background: linear-gradient(90deg,#e63946 0%,#09f 100%);
  border-radius: 3px;
  opacity: .35;
}

/* グリッド配置 */
.message_grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}
@media (min-width: 768px){
  .message_grid{
    grid-template-columns: 0.8fr 1.4fr;
    gap: 24px;
  }
}

/* 写真 */
.message_photo{
  text-align: center;
  margin: 0 auto;
}
.message_photo img{
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.photo_caption{
  margin-top: 8px;
  font-size: .9rem;
  color: #333;
  line-height: 1.4;
}

/* テキスト */
.message_body p{
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 1.2em;
  color: #222;
}

/* ===== バッジ ===== */
.badge_group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0.8em;
}

.badge {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
  white-space: nowrap;
}

/* 個別色（品牌統一） */
.badge_free {
  background: var(--accent); /* 既存赤 #e63946 */
}

.badge_night {
  background: #003366; /* 濃紺で夜間っぽく */
  position: relative;
}

.badge_night::before {
  content: "🌙";
  margin-right: 4px;
}

/* ===== 見積もりフォーム ===== */
.quote_box{
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  padding: 28px 22px 36px;
  max-width: 640px;
  margin: 0 auto;
}

.quote_title{
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 8px;
  text-align: center;
}

.quote_intro{
  text-align: center;
  font-size: .95rem;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 各ラベル */
.form_label{
  display: flex;
  flex-direction: column;
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 6px;
}
.req{
  color: #e63946;
  font-size: .85em;
  margin-left: 6px;
  font-weight: 600;
}
.opt{
  color: #666;
  font-size: .85em;
  margin-left: 6px;
  font-weight: 400;
}

/* 入力欄 */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="datetime-local"],
#selrequest,
textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #ccd6e0;
  border-radius: 8px;
  font-size: .95rem;
  line-height: 1.5;
  background: #f9fbfd;
  color: #222;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus,
textarea:focus{
  border-color: var(--accent, #09f);
  box-shadow: 0 0 0 3px rgba(0,153,255,.15);
  outline: none;
}
textarea{
  resize: vertical;
  min-height: 100px;
}

/* スペーサー */
.spacer{ height: 18px; }

/* 送信ボタン */
.form_submit{
  text-align: center;
  margin-top: 28px;
}
.form_submit .btn{
  min-width: 260px;
}

/* スマホ買取リボン */
.ribbon_night {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  background: linear-gradient(90deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #f8e37c; /* 上品なゴールド */
  font-weight: 700;
  padding: 10px 0;
}

.ribbon_night span {
  display: inline-block;
  padding-left: 100%; /* 最初に右側から出す */
  animation: scrollText 25s linear infinite;
}

@keyframes scrollText {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ================================
   CTA / Buttons (unified)
   ================================ */

/* カラー（必要なら上の :root に） */
:root{
  --btn-primary: var(--accent);     /* 既存の赤 */
  --btn-primary-shadow: rgba(230,57,70,.35);
  --btn-tel: #2ecc71;               /* 緑（電話） */
  --btn-tel-shadow: rgba(46,204,113,.35);
  --btn-outline: var(--accent);
}

/* ベースボタン */
.btn{
  appearance:none; border:0; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:800; color:#fff; background: var(--btn-primary);
  padding: 14px 18px; border-radius:9999px; letter-spacing:.02em;
  box-shadow: 0 6px 16px var(--btn-primary-shadow);
  text-decoration:none; /* <a>でも同じ見た目に */
  transition: transform .12s ease, opacity .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: translateY(0); opacity:.95; }
.btn:focus-visible{ outline:3px solid #111; outline-offset:2px; }

/* バリアント */
.btn_primary{ background: var(--btn-primary); box-shadow: 0 6px 16px var(--btn-primary-shadow); }
.btn_tel{
  background: var(--btn-tel); box-shadow: 0 6px 16px var(--btn-tel-shadow);
}
.btn_tel:focus-visible{ outline-color: var(--btn-tel); }

.btn_outline{
  appearance:none; background: transparent; color: var(--btn-outline);
  border:2px solid var(--btn-outline); padding: 12px 18px;
}
.btn_outline:hover{ background: color-mix(in srgb, var(--btn-outline) 8%, transparent); }

/* アイコン補助（任意） */
.i_phone::before{ content:"📞"; }

/* サイズユーティリティ（必要なら） */
.btn_sm{ padding: 10px 14px; font-weight:800; }
.btn_lg{ padding: 16px 28px; font-weight:900; }

/* ================================
   CTA レイアウト
   ================================ */

/* PC/タブレット用の汎用CTA行 */
.cta_block{
  display:none;            /* SPは下の固定CTAを使う */
}
@media (min-width:1024px){
  .cta_block{
    display:flex; justify-content:center; align-items:center; gap:12px; width:100%;
    margin: 28px auto 64px; /* デフォは“セクション間” */
  }
  .cta_block.is_inline    { margin: 18px auto 28px; }
  .cta_block.is_standalone{ margin: 40px auto; padding: 0 16px; }
  .cta_block.is_left      { justify-content:flex-start; }
  .cta_block.is_right     { justify-content:flex-end;   }
  .cta_block.is_full      { max-width:none; }
  .cta_block .btn{ min-width:240px; border-radius:12px; }
}

/* SP 固定CTA（画面下） */
.cta_mobile{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  display:flex; flex-direction:column; gap:8px; /* ←2ボタン縦積み */
  align-items:center; justify-content:center;
  padding:10px 12px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.96);
  backdrop-filter:saturate(150%) blur(6px);
  border-top:1px solid #eee;
}
.cta_mobile .btn{ width:100%; max-width:740px; }
.cta_mobile_placeholder{ height: calc(var(--cta_h) + env(safe-area-inset-bottom) + 12px); }

/* PC表示時はSP固定CTAを消す（header/navは既存のまま） */
@media (min-width:1024px){
  .cta_mobile, .cta_mobile_placeholder{ display:none; }
}

/* ===== SP 固定CTA：横並び・角丸なし・余白なし ===== */
@media (max-width:1023px){
  .cta_mobile{
    display: flex;
    flex-direction: row;     /* 1) 横並び */
    gap: 0;                  /* 3) ボタン間の余白なし */
    align-items: stretch;
    justify-content: center;

    /* 3) 外側の余白なし（下だけ安全域ぶん確保） */
    padding: 0 0 env(safe-area-inset-bottom) 0;

    background: rgba(255,255,255,.96);
    backdrop-filter: saturate(150%) blur(6px);
    border-top: 1px solid #eee;
  }

  /* 各ボタンを左右1/2でフル幅に、角丸なし・マージンなし */
  .cta_mobile .btn{
    flex: 1 1 50%;
    width: auto;
    max-width: none;
    border-radius: 0;        /* 2) 角丸なし */
    margin: 0;               /* 3) マージンなし */
    box-shadow: none;        /* 角丸をやめるなら影も消す方がフラットに見えます（必要なら外してOK） */
    padding: 14px 12px;
  }

  /* プレースホルダ：下部固定CTAの高さぶんだけ確保（外側余白を無くしたので短く） */
  .cta_mobile_placeholder{
    height: calc(var(--cta_h) + env(safe-area-inset-bottom));
  }
}

/* ===== 会社情報セクション ===== */
.box_company {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  padding: 24px;
  margin-top: 28px;
}

.company_grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}
@media (min-width: 768px) {
  .company_grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* タイトル */
.company_title {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 14px;
}

/* 情報リスト */
/* 情報リスト（共通） */
.company_list {
  margin: 0;
  padding: 0;
}
.company_row {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #e2e2e2;
}
.company_row:last-child { border-bottom: none; }

.company_row dt {
  flex: 0 0 90px;
  font-weight: 700;
  color: #222;
}
.company_row dd {
  margin: 0;
  flex: 1;
  color: #444;
}

/* 営業時間や受付時間をやわらかく */
.company_row dd small {
  color: #777;
  font-size: .9em;
}

/* リンク */
.company_info a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.company_info a:hover {
  text-decoration: underline;
}

/* Google Map */
.company_map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

/* ===============================
   News（Instagram風カード）
   =============================== */
.news_list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.news_item { margin: 0; }

.news_card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: 0 3px 12px rgba(0,0,0,.04);
}
.news_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  border-color: #e6f0ff;
}

.news_media {
  aspect-ratio: 4 / 3;
  background: #f5f7fb;
  margin: 0;
}
.news_media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news_body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.news_time { font-size: .85rem; color: #6b7280; letter-spacing: .02em; }
.news_title { font-size: 1.02rem; line-height: 1.4; margin: 0; }
.news_text {
  font-size: .95rem; color: #444; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news_more {
  margin-top: 2px;
  align-self: flex-start;
  font-weight: 700;
  font-size: .92rem;
  color: #09f;
}
.news_actions { margin-top: 14px; text-align: right; }
.news_actions .btn { padding: .6em 1.2em; }


/* ============================
   iPhone・スマホ買取料金表
   ============================ */
/* 買取ブロックだけ overflowを見えるようにしておく（スクロールバーが隠れないように） */
.box_buyback{
  overflow: visible;
}
.box_buyback{
  background:#fff;
  border-radius:16px;
  box-shadow:0 4px 16px rgba(0,0,0,.05);
  margin-top:28px;
}
.buyback_head h2{
  font-size:1.25rem;
  margin-bottom:.4em;
  border-left:5px solid #09f;
  padding-left:.6em;
}
.buyback_head p{
  margin:0 0 .4em;
  color:#435;
  line-height:1.5;
}
.buyback_hint{
  font-size:.9rem;
  color:#0b1b3b;
  background:#e7f3ff;
  border:1px solid #d1e6ff;
  border-radius:8px;
  padding:.35em .8em;
  display:inline-block;
}
.table_scroll{
  margin-top:1rem;
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
}
.buy_table{
  width:100%;
  min-width:980px;
  border-collapse:separate;
  border-spacing:0;
  font-size:.9rem;
}
.buy_table thead th{
  background:#0b1b3b;
  color:#fff;
  text-align:center;
  padding:10px 8px;
  border:1px solid #0b1b3b;
  white-space:nowrap;
}
.buy_table thead .bt_group{
  background:#102a52;
  font-size:.85rem;
}
.buy_table thead .bt_sub{
  background:#12386e;
  font-size:.78rem;
}
.buy_table tbody th,
.buy_table tbody td{
  border:1px solid #e2e8f0;
  padding:8px 6px;
  text-align:center;
  background:#fff;
}
.buy_table tbody tr:nth-child(even) td,
.buy_table tbody tr:nth-child(even) th{
  background:#fbfdff;
}

/* 1列目：機種名 */
.bt_model,
.bt_model_head{
  position: sticky;
  left: 0;
  width: var(--buy-col1);
  min-width: var(--buy-col1);
  background: #fff;
  z-index: 6; /* ヘッダーより上に */
  text-align: left;
  white-space: nowrap;
}

/* 2列目：容量 */
.bt_storage,
.bt_storage_head{
  position: sticky;
  left: var(--buy-col1); /* ←1列目と同じ数値で止める */
  width: var(--buy-col2);
  min-width: var(--buy-col2);
  background: #fff;
  z-index: 5;
  white-space: nowrap;
}

/* ヘッダーのほうも同じようにしておくとズレない */
.buy_table thead th.bt_model_head{
  z-index: 7;
}
.buy_table thead th.bt_storage_head{
  z-index: 7;
}
@media (max-width:720px){
  .bt_storage{ left:130px; }
  .bt_storage_head{ left:130px; }
  .buy_table{ min-width:950px; }
  .buy_cta{ flex-direction:column; }
}


/* ===============================
   買取料金表レスポンシブスクロール対策
   =============================== */

/* 親の.boxがoverflow:hiddenなど持ってても可視化する */
.box_buyback {
  overflow: visible !important;
}

/* スクロール制御ブロック */
.table_scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
  cursor: grab;
}

/* ←これが重要。テーブルをブロックより常に広くする */
.buy_table {
  width: 100%;
  min-width: 1100px; /* これで狭くなった時にスクロールバーが出る */
  border-collapse: collapse;
  table-layout: fixed;
}

/* ドラッグ中の見た目 */
.table_scroll.is_dragging {
  cursor: grabbing;
}

/* PCでもスクロールバーを可視 */
.table_scroll::-webkit-scrollbar {
  height: 8px;
}
.table_scroll::-webkit-scrollbar-thumb {
  background: #0b1b3b;
  border-radius: 4px;
}
.table_scroll::-webkit-scrollbar-track {
  background: #eef3f9;
  border-radius: 4px;
}


/* スクロール領域を一段前面に出す */
.table_scroll{
  position: relative;
  z-index: 10;          /* ←これで次のブロックより上に出る */
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  margin-bottom: 18px;  /* ←下のブロックに食われないクッション */
  background: #fff;     /* スクロールバーの帯が見えるように */
}

/* ドラッグ中の見た目 */
.table_scroll.is_dragging{
  cursor: grabbing;
}

/* ドラッグ中にテキストが選択されるのを防ぐ */
body.no_select,
body.no_select *{
  user-select: none !important;
}

/* ===============================
   タブ切り替えスタイル
   =============================== */

/* タブナビゲーション */
.table-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding: 0;
}

/* タブボタン */
.tab-btn {
  appearance: none;
  border: 2px solid #0b1b3b;
  background: #fff;
  color: #0b1b3b;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  background: #f5f5f5;
  transform: translateY(-1px);
}

.tab-btn.active {
  background: #0b1b3b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(11, 27, 59, 0.3);
}

.tab-btn:focus-visible {
  outline: 3px solid #e63946;
  outline-offset: 2px;
}

/* タブコンテンツ */
.table-content {
  display: none;
}

.table-content.active {
  display: block;
}

/* レスポンシブ対応 */
@media (max-width: 720px) {
  .table-tabs {
    gap: 6px;
  }
  
  .tab-btn {
    font-size: 0.85rem;
    padding: 10px 16px;
  }
}

/* ===============================
   コーティング価格表
   =============================== */

.coating_price_section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #e6e6e6;
}

.coating_table_wrapper {
  margin-bottom: 50px; /* 表の間隔 */
}

.coating_table_wrapper:last-child {
  margin-bottom: 0; /* 最後の表は下マージンなし */
}

.coating_title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  text-align: center;
}

.coating_table {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  border-collapse: collapse;
  table-layout: fixed; /* 列幅を固定 */
}

/* 列幅を50%:50%に設定 */
.coating_table th,
.coating_table td {
  width: 50%;
}

.coating_table thead th {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  padding: 14px 20px;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #e6e6e6;
}

.coating_table tbody td {
  padding: 16px 20px;
  text-align: center;
  font-size: 1rem;
  border: 1px solid #e6e6e6;
}

.coating_item {
  font-weight: 600;
  color: var(--navy);
  background: #f9f9f9;
}

.coating_price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  background: #fff;
}

.coating_table tbody tr:hover td {
  background: #f0f0f0;
}

@media (max-width: 720px) {
  .coating_table_wrapper {
    margin-bottom: 40px; /* スマホでは間隔を少し狭く */
  }
  
  .coating_title {
    font-size: 1.3rem;
  }
  
  .coating_table {
    max-width: 100%; /* スマホでは画面幅いっぱい */
  }
  
  .coating_table thead th,
  .coating_table tbody td {
    padding: 12px 10px;
    font-size: 0.9rem;
  }
  
  .coating_price {
    font-size: 1rem;
  }
}
