@charset "UTF-8";
/* =========================================================
   TOP（index.html）
   ========================================================= */
.hero{position:relative;background:#cfcfcf;padding:clamp(56px,9vw,110px) 0;text-align:center;aspect-ratio:16 / 9;display:flex;align-items:center}
/* メイン画像（PC 16:9／SP 1:1。<picture>で切替） */
.heroBg,.heroBg img{position:absolute;inset:0;width:100%;height:100%}
.heroBg img{object-fit:cover}
.hero::before{content:"";position:absolute;inset:0;background:rgba(7,17,31,.6);z-index:1}/* 写真の明暗に関係なく白文字が読めるよう濃紺のオーバーレイ */
.hero .inner{position:relative;z-index:2;width:100%}
.hero .phLabel{position:absolute;top:8px;left:8px;font-size:12px;color:#fff;z-index:2}
.hero .badge{display:inline-block;background:#fff;border:1px solid #999;font-size:12px;padding:2px 12px}
.hero h1{font-size:clamp(24px,4vw,44px);line-height:1.35;margin:14px 0 10px;color:#fff}
.hero .lead{color:#fff}
.hero .kari{color:#fff;border-color:#ccc}
.heroLinks a{color:#fff}
.heroSearch{display:flex;max-width:620px;margin:24px auto 0;background:#fff;border:1px solid #999}
.heroSearch input{flex:1;border:0;padding:0 16px;height:56px;font:inherit;min-width:0}
.heroSearch button{border:0;background:#333;color:#fff;padding:0 22px;font:inherit;font-weight:700}
.heroLinks{margin-top:12px;font-size:13px;display:flex;flex-wrap:wrap;justify-content:center;gap:6px 16px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;max-width:720px;margin:32px auto 0}
.stats b{display:block;font-size:clamp(22px,3vw,32px);line-height:1.2}
.stats b{color:#fff}
.stats span{font-size:12px;color:#fff}

/* メーカーロゴ：左へ流れてループ */
.makerStrip{overflow:hidden;padding:20px 0}
.makerTrack{display:flex;width:max-content;animation:makerLoop 30s linear infinite}
.makerStrip:hover .makerTrack{animation-play-state:paused}
.makerLogos{display:flex;gap:24px;padding-right:24px}
.makerLogos li{flex:none;width:clamp(110px,12vw,160px)}
.makerLogos img{width:100%;height:auto}
@keyframes makerLoop{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.makerTrack{animation:none}}

/* 目的から探す：PC4列（アイコン→目的→説明）／SP2×2 */
.needs{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.needs a{display:flex;flex-direction:column;align-items:center;text-align:center;border:1px solid #ccc;padding:clamp(18px,2.4vw,28px) clamp(12px,1.6vw,20px);text-decoration:none;background:#fff}
.needs i{font-size:clamp(28px,3vw,36px);color:#268ad5;margin-bottom:12px}
.needs h3{font-size:clamp(15px,1.6vw,18px);line-height:1.4}
.needs p{color:#555;font-size:13px;margin-top:6px;text-align:left}

/* メーカーから探す */
.makers{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#ccc;border:1px solid #ccc}
.makers a{background:#fff;padding:18px 16px;text-decoration:none;display:flex;justify-content:space-between;align-items:center}
.makers b{font-size:15px}
.makers span{font-size:12px;color:#666}

/* 条件から探す */
.conds{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.conds h3{font-size:14px;margin-bottom:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a{border:1px solid #bbb;padding:6px 14px;text-decoration:none;font-size:13px;background:#fff}

/* タブ */
.tabs{display:flex;justify-content:center;gap:8px;margin-bottom:24px}
.tabs span{border:1px solid #999;padding:6px 18px;font-size:13px;background:#fff}
.tabs span.on{background:#333;color:#fff;border-color:#333}

/* 機種カード */
.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.card{border:1px solid #ccc;background:#fff;text-decoration:none;display:block}
.card .ph{height:150px}
.card .body{padding:14px}
.card .tags{display:flex;flex-wrap:wrap;gap:4px;margin-bottom:8px}
.card .maker{font-size:12px;color:#666}
.card h3{font-size:14px;line-height:1.5}
.card dl{display:grid;grid-template-columns:auto 1fr;gap:2px 10px;font-size:12px;margin-top:10px;color:#555}
.card .price{margin-top:10px;font-size:13px;border-top:1px solid #eee;padding-top:8px}
.card .price b{font-size:16px}

/* エラー辞典 */
.errWrap{display:grid;grid-template-columns:1fr 1fr;gap:32px}
.errWrap h3{font-size:15px;margin-bottom:12px}
.linkList{border-top:1px solid #ccc}
.linkList a{display:flex;justify-content:space-between;align-items:center;padding:14px 4px;border-bottom:1px solid #ccc;text-decoration:none}
.linkList small{font-size:12px;color:#666}

/* 回線 */
.lineWrap{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.lineMap img{width:100%;height:auto}/* line.jpg 1枚でPC/SP共通 */
.lineList li{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid #ddd}
.lineList i{font-size:20px;color:#268ad5;width:28px;text-align:center;padding-top:4px}
.lineList h3{font-size:15px}
.lineList p{font-size:13px;color:#555}

/* 選ばれる理由：番号付きの横並びリスト */
.reasons{display:grid;gap:0;border-top:1px solid #ccc}
.reasons li{display:grid;grid-template-columns:80px 1fr 240px;gap:24px;align-items:center;padding:24px 0;border-bottom:1px solid #ccc}
.reasons .num{font-size:32px;font-weight:700;color:#999}
.reasons h3{font-size:17px}
.reasons p{color:#555;font-size:13px;margin-top:4px}
.reasons .ph{height:120px}

/* 対応エリア */
.areaWrap{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center}
.areaMap img{width:100%;height:auto}/* service-area.jpg 1枚でPC/SP共通 */
.areaList{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.areaList a{border:1px solid #bbb;padding:14px;text-decoration:none;display:flex;justify-content:space-between;background:#fff}

/* 流れ */
.flow{display:grid;grid-template-columns:repeat(4,1fr);gap:0;counter-reset:f}
.flow li{border:1px solid #ccc;margin-left:-1px;padding:20px 16px;background:#fff;counter-increment:f}
.flow li::before{content:"STEP " counter(f);display:block;font-size:12px;color:#666}
.flow h3{font-size:15px;margin:4px 0}
.flow p{font-size:13px;color:#555}

/* FAQ */
.faq{max-width:860px;margin:0 auto;border-top:1px solid #ccc}
.faq details{border-bottom:1px solid #ccc}
.faq summary{padding:16px 36px 16px 4px;cursor:pointer;font-weight:700;list-style:none;position:relative}
.faq summary::after{content:"+";position:absolute;right:8px;top:14px;font-size:18px}
.faq details[open] summary::after{content:"−"}
.faq details p{padding:0 4px 16px;color:#555}

/* 記事・ニュース */
.posts{display:grid;grid-template-columns:2fr 1fr;gap:32px}
.posts h3{font-size:15px;margin-bottom:12px}
.postList a{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid #ddd;text-decoration:none}
.postList .ph{height:80px}
.postList time{font-size:12px;color:#666}
.postList b{display:block;font-size:14px;line-height:1.5}
.newsList a{display:block;padding:12px 0;border-bottom:1px solid #ddd;text-decoration:none;font-size:13px}

/* ---------- TOP：レスポンシブ ---------- */
@media (max-width:1024px){
  .cards{grid-template-columns:repeat(3,1fr)}
  .makers{grid-template-columns:repeat(3,1fr)}
}

@media (max-width:767px){
  .hero{aspect-ratio:1 / 1}
  .stats{grid-template-columns:repeat(2,1fr)}
  .needs{grid-template-columns:repeat(2,1fr);gap:10px}
  .needs p{font-size:12px}
  .makers{grid-template-columns:repeat(2,1fr)}
  .conds{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr);gap:10px}
  .card .ph{height:110px}
  .errWrap,.lineWrap,.areaWrap,.posts{grid-template-columns:1fr}
  .reasons li{grid-template-columns:48px 1fr;gap:12px}
  .reasons .ph{grid-column:1 / 3;height:140px}
  .reasons .num{font-size:24px}
  .flow{grid-template-columns:1fr}
  .flow li{margin-left:0;margin-top:-1px}
}
