/* ============================================================
   アスザック 雨センサ 分野別PRページ 共通スタイル
   asuzac-rain-sensor.css
   AKI-1801 / AKI-1802 / AKI-1805
   ※ WordPress固定ページのカスタムHTMLブロックで使用する前提
   ※ 既存テーマと干渉しないよう全セレクタを .asz- で名前空間化
   ============================================================ */

/* ---- フォント ---- */
@import url('https://fonts.googleapis.com/css2?family=Zen+Kaku+Gothic+New:wght@400;500;700;900&family=Shippori+Mincho:wght@600;800&display=swap');

/* ---- ルート変数（分野ごとに data-theme で上書き）---- */
.asz-page {
  --asz-ink: #1a2127;
  --asz-sub: #51606b;
  --asz-line: #dfe5e9;
  --asz-bg: #ffffff;
  --asz-soft: #f4f7f9;
  --asz-accent: #0a7d6b;
  --asz-accent-d: #065849;
  --asz-accent-soft: #e3f3ef;
  --asz-warn: #d98324;
  --asz-radius: 14px;
  --asz-shadow: 0 8px 30px rgba(20,40,50,.08);
  --asz-maxw: 1080px;

  font-family: 'Zen Kaku Gothic New', system-ui, sans-serif;
  color: var(--asz-ink);
  line-height: 1.85;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
.asz-page *,
.asz-page *::before,
.asz-page *::after { box-sizing: border-box; }

/* ---- 分野別テーマ ---- */
.asz-page[data-theme="agri"]   { --asz-accent:#3a8a2e; --asz-accent-d:#256118; --asz-accent-soft:#e8f4e3; }
.asz-page[data-theme="build"]  { --asz-accent:#2c6e9b; --asz-accent-d:#1d4d6e; --asz-accent-soft:#e2eef6; }
.asz-page[data-theme="weather"]{ --asz-accent:#4a5bb5; --asz-accent-d:#323e85; --asz-accent-soft:#e7e9f7; }
.asz-page[data-theme="infra"]  { --asz-accent:#a8521e; --asz-accent-d:#7a3a12; --asz-accent-soft:#f6e8df; }
.asz-page[data-theme="plant"]  { --asz-accent:#0a7d6b; --asz-accent-d:#065849; --asz-accent-soft:#e0f1ed; }

/* ---- ラッパ ---- */
.asz-page { background: var(--asz-bg); }
.asz-wrap { max-width: var(--asz-maxw); margin: 0 auto; padding: 0 22px; }

/* ---- ヒーロー ---- */
.asz-hero {
  position: relative;
  padding: 70px 22px 64px;
  background:
    radial-gradient(120% 90% at 85% 0%, var(--asz-accent-soft) 0%, transparent 60%),
    linear-gradient(180deg, var(--asz-soft) 0%, var(--asz-bg) 100%);
  border-bottom: 1px solid var(--asz-line);
  overflow: hidden;
}
.asz-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--asz-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--asz-line) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .25; pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 10%, #000, transparent 75%);
          mask-image: radial-gradient(80% 70% at 70% 10%, #000, transparent 75%);
}
.asz-hero-inner { position: relative; max-width: var(--asz-maxw); margin: 0 auto; }
.asz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  color: var(--asz-accent-d);
  background: var(--asz-bg);
  border: 1px solid var(--asz-accent);
  padding: 7px 15px; border-radius: 100px;
  margin-bottom: 22px;
}
.asz-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--asz-accent); box-shadow: 0 0 0 4px var(--asz-accent-soft);
}
.asz-hero h1 {
  font-family: 'Shippori Mincho', serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.3; margin: 0 0 18px; letter-spacing: .01em;
}
.asz-hero h1 .asz-mark {
  background: linear-gradient(transparent 62%, var(--asz-accent-soft) 62%);
  padding: 0 .1em;
}
.asz-lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--asz-sub); max-width: 720px; margin: 0 0 28px;
}
.asz-hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.asz-chip {
  font-size: 13px; font-weight: 500;
  background: var(--asz-bg); border: 1px solid var(--asz-line);
  border-radius: 8px; padding: 6px 13px; color: var(--asz-ink);
}
.asz-chip strong { color: var(--asz-accent-d); font-weight: 700; }

/* ---- セクション共通 ---- */
.asz-sec { padding: 58px 0; }
.asz-sec + .asz-sec { border-top: 1px solid var(--asz-line); }
.asz-sec-head { margin-bottom: 34px; }
.asz-sec-head .asz-no {
  font-family: 'Shippori Mincho', serif;
  font-size: 13px; font-weight: 800; letter-spacing: .2em;
  color: var(--asz-accent); display: block; margin-bottom: 8px;
}
.asz-sec-head h2 {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(22px, 3.4vw, 32px); font-weight: 800;
  margin: 0; line-height: 1.35;
}
.asz-sec-head p { color: var(--asz-sub); margin: 12px 0 0; max-width: 760px; }

/* ---- 課題→解決 ---- */
.asz-pain {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border: 1px solid var(--asz-line); border-radius: var(--asz-radius);
  overflow: hidden; box-shadow: var(--asz-shadow);
}
.asz-pain > div { padding: 30px 28px; }
.asz-pain-q { background: #fbf6ef; border-right: 1px solid var(--asz-line); }
.asz-pain-a { background: var(--asz-accent-soft); }
.asz-pain h3 {
  font-size: 14px; font-weight: 700; margin: 0 0 16px;
  display: flex; align-items: center; gap: 9px;
}
.asz-pain-q h3 { color: var(--asz-warn); }
.asz-pain-a h3 { color: var(--asz-accent-d); }
.asz-pain h3 .asz-tag {
  font-size: 11px; letter-spacing: .1em; border: 1px solid currentColor;
  border-radius: 5px; padding: 2px 7px;
}
.asz-pain ul { margin: 0; padding-left: 1.1em; }
.asz-pain li { margin-bottom: 10px; font-size: 14.5px; }
.asz-pain li:last-child { margin-bottom: 0; }

/* ---- 特長カード ---- */
.asz-feat {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.asz-card {
  background: var(--asz-bg); border: 1px solid var(--asz-line);
  border-radius: var(--asz-radius); padding: 24px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.asz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--asz-shadow); border-color: var(--asz-accent);
}
.asz-card .asz-ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--asz-accent-soft); color: var(--asz-accent-d);
  display: grid; place-items: center; margin-bottom: 15px;
}
.asz-card .asz-ico svg { width: 24px; height: 24px; }
.asz-card h3 { font-size: 16.5px; margin: 0 0 8px; font-weight: 700; }
.asz-card p { font-size: 14px; color: var(--asz-sub); margin: 0; }

/* ---- 活用シーン（画像つき）---- */
.asz-uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.asz-use {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--asz-soft); border: 1px solid var(--asz-line);
  border-radius: var(--asz-radius); padding: 18px; overflow: hidden;
}
.asz-use img {
  width: 110px; height: 110px; object-fit: cover; border-radius: 10px;
  flex-shrink: 0; background: #e5ebef;
}
.asz-use-body h3 { font-size: 16px; margin: 2px 0 7px; }
.asz-use-body p { font-size: 13.5px; color: var(--asz-sub); margin: 0; }

/* ---- 仕様テーブル ---- */
.asz-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.asz-spec-box {
  border: 1px solid var(--asz-line); border-radius: var(--asz-radius);
  overflow: hidden;
}
.asz-spec-box h3 {
  margin: 0; font-size: 14px; font-weight: 700; color: #fff;
  background: var(--asz-accent-d); padding: 13px 18px;
  letter-spacing: .04em;
}
.asz-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.asz-table th, .asz-table td {
  text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--asz-line);
  vertical-align: top;
}
.asz-table th {
  background: var(--asz-soft); color: var(--asz-sub); font-weight: 700;
  width: 46%; white-space: nowrap;
}
.asz-table tr:last-child th, .asz-table tr:last-child td { border-bottom: none; }

/* ---- 製品比較 ---- */
.asz-models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.asz-model {
  border: 1.5px solid var(--asz-line); border-radius: var(--asz-radius);
  padding: 22px 20px; background: var(--asz-bg); position: relative;
}
.asz-model.is-pick { border-color: var(--asz-accent); }
.asz-model .asz-rec {
  position: absolute; top: -11px; left: 20px;
  background: var(--asz-accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; padding: 4px 11px; border-radius: 6px;
}
.asz-model .asz-mname {
  font-family: 'Shippori Mincho', serif; font-size: 20px; font-weight: 800;
  margin: 0 0 4px;
}
.asz-model .asz-mtype { font-size: 12.5px; color: var(--asz-accent-d); font-weight: 700; margin: 0 0 14px; }
.asz-model ul { margin: 0; padding-left: 1.1em; }
.asz-model li { font-size: 13px; color: var(--asz-sub); margin-bottom: 7px; }

/* ---- CTA ---- */
.asz-cta {
  background:
    radial-gradient(100% 120% at 0% 0%, var(--asz-accent-d) 0%, var(--asz-accent) 55%, var(--asz-accent-d) 100%);
  color: #fff; border-radius: 18px; padding: 46px 38px;
  text-align: center; position: relative; overflow: hidden;
}
.asz-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1.4px, transparent 1.4px);
  background-size: 18px 18px; opacity: .4;
}
.asz-cta-inner { position: relative; }
.asz-cta h2 {
  font-family: 'Shippori Mincho', serif; font-size: clamp(22px, 3.5vw, 30px);
  margin: 0 0 12px; font-weight: 800;
}
.asz-cta p { margin: 0 auto 26px; max-width: 560px; opacity: .94; font-size: 15px; }
.asz-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.asz-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 14px 28px; border-radius: 100px; transition: transform .2s, box-shadow .2s;
}
.asz-btn-main { background: #fff; color: var(--asz-accent-d); }
.asz-btn-main:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.asz-btn-line { border: 1.6px solid rgba(255,255,255,.7); color: #fff; }
.asz-btn-line:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.asz-tel { margin-top: 22px; font-size: 14px; opacity: .92; }
.asz-tel strong { font-size: 22px; font-family: 'Shippori Mincho', serif; letter-spacing: .02em; }

/* ---- フッター注記 ---- */
.asz-note {
  font-size: 12px; color: var(--asz-sub); line-height: 1.8;
  border: 1px dashed var(--asz-line); border-radius: 12px;
  padding: 18px 20px; background: var(--asz-soft); margin-top: 30px;
}
.asz-note strong { color: var(--asz-ink); }

/* ---- 大型リンクカード（製品詳細・カタログ等）---- */
.asz-linkcards {
  display: flex; flex-direction: column; gap: 12px; margin-top: 6px;
}
.asz-linkcard {
  display: flex; align-items: center; gap: 20px;
  text-decoration: none; color: var(--asz-ink);
  background: var(--asz-bg); border: 2px solid var(--asz-line);
  border-radius: var(--asz-radius); padding: 20px 26px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  position: relative; overflow: hidden;
}
.asz-linkcard::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px;
  background: var(--asz-accent); transform: scaleY(0); transform-origin: center;
  transition: transform .22s ease;
}
.asz-linkcard:hover {
  transform: translateX(4px);
  border-color: var(--asz-accent);
  background: var(--asz-accent-soft);
  box-shadow: var(--asz-shadow);
}
.asz-linkcard:hover::after { transform: scaleY(1); }
.asz-linkcard .asz-lc-ico {
  width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px;
  background: var(--asz-accent-soft); color: var(--asz-accent-d);
  display: grid; place-items: center;
  transition: background .22s ease, color .22s ease;
}
.asz-linkcard:hover .asz-lc-ico { background: var(--asz-accent); color: #fff; }
.asz-linkcard .asz-lc-ico svg { width: 28px; height: 28px; }
.asz-lc-body { flex: 1 1 auto; min-width: 0; }
.asz-lc-body .asz-lc-title {
  display: block;
  font-size: 17px; font-weight: 700; margin: 0 0 4px; line-height: 1.45;
}
.asz-lc-body .asz-lc-title .asz-lc-pdf {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: #fff; background: var(--asz-warn); border-radius: 4px; padding: 2px 7px;
}
.asz-lc-body .asz-lc-desc { font-size: 13.5px; color: var(--asz-sub); margin: 0; line-height: 1.6; }
.asz-lc-arrow {
  flex: 0 0 auto; color: var(--asz-accent); transition: transform .22s ease;
}
.asz-linkcard:hover .asz-lc-arrow { transform: translateX(5px); }
.asz-lc-arrow svg { width: 24px; height: 24px; display: block; }

/* リンクカード群の見出し（おしゃれ版） */
.asz-linkcards-head {
  text-align: center; margin: 46px 0 30px;
}
.asz-linkcards-head .asz-lh-sub {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .22em;
  color: var(--asz-accent); margin-bottom: 12px; text-transform: uppercase;
}
.asz-linkcards-head .asz-lh-sub::before,
.asz-linkcards-head .asz-lh-sub::after {
  content: ""; width: 28px; height: 1.5px; background: var(--asz-accent); opacity: .5;
}
.asz-linkcards-head .asz-lh-title {
  display: block; position: relative;
  font-family: 'Shippori Mincho', serif; font-size: clamp(20px, 3vw, 26px);
  font-weight: 800; line-height: 1.4; margin: 0;
}
.asz-linkcards-head .asz-lh-title .asz-lh-em {
  background: linear-gradient(transparent 60%, var(--asz-accent-soft) 60%);
  padding: 0 .12em;
}
/* 見出し下の小さな菱形アクセント */
.asz-linkcards-head .asz-lh-title::after {
  content: ""; display: block; width: 9px; height: 9px; margin: 16px auto 0;
  background: var(--asz-accent); transform: rotate(45deg);
  box-shadow: -16px 0 0 -2.5px var(--asz-accent), 16px 0 0 -2.5px var(--asz-accent);
}

/* ---- 上部クイックリンク（ヒーロー直下）---- */
.asz-quicklinks {
  background:
    linear-gradient(180deg, var(--asz-soft) 0%, var(--asz-bg) 100%);
  border-bottom: 1px solid var(--asz-line);
  padding: 18px 22px;
  position: relative;
}
.asz-quicklinks::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--asz-accent), var(--asz-accent-d));
}
.asz-quicklinks-inner {
  max-width: var(--asz-maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.asz-ql-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 800; color: var(--asz-accent-d);
  letter-spacing: .08em; margin-right: 6px; white-space: nowrap;
}
.asz-ql-label::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--asz-accent); box-shadow: 0 0 0 3px var(--asz-accent-soft);
}
.asz-ql {
  display: inline-flex; align-items: center; gap: 9px; line-height: 1;
  text-decoration: none; font-size: 13.5px; font-weight: 700;
  color: var(--asz-ink); background: var(--asz-bg);
  border: 1.5px solid var(--asz-line); border-radius: 100px;
  padding: 8px 18px 8px 9px;
  box-shadow: 0 1px 2px rgba(20,40,50,.04);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.asz-ql:hover {
  border-color: var(--asz-accent); transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20,40,50,.1);
}
/* ボタン内アイコンを円バッジ化 */
.asz-ql svg {
  width: 17px; height: 17px; flex-shrink: 0; display: block;
  padding: 6px; box-sizing: content-box; border-radius: 50%;
  background: var(--asz-accent-soft); color: var(--asz-accent-d);
  transition: background .2s ease, color .2s ease;
}
.asz-ql:hover svg { background: var(--asz-accent); color: #fff; }
/* 注文ボタンは塗りで強調 */
.asz-ql.asz-ql-cta {
  color: #fff; border-color: var(--asz-accent);
  background: linear-gradient(180deg, var(--asz-accent) 0%, var(--asz-accent-d) 100%);
  box-shadow: 0 3px 10px -2px var(--asz-accent);
}
.asz-ql.asz-ql-cta svg { background: rgba(255,255,255,.22); color: #fff; }
.asz-ql.asz-ql-cta:hover {
  border-color: var(--asz-accent-d); box-shadow: 0 7px 18px -3px var(--asz-accent);
}
.asz-ql.asz-ql-cta:hover svg { background: rgba(255,255,255,.3); color: #fff; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .asz-feat { grid-template-columns: 1fr 1fr; }
  .asz-models { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .asz-pain { grid-template-columns: 1fr; }
  .asz-pain-q { border-right: none; border-bottom: 1px solid var(--asz-line); }
  .asz-feat { grid-template-columns: 1fr; }
  .asz-uses { grid-template-columns: 1fr; }
  .asz-spec { grid-template-columns: 1fr; }
  .asz-linkcards { gap: 11px; }
  .asz-use img { width: 84px; height: 84px; }
  .asz-sec { padding: 44px 0; }
  .asz-hero { padding: 50px 22px 46px; }
  .asz-linkcard { padding: 16px 18px; gap: 15px; align-items: center; }
  .asz-linkcard .asz-lc-ico { width: 46px; height: 46px; border-radius: 12px; }
  .asz-linkcard .asz-lc-ico svg { width: 23px; height: 23px; }
  .asz-lc-body .asz-lc-title { font-size: 15.5px; margin-bottom: 3px; }
  .asz-lc-body .asz-lc-desc { font-size: 12.5px; line-height: 1.55; }
  .asz-lc-arrow svg { width: 20px; height: 20px; }
  .asz-linkcard::after { width: 5px; }
  /* 上部クイックリンク：スマホでは横スクロールせず折り返し */
  .asz-quicklinks { padding: 15px 18px; }
  .asz-ql-label { width: 100%; margin-bottom: 4px; margin-right: 0; }
  .asz-ql { font-size: 13px; padding: 7px 16px 7px 8px; }
  .asz-ql svg { width: 16px; height: 16px; padding: 5px; }
}
@media (max-width: 420px) {
  .asz-linkcard { padding: 15px 15px; gap: 13px; }
  .asz-linkcard .asz-lc-ico { width: 42px; height: 42px; }
  .asz-linkcard .asz-lc-ico svg { width: 21px; height: 21px; }
  .asz-lc-body .asz-lc-title { font-size: 15px; }
  .asz-ql { flex: 1 1 auto; justify-content: flex-start; }
}
