/*
Template:ystandard
Theme Name:ystandard-child
Theme URI: https://wp-ystandard.com
Author: yosiakatsuki
Author URI: https://yosiakatsuki.net
Description:「自分色に染めた、自分だけのサイトを作る楽しさ」を感じてもらうために作った一風変わったWordPressテーマ「ystandard」の子テーマ
Version: 4.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* =========================
   ENEMANE Sub / BLUE LUX LABEL
   + Scroll Reveal Effect (STRONG)
========================= */

body:not(.home){
  --lux-blue:#1f6feb;
  --lux-sub:#00c2ff;
  --lux-dark:#0b1220;
  --lux-mute:rgba(11,18,32,.55);

  --reveal-ease: cubic-bezier(.16,1,.3,1);
  --reveal-dur: 700ms;      /* 1400 → 700 */
  --reveal-y: 18px;         /* 40 → 18 */
  --reveal-blur: 6px;       /* 10 → 6 */
}

/* 見出しフォント（維持） */
body:not(.home) .entry-title,
body:not(.home) .page-title,
body:not(.home) .entry-content h2,
body:not(.home) .entry-content h3{
  font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

/* ================= タイトル ================= */
body:not(.home) .entry-title,
body:not(.home) .page-title{
  font-weight:700;
  letter-spacing:.08em;
  line-height:1.4;
  color:var(--lux-dark);
  margin:0 0 44px;
  position:relative;
  padding-top:22px;
  padding-bottom:16px;
}

body:not(.home) .entry-title::before,
body:not(.home) .page-title::before{
  content:"ENEMANE";
  position:absolute;
  left:0;
  top:0;
  font-size:11px;
  font-weight:500;
  letter-spacing:.28em;
  color:var(--lux-mute);
}

body:not(.home) .entry-title::after,
body:not(.home) .page-title::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:140px;
  height:2px;
  background:linear-gradient(90deg,var(--lux-blue),var(--lux-sub));
  transform-origin:left;
  transform: scaleX(.2);
  opacity:.35;
  transition: transform 900ms var(--reveal-ease), opacity 600ms var(--reveal-ease);
}
body:not(.home) .em-title-inview .entry-title::after,
body:not(.home) .em-title-inview .page-title::after{
  transform: scaleX(1);
  opacity:1;
}

/* ================= h2/h3 ================= */
body:not(.home) .entry-content h2{
  font-weight:600;
  letter-spacing:.05em;
  margin:3em 0 1em;
  padding-bottom:8px;
  color:var(--lux-dark);
  border-bottom:1px solid rgba(31,111,235,.25);
}
body:not(.home) .entry-content h3{
  font-weight:500;
  margin:2em 0 .7em;
  color:rgba(31,111,235,.9);
}

/* 本文 */
body:not(.home) .entry-content{
  color: rgba(11,18,32,.92);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
}
@media (min-width: 1024px){
  body:not(.home) .entry-content{
    font-size: 17px;
    line-height: 2.0;
  }
}

/* =========================================================
   FOUC対策
========================================================= */
html.js body.em-sr-prep .entry-content h2,
html.js body.em-sr-prep .entry-content h3,
html.js body.em-sr-prep .entry-content p,
html.js body.em-sr-prep .entry-content ul,
html.js body.em-sr-prep .entry-content ol,
html.js body.em-sr-prep .entry-content blockquote,
html.js body.em-sr-prep .entry-content figure,
html.js body.em-sr-prep .entry-content img{
  opacity: 0;
  transform: translate3d(0,var(--reveal-y),0);
  filter: blur(var(--reveal-blur));
}

/* ================= Scroll Reveal（強化本体） ================= */
body:not(.home) .entry-content .em-reveal{
  opacity: 0;
  transform: translate3d(0,var(--reveal-y),0);
  filter: blur(var(--reveal-blur));
  transition:
    opacity var(--reveal-dur) var(--reveal-ease),
    transform var(--reveal-dur) var(--reveal-ease),
    filter var(--reveal-dur) var(--reveal-ease);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform, filter;
}

body:not(.home) .entry-content .em-reveal.is-inview{
  opacity: 1;
  transform: translate3d(0,0,0);
  filter: blur(0);
}

body:not(.home) .entry-content h2.em-reveal.is-inview,
body:not(.home) .entry-content h3.em-reveal.is-inview{
  text-shadow: 0 10px 30px rgba(31,111,235,.14);
}

/* 動き苦手な人向け */
@media (prefers-reduced-motion: reduce){
  html.js body.em-sr-prep .entry-content h2,
  html.js body.em-sr-prep .entry-content h3,
  html.js body.em-sr-prep .entry-content p,
  html.js body.em-sr-prep .entry-content ul,
  html.js body.em-sr-prep .entry-content ol,
  html.js body.em-sr-prep .entry-content blockquote,
  html.js body.em-sr-prep .entry-content figure,
  html.js body.em-sr-prep .entry-content img{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  body:not(.home) .entry-content .em-reveal{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  body:not(.home) .entry-title::after,
  body:not(.home) .page-title::after{
    transform: scaleX(1) !important;
    opacity: 1 !important;
    transition: none !important;
  }
}

/* =========================================================
   会社概要（page-id-468）整形：青リンク風を排除＋余白をフォーマル寄りに
========================================================= */
.page-id-468 .entry-content h3{
  color: var(--lux-dark);
  margin: 44px 0 10px;
  font-weight: 600;
  letter-spacing: .05em;
}
.page-id-468 .entry-content h3 a{
  color: inherit;
  text-decoration: none;
}

/* 箇条書き（・）が見やすい余白に */
.page-id-468 .entry-content ul{
  margin: 10px 0 24px;
  padding-left: 0;
}
.page-id-468 .entry-content li{
  list-style: none;
  margin: 8px 0;
}

/* h2の線を“濃すぎず薄すぎず”に（フォーマル寄り） */
.page-id-468 .entry-content h2{
  border-bottom: 1px solid rgba(11,18,32,.14);
}

/* =========================================================
   サスティナビリティ セクション整形
   - Gutenbergで囲って class="em-sustain" を付ける前提（推奨）
   - 付けない場合でも .top-cont-banner があれば最低限効くフォールバックあり
========================================================= */

/* セクション箱（上品にまとまる） */
.page-id-468 .entry-content .em-sustain{
  margin-top: 18px;
  padding: 26px 22px;
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 14px;
  background: #fff;
}

/* セクション内の文章（中央寄せ・少し締める） */
.page-id-468 .entry-content .em-sustain p{
  margin: 10px 0 0;
  text-align: center;
  color: rgba(11,18,32,.74);
  font-size: 14px;
  line-height: 1.85;
}

/* SDGsロゴ（でかすぎ抑制＋中央） */
.page-id-468 .entry-content .em-sustain img{
  display: block;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.page-id-468 .entry-content .em-sustain img[alt*="GOALS"],
.page-id-468 .entry-content .em-sustain img[alt*="SDGs"]{
  max-width: 560px;
  width: min(92%, 560px);
  margin-top: 10px;
}

/* アイコン列：top-cont-banner を「整列する帯」にする */
.page-id-468 .entry-content .em-sustain .top-cont-banner{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(11,18,32,.08);
}

/* アイコン共通（class="p02-item" を想定） */
.page-id-468 .entry-content .em-sustain .top-cont-banner img.p02-item{
  width: 92px;
  max-width: 92px;
  height: auto;
  opacity: .95;
}

/* スマホは少し小さく・詰める */
@media (max-width: 600px){
  .page-id-468 .entry-content .em-sustain{
    padding: 22px 16px;
    border-radius: 12px;
  }
  .page-id-468 .entry-content .em-sustain .top-cont-banner{
    gap: 18px;
  }
  .page-id-468 .entry-content .em-sustain .top-cont-banner img.p02-item{
    width: 74px;
    max-width: 74px;
  }
}

/* ---------- フォールバック（em-sustain を付けない場合） ---------- */
/* 会社概要ページ内の top-cont-banner はサスティナビリティ扱いとして整列だけは効かせる */
.page-id-468 .entry-content .top-cont-banner{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.page-id-468 .entry-content .top-cont-banner img.p02-item{
  width: 86px;
  height: auto;
}

/* 会社概要（page-id-468）: 箇条書きの「・」を復活 */
.page-id-468 .entry-content ul{
  padding-left: 1.6em;              /* 0だとマーカー位置が出ないので戻す */
  list-style: disc;
  list-style-position: outside;
}

.page-id-468 .entry-content ul li{
  list-style: disc;                  /* list-style:none を上書き */
  display: list-item;
  margin: 8px 0;
}

/* NEWS（投稿アーカイブ）ではリストの点を出さない */
.post-type-archive .entry-content ul,
.post-type-archive .entry-content ol{
  list-style: none !important;
  padding-left: 0 !important;
}

.post-type-archive .entry-content li{
  display: block !important;
}

.post-type-archive .entry-content li::marker{
  content: "" !important;
}

.blog .entry-content ul,
.archive .entry-content ul{
  list-style: none !important;
  padding-left: 0 !important;
}
.blog .entry-content li,
.archive .entry-content li{
  display: block !important;
}
.blog .entry-content li::marker,
.archive .entry-content li::marker{
  content: "" !important;
}

/* NEWS一覧（投稿アーカイブ）だけ：先頭の「・」を消す */
.post-type-archive .entry-content ul,
.post-type-archive .entry-content ol,
.post-type-archive .entry-content .wp-block-list,
.post-type-archive .entry-content .wp-block-latest-posts {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.post-type-archive .entry-content li {
  display: block !important; /* list-item を戻してる場合に備えて */
}

.post-type-archive .entry-content li::marker {
  content: "" !important;    /* Safari/Firefox対策 */
}

/* よりピンポイント：newsアーカイブだけ */
.post-type-archive-news .entry-content ul,
.post-type-archive-news .entry-content .wp-block-latest-posts{
  list-style: none !important;
  padding-left: 0 !important;
}
.post-type-archive-news .entry-content li::marker{
  content: "" !important;
}

/* NEWS（page-id-549）: 最新の投稿ブロックの先頭「・」を消す */
.page-id-549 .entry-content ul.wp-block-latest-posts__list{
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.page-id-549 .entry-content ul.wp-block-latest-posts__list > li{
  display: block !important;         /* 以前の display:list-item 強制を打ち消す */
}

.page-id-549 .entry-content ul.wp-block-latest-posts__list > li::marker{
  content: "" !important;            /* ブラウザによって残るmarkerを殺す */
}

/* チャートスタイル */
.energy-roadmap{
display:flex;
justify-content:space-between;
align-items:flex-end;
max-width:900px;
margin:80px auto;
height:300px;
}

.roadmap-item{
text-align:center;
flex:1;
}

.roadmap-bar{
width:60px;
margin:0 auto;
background:#2f80ed;
border-radius:8px;
height:0;
transition:height 1.5s ease;
}

.roadmap-label{
margin-top:16px;
font-weight:600;
color:#334155;
}

.roadmap-value{
font-size:20px;
margin-top:6px;
color:#2f80ed;
font-weight:700;
}

/* =========================================
   契約電力グラフ（完全版）
========================================= */

.em-demand-figure{
  max-width: 1120px;
  margin: 80px auto;
  padding: 0 20px;
}

.em-demand-figure canvas{
  width: 100%;
  height: 560px;
  display: block;
}

@media (max-width: 768px){
  .em-demand-figure{
    padding: 0 12px;
    margin: 56px auto;
  }

  .em-demand-figure canvas{
    height: 500px;
  }
}

/* =========================================
   RE100 ドーナツグラフ 3列レイアウト
========================================= */

.em-re100-section{
  max-width:1200px;
  margin:80px auto;
  padding:0 20px;
}

.em-re100-header{
  text-align:center;
  margin-bottom:32px;
}

.em-re100-header h2{
  margin:0;
  font-size:34px;
  line-height:1.35;
  font-weight:700;
  color:#0f172a;
  letter-spacing:0.01em;
}

.em-re100-header h2 span{
  font-size:18px;
  font-weight:500;
  color:#64748b;
  margin-left:8px;
}

.em-re100-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:28px;
  max-width:1200px;
  margin:0 auto;
}

.em-re100-card{
  background:rgba(255,255,255,0.74);
  border:1px solid rgba(148,163,184,0.18);
  border-radius:22px;
  padding:26px 22px 22px;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 30px rgba(15,23,42,0.05);
}

.em-re100-card h3{
  margin:0 0 18px;
  text-align:center;

  font-size:22px;
  font-weight:700;
  color:#1e293b;

  height:72px;              /* ←高さを固定 */
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;

  line-height:1.3;
}

.em-re100-card h3 .line2{
  font-size:18px;          /* 少し小さくする */
  font-weight:600;
  color:#475569;
}

.em-re100-legend-separator{
  grid-column: 1 / -1;
  height: 10px;
}

.em-re100-canvas-wrap{
  position:relative;
  width:100%;
  height:310px;
}

.em-re100-legend{
  margin-top:18px;
  display:grid;
  gap:10px;
}

.em-re100-legend div{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:15px;
  line-height:1.6;
  color:#334155;
}

.em-re100-legend strong{
  margin-left:auto;
  font-weight:700;
  color:#0f172a;
}

.swatch{
  width:12px;
  height:12px;
  border-radius:999px;
  flex:0 0 12px;
}

.c-wind-fit{ background:#77c94f; }
.c-solar-fit{ background:#b5d334; }
.c-hydro-fit{ background:#59b5ff; }
.c-biomass-fit{ background:#9ee6ff; }
.c-wind-nonfit{ background:#ff7a00; }
.c-solar-nonfit{ background:#ffb347; }
.c-hydro-nonfit{ background:#f3a000; }

.em-re100-note{
  margin-top:18px;
  text-align:center;
}

.em-re100-note p{
  margin:6px 0;
  font-size:15px;
  line-height:1.7;
}

.note-green{ color:#77c94f; font-weight:700; }
.note-orange{ color:#ff8a00; font-weight:700; }
.note-gray{ color:#475569; }

@media (max-width: 980px){
  .em-re100-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:24px;
  }
}

@media (max-width: 640px){
  .em-re100-section{
    margin:56px auto;
    padding:0 14px;
  }

  .em-re100-header h2{
    font-size:28px;
  }

  .em-re100-header h2 span{
    display:block;
    margin:8px 0 0;
    font-size:16px;
  }

  .em-re100-grid{
    grid-template-columns:1fr;
    gap:20px;
  }

  .em-re100-card{
    border-radius:18px;
    padding:22px 16px 18px;
  }

  .em-re100-card h3{
    font-size:22px;
    margin-bottom:14px;
  }

  .em-re100-canvas-wrap{
    height:270px;
  }

  .em-re100-legend div,
  .em-re100-note p{
    font-size:14px;
  }
}

.enemane-fee-formula{
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 22px;
  background: #f6efc9;
  border-radius: 2px;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #2b211c;
}

.enemane-fee-formula .accent{
  color: #f28c1b;
}

.enemane-fee-formula .symbol{
  color: #2b211c;
  font-weight: 700;
}

@media (max-width: 768px){
  .enemane-fee-formula{
    gap: 10px;
    padding: 12px 14px;
    font-size: 16px;
    line-height: 1.5;
  }
}

/* =========================================
   電気料金比較式（PC/スマホ両対応・縮小版）
========================================= */

body:not(.home) .entry-content .enemane-charge-compare{
  width: 100% !important;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 8px 8px !important;
  font-family: "Noto Sans JP","Hiragino Sans","Yu Gothic",sans-serif !important;
  color: #222 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-row{
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 0 18px !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-row:last-child{
  margin-bottom: 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-label{
  flex: 0 0 185px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-label .main{
  display: block !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #222 !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-label .sub{
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #444 !important;
  margin: 2px 0 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-formula{
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #222 !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-formula > span{
  display: inline-block !important;
  text-align: center !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-formula .symbol{
  color: #222 !important;
  font-weight: 700 !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-formula .orange{
  color: #f28c1b !important;
}

body:not(.home) .entry-content .enemane-charge-compare .charge-formula .blue{
  color: #41b6ff !important;
}

/* タブレット以下 */
@media (max-width: 768px){
  body:not(.home) .entry-content .enemane-charge-compare{
    padding: 6px 4px !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-row{
    display: block !important;
    margin: 0 0 14px !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-label{
    flex: none !important;
    margin: 0 0 6px !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-label .main{
    font-size: 14px !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-label .sub{
    font-size: 10px !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-formula{
    flex-wrap: wrap !important;
    gap: 3px 5px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-formula > span{
    white-space: normal !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-formula .orange,
  body:not(.home) .entry-content .enemane-charge-compare .charge-formula .blue{
    white-space: nowrap !important;
  }

  body:not(.home) .entry-content .enemane-charge-compare .charge-formula span br{
    display: block !important;
    line-height: 1.05 !important;
  }
}