@charset "utf-8";
/* ============================================================
   蓄電池Eco. 共通スタイル
   - レイアウト（ヘッダー・フッター等）は Tailwind CSS のクラスで記述
   - 本文（.content）は旧サイトのHTMLをそのまま活かすため、
     旧クラス名をこのファイルでモダンなデザインに再定義している
   ============================================================ */

:root {
  --brand-50: #eef3ff;
  --brand-100: #dbe5ff;
  --brand-500: #2f5bff;
  --brand-600: #0b3ee6;
  --brand-700: #0a32bf;
  --brand-900: #0b1f5c;
  --eco-500: #22a35a;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent-red: #e0352b;
}

html { scroll-behavior: smooth; }
body { background: #f5f7fb; color: var(--ink); }

/* ---------- ヘッダー ---------- */
.site-header { transition: box-shadow .3s ease; }
.site-header.is-scrolled { box-shadow: 0 8px 24px -12px rgba(11, 31, 92, .25); }

.gnav a { position: relative; }
.gnav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--eco-500));
  transition: width .3s ease, left .3s ease; border-radius: 2px;
}
.gnav a:hover::after, .gnav a.is-current::after { width: 70%; left: 15%; }

/* モバイルメニュー */
.drawer { transform: translateX(100%); transition: transform .35s ease; }
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- メインビジュアル（スライド） ---------- */
.hero { aspect-ratio: 980 / 230; }
.hero-slide { opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* ---------- サイドバー ---------- */
.side-logo img { max-width: 100%; height: auto; }

/* ---------- ページトップボタン ---------- */
.pagetop { opacity: 0; transform: translateY(12px); pointer-events: none; transition: all .3s ease; }
.pagetop.is-show { opacity: 1; transform: none; pointer-events: auto; }

/* ============================================================
   本文エリア（旧サイトのHTMLをそのまま表示する部分）
   ============================================================ */
.content { font-size: 1rem; line-height: 2; word-break: break-word; overflow-wrap: anywhere; }
.content::after { content: ""; display: block; clear: both; }
.content section::after { content: ""; display: block; clear: both; }

/* 見出し */
.content h2 {
  position: relative; clear: both;
  margin: 3.5rem 0 1.5rem; padding: .2rem 0 .9rem 1.1rem;
  font-size: 1.375rem; line-height: 1.5; font-weight: 700; color: var(--brand-900);
  border-bottom: 1px solid var(--line);
}
.content h2::before {
  content: ""; position: absolute; left: 0; top: .25rem; bottom: 1rem; width: 5px; border-radius: 4px;
  background: linear-gradient(180deg, var(--brand-600), var(--eco-500));
}
.content > section:first-child > h2:first-child,
.content > h2:first-child { margin-top: 0; }
.content h2 strong { font-weight: 700; }

.content h3 {
  clear: both; margin: 2.25rem 0 1rem; padding: .7rem 1rem .7rem 1.1rem;
  font-size: 1.125rem; line-height: 1.6; font-weight: 700; color: var(--brand-900);
  background: var(--brand-50); border-left: 4px solid var(--brand-600); border-radius: 0 10px 10px 0;
}
.content h4 {
  margin: 1.75rem 0 .75rem; padding: 0 0 .4rem 1.4rem; position: relative;
  font-size: 1.0625rem; line-height: 1.6; font-weight: 700; color: var(--ink);
  border-bottom: 1px dashed #cbd5e1;
}
.content h4::before {
  content: ""; position: absolute; left: .2rem; top: .55em; width: .6rem; height: .6rem; border-radius: 50%;
  background: var(--eco-500); box-shadow: 0 0 0 3px rgba(34, 163, 90, .18);
}
.content h4 img { display: inline-block; padding: 5px; }

/* 段落・リスト等 */
.content p { margin: 0 0 1.2em; }
.content a { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.content a:hover { color: var(--eco-500); }
.content a:has(> img), .content a:has(> img.co) { text-decoration: none; }
.content strong, .content b { font-weight: 700; }
.content ul.disc { list-style: disc; padding: 0 0 1em 1.5rem; }
.content ol { list-style: decimal; padding: 0 0 1em 1.5rem; }
.content blockquote {
  margin: 1rem 0; padding: 1rem 1.25rem; background: #f8fafc;
  border-left: 4px solid #94a3b8; border-radius: 0 10px 10px 0; font-size: .9375rem;
}
.content center { margin: 1rem 0 1.5rem; }
.content hr { margin: 2rem 0; border-color: var(--line); }

/* 画像（旧サイトの width/height 指定を維持しつつレスポンシブ化） */
.content img { display: inline-block; max-width: 100%; height: auto; vertical-align: middle; }
.content img.wa { max-width: 100%; height: auto; }
.content .co_img img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(11, 31, 92, .45); }
.content img[usemap] { height: auto; }

/* お問い合わせバナー */
.content img.co {
  display: block; margin: 2rem auto 1rem; border-radius: 12px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.content a:hover img.co { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(11, 62, 230, .55); }

/* メーカー比較（ロゴ並び） */
.content .pl160 { display: flex; flex-wrap: wrap; gap: .75rem; padding: .25rem 0 0; }
.content .me { margin: 0; }
.content .me a {
  display: flex; align-items: center; justify-content: center; min-width: 140px; height: 64px; padding: .5rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: all .25s ease;
}
.content .me a:hover { border-color: var(--brand-500); box-shadow: 0 8px 20px -12px rgba(11, 62, 230, .5); transform: translateY(-2px); }

/* 回り込み（PCのみ。スマホは縦積み） */
.content .t img, .content .t2 img, .content .l img, .content .fr, .content .fl { float: none; display: block; margin: 1rem auto; padding: 0; }
@media (min-width: 768px) {
  .content .t img { float: right; margin: .5rem 0 1rem 1.75rem; }
  .content .t2 img { float: right; margin: 1rem 0 1rem 1.5rem; }
  .content .l img { float: left; margin: 0 1rem .5rem 0; }
  .content .fr { float: right; margin: 0 0 1rem 1.5rem; }
  .content .fl { float: left; margin: 0 1.5rem 1rem 0; }
}

/* 文字装飾（旧クラスを踏襲） */
.content .color1 { color: var(--brand-600); font-size: 1.125rem; font-weight: 700; }
.content .color2 { color: var(--accent-red); font-size: 1.0625rem; font-weight: 700; }
.content .color3 { color: var(--brand-600); }
.content .color4 { display: block; color: var(--accent-red); font-size: 1.0625rem; text-align: center; }
.content .f { font-size: 1.125rem; font-weight: 700; color: var(--brand-900); }
.content .fs, .content .fs12 { font-size: .8125rem; }
.content .lh { line-height: 1.6; }
.content .ls { letter-spacing: -.03em; }
.content .ind1 { padding-left: 2em; text-indent: -1em; }
.content .red, .content #red { color: #ef4444; }
.content #red1 { color: #ef4444; font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.content #green { color: var(--eco-500); font-size: 1.0625rem; font-weight: 700; border-bottom: 2px dotted var(--eco-500); }
.content .f_orange { color: #f2600c; font-size: 1.5rem; line-height: 1.3; font-weight: 700; }
.content #orange { color: #f59e0b; font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.content .p_s { font-size: .875rem; }
.content .p_r { color: #ef4444; font-size: 1.125rem; font-weight: 700; }
.content #fb { display: block; padding: .5rem 1rem; font-size: 1.5rem; font-weight: 700; line-height: 1.6; text-align: center; background: #eef2f7; border-radius: 12px; }
.content #ex { color: #db2777; font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.content #ex_box { border: 3px dashed #f0abfc; border-radius: 14px; padding: 1rem; }
.content #hasen { margin: 1rem 0; padding: 1rem; border: 6px dashed #cbd5e1; border-radius: 14px; font-size: .8125rem; }
.content #waku { border: 1px solid var(--line); border-radius: 14px; padding: .75rem; }
.content #line_height { line-height: 1.9; }
.content #w700 { max-width: 700px; margin: 0 auto; }
.content #y_box {
  max-width: 690px; margin: 1rem auto; padding: .5rem 1rem; text-align: center;
  font-size: 1.5rem; font-weight: 700; color: #fde047; text-shadow: 1px 1px 5px rgba(0, 0, 0, .9);
  border: 5px solid #fde047; border-radius: 14px;
}
.content .b_box {
  max-width: 335px; margin: 1rem auto; padding: .4rem 1rem; text-align: center;
  font-size: 1.25rem; font-weight: 700; color: var(--brand-600);
  border: 3px solid var(--brand-600); border-radius: 12px;
}
.content .w { margin: .75rem 0; }
.content .p { padding-top: .75rem; }
.content .mb15 { margin-bottom: 1rem; }
.content .mb1em { margin-bottom: 1em; }
.content .c { text-align: center; margin-top: 2rem; }
.content .r { text-align: right; }
.content .clear { clear: both; }

/* スマホ・タブレットで非表示（旧サイトの .dn を踏襲） */
@media (max-width: 767px) {
  .content .dn { display: none !important; }
}

/* 表（横にはみ出す場合はスクロール） */
.content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1.5rem; border-radius: 12px; }
.content table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.7; }
.content table th, .content table td { padding: .75rem 1rem; border: 1px solid var(--line); vertical-align: middle; text-align: left; }
.content table th { background: #f1f5fb; color: var(--brand-900); font-weight: 700; }
.content .ta1, .content .ta2 { background: #fff; }
.content .ta1 th { min-width: 9rem; text-align: center; }
.content .ta2 { font-size: .875rem; }
.content .ta2 th { min-width: 6rem; text-align: center; white-space: nowrap; }
.content .ta1 th.tamidashi { text-align: left; color: #fff; background: linear-gradient(90deg, var(--brand-700), var(--brand-600)); }
.content .ta1 caption { padding: .75rem 1rem; text-align: left; font-weight: 700; color: #fff; background: linear-gradient(90deg, var(--brand-700), var(--brand-600)); border-radius: 12px 12px 0 0; }
.content table td p { margin: 0 0 .5em; }
.content .news table { width: 100%; }
.content .news td { border: 0; padding: 0 0 1rem; vertical-align: top; }
.content .news td.news_img { width: 260px; padding-left: 1rem; }
@media (max-width: 767px) {
  .content .news table, .content .news tbody, .content .news tr, .content .news td { display: block; width: 100% !important; }
  .content .news td.news_img { padding-left: 0; text-align: center; }
}

/* お知らせ（トップページ） */
.content #new dl { margin: 0; padding: 0; }
.content #new dt { margin-top: .9rem; font-weight: 700; color: var(--brand-600); font-size: .875rem; }
.content #new dt:first-child { margin-top: 0; }
.content #new dd { margin: 0; padding: .2rem 0 .9rem; border-bottom: 1px solid var(--line); }
.content #new dd + br { display: none; }
.content #new img { vertical-align: middle; }

/* 一覧ボックス（section.list / section.harf） */
.content section.list article, .content section.harf article {
  margin-bottom: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: all .25s ease;
}
.content section.list article:hover, .content section.harf article:hover { border-color: var(--brand-500); box-shadow: 0 10px 24px -16px rgba(11, 62, 230, .5); }
.content section.list article a, .content section.harf article a { display: block; padding: 1rem; color: inherit; text-decoration: none; overflow: hidden; }
.content section.list article figure img { float: left; margin: 0 1rem .5rem 0; border-radius: 10px; }
.content section.list article h4, .content .harf h4 { margin-top: 0; }

/* 対象機種のドロップダウン（補助金・都道府県ページ） */
.content ul#tabs, .content #tabs + ul, .content ul:has(> li > ul.ddmenu), .content ul:has(> li > ul.ddmenu1) { margin: 0 0 .75rem; }
.content .dd-parent { position: relative; cursor: pointer; }
.content .dd-parent > img { border-radius: 10px; transition: opacity .2s; }
.content .dd-parent:hover > img { opacity: .85; }
.content .dd-parent::after {
  content: "\f078"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; right: 14px; top: 18px;
  width: 26px; height: 26px; display: grid; place-items: center; font-size: 11px; color: #fff;
  background: var(--brand-600); border-radius: 50%; transition: transform .25s ease; pointer-events: none;
}
.content .dd-parent.is-open::after { transform: rotate(180deg); }
.content ul.ddmenu, .content ul.ddmenu1 {
  display: none; margin: .5rem 0 0; padding: .75rem 1rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; font-size: .875rem; line-height: 1.9; box-shadow: 0 10px 24px -18px rgba(11, 31, 92, .4);
}
.content .dd-parent.is-open > ul.ddmenu, .content .dd-parent.is-open > ul.ddmenu1 { display: block; }

/* 用語集（基礎知識） */
.content .glossary { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0 2rem; padding: 0; }
.content .glossary li { margin: 0; }
.content .glossary li a {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  font-weight: 700; color: var(--brand-900); text-decoration: none; background: var(--brand-50); transition: all .2s;
}
.content .glossary li a:hover { color: #fff; background: var(--brand-600); }
.content h3.glossary_index { margin: 1.75rem 0 .75rem; padding: 0 0 .4rem; background: none; border: 0; border-bottom: 2px solid var(--brand-600); border-radius: 0; }
.content h3.glossary_index a { color: var(--brand-900); text-decoration: none; }
.content .glossary_topic { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .75rem; margin: 0 0 1rem; padding: 0; }
.content .glossary_topic li a {
  display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; color: var(--ink);
  text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: all .2s;
}
.content .glossary_topic li a::after { content: "\f054"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .75rem; color: var(--brand-600); }
.content .glossary_topic li a:hover { border-color: var(--brand-500); background: var(--brand-50); }

/* 旧フォーム用のボタン（念のため） */
.content input[type="submit"], .content input[type="button"] {
  padding: .8rem 2.5rem; color: #fff; font-weight: 700; border-radius: 999px; cursor: pointer;
  background: linear-gradient(90deg, var(--brand-700), var(--brand-600));
}
