@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Oswald:wght@500;600;700&display=swap');

/* ==========================================================================
   テーマカラー設定
   ==========================================================================
   比較ページ（10選シリーズ）と同じ考え方で、色はここだけで管理しています。

   --bg       … ページ全体の背景色
   --accent   … このページのメインアクセント（見出し番号・ボタンなど）

   --c-fiber   … ファイバーレーザー溶接機ページへのカードの色
   --c-cleaner … レーザークリーナーページへのカードの色
   --c-overlay … レーザー肉盛り溶接機ページへのカードの色
   ※ 各比較ページで実際に使っているアクセントカラーに合わせて変更してください。
   ========================================================================== */
:root{
  --bg: #0D1216;             /* ← ページ背景色 */
  --accent: #00D8E6;         /* ← メインアクセント（ターコイズ） */
  --accent-2: #FF6A1A;       /* 差し色（オレンジ） */

  --c-fiber: #00D8E6;        /* ← 溶接機カード */
  --c-cleaner: #FFB300;      /* ← クリーナーカード */
  --c-overlay: #FF3D7A;      /* ← 肉盛りカード */

  --surface: #141C22;
  --surface-2: #1A242C;
  --line: #26333D;
  --text: #E6EDF2;
  --text-sub: #CCC;
  --text-dark: #333;
  --danger: #d00;
  --paper: #ccc;	
  --radius: 10px;
  --maxw: 1080px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html{ scroll-behavior: smooth; scroll-padding-top: 80px; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
a{ color: inherit; text-decoration: none; }
strong{ color: #fff; font-weight: 700; }
ul, ol{ list-style: none; }

/* ---------- ヘッダー ---------- */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(13,18,22,.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled{ border-bottom-color: var(--line); }
.header-inner{
  max-width: var(--maxw); margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand{ display: flex; flex-direction: column; line-height: 1.3; }
.brand-name{ font-weight: 900; font-size: 17px; }
.brand-sub{ font-family: 'Oswald', sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--accent); }
.header-btn{
  font-size: 13px; font-weight: 700; padding: 8px 16px;
  border: 1px solid var(--accent); color: var(--accent); border-radius: 999px;
  transition: background .2s, color .2s;
}
.header-btn:hover{ background: var(--accent); color: var(--bg); }

/* ---------- パンくず ---------- */
.breadcrumb ol{
  max-width: var(--maxw); margin: 0 auto; padding: 12px 16px;
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-sub);
}
.breadcrumb li + li::before{ content: "›"; margin-right: 6px; }
.breadcrumb a:hover{ color: var(--accent); }

/* ---------- ヒーロー ---------- */
.hero{
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(0,216,230,.14), transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(255,106,26,.08), transparent 60%);
}
.hero::after{ /* レーザービームのライン */
  content: ""; position: absolute; left: 0; right: 0; top: 62%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .35;
}
.hero-inner{ max-width: var(--maxw); margin: 0 auto; padding: 56px 16px 64px; position: relative; z-index: 1; }
.hero-label{
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--accent); border: 1px solid rgba(0,216,230,.4); border-radius: 4px; padding: 3px 10px;
}
.hero h1{ margin-top: 20px; font-size: clamp(26px, 4.6vw, 42px); font-weight: 900; line-height: 1.4; }
.hero-sub{ display: block; margin-top: 8px; font-size: .62em; color: var(--text-sub); font-weight: 700; }
.hero-sub em{
  font-style: normal; font-family: 'Oswald', sans-serif; color: var(--accent);
  font-size: 1.7em; margin: 0 2px; vertical-align: -0.08em;
}
.hero-lead{ margin-top: 24px; max-width: 760px; color: var(--text-sub); font-size: 15px; }
.hero-stats{ margin-top: 32px; display: flex; flex-wrap: wrap; gap: 28px; }
.hero-stats li{ font-size: 13px; color: var(--text-sub); }
.hero-stats strong{
  font-family: 'Oswald', sans-serif; font-size: 34px; color: var(--accent);
  margin-right: 4px; vertical-align: -0.1em;
}

/* ---------- 目次 ---------- */
.toc{
  max-width: var(--maxw); margin: 48px auto 0; padding: 0 16px;
}
.toc > *{ }
.toc-title{
  font-weight: 700; font-size: 14px; color: var(--accent); letter-spacing: .1em;
  padding: 16px 24px 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.toc ol{
  counter-reset: toc; padding: 8px 24px 20px;
  background: var(--surface); border: 1px solid var(--line); border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
}
.toc li{ counter-increment: toc; padding: 6px 0; font-size: 15px; }
.toc li::before{
  content: counter(toc, decimal-leading-zero); font-family: 'Oswald', sans-serif;
  color: var(--accent); margin-right: 12px;
}
.toc a:hover{ color: var(--accent); }

/* ---------- セクション共通 ---------- */
.section{ max-width: var(--maxw); margin: 0 auto; padding: 80px 16px 0; }
.section-title{
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(21px, 3vw, 28px); font-weight: 900; line-height: 1.5;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); position: relative;
}
.section-title::after{
  content: ""; position: absolute; left: 0; bottom: -1px; width: 80px; height: 2px; background: var(--accent);
}
.section-title .num{ font-family: 'Oswald', sans-serif; color: var(--accent); font-size: .9em; }
.section-lead{ margin-top: 20px; color: var(--text-sub); }
.note{ margin-top: 20px; font-size: 13px; color: var(--text-sub); }

/* ---------- 目的別カード ---------- */
.purpose-grid{ margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.purpose-card{
  --c: var(--accent);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--c);
  border-radius: var(--radius); padding: 24px 22px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.purpose-card:hover{ transform: translateY(-4px); border-color: var(--c); box-shadow: 0 10px 30px -12px var(--c); }
.c-fiber{ --c: var(--c-fiber); }
.c-cleaner{ --c: var(--c-cleaner); }
.c-overlay{ --c: var(--c-overlay); }
.purpose-q{ font-size: 13px; color: var(--text-sub); line-height: 1.7; }
.purpose-card h3{ margin-top: 10px; font-size: 20px; font-weight: 900; color: var(--c); }
.purpose-desc{ margin-top: 12px; font-size: 14px; flex: 1; }
.purpose-check{ margin-top: 16px; padding: 12px 14px; background: var(--surface-2); border-radius: 6px; font-size: 13px; }
.purpose-check dt{ font-weight: 700; color: var(--c); font-size: 12px; }
.purpose-check dd{ color: var(--text-sub); line-height: 1.7; }
.purpose-link{
  margin-top: 18px; align-self: flex-start; font-weight: 700; font-size: 14px;
  padding: 10px 18px; border-radius: 999px; background: var(--c); color: var(--bg);
}
.purpose-link::after{ content: " →"; }

/* ---------- 7つのポイント ---------- */
.point-list{ margin-top: 32px; display: grid; gap: 20px; }
.point{
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 26px 28px;
  min-width: 0; /* 表の横幅でカードが画面外に広がらないように */
}
.point-head{ display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.point-num{
  font-family: 'Oswald', sans-serif; font-size: 13px; letter-spacing: .1em;
  color: var(--bg); background: var(--accent); padding: 2px 10px; border-radius: 4px;
}
.point h3{ font-size: 19px; font-weight: 900; }
.point > p{ margin-top: 14px; font-size: 15px; }
.check{ margin-top: 14px; padding: 14px 18px; background: var(--surface-2); border-radius: 6px; }
.check li{ position: relative; padding-left: 26px; font-size: 14px; color: var(--text-sub); }
.check li + li{ margin-top: 4px; }
.check li::before{
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* 見積もり表 */
.table-wrap{ margin-top: 14px; overflow-x: auto; }
.cost-table{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.cost-table th, .cost-table td{ padding: 12px 14px; border: 1px solid var(--line); text-align: left; }
.cost-table thead th{ background: var(--surface-2); color: var(--accent); font-weight: 700; }
.cost-table td:first-child{ white-space: nowrap; font-weight: 700; width: 28%; }
.cost-table td:last-child{ color: var(--text-sub); }

/* ---------- 相談前の整理 ---------- */
.prepare-grid{ margin-top: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.prepare-item{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.prepare-no{ font-family: 'Oswald', sans-serif; font-size: 32px; color: var(--accent); line-height: 1; }
.prepare-item h3{ margin-top: 10px; font-size: 16px; font-weight: 900; line-height: 1.5; }
.prepare-item p{ margin-top: 8px; font-size: 13px; color: var(--text-sub); line-height: 1.8; }

/* ---------- 失敗例 ---------- */
.failure-list{ margin-top: 32px; display: grid; gap: 14px; }
.failure{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.failure-case{ font-weight: 700; font-size: 15px; }
.failure-fix{ margin-top: 8px; font-size: 14px; color: var(--text-sub); }
.tag{
  display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 4px;
  font-family: 'Oswald', sans-serif; font-size: 12px; letter-spacing: .06em;
  background: rgba(255,106,26,.15); color: var(--accent-2); vertical-align: 1px;
}
.tag-ok{ font-family: 'Noto Sans JP', sans-serif; font-weight: 700; background: rgba(0,216,230,.12); color: var(--accent); }

/* ---------- FAQ ---------- */
.faq-list{ margin-top: 32px; display: grid; gap: 12px; }
.faq{ background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary{
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 52px 18px 52px; font-weight: 700; font-size: 15px; line-height: 1.7;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::before{
  content: "Q"; position: absolute; left: 20px; top: 16px;
  font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--accent);
}
.faq summary::after{
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 22px; color: var(--accent); transition: transform .2s;
}
.faq[open] summary::after{ transform: translateY(-50%) rotate(45deg); }
.faq p{ padding: 0 24px 20px 52px; font-size: 14px; color: var(--text-sub); position: relative; }
.faq p::before{
  content: "A"; position: absolute; left: 20px; top: -4px;
  font-family: 'Oswald', sans-serif; font-size: 20px; color: var(--accent-2);
}

/* ---------- まとめリンク ---------- */
.summary-links{ margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.summary-link{
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 20px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--c);
  transition: border-color .2s, background .2s;
}
/* カテゴリごとの色（上の目的別カードと同じ色） */
.summary-link.c-fiber{ --c: var(--c-fiber); }     /* 青：溶接機 */
.summary-link.c-cleaner{ --c: var(--c-cleaner); } /* 黄：クリーナー */
.summary-link.c-overlay{ --c: var(--c-overlay); } /* 赤：肉盛り */

.summary-link:hover{ border-color: var(--c); background: var(--surface-2); }
.summary-cat{ font-size: 12px; font-weight: 700; color: var(--c); }
.summary-name{ font-weight: 700; font-size: 15px; }
.summary-name::after{ content: " →"; color: var(--c); }

/* ---------- CTA ---------- */
.cta{
  max-width: var(--maxw); margin: 96px auto 0; padding: 48px 32px;
  margin-left: 16px; margin-right: 16px;
  border: 1px solid rgba(0,216,230,.35); border-radius: 14px; text-align: center;
  background: radial-gradient(ellipse 70% 100% at 50% 0%, rgba(0,216,230,.12), transparent 70%), var(--surface);
}
@media (min-width: 1112px){ .cta{ margin-left: auto; margin-right: auto; } }
.cta-label{ font-size: 13px; color: var(--accent); font-weight: 700; letter-spacing: .08em; }
.cta h2{ margin-top: 8px; font-size: clamp(20px, 3vw, 26px); font-weight: 900; line-height: 1.5; }
.cta > p{ margin: 16px auto 0; max-width: 720px; font-size: 14px; color: var(--text-sub); text-align: left; }
.cta-form-placeholder{
  margin-top: 2px; padding: 2px 16px; 
  color: var(--text-sub); font-size: 13px;
/*  border: 1px dashed var(--line); border-radius: var(--radius);*/	
}

/* ---------- フッター ---------- */
.site-footer{ margin-top: 80px; padding: 32px 16px; border-top: 1px solid var(--line); text-align: center; }
.footer-note{ font-size: 12px; color: var(--text-sub); }
.copyright{ margin-top: 8px; font-size: 12px; color: var(--text-sub); }

.to-top{
  position: fixed; right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--accent); color: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.is-show{ opacity: 1; pointer-events: auto; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 860px){
  .purpose-grid, .summary-links{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  body{ font-size: 15px; }
  .hero-inner{ padding: 40px 16px 48px; }
  .hero-lead br{ display: none; }
  .section{ padding-top: 64px; }
  .point{ padding: 20px 18px; }
  .toc-title{ padding: 16px 18px 0; }
  .toc ol{ padding: 8px 18px 18px; }
  .cta{ padding: 36px 20px; }
  .faq summary{ padding: 16px 44px 16px 46px; font-size: 14px; }
  .faq summary::before{ left: 16px; }
  .faq p{ padding: 0 18px 18px 46px; }
  .faq p::before{ left: 16px; }
}

/* ---------- cta / contact ---------- */
.cta{  background: linear-gradient(180deg, rgba(0,216,230,0.05), transparent 50%); color:#fff; padding:70px 0; text-align:center;}
.cta h2{font-family:var(--jp); font-weight:900; font-size:clamp(24px,3.4vw,32px); margin-bottom:16px;}
.cta p{color:#fff; font-size:14.5px; max-width:760px; margin:0 auto 32px;}
.cta .btn-primary{background:var(--ink); box-shadow:none;}
.cta .btn-ghost{border-color:rgba(255,255,255,.5);}

/* ---------- contact form (CLIP-MAIL) ---------- */
.contact-form{
  margin:52px auto 0;
  max-width:840px;
  background:#fff;
  color:var(--text-dark);
  border-radius:4px;
  padding:38px 36px 34px;
  text-align:left;
  box-shadow:0 24px 60px -24px rgba(0,0,0,.45);
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px 26px;
}
.form-field-wide{grid-column:1 / -1;}
.form-field label{
  display:flex; align-items:center; gap:9px;
  font-family:var(--display); font-weight:700; letter-spacing:.05em; font-size:13px;
  color:var(--text-dark); margin-bottom:9px; text-transform:uppercase;
}
.req, .opt{
  font-family:var(--jp); font-size:11px; font-weight:700; letter-spacing:.02em;
  padding:2px 8px; border-radius:2px; text-transform:none;
}
.req{background:var(--danger); color:#fff;}
.opt{background:var(--paper); color:var(--text-mid); border:1px solid var(--line);}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:2px;
  font-family:var(--jp);
  font-size:14.5px;
  color:var(--text-dark);
  background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
.form-field select{appearance:auto;}
.form-field textarea{resize:vertical; line-height:1.8;}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{
  outline:none;
  border-color:var(--danger);
  box-shadow:0 0 0 3px rgba(200,30,44,.15);
}
.form-field input::placeholder, .form-field textarea::placeholder{color:#a8adb2;}

.form-submit{margin-top:32px; text-align:center;}
/*.form-submit .btn-primary{box-shadow:0 8px 24px -8px rgba(200,30,44,.5);}*/
.form-note{margin-top:14px; font-size:12px; color:var(--text-mid);}

@media (max-width:700px){
  .form-grid{grid-template-columns:1fr;}
  .contact-form{padding:28px 20px 26px;}
}