/* マチプロ site v2 — 定版デザイン（design_gpt/homepage_design_FINAL.jpg）準拠
   配色は全てCSS変数で一元管理。主色=暖珊瑚オレンジ、地=奶油白、文字=深ブラウン。
   分野別スキン（skin-beauty.css 等）はこの変数を差し替えて使う。 */
:root{
  --bg:#FBF5ED;              /* 奶油白 */
  --surface:#FFFFFF;
  --surface-muted:#F6EBDC;
  --ink:#3D2B1F;             /* 深ブラウン */
  --muted:#8A7360;
  --border:#EBDBC6;
  --primary:#E4652B;         /* 暖珊瑚オレンジ */
  --primary-strong:#C24E1B;
  --primary-soft:#FDEBDC;
  --accent:#2F7D5C;          /* 空き状態（本日対応可能）のグリーン */
  --accent-soft:#E1F0E7;
  --campaign:#B03A2E;
  --campaign-bg:#FBEAE7;
  --star:#F5A623;
  --ok:#2F7D5C;
  --warn-bg:#FFF3D9;
  --danger:#B3261E;
  --radius:16px;
  --header-bg:#FFFFFF;
  --shadow:0 2px 12px rgba(120,72,30,.09);
}
html[data-theme="dark"]{
  --bg:#1D130B;
  --surface:#2A1D12;
  --surface-muted:#37281A;
  --ink:#F7EDE0;
  --muted:#C6AB90;
  --border:#4C3826;
  --primary:#F08A4B;
  --primary-strong:#F6AC74;
  --primary-soft:#43301C;
  --accent:#7CC79D;
  --accent-soft:#22392C;
  --campaign:#F0937F;
  --campaign-bg:#422622;
  --star:#F5B544;
  --ok:#7CC79D;
  --warn-bg:#40331B;
  --danger:#F0937F;
  --header-bg:#2A1D12;
  --shadow:0 2px 12px rgba(0,0,0,.45);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:"Hiragino Maru Gothic ProN","Hiragino Kaku Gothic ProN","Hiragino Sans","Noto Sans JP","Yu Gothic UI",sans-serif;
  font-size:17px; line-height:1.65;
  -webkit-text-size-adjust:100%;
  padding-bottom:84px; /* 固定ボトムナビの分 */
}
a{color:var(--primary-strong)}
img{max-width:100%}
h1,h2,h3{line-height:1.4}
.muted{color:var(--muted)} .small{font-size:14px}
.price{font-size:20px; font-weight:800; color:var(--primary-strong)}
.star{color:var(--star); font-weight:800}

/* ---- ヘッダー：実色・不透明（透けない） ---- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:var(--header-bg);
  border-bottom:1px solid var(--border);
}
.header-inner{
  max-width:1080px; margin:0 auto; padding:8px 16px;
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.logo{display:flex; align-items:center; gap:9px; text-decoration:none; color:var(--ink); min-height:48px; padding:4px 0}
.logo-mark{
  width:40px; height:40px; flex:none; border-radius:11px;
  background:var(--primary); color:#fff;
  display:inline-flex; align-items:center; justify-content:center;
}
.logo-mark svg{width:24px; height:24px}
.logo-text{font-size:23px; font-weight:800; letter-spacing:.06em; line-height:1.15}
.logo-text small{display:block; font-size:10.5px; font-weight:700; letter-spacing:.04em; color:var(--muted)}
.menu-btn{
  margin-left:auto; width:48px; height:48px; flex:none;
  border:1.5px solid var(--border); border-radius:12px;
  background:var(--surface); color:var(--primary);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer;
}
.menu-btn svg{width:26px; height:26px}
.menu-panel{
  border-top:1px solid var(--border); background:var(--header-bg);
  padding:8px 16px 12px;
}
.menu-panel a{
  display:flex; align-items:center; min-height:48px; padding:6px 8px;
  color:var(--ink); font-weight:700; text-decoration:none;
  border-bottom:1px solid var(--border);
}
.menu-panel a:last-child{border-bottom:none}

/* ---- レイアウト：四辺に適度な余白（内容幅 約92%@390px） ---- */
.wrap{max-width:1080px; margin:0 auto; padding:20px 16px 48px}
h2.section-title{
  font-size:22px; margin:36px 0 14px; padding-left:12px;
  border-left:6px solid var(--primary); line-height:1.3;
}
h3{font-size:19px}
hr.sep{border:none; border-top:1px solid var(--border); margin:22px 0}

/* ---- ボタン：最小48px（本体56px） ---- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:56px; padding:14px 22px; border-radius:14px;
  font-size:18px; font-weight:800; text-decoration:none; cursor:pointer;
  border:2px solid var(--primary); background:var(--primary); color:#fff;
  width:100%; font-family:inherit;
}
.btn:active{transform:translateY(1px)}
.btn.secondary{background:var(--surface); color:var(--primary-strong)}
.btn.accent{background:var(--accent); border-color:var(--accent); color:#fff}
.btn.ghost{background:var(--surface); color:var(--ink); border-color:var(--border)}
.btn:disabled{background:var(--surface-muted); border-color:var(--border); color:var(--muted); cursor:not-allowed}
.btn-row{display:grid; gap:12px; margin-top:16px}
@media(min-width:640px){ .btn-row.two{grid-template-columns:1fr 1fr} .btn{width:auto} .btn.fill{width:100%} }

/* ---- カード・グリッド ---- */
.grid{display:grid; gap:14px}
@media(min-width:640px){ .grid.two{grid-template-columns:1fr 1fr} .grid.three{grid-template-columns:1fr 1fr 1fr} }
.card{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow);
}
.card h3{margin:0 0 6px}
.card p{margin:4px 0}
.notice{background:var(--primary-soft); border-radius:14px; padding:16px 18px; margin:16px 0}
.notice.warn{background:var(--warn-bg)}
.notice p{margin:4px 0}

/* ---- バッジ ---- */
.badge{
  display:inline-block; font-size:13px; font-weight:700; padding:3px 10px; border-radius:999px;
  background:var(--primary-soft); color:var(--primary-strong); margin:0 6px 4px 0; white-space:nowrap;
}
.badge.today{background:var(--accent); color:#fff}
.badge.tomorrow{background:var(--accent-soft); color:var(--accent)}
html[data-theme="dark"] .badge.tomorrow{color:var(--accent)}
.badge.sample{background:var(--warn-bg); color:var(--danger); border:1px dashed var(--danger)}
.badge.soon{background:var(--surface-muted); color:var(--muted)}
.badge.check{background:var(--surface-muted); color:var(--ink); border:1px solid var(--border)}
.badge.campaign{background:var(--campaign-bg); color:var(--campaign)}

/* ---- ホーム：ヒーロー（定版図） ---- */
.home-hero{display:grid; grid-template-columns:1fr .68fr; gap:14px; align-items:stretch; margin-top:4px}
.home-hero h1{font-size:27px; font-weight:800; margin:2px 0 14px; letter-spacing:.02em}
@media(min-width:860px){ .home-hero{grid-template-columns:1.15fr .85fr} .home-hero h1{font-size:36px} }
.hero-photo{
  border-radius:18px; min-height:190px;
  background:linear-gradient(150deg,#F7DCC0 0%,#F2C49B 52%,#E8A878 100%);
  color:#7A4A22; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:2px; text-align:center; padding:14px; font-weight:800; font-size:15px; line-height:1.5;
  border:1px solid var(--border);
}
.hero-photo span{font-weight:600; font-size:12px; color:#96683C; display:block; white-space:nowrap}
.hero-fields{display:grid; gap:10px}
.hero-fields .btn{min-height:60px; font-size:20px; border-radius:14px}

/* ---- ホーム：分類タイル（大きく・1タップ） ---- */
.cat-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
@media(min-width:860px){ .cat-grid{grid-template-columns:repeat(6,1fr)} }
.cat-tile{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px;
  min-height:118px; padding:14px 6px 12px; text-align:center;
  background:var(--surface); border:1.5px solid var(--border); border-radius:18px;
  box-shadow:var(--shadow); text-decoration:none; color:var(--ink);
}
.cat-tile:active{transform:translateY(1px)}
.cat-tile svg{width:42px; height:42px; color:var(--primary); flex:none}
.cat-tile b{font-size:15.5px; line-height:1.35; font-weight:800}

/* ---- ホーム：人気サービス ---- */
.pop-card{
  display:flex; align-items:center; gap:14px; text-decoration:none; color:var(--ink);
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:12px 14px; min-height:96px;
}
.pop-list{display:grid; gap:12px}
.pop-photo{
  width:118px; height:76px; flex:none; border-radius:12px;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  font-size:11.5px; font-weight:700; line-height:1.45; padding:6px; white-space:nowrap;
  border:1px solid var(--border); color:#7A4A22;
  background:linear-gradient(140deg,#F9E3CB,#F0C9A4);
}
.sample-note{white-space:nowrap}
.pop-photo.rose{background:linear-gradient(140deg,#FBE7E0,#F3CDBD); color:#8C5245}
.pop-photo.sky{background:linear-gradient(140deg,#E7EFEA,#C9DCD2); color:#47695A}
.pop-main{flex:1; min-width:0}
.pop-main .pop-name{font-weight:800; font-size:17.5px; display:block}
.pop-price{text-align:right; flex:none}
.pop-price .amount{font-size:21px; font-weight:800; color:var(--primary-strong); display:block; line-height:1.2}
.pop-price .tax{font-size:12px; color:var(--muted); white-space:nowrap}

/* ---- ホーム：比べる行 ---- */
.compare-row{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.cmp-card{
  background:var(--surface); border:1px solid var(--border); border-radius:14px;
  box-shadow:var(--shadow); padding:12px 10px; text-decoration:none; color:var(--ink);
  display:grid; gap:2px; justify-items:center; text-align:center; min-height:96px; align-content:center;
}
.cmp-card .cmp-name{font-weight:800; font-size:15px; white-space:nowrap}
.cmp-card .cmp-sample{font-size:11px; font-weight:600; color:var(--muted); white-space:nowrap}
.cmp-card .cmp-price{font-weight:800; font-size:18px; color:var(--primary-strong)}
.cmp-card .cmp-meta{font-size:12px; color:var(--muted)}
.cmp-meta .nw{white-space:nowrap}

/* ---- ホーム：流れ・募集バンド ---- */
.flow-grid{display:grid; gap:12px}
@media(min-width:640px){ .flow-grid{grid-template-columns:1fr 1fr 1fr} }
.feature-num{
  display:inline-flex; width:34px; height:34px; border-radius:50%;
  background:var(--primary); color:#fff; font-weight:800; align-items:center; justify-content:center;
  margin-right:8px; flex:none;
}
.join-strip{
  display:flex; gap:14px; align-items:center;
  background:var(--surface-muted); border-radius:var(--radius);
  padding:16px; margin-top:36px;
}
.join-strip .js-photo{
  width:72px; height:72px; flex:none; border-radius:50%;
  background:linear-gradient(140deg,#F9E3CB,#EFB98C);
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  font-size:10.5px; font-weight:700; color:#7A4A22; padding:6px; line-height:1.4; white-space:nowrap;
}
.join-strip .js-main{flex:1; min-width:0}
.join-strip p{margin:2px 0}
.join-strip .btn{width:auto; min-height:52px; padding:10px 18px; font-size:16px; flex:none}
@media(max-width:560px){ .join-strip{flex-wrap:wrap} .join-strip .btn{width:100%} }

/* ---- フッター ---- */
.site-footer{border-top:1px solid var(--border); background:var(--surface); margin-top:40px}
.footer-inner{max-width:1080px; margin:0 auto; padding:24px 16px 32px}
.footer-logo{display:flex; align-items:center; gap:8px; font-weight:800; font-size:19px; margin:0 0 6px}
.footer-logo .logo-mark{width:32px; height:32px; border-radius:9px}
.footer-logo .logo-mark svg{width:19px; height:19px}
.footer-links{display:flex; gap:4px 0; flex-wrap:wrap; align-items:center}
.footer-links a{
  min-height:48px; display:inline-flex; align-items:center; padding:4px 10px;
  color:var(--ink); font-weight:700; text-decoration:none; font-size:15.5px;
}
.footer-links.sub a{color:var(--muted); font-weight:600; font-size:13.5px}
.footer-links .sep-dot{color:var(--border)}

/* ---- ボトムナビ（固定） ---- */
.bottom-nav{
  position:fixed; left:0; right:0; bottom:0; z-index:60;
  background:var(--header-bg); border-top:1px solid var(--border);
  display:grid; grid-template-columns:repeat(4,1fr);
  padding-bottom:env(safe-area-inset-bottom);
}
.bottom-nav a{
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px;
  min-height:62px; padding:6px 2px; text-decoration:none;
  color:var(--muted); font-size:12px; font-weight:700;
}
.bottom-nav a svg{width:24px; height:24px}
.bottom-nav a[aria-current="page"]{color:var(--primary)}

/* ---- フォーム：選ばせる ---- */
label.field{display:block; font-weight:700; margin:18px 0 6px}
select,input[type="text"],input[type="search"],input[type="tel"],input[type="email"],textarea{
  width:100%; font-size:17px; padding:14px; min-height:56px;
  border:1.5px solid var(--border); border-radius:12px; background:var(--surface); color:var(--ink);
  font-family:inherit;
}
textarea{min-height:110px}
.choice-list{display:grid; gap:10px; margin-top:8px}
.choice{
  display:flex; gap:12px; align-items:flex-start; text-align:left; width:100%;
  background:var(--surface); border:2px solid var(--border); border-radius:14px;
  padding:16px; font-size:17px; cursor:pointer; min-height:56px; color:var(--ink); font-family:inherit;
}
.choice[aria-pressed="true"]{border-color:var(--primary); background:var(--primary-soft)}
.choice .choice-title{font-weight:700; display:block}
.slot-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:8px}
@media(min-width:640px){ .slot-grid{grid-template-columns:repeat(5,1fr)} }
.slot{
  min-height:56px; font-size:16.5px; font-weight:700; border-radius:12px; cursor:pointer;
  border:2px solid var(--border); background:var(--surface); color:var(--ink); padding:10px 4px; font-family:inherit;
}
.slot[aria-pressed="true"]{border-color:var(--primary); background:var(--primary); color:#fff}
.steps{display:flex; gap:6px; margin:0 0 18px; padding:0; list-style:none; flex-wrap:wrap}
.steps li{
  flex:1; min-width:70px; text-align:center; font-size:13px; font-weight:700; color:var(--muted);
  border-bottom:4px solid var(--border); padding:8px 2px;
}
.steps li.now{color:var(--primary-strong); border-color:var(--primary)}
.status-big{font-size:22px; font-weight:800; margin:10px 0}
.kv{display:grid; gap:4px}
.kv b{font-weight:700}
table.spec{border-collapse:collapse; width:100%}
table.spec th,table.spec td{border:1px solid var(--border); padding:12px; text-align:left; vertical-align:top; font-size:16px}
table.spec th{background:var(--surface-muted); width:34%}

/* ---- 分類ページ：絞り込みバー ---- */
.filter-bar{
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); padding:6px 18px 14px; margin:14px 0 6px;
}
.filter-bar label.field{margin-top:12px}
.switch-row{
  display:flex; align-items:center; gap:12px; min-height:52px;
  border-top:1px solid var(--border); margin-top:10px; padding-top:6px; cursor:pointer;
}
.switch-row .sw-label{flex:1; font-weight:700}
.switch-row .sw-note{display:block; font-weight:600; font-size:13px; color:var(--muted)}
.switch{position:relative; width:58px; height:48px; flex:none}
.switch input{position:absolute; opacity:0; width:100%; height:100%; margin:0; cursor:pointer}
.switch .track{
  position:absolute; left:0; right:0; top:7px; bottom:7px; border-radius:999px; background:var(--surface-muted);
  border:1.5px solid var(--border); transition:background .15s; pointer-events:none;
}
.switch .track::after{
  content:""; position:absolute; top:3px; left:3px; width:26px; height:26px; border-radius:50%;
  background:#fff; box-shadow:0 1px 4px rgba(0,0,0,.25); transition:left .15s;
}
.switch input:checked + .track{background:var(--accent); border-color:var(--accent)}
.switch input:checked + .track::after{left:29px}
.switch input:focus-visible + .track{outline:2px solid var(--primary); outline-offset:2px}

/* ---- 事業者カード（分類・検索結果 共通） ---- */
.merchant-list{display:grid; gap:14px}
@media(min-width:860px){ .merchant-list{grid-template-columns:1fr 1fr} }
.mcard{
  display:block; text-decoration:none; color:var(--ink);
  background:var(--surface); border:1px solid var(--border); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.mcard-photo{
  position:relative; aspect-ratio:16/7;
  background:linear-gradient(140deg,#F9E3CB,#EFC49C);
  display:flex; align-items:center; justify-content:center;
  color:#7A4A22; font-weight:800; font-size:15px; text-align:center; padding:10px;
}
.mcard-photo.rose{background:linear-gradient(140deg,#FBE7E0,#F0C6B4); color:#8C5245}
.mcard-photo.sky{background:linear-gradient(140deg,#E7EFEA,#C4DACB); color:#47695A}
.mcard-photo.steel{background:linear-gradient(140deg,#E8E4DC,#CFC6B4); color:#5C5546}
.mcard-photo .ph-note{display:block; font-size:11.5px; font-weight:600; color:inherit; opacity:.75}
.mcard-badges{position:absolute; top:10px; left:10px; display:flex; flex-wrap:wrap; gap:4px}
.mcard-badges .badge{margin:0}
.mcard-body{padding:14px 16px 16px}
.mcard-body h3{margin:0 0 2px; font-size:19px}
.mcard-body p{margin:3px 0}
.mcard-price{
  display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:10px;
  background:var(--surface-muted); border-radius:12px; padding:10px 12px;
}
.mcard-price .pp-label{font-size:12.5px; color:var(--muted); font-weight:700; display:block}
.mcard-price .pp-value{font-size:18px; font-weight:800; color:var(--primary-strong)}
.mcard-go{margin-top:10px; font-weight:800; color:var(--primary-strong); text-align:right}

/* ---- 分類ページ：比べる表 ---- */
table.compare{border-collapse:collapse; width:100%; table-layout:fixed; background:var(--surface);
  border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow)}
table.compare th,table.compare td{
  border-bottom:1px solid var(--border); padding:10px 8px; font-size:14.5px; text-align:left; vertical-align:top;
  overflow-wrap:break-word;
}
table.compare thead th{background:var(--primary-soft); font-size:15px}
table.compare th.rowhead{width:21%; background:var(--surface-muted); font-size:13px; color:var(--muted)}
table.compare .c-price{font-weight:800; color:var(--primary-strong); font-size:16.5px}
table.compare tr:last-child th,table.compare tr:last-child td{border-bottom:none}
table.compare td a{display:inline-flex; align-items:center; min-height:48px; padding:6px 2px; font-weight:700}

/* ---- 検索結果（ホーム） ---- */
.search-results{margin-top:8px}
.search-results[hidden]{display:none}

/* ---- レスポンシブ調整：タブレット（iPad）最適化 ----
   700px以上では「スマホ版の引き伸ばし」に見えないよう、文字・タイル・
   カードのスケールを画面幅に合わせて一段大きくし、カードは2列にする。 */
@media(min-width:700px){
  body{font-size:18px}
  .wrap{padding:24px 24px 56px}
  .small{font-size:15px}
  .home-hero{align-items:start}
  .home-hero h1{font-size:33px}
  .hero-photo{min-height:250px}
  h2.section-title{font-size:24px}
  .cat-tile{min-height:148px; gap:10px}
  .cat-tile svg{width:54px; height:54px}
  .cat-tile b{font-size:17.5px}
  .merchant-list{grid-template-columns:1fr 1fr}
  .pop-list{grid-template-columns:1fr 1fr}
  .pop-photo{width:132px; height:88px}
  table.compare th, table.compare td{font-size:15.5px}
  .steps li{font-size:14px}
  .bottom-nav a{font-size:13px; min-height:66px}
  .bottom-nav a svg{width:27px; height:27px}
}
@media(min-width:1100px){
  .cat-tile{min-height:158px}
}

/* ---- 事業者ページ共通 ---- */
.back-link{display:inline-flex; align-items:center; min-height:48px; font-weight:700}
.avail-panel{
  margin-top:20px; background:var(--surface); border:1px solid var(--border);
  border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 20px;
}
.avail-panel p{margin:6px 0}
.trust-row{display:flex; flex-wrap:wrap; gap:4px; margin:8px 0}
