@charset "UTF-8";
/* =========================================================
   ホームタウンでんき（/accsdenki/）
   page-accsdenki.php 専用。function_modules/accsdenki_assets.php で読み込み
   ※ html { font-size: 62.5% } のため 1rem = 10px
   ※ 寸法はデザインの等倍アートボード（PC 1500px）から採寸。SP はつくモバに準拠
========================================================= */

.dk {
  --dk-red: #e7355c;      /* 魅力タイトル */
  --dk-orange: #eb5a24;   /* 見出し・セット割枠 */
  --dk-orange2: #f18d1e;  /* 料金比較の枠 */
  --dk-navy: #005178;
  --dk-yellow: #ffe520;
  --dk-cream: #fff6e9;    /* 利用料金背景 */
  --dk-beige: #feecd2;
  --dk-blue: #54c3f1;
  --dk-pink: #e9546b;
  --dk-num: #e71c24;      /* お得額 */
  --dk-gray-line: #9f9f9f;
  --dk-text: #3e3a39;

  color: var(--dk-text);
  font-size: 1.4rem;
  line-height: 1.6;
  overflow-x: hidden;
}
.dk *,
.dk *::before,
.dk *::after {
  box-sizing: border-box;
}
.dk img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
/* :where() で詳細度を下げ、各パーツのクラス指定（padding 等）が必ず勝つようにする */
.dk :where(ul, ol, dl, dd, p, h1, h2, h3, h4, table, th, td) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.dk small {
  font-size: 0.7em;
}
.dk-spOnly {
  display: none;
}

/* ---------- レイアウト ---------- */
.dk-inner {
  max-width: 1170px;
  margin: 0 auto;
}
.dk-inner--faq {
  max-width: 800px;
}

/* ---------- 共通：見出し ---------- */
.dk-secTitle {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  color: var(--dk-text);
  margin-bottom: 50px !important;
}
.dk-secTitle::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--dk-orange);
}
.dk-subTitle {
  text-align: center;
  color: var(--dk-orange);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin: -26px 0 20px !important;
}
.dk-secLead {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.05em;
  margin-bottom: 42px !important;
}

/* ---------- 共通：ボタン ---------- */
/* 既存の .btnOrg1（オレンジ枠）・.tpMoreBtn（グレー枠）をそのまま使用。幅と余白だけ調整 */
.dk .btnOrg1 {
  width: 310px;
  margin-top: 52px;
}
.dk .dk-moreBtn {
  width: 230px;
  margin: 60px auto 0;
}
.dk .btnOrg1 a,
.dk .dk-moreBtn a {
  color: var(--dk-text);
  text-decoration: none;
}

/* 別ウィンドウ風リンク */
.dk-extLink {
  margin-left: 1em;
  color: var(--dk-text) !important;
  font-weight: 700;
  text-decoration: underline !important;
}
.dk-extLink::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1.2em;
  margin-left: 0.4em;
  vertical-align: -0.2em;
  background: url(../../commons/css/img/icon_window-restore-solid.svg) no-repeat center / contain;
}
.dk-extLink:hover {
  text-decoration: none !important;
}

/* =========================================================
   FV（高さは既存の .pageHeader と同じ 344px）
========================================================= */
.dk-hero {
  height: 344px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 34%;
}
.dk-hero__inner {
  max-width: 1170px;
  height: 100%;
  margin: 0 auto;
  padding: 0 0 0 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dk-hero__catch {
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: 0.15em;
  color: #333;
  text-shadow: 0 0 6px #fff, 0 0 12px #fff, 0 0 20px #fff;
  margin-bottom: 20px !important;
}
/* ロゴ画像は白フチ・影の余白を含むため、少し大きめにして左へ寄せる */
.dk-hero__logo {
  width: 250px;
  margin-left: -8px !important;
  line-height: 1;
}

/* =========================================================
   リード・魅力
========================================================= */
.dk-intro {
  padding: 40px 0 50px;
}
.dk-lead {
  text-align: center;
  color: var(--dk-navy);
  font-size: 3.0rem;
  font-weight: 700;
  line-height: 1.73;
  letter-spacing: 0.15em;
  margin-bottom: 36px !important;
}
/* リボンを枠の上にはみ出させるため overflow は使わず、画像側を角丸にする */
.dk-miryoku {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  padding-top: 10px;
}
.dk-miryoku__item {
  border: 2px solid #4d4d4d;
  border-radius: 20px;
  background: #fff;
}
.dk-miryoku__img {
  position: relative;
}
.dk-miryoku__img img {
  width: 100%;
  aspect-ratio: 742 / 393;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
}
.dk-miryoku__ribbon {
  position: absolute;
  z-index: 1;
  top: -12px;
  left: 18px;
  width: 80px;
  padding: 24px 0 32px;
  background: #4d4d4d; /* 外側＝罫線色 */
  color: #333;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
/* 内側を一回り小さい黄色で重ねて、切り欠き部分まで黒い罫線に見せる */
.dk-miryoku__ribbon::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 3px;
  background: var(--dk-yellow);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 79%, 0 100%);
}
.dk-miryoku__body {
  padding: 20px 28px 22px;
}
.dk-miryoku__title {
  color: var(--dk-red);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px !important;
}
.dk-miryoku__text {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
}

/* =========================================================
   利用料金
========================================================= */
.dk-price {
  padding: 46px 0 64px;
  background: var(--dk-cream);
}

/* 料金比較カード */
.dk-card {
  padding: 46px 100px 64px;
  border: 2px solid var(--dk-orange2);
  border-radius: 20px;
  background: #fff;
}
.dk-cardTitle {
  text-align: center;
  color: var(--dk-orange);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 26px !important;
}
.dk-card__text {
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.dk-card__setNote {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 16px 0 20px -5px !important;
  font-size: 2.0rem;
  font-weight: 700;
}
.dk-card__setNote img {
  width: 224px;
}
.dk-planHeading {
  color: var(--dk-orange);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px !important;
}
.dk-planHeading::before {
  content: "●";
}
.dk-compare + .dk-planHeading {
  margin-top: 40px !important;
}

/* 比較表＋お得額 */
.dk-compare {
  display: grid;
  grid-template-columns: 556px 158px 198px;
  justify-content: space-between;
  align-items: end;
}
.dk-compare__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
/* テーマ共通の table 装飾（背景・枠線）を打ち消す */
.dk .dk-compare__table th,
.dk .dk-compare__table td {
  border: none;
  background: none;
}
.dk-compare__table th,
.dk-compare__table td {
  text-align: center;
  vertical-align: middle;
}
.dk .dk-compare__table thead th {
  height: 80px;
  padding-bottom: 6px !important;
  vertical-align: bottom;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.85;
  border-bottom: 1px solid var(--dk-gray-line);
}
.dk-compare__table thead th:first-child {
  width: 157px;
}
.dk .dk-compare__table tbody th,
.dk .dk-compare__table tbody td {
  height: 80px;
  border-bottom: 1px solid var(--dk-gray-line);
}
.dk .dk-compare__table tbody th {
  background: var(--dk-beige);
  color: #000;
  line-height: 1.2;
}
.dk-compare__table tbody td {
  color: #000;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
}
.dk-compare__table tbody td small {
  font-size: 0.7em;
}
.dk .dk-compare__table tbody td + td {
  border-left: 1px solid var(--dk-gray-line);
}
.dk-compare__amp {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
}
.dk-compare__kwh {
  display: block;
  font-size: 1.4rem;
  font-weight: 700;
}
/* 差額・毎年（上辺を表の罫線位置にそろえる） */
.dk-compare__save {
  border: 3px solid var(--dk-blue);
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.dk-compare__save--year {
  border-color: var(--dk-pink);
}
.dk-compare__saveHead {
  height: 40px;
  margin: -1px -1px 0 !important;
  border-radius: 10px 10px 0 0;
  background: var(--dk-blue);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 40px;
  text-align: center;
}
.dk-compare__save--year .dk-compare__saveHead {
  background: var(--dk-pink);
}
.dk-compare__save li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  color: var(--dk-num);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}
.dk-compare__saveAmp {
  display: none;
}
.dk-compare__save li + li {
  border-top: 1px solid var(--dk-gray-line);
}
.dk-compare__save li small {
  font-size: 0.85em;
}
.dk-compare__save--month li small {
  font-size: 0.75em;
}
.dk-compare__save--year li {
  font-size: 2.6rem;
}
.dk-compare__save--year li small {
  font-size: 0.75em;
}
.dk-compare__save li:last-child {
  height: 78px;
}
.dk-card__notes {
  margin-top: 18px !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2;
}

/* でんきセット割 */
.dk-setTitle {
  text-align: center;
  color: var(--dk-orange);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 70px 0 26px !important;
}
.dk-set {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 22px;
}
.dk-set__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 146px;
  padding: 16px 20px;
  border: 2px solid var(--dk-orange);
  border-radius: 20px;
  background: #fff;
}
.dk-set__icons {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 267px;
}
.dk-set__icons img {
  width: 79px;
}
.dk-set__icons--single {
  gap: 15px;
}
.dk-set__op {
  width: 15px;
  color: var(--dk-orange);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.dk-set__op--or {
  font-size: 1.2rem;
  line-height: 1.05;
  writing-mode: vertical-rl;
}
.dk-set__single {
  color: var(--dk-orange);
  font-size: 2.0rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.dk-set__price {
  display: flex;
  flex-direction: column;
  width: 190px;
  flex-shrink: 0;
  font-weight: 700;
  line-height: 1.2;
}
.dk-set__month {
  color: #000;
  font-size: 2.0rem;
}
.dk-set__yearLabel {
  margin-top: 2px;
  color: var(--dk-num);
  font-size: 1.8rem;
}
.dk-set__year {
  color: var(--dk-num);
  font-size: 3.8rem;
  line-height: 1.1;
  white-space: nowrap;
}
.dk-set__year small {
  font-size: 0.68em;
}

/* 注意事項 */
.dk-notes {
  max-width: 950px;
  margin: 38px auto 0;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.5;
}
.dk-notes > p + .dk-notes__title {
  margin-top: 18px !important;
}
.dk-notes__provider {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--dk-text);
}
.dk-notes__provider p + p {
  margin-top: 18px !important;
}
.dk-notes__provider .dk-notes__company {
  margin-top: 0 !important;
}

/* =========================================================
   よくあるご質問
========================================================= */
.dk-faq {
  padding: 84px 0 110px;
}
.dk-faq__item + .dk-faq__item {
  margin-top: 20px;
}
.dk-faq__q {
  position: relative;
  display: block;
  width: 100%;
  padding: 19px 20px 19px 64px;
  border: none;
  background: #e6e6e6;
  color: var(--dk-text);
  font: inherit;
  font-family: 'Noto Sans JP', YuGothic, "Yu Gothic", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
  cursor: default;
}
.dk-faq__q::before {
  content: "Q";
  position: absolute;
  left: 21px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--dk-pink);
  color: #fff;
  font-size: 1.7rem;
  line-height: 32px;
  text-align: center;
}
.dk-faq__a {
  padding: 20px 0 0;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.45;
}
.dk-faq__dots {
  padding-left: 1em !important;
}
.dk-faq__dots li::before {
  content: "・";
}

/* =========================================================
   中間幅（768〜1250px）：左右の余白確保
   ※ 右端固定のサイドボタン（幅60px）に被らないように
========================================================= */
@media screen and (min-width: 768px) and (max-width: 1250px) {
  .dk-inner {
    padding: 0 70px 0 40px;
  }
  .dk-hero__inner {
    padding-left: 40px;
  }
  .dk-miryoku {
    gap: 18px;
  }
  .dk-miryoku__body {
    padding: 18px 18px 20px;
  }
  .dk-miryoku__title {
    font-size: 2.0rem;
  }
  .dk-card {
    padding: 40px 40px 50px;
  }
  .dk-compare {
    grid-template-columns: minmax(0, 1fr) 130px 160px;
    gap: 16px;
  }
  .dk-compare__table thead th:first-child {
    width: 120px;
  }
  .dk-compare__table tbody td,
  .dk-compare__save--year li {
    font-size: 2.2rem;
  }
  .dk-compare__save li {
    font-size: 1.6rem;
  }
  .dk-compare__save--year li {
    font-size: 2.2rem;
  }
  .dk-set {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* =========================================================
   SP（〜767px）
========================================================= */
@media screen and (max-width: 767px) {
  .dk {
    font-size: 1.3rem;
  }
  .dk-spOnly {
    display: inline;
  }
  .dk-inner {
    padding: 0 20px;
  }
  .dk-secTitle {
    font-size: 2.2rem;
    margin-bottom: 30px !important;
  }
  .dk-secTitle::after {
    margin-top: 16px;
  }
  .dk-subTitle {
    font-size: 2.1rem;
    margin-top: -8px !important;
  }
  .dk-secLead {
    font-size: 1.4rem;
    line-height: 1.8;
    letter-spacing: 0;
    margin-bottom: 28px !important;
  }
  .dk .btnOrg1 {
    width: 80%;
    margin-top: 32px;
  }
  .dk .btnOrg1 a {
    height: 46px;
  }
  .dk .btnOrg1 a span {
    padding-right: 24px;
    font-size: 1.3rem;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .dk .dk-moreBtn {
    width: 70%;
    margin-top: 30px;
  }
  /* 既存 .tpMoreBtn は SP で 10px になるため、料金シミュレーションボタンと同程度に */
  .dk .dk-moreBtn a {
    height: 50px;
    font-size: 1.4rem;
  }
  .dk .dk-moreBtn a span {
    padding: 0 28px 0 16px;
  }
  .dk-extLink {
    display: inline-block;
    margin: 4px 0 0;
  }

  /* FV */
  .dk-hero {
    height: 300px;
    background-position: 72% center;
  }
  .dk-hero__inner {
    justify-content: flex-start;
    padding: 22px 20px 0;
  }
  .dk-hero__catch {
    font-size: 1.5rem;
    line-height: 1.7;
    letter-spacing: 0.1em;
    margin-bottom: 12px !important;
  }
  .dk-hero__logo {
    width: 170px;
    margin-left: -6px !important;
  }

  /* リード・魅力 */
  .dk-intro {
    padding: 34px 0 50px;
  }
  .dk-lead {
    font-size: 2.0rem;
    line-height: 1.6;
    letter-spacing: 0.06em;
    margin-bottom: 24px !important;
  }
  .dk-miryoku {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .dk-miryoku__ribbon {
    width: 70px;
    font-size: 2.0rem;
    padding: 20px 0 28px;
  }
  .dk-miryoku__body {
    padding: 16px 22px 22px;
  }
  .dk-miryoku__title {
    font-size: 2.2rem;
    margin-bottom: 10px !important;
  }
  .dk-miryoku__text {
    font-size: 1.3rem;
  }

  /* 利用料金 */
  .dk-price {
    padding: 40px 0 50px;
  }
  .dk-card {
    padding: 28px 16px 30px;
    border-radius: 14px;
  }
  .dk-cardTitle {
    font-size: 1.9rem;
    margin-bottom: 16px !important;
  }
  .dk-card__text {
    font-size: 1.3rem;
    letter-spacing: 0;
  }
  .dk-card__setNote {
    font-size: 1.4rem;
    margin: 12px 0 22px !important;
  }
  .dk-card__setNote img {
    width: 190px;
  }
  .dk-planHeading {
    font-size: 1.8rem;
    margin-bottom: 4px !important;
  }
  .dk-compare + .dk-planHeading {
    margin-top: 32px !important;
  }
  /* SP：表を上、差額・毎年を下に2列 */
  .dk-compare {
    grid-template-columns: 1fr 1fr;
    gap: 14px 8px;
    align-items: start;
  }
  .dk-compare__table {
    grid-column: 1 / -1;
  }
  .dk .dk-compare__table thead th {
    height: 60px;
    font-size: 1.1rem;
    line-height: 1.5;
  }
  .dk-compare__table thead th:first-child {
    width: 30%;
  }
  .dk .dk-compare__table tbody th,
  .dk .dk-compare__table tbody td {
    height: 60px;
  }
  .dk-compare__table tbody td {
    font-size: 1.8rem;
  }
  .dk-compare__amp {
    font-size: 2.0rem;
  }
  .dk-compare__kwh {
    font-size: 1.1rem;
  }
  .dk-compare__save {
    border-width: 2px;
    border-radius: 10px 10px 0 0;
  }
  .dk-compare__saveHead {
    height: 32px;
    font-size: 1.4rem;
    line-height: 32px;
    border-radius: 8px 8px 0 0;
  }
  .dk-compare__save li,
  .dk-compare__save li:last-child {
    height: 48px;
    font-size: 1.4rem;
  }
  .dk-compare__save--year li {
    font-size: 1.7rem;
  }
  /* 差額・毎年の各行にプラン名を添える（表と離れるため） */
  .dk-compare__saveAmp {
    display: inline-block;
    margin-right: 4px;
    padding: 1px 4px;
    border-radius: 4px;
    background: var(--dk-beige);
    color: #000;
    font-size: 1.1rem;
  }
  .dk-card__notes {
    font-size: 1.1rem;
    line-height: 1.7;
  }

  /* でんきセット割 */
  .dk-setTitle {
    font-size: 2.0rem;
    line-height: 1.5;
    margin: 44px 0 20px !important;
  }
  .dk-set {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .dk-set__item {
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 18px 12px;
    border-radius: 14px;
  }
  .dk-set__icons {
    width: auto;
    justify-content: center;
  }
  .dk-set__icons img {
    width: 64px;
  }
  .dk-set__price {
    width: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: 0 8px;
  }
  .dk-set__month {
    width: 100%;
    text-align: center;
    font-size: 1.7rem;
  }
  .dk-set__yearLabel {
    font-size: 1.6rem;
  }
  .dk-set__year {
    font-size: 3.2rem;
  }

  .dk-notes {
    margin-top: 30px;
    font-size: 1.1rem;
  }

  /* FAQ（SP：アコーディオン） */
  .dk-faq {
    padding: 50px 0 60px;
  }
  .dk-faq__item + .dk-faq__item {
    margin-top: 16px;
  }
  .dk-faq__q {
    padding: 14px 14px 28px 56px;
    font-size: 1.6rem;
    cursor: pointer;
  }
  .dk-faq__q::before {
    left: 12px;
    top: 14px;
    transform: none;
  }
  .dk-faq__q::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 9px;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-top: 9px solid #555;
    transform: translateX(-50%);
    transition: transform 0.2s;
  }
  .dk-faq__q[aria-expanded="true"]::after {
    transform: translateX(-50%) rotate(180deg);
  }
  .dk-faq__a {
    display: none;
    padding-top: 12px;
    font-size: 1.4rem;
    line-height: 1.7;
  }
  .dk-faq__dots {
    padding-left: 0 !important;
  }
  .dk-faq__item.is-open .dk-faq__a {
    display: block;
  }
}
