/* ============================================================
   BASE9 LP — shared stylesheet  (v2)
   MODE: house / 既存HPカラー哲学に整合（モノクロ＋暖色ニュートラル）
   Palette: 11-inc.com 実値ベース（#000/#fff/#646465/#f5f5f5）を温度調整
   Type   : Open Sans + Noto Sans JP（HP同系）／ロゴ = Archivo Black
   Motion : スクロールリビール + ヒーロー線描 + マーキー（breath）
   ============================================================ */

:root {
  /* --- monochrome system（暖色寄りニュートラル＝HP哲学に若干の変更） --- */
  --ground:    #F6F4F1;   /* 地（GROUND ≥40%・微暖オフホワイト） */
  --white:     #FFFFFF;
  --panel:     #ECEAE5;   /* 交互セクションの淡グレー */
  --ink:       #16181B;   /* 本文・見出し（微クール near-black） */
  --ink-soft:  #4B4D50;
  --gray:      #7C7B78;   /* HP #646465 系 */
  --gray-300:  #BBB9B4;
  --line:      #E1DFDA;
  --accent:    #1B2A4A;   /* 極小アクセント1色のみ（深いインクネイビー） */

  --sans: "Open Sans", "Noto Sans JP", system-ui, sans-serif;
  --logo: "Archivo Black", "Arial Black", "Open Sans", sans-serif;

  --maxw: 1120px;
  --gut: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* eyebrow / overline */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 1rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }

h1, h2, h3 { font-family: var(--sans); font-weight: 800; margin: 0; line-height: 1.18; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(34px, 6.5vw, 60px); font-weight: 800; line-height: 1.12; }
h2 { font-size: clamp(25px, 4vw, 38px); }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 1.1rem; color: var(--ink-soft); }

/* ============ BASE9 公式ロゴ（横組み・透過PNG） ============ */
.b9-logo { height: 34px; width: auto; display: block; }
.site-foot .b9-logo { height: 38px; }
@media (max-width: 520px){ .b9-logo { height: 28px; } }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand-lockup { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.bm-sep { width: 1px; height: 34px; background: var(--line); }
.bm-11 { height: 22px; width: auto; display: block; }
.bm-cap { font-size: 9px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }
.site-foot .bm-sep { background: var(--ink-soft); }

.nav { display: flex; gap: clamp(14px, 3vw, 32px); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 8px 0; position: relative; }
.nav a::after { content:""; position:absolute; left:0; right:100%; bottom:2px; height:1px; background: var(--accent); transition: right .25s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(60px, 13vw, 132px) 0 clamp(44px, 8vw, 84px); position: relative; overflow: hidden; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero .lead { font-size: clamp(16px, 2.1vw, 19px); max-width: 48ch; color: var(--ink-soft); margin-top: 22px; }
.hero-rule { height: 1px; background: var(--ink); width: 0; margin: 30px 0 0; animation: drawline 1.1s .35s cubic-bezier(.2,.7,.2,1) forwards; max-width: 220px; }
@keyframes drawline { to { width: 220px; } }

/* ---------- section ---------- */
section { padding: clamp(46px, 8vw, 92px) 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* info grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.info-grid dl { margin: 0; background: var(--ground); padding: 22px 24px; }
.info-grid dt { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.info-grid dd { margin: 0; font-size: 15px; color: var(--ink); }

/* value cards */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { background: var(--ground); padding: 34px 30px; transition: background .3s ease; }
.value:hover { background: var(--white); }
.value .num { font-family: var(--logo); font-size: 30px; color: var(--ink); line-height: 1; }
.value h3 { margin: 14px 0 8px; }
.value p { margin: 0; font-size: 14.5px; }

/* 相談リスト */
.relist { columns: 2; column-gap: 44px; list-style: none; padding: 0; margin: 26px 0 0; }
.relist li { break-inside: avoid; padding: 13px 0 13px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--ink-soft); font-size: 16px; }
.relist li::before { content: ""; position: absolute; left: 0; top: 22px; width: 12px; height: 1px; background: var(--accent); }
@media (max-width: 560px){ .relist { columns: 1; } }

/* gallery */
/* 施工事例＝メーソンリー段組み（写真は元比率のままフル表示・切れなし） */
.gallery { columns: 3; column-gap: clamp(12px, 2vw, 20px); }
@media (max-width: 900px){ .gallery { columns: 2; } }
.shot { break-inside: avoid; margin: 0 0 clamp(12px, 2vw, 20px); display: block; }
.shot .ph { background: var(--panel); overflow: hidden; line-height: 0; }
.shot .ph img { width:100%; height:auto; display:block; transition: transform .6s ease; }
.shot:hover .ph img { transform: scale(1.03); }
.shot figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 9px; line-height: 1.5; }
.shot .cat { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray); }

/* ---------- showroom + QR ---------- */
.showroom { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.item { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(22,24,27,.45); }
.item-photo { aspect-ratio: 4/5; background:#fff; position: relative; overflow: hidden; padding: 10px; display:grid; place-items:center; font-size: 11px; letter-spacing: .2em; color: var(--gray-300); }
.item-photo img { width:100%; height:100%; object-fit: contain; }   /* 商品が見切れず全体が入る（縦長寄り4:5枠） */
/* 選べるカラー（写真左下） */
.swatches { position:absolute; left:8px; bottom:8px; display:flex; align-items:center; gap:4px;
  background:rgba(255,255,255,.86); backdrop-filter:blur(2px); border:1px solid var(--line);
  padding:4px 8px; border-radius:999px; }
.swatches .lbl { font-size:8px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-soft); margin-right:1px; }
.swatches .dot { width:11px; height:11px; border-radius:50%; border:1px solid rgba(0,0,0,.2); }
.swatches .more { font-size:9px; font-weight:700; color:var(--gray); }
.item-tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 600; letter-spacing: .12em; padding: 4px 9px; }
.item-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.item-maker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.item-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.item-spec { font-size: 13px; color: var(--gray); margin: 2px 0 0; }
.item-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.item-price { font-size: 18px; font-weight: 800; color: var(--ink); }
.item-price small { font-size: 10px; font-weight: 600; color: var(--gray); letter-spacing:.06em; }
.qr { width: 76px; height: 76px; flex: none; background: var(--white); border: 1px solid var(--line); padding: 5px; display: grid; place-items: center; }
.qr canvas, .qr img { width: 100% !important; height: 100% !important; }
.qr-hint { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--accent); text-align: center; margin-top: 5px; text-transform: uppercase; }

/* note banner */
.proto-note { background: var(--panel); border-left: 2px solid var(--accent); color: var(--ink-soft); font-size: 12px; letter-spacing:.02em; padding: 11px 16px; margin: 18px 0 0; }
.proto-note code { font-family: ui-monospace, monospace; font-size: 11px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 4px; display: flex; gap: 14px; align-items: baseline; font-size: 18px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; font-size: 12px; color: var(--accent); letter-spacing: .1em; font-weight: 800; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gray); }
.faq details[open] summary::after { content: "–"; }
.faq .ans { padding: 0 4px 24px 30px; color: var(--ink-soft); font-size: 15px; }

/* contact form */
.form { display: grid; gap: 18px; max-width: 560px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.field label .req { color: var(--accent); }
.field input, .field textarea { font-family: var(--sans); font-size: 16px; padding: 13px 15px; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 2px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-alt { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.contact-alt a { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--ink); border: 1px solid var(--line); padding: 11px 18px; border-radius: 999px; transition: border-color .2s, color .2s; }
.contact-alt a:hover { border-color: var(--accent); color: var(--accent); }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); text-align: center; padding: clamp(48px,8vw,80px) 0; }
.cta-band h2 { color: var(--white); }
.cta-band .eyebrow { color: var(--gray-300); }
.cta-band .eyebrow::before { background: var(--white); }
.cta-band .btn { background: var(--white); color: var(--ink); border-color: var(--white); margin-top: 20px; }
.cta-band .btn:hover { background: transparent; color: var(--white); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--white); text-decoration: none; padding: 15px 30px; border: 1px solid var(--ink); transition: background .22s, color .22s; cursor: pointer; }
.btn::after { content: "→"; transition: transform .22s; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:hover::after { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); }
.btn.accent { background: var(--ink); border-color: var(--ink); }

/* map */
.map { aspect-ratio: 16/9; background: var(--panel); border: 1px solid var(--line); display:grid; place-items:center; font-size:12px; letter-spacing:.2em; color: var(--gray); }

/* ---------- 展示ブランド・ロゴ列 / ブランド別ブロック ---------- */
.brandlogos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(36px, 6vw, 84px); padding: 16px 0; }
.brandlogos img { height: 64px; width: auto; opacity: .85; }
/* 約2倍化＋ロゴ形状に応じて光学的にバランス調整 */
.brandlogos img[src*="kns-logo"]     { height: 90px; }  /* 3行：大きめ */
.brandlogos img[src*="bvf-logo"]     { height: 82px; }  /* 3行スタック：大きめ */
.brandlogos img[src*="brandlogo-2"]  { height: 54px; }  /* ADAL：横長＝低め */
.brandlogos img[src*="brandlogo-3"]  { height: 54px; }  /* HAY：横長＝低め */
.brand-word { font-family: var(--sans); font-weight: 800; font-size: 28px; letter-spacing: .01em; color: var(--ink); opacity: .85; }

.brand-block { margin-top: 56px; }
.brand-block:first-of-type { margin-top: 0; }
.brand-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.brand-head .brand-logo { height: 40px; width: auto; }
.brand-desc { max-width: 74ch; font-size: 14px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 28px; }
.brand-head .brand-word { font-size: 22px; }
.brand-en { font-size: 12px; color: var(--gray); letter-spacing: .04em; }
.brand-count { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }

/* ---------- brand marquee（動き） ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee ul { display: flex; gap: 56px; list-style: none; margin: 0; padding: 0; width: max-content; animation: scrollx 60s linear infinite; }
.marquee.rev ul { animation-duration: 78s; }   /* 雑貨は項目数が多いので少し長め＝同じ速度感 */
.marquee li { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: .02em; color: var(--ink); white-space: nowrap; opacity: .85; }
.marquee:hover ul { animation-play-state: paused; }
.marquee.rev ul { animation-direction: reverse; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* 取扱ブランド：家具/雑貨の2行スクロール */
.brand-row { margin-bottom: 18px; }
.brand-row-label { display:inline-block; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.brand-row-label::before { content:"— "; color: var(--accent); }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--ground); padding: 60px 0 42px; margin-top: 0; }
.site-foot a { color: var(--ground); text-decoration: none; opacity: .82; }
.site-foot a:hover { opacity: 1; }
.foot-grid { display:flex; flex-wrap:wrap; justify-content:space-between; gap:30px; }
.site-foot .nav a { color: var(--ground); }
.site-foot .nav a::after { background: var(--white); }
.foot-fine { font-size: 11px; letter-spacing:.08em; color: var(--gray-300); margin-top: 38px; }

/* layout helpers */
.cols { display:grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,4vw,56px); align-items:center; }
@media (max-width: 720px){ .cols { grid-template-columns: 1fr; } .nav { display:none; } }
.tag-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.chip { font-size:11px; font-weight:600; letter-spacing:.08em; color: var(--ink-soft); border:1px solid var(--line); padding:6px 13px; border-radius:999px; }

/* ---------- scroll reveal（動き） ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ============ スマホ最適化 ============ */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .site-head .wrap { height: 58px; }
  .b9-logo { height: 28px; }
  .bm-11 { height: 17px; }
  .bm-sep { height: 26px; }
  section { padding: 40px 0; }
  .hero { padding: 44px 0 34px; }
  .section-head { margin-bottom: 24px; gap: 10px; }

  /* 商品グリッド：スマホは2列のショップ風 */
  .showroom { grid-template-columns: 1fr 1fr; gap: 12px; }
  .item-body { padding: 13px 12px 15px; }
  .item-name { font-size: 15px; }
  .item-maker { font-size: 10px; }
  .item-price { font-size: 15px; }
  .swatches { left: 6px; bottom: 6px; padding: 3px 6px; gap: 3px; }
  .swatches .lbl { display: none; }       /* 狭幅は色ドットのみ */
  .swatches .dot { width: 9px; height: 9px; }

  /* 事例ギャラリーは1段で大きく */
  .gallery { columns: 1; }

  /* 展示ブランドロゴ：スマホ用に縮小 */
  .brandlogos { gap: 26px; padding: 8px 0; }
  .brandlogos img { height: 46px; }
  .brandlogos img[src*="kns-logo"] { height: 60px; }
  .brandlogos img[src*="bvf-logo"] { height: 54px; }
  .brandlogos img[src*="brandlogo-2"], .brandlogos img[src*="brandlogo-3"] { height: 38px; }
  .brand-block { margin-top: 40px; }
  .brand-head .brand-logo { height: 32px; }
  .brand-en { font-size: 11px; }
  .brand-desc { font-size: 13.5px; }

  .marquee li { font-size: 18px; }
  .relist li { font-size: 15px; }
  .contact-alt { flex-direction: column; align-items: stretch; }
  .contact-alt a { justify-content: center; }
  .btn { padding: 14px 24px; }
}

@media (max-width: 380px) {
  .showroom { grid-template-columns: 1fr; }   /* 極小幅は1列に */
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero-rule { animation: none; width: 220px; }
  .marquee ul { animation: none; }
  * { scroll-behavior: auto !important; }
}
