/*
Theme Name: Oita Cable Network
Theme URI: https://www.oitacable.co.jp/
Author: Oita Cable Network
Description: 大分ケーブルネットワーク（おおいた光）公式サイト用オリジナルテーマ。デザインの本体CSSは assets/css/style.css（SCSSからビルド）にあります。このファイルには WordPress 固有の調整のみ記述します。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ocn
*/

/* ------------------------------------------------------------
   WordPress 管理バー表示時：固定ヘッダーを管理バーの下にずらす
------------------------------------------------------------ */
.admin-bar .c-header .c-header__fixed {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .c-header .c-header__fixed {
    top: 46px;
  }
}
@media screen and (max-width: 600px) {
  /* WP標準では600px以下で管理バーがスクロールするため固定にする */
  .admin-bar #wpadminbar {
    position: fixed;
  }
}
@media only screen and (max-width: 767px) {
  .admin-bar .c-spmenu {
    top: calc(var(--header-h) + 46px);
  }
}

/* ------------------------------------------------------------
   ページネーション（お知らせ・キャンペーン一覧）
   出力: functions.php の pagination_bar()
   デザイン: 丸型・オレンジ枠 / 現在ページはオレンジ塗り
------------------------------------------------------------ */
.c-pnav__news {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  margin-top: 60px;
  font-weight: 700;
  text-align: center;
}
.c-pnav__news .page-numbers {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 2px solid #e37511;
  border-radius: 50%;
  background-color: #fff;
  color: #e37511;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  -webkit-transition: all 0.25s ease-in;
  transition: all 0.25s ease-in;
}
.c-pnav__news a.page-numbers:hover,
.c-pnav__news .page-numbers.current {
  background-color: #e37511;
  color: #fff;
}
.c-pnav__news .page-numbers.dots {
  width: auto;
  border: none;
  background-color: transparent;
  color: #e37511;
}
/* 前へ・次へ（prev_text / next_text が空のため非表示） */
.c-pnav__news .prev.page-numbers,
.c-pnav__news .next.page-numbers {
  display: none;
}
@media only screen and (max-width: 767px) {
  .c-pnav__news {
    gap: 8px;
    margin-top: 30px;
  }
  .c-pnav__news .page-numbers {
    width: 34px;
    height: 34px;
    font-size: 1.6rem;
  }
}

/* ------------------------------------------------------------
   投稿本文（エディター出力）の最低限の調整
------------------------------------------------------------ */
.c-single__content img {
  max-width: 100%;
  height: auto;
}
.c-single__content .aligncenter {
  display: block;
  margin-right: auto;
  margin-left: auto;
}
.c-single__content .alignleft {
  float: left;
  margin: 0 20px 20px 0;
}
.c-single__content .alignright {
  float: right;
  margin: 0 0 20px 20px;
}
.c-single__content::after {
  content: "";
  display: block;
  clear: both;
}

.c-empty__text {
  padding: 40px 0;
  font-size: 1.6rem;
  font-weight: 500;
  text-align: center;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* トップ：キャンペーンスライダー（リンク付き） */
.c-slider2__item a {
  display: block;
}

/* =========================================================
   ご加入中のお客様
   assets/scss/pages/_existing-customers.scss 想定
   ※このままCSSとしても利用できる書き方にしています。
   ========================================================= */

:root {
  --existing-teal: #18a4ad;
  --existing-teal-dark: #0f8e96;
  --existing-orange: #e3740f;
  --existing-green: #47ae3f;
  --existing-cream: #fff7dc;
  --existing-gray: #f3f3f3;
  --existing-text: #222;
}

/* 下層MV：画像はあとで差し替え */
.c-introduce__page--existingcustomers {
  background-image: linear-gradient(rgba(20, 130, 140, .10), rgba(20, 130, 140, .10)),
    url('../img/existing-customers/existing_customers_mv.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.c-existingcustomers__container {
  padding: 68px 0 86px;
  color: var(--existing-text);
}

.c-existingcustomers__intro {
  max-width: 820px;
  margin: 0 auto 46px;
  text-align: center;
}

.c-existingcustomers__eyebrow {
  margin: 0 0 18px;
  color: var(--existing-teal);
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: .06em;
}

.c-existingcustomers__eyebrow::before,
.c-existingcustomers__eyebrow::after {
  content: '';
  display: inline-block;
  width: 44px;
  height: 1px;
  margin: 0 16px 8px;
  background: var(--existing-teal);
  transform: rotate(24deg);
}

.c-existingcustomers__eyebrow::after {
  transform: rotate(-24deg);
}

.c-existingcustomers__lead {
  margin: 0 0 26px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: .02em;
}

.c-existingcustomers__introtext {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  text-align: left;
}

/* お友達紹介キャンペーン */
.c-existingcustomers__referral {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  margin: 0 auto 54px;
  padding: 38px 185px 34px;
  border-radius: 9px;
  background-color: var(--existing-teal);
  background-image:
    linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.045) 75%),
    linear-gradient(45deg, rgba(255,255,255,.045) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.045) 75%);
  background-position: 0 0, 18px 18px;
  background-size: 36px 36px;
  color: #fff;
  text-align: center;
}

.c-existingcustomers__referralbody {
  position: relative;
  z-index: 2;
}

.c-existingcustomers__referrallogo {
  margin: 0 0 8px;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
}

.c-existingcustomers__referraltitle {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(27px, 3vw, 44px);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 3px 0 var(--existing-orange), 2px 0 0 var(--existing-orange), -2px 0 0 var(--existing-orange);
}

.c-existingcustomers__referraltext {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.c-existingcustomers__referralimg {
  position: absolute;
  z-index: 1;
  bottom: 0;
  width: 170px;
  max-height: 220px;
  object-fit: contain;
}

.c-existingcustomers__referralimg--left { left: 18px; }
.c-existingcustomers__referralimg--right { right: 18px; }

.c-existingcustomers__whitebtn,
.c-existingcustomers__greenbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 48px;
  padding: 10px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
}

.c-existingcustomers__whitebtn {
  background: #fff;
  color: #333;
}

.c-existingcustomers__whitebtn span,
.c-existingcustomers__greenbtn span {
  margin-left: 22px;
  font-size: 24px;
  line-height: 1;
}

.c-existingcustomers__whitebtn:hover,
.c-existingcustomers__greenbtn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

/* 共通ボックス */
.c-existingcustomers__box {
  margin: 0 0 54px;
  padding: 48px 32px;
  border-radius: 10px;
  background: var(--existing-cream);
}

.c-existingcustomers__title {
  margin: 0 0 10px;
  color: var(--existing-green);
  font-size: clamp(25px, 2.6vw, 36px);
  font-weight: 800;
  text-align: center;
  letter-spacing: .04em;
}

.c-existingcustomers__subtext {
  margin: 0 0 32px;
  font-size: 14px;
  text-align: center;
}

/* 各種お手続き */
.c-existingcustomers__procedurelist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 24px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.c-existingcustomers__procedurelist a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 4px;
  background: var(--existing-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease;
}

.c-existingcustomers__procedurelist a:hover {
  background: var(--existing-teal-dark);
}

/* サポート */
.c-existingcustomers__supportlead {
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 14px;
  line-height: 1.85;
  text-align: center;
}

.c-existingcustomers__supportlist {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-existingcustomers__supportimg {
  aspect-ratio: 4 / 3;
  margin: 0 0 14px;
  overflow: hidden;
  background: #ddd;
}

.c-existingcustomers__supportimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-existingcustomers__supportitem h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.c-existingcustomers__supportitem p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
}

.c-existingcustomers__btnwrap {
  margin-top: 32px;
  text-align: center;
}

.c-existingcustomers__greenbtn {
  background: var(--existing-green);
  color: #fff;
}

/* FAQ */
.c-existingcustomers__faq {
  margin: 70px 0 20px;
}

.c-existingcustomers__faqtitle {
  margin: 0 0 18px;
  padding: 10px 14px 10px 19px;
  border-left: 4px solid var(--existing-teal);
  background: #efefef;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
}

.c-existingcustomers__faqlist {
  margin: 0;
}

.c-existingcustomers__faqitem {
  padding: 19px 8px 20px;
  border-bottom: 1px solid #bdbdbd;
}

.c-existingcustomers__faqitem dt,
.c-existingcustomers__faqitem dd {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.c-existingcustomers__faqitem dt {
  margin-bottom: 9px;
  font-weight: 700;
}

.c-existingcustomers__q,
.c-existingcustomers__a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.c-existingcustomers__q { background: var(--existing-teal); }
.c-existingcustomers__a { background: var(--existing-orange); }

/* ===== Tablet ===== */
@media screen and (max-width: 900px) {
  .c-existingcustomers__referral {
    padding-right: 120px;
    padding-left: 120px;
  }

  .c-existingcustomers__referralimg {
    width: 125px;
  }

  .c-existingcustomers__procedurelist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== SP ===== */
@media screen and (max-width: 600px) {
  .c-existingcustomers__container {
    padding: 42px 0 58px;
  }

  .c-existingcustomers__intro {
    margin-bottom: 34px;
  }

  .c-existingcustomers__eyebrow::before,
  .c-existingcustomers__eyebrow::after {
    width: 25px;
    margin-right: 8px;
    margin-left: 8px;
  }

  .c-existingcustomers__introtext {
    font-size: 14px;
    line-height: 1.85;
  }

  .c-existingcustomers__referral {
    min-height: 355px;
    margin-bottom: 34px;
    padding: 30px 18px 108px;
  }

  .c-existingcustomers__referrallogo {
    font-size: 22px;
  }

  .c-existingcustomers__referraltitle {
    font-size: 29px;
  }

  .c-existingcustomers__referraltext {
    font-size: 14px;
  }

  .c-existingcustomers__referralimg {
    bottom: 5px;
    width: 100px;
    max-height: 105px;
  }

  .c-existingcustomers__referralimg--left { left: 8px; }
  .c-existingcustomers__referralimg--right { right: 8px; }

  .c-existingcustomers__whitebtn,
  .c-existingcustomers__greenbtn {
    width: min(100%, 300px);
    min-width: 0;
  }

  .c-existingcustomers__box {
    margin-bottom: 34px;
    padding: 34px 16px;
  }

  .c-existingcustomers__procedurelist {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .c-existingcustomers__supportlead {
    font-size: 13px;
    text-align: left;
  }

  .c-existingcustomers__supportlist {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .c-existingcustomers__supportimg {
    aspect-ratio: 16 / 10;
  }

  .c-existingcustomers__faq {
    margin-top: 45px;
  }

  .c-existingcustomers__faqitem {
    padding-right: 0;
    padding-left: 0;
  }

  .c-existingcustomers__faqitem dt,
  .c-existingcustomers__faqitem dd {
    grid-template-columns: 28px 1fr;
    font-size: 13px;
  }
}
