/* ============================================================
   ホリフトウォーター ページ専用スタイル
   page-horifuto.php のみ functions.php から読み込み
   ============================================================ */

/* --- 変数・共通 ------------------------------------------- */
#horifuto {
  --hf-main: #00729f;
  --hf-accent: #0070a4;
  --hf-bg: #f6f6f6;
  --hf-bg-alt: #f7f7f7;
  --hf-white: #fff;
  --hf-text: #000;
  --hf-border: #ddd;
  --hf-hover: #00466d;
  --hf-body: clamp(18px, 1.9vw, 24px);
  --hf-body02: clamp(20px, 3.0vw, 36px);
  --hf-caption: clamp(14px, 1.4vw, 17px);
  --hf-sub: clamp(26px, 2.6vw, 32px);
  --hf-sub02: clamp(26px, 2.4vw, 28px);
  --hf-heading-lg: clamp(28px, 3vw, 38px);
  --hf-table: clamp(17px, 1.8vw, 22px);
  --hf-heading: clamp(32px, 3.6vw, 46px);
  --hf-hero-sub: clamp(26px, 3vw, 36px);
  --hf-hero: clamp(44px, 6vw, 72px);
  font-size: var(--hf-body);
  color: var(--hf-text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

#horifuto p {
  line-height: 1.8;
}

#horifuto * {
  box-sizing: border-box;
}

#horifuto picture {
  display: block;
  width: 100%;
}

#horifuto img {
  width: 100%;
  height: auto;
  display: block;
}

.hf-inner {
  max-width: 1080px;
  margin: 0 auto;
  width: 90%;
}

.bg_white{
  background: var(--hf-white);
}

.bg_gray{
  background: var(--hf-bg-alt);
}



/* --- PC / SP 表示切替 ------------------------------------- */
/* 例: <span class="pc">PCのみ</span> <span class="sp">SPのみ</span> */
/* 例: <br class="pc"> / <br class="sp"> */
#horifuto .sp {
  display: none;
}

#horifuto br.pc,
#horifuto br.sp {
  display: none;
}

@media (min-width: 769px) {
  #horifuto br.pc {
    display: inline;
  }
}

@media (max-width: 768px) {
  #horifuto .pc {
    display: none;
  }

  #horifuto .sp {
    display: block;
  }

  #horifuto span.sp,
  #horifuto a.sp,
  #horifuto br.sp {
    display: inline;
  }
}

/* --- ラベル ----------------------------------------------- */
.hf-label {
  display: inline-block;
  background: var(--hf-main);
  color: var(--hf-white);
  font-size: var(--hf-caption);
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.hf-label--white {
  background: var(--hf-white);
  color: var(--hf-main);
}

/* --- セクション共通 --------------------------------------- */
.hf-section {
  padding: 80px 0;
}


.hf-section__title {
  font-size: var(--hf-heading);
  font-weight: 700;
  color: var(--hf-main);
  line-height: 1.4;
  margin: 0 0 48px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--hf-main);
  text-align: center;
}

.hf-section__title--white {
  color: var(--hf-white);
  border-bottom-color: var(--hf-white);
}

.hf-section__lead {
  font-size: var(--hf-body02) !important;
  line-height: 1.8;
  margin-bottom: 48px;
  color: var(--hf-text);
  text-align: center;
  font-weight: 700;
}

#horifuto h3 {
  font-size: var(--hf-sub);
  font-weight: 700;
  line-height: 1.4;
}
#horifuto .hf-disaster h3 {
  font-size: var(--hf-sub02);
}

/* --- ボタン ----------------------------------------------- */
.hf-btn {
  display: inline-block;
  padding: 16px 48px;
  font-size: var(--hf-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  border: 2px solid currentColor;
  transition: background 0.25s, color 0.25s;
}

.hf-btn--primary {
  background: var(--hf-main);
  color: var(--hf-white);
  border-color: var(--hf-main);
}

.hf-btn--primary:hover {
  background: var(--hf-hover);
  border-color: var(--hf-hover);
}

.hf-contact .hf-btn--primary:hover {
  color: var(--hf-white);
}




.hf-btn--white {
  background: var(--hf-white);
  color: var(--hf-main);
  border-color: var(--hf-white);
}

.hf-btn--white:hover {
  background: transparent;
  color: var(--hf-white);
}

/* --- ヒーロー --------------------------------------------- */
.hf-hero {
  background: linear-gradient(135deg, var(--hf-main) 0%, var(--hf-hover) 100%);
  color: var(--hf-white);
  padding: 120px 0 100px;
  text-align: center;
}

.hf-hero__title {
  font-size: var(--hf-hero);
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
  color: var(--hf-white);
}

.hf-hero__sub {
  font-size: var(--hf-hero-sub);
  line-height: 1.6;
  margin: 0 0 48px;
  font-weight: 700;

}

/* --- aboutセクション -------------------------------------- */
.hf-about__wrap {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 20px;
}

.hf-about__img {
  flex: 0 0 45%;
}

.hf-about__img img {
  border-radius: 4px;
}

.hf-about__text_box {
  flex: 1;
}

.hf-about__title{
  font-size: var(--hf-sub);
    line-height: 1.6;
    margin: 0 0 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hf-about__text{
  line-height: 1.9;
}

.hf-about__list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}

.hf-about__list li {
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--hf-border);
  position: relative;
}

.hf-about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  background: var(--hf-main);
  border-radius: 50%;
}

/* --- keypointsセクション ---------------------------------- */
#horifuto [id] {
  scroll-margin-top: 100px;
}

.hf-keypoints {
  background: var(--hf-bg);
  padding: 80px 0;
}

.hf-keypoints__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}

.hf-keypoints__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 0 0 auto;
  padding: 16px 20px 16px 28px;
  background: var(--hf-white);
  border: 2px solid var(--hf-main);
  border-radius: 999px;
  color: var(--hf-text);
  text-decoration: none;
  font-size: var(--hf-body);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.hf-keypoints__btn:hover {
  background: var(--hf-main);
  color: var(--hf-white);
}

.hf-keypoints__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--hf-main);
  border-radius: 50%;
  transition: border-color 0.25s;
}

.hf-keypoints__icon::before {
  font-family: 'design_plus';
  content: '\e90e';
  font-size: 10px;
  line-height: 1;
  color: var(--hf-main);
  transition: color 0.25s;
}

.hf-keypoints__btn:hover .hf-keypoints__icon {
  border-color: var(--hf-white);
}

.hf-keypoints__btn:hover .hf-keypoints__icon::before {
  color: var(--hf-white);
}

/* --- 災害時の給水体験 -------------------------------------- */
.hf-disaster__list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-bottom: 50px;
}

.hf-disaster .hf-row {
  gap: 40px;
  margin-bottom: 0;
  align-items: center;
}

.hf-disaster .hf-row__img {
  flex: 0 0 42%;
  max-width: 420px;
}

.hf-disaster .hf-row__img img {
  border-radius: 0;
}

.hf-disaster__title {
  font-size: var(--hf-sub);
  font-weight: 700;
  color: var(--hf-main);
  line-height: 1.4;
  margin: 0 0 12px;
}

.hf-disaster__desc {
  font-size: var(--hf-body);
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  color: var(--hf-text);
}

.hf-disaster__text_box {
  margin-top: 48px;
  padding: 48px 56px;
  border-radius: 24px;

}

.hf-disaster__text_title {
  font-size: var(--hf-body02) !important;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 32px;
  color: var(--hf-text);
  text-align: center;
}

.hf-disaster__text {
  font-size: var(--hf-body);
  line-height: 1.9;
  margin: 0 0 24px;
  color: var(--hf-text);
}

#horifuto .hf-disaster__text,
#horifuto .hf-section__lead,
#horifuto .hf-about__text,
#horifuto .hf-reasons__block .hf-row__text p,
#horifuto .hf-faq__q p,
#horifuto .hf-faq__a p {
  font-size: var(--hf-body);
}

.hf-disaster__text:last-child {
  margin-bottom: 0;
}

/* --- 行（画像＋テキスト）---------------------------------- */
.hf-row {
  display: flex;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}

.hf-row:last-child {
  margin-bottom: 0;
}

.hf-row--reverse {
  flex-direction: row-reverse;
}

.hf-row__img {
  flex: 0 0 50%;
}

.hf-row__img img {
  border-radius: 4px;
}

.hf-row__text {
  flex: 1;
}

.hf-row__text_reason{
  font-size: var(--hf-body);
    line-height: 1.8;
    margin-bottom: 48px;
    color: var(--hf-text);
    text-align: center;
}

.hf-row__text h3 {
  font-size: var(--hf-sub);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--hf-accent);
}

.hf-disaster .hf-row__text .hf-disaster__title {
  color: var(--hf-main);
}

.hf-row__text p {
  line-height: 1.9;
}

/* --- 4つの理由 -------------------------------------------- */
.hf-reasons__list {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.hf-reasons__heading {
  font-size: var(--hf-heading-lg);
  font-weight: 700;
  text-align: center;
  color: var(--hf-text);
  margin: 0 0 40px;
  line-height: 1.4;
  color: var(--hf-main);
}

.hf-reasons__block .hf-row {
  gap: 48px;
  margin-bottom: 0;
  align-items: center;
}

.hf-reasons__block .hf-row__img {
  flex: 0 0 50%;
}

.hf-reasons__block .hf-row__img img {
  border-radius: 0;
}

.hf-reasons__sub {
  font-size: var(--hf-sub);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 20px;
  color: var(--hf-text);
}

.hf-reasons__block .hf-row__text p {
  font-size: var(--hf-body);
  line-height: 1.9;
  margin: 0 0 16px;
  color: var(--hf-text);
}

.hf-reasons__block .hf-row__text p:last-child {
  margin-bottom: 0;
}

/* --- テーブル --------------------------------------------- */
.hf-table {
  width: 100%;
  border-collapse: collapse;
}

.hf-table th,
.hf-table td {
  padding: 16px 20px;
  border: 1px solid var(--hf-border);
  text-align: left;
  line-height: 1.6;
  font-size: var(--hf-table);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.hf-table th {
  background: var(--hf-main);
  color: var(--hf-white);
  font-weight: 600;
  width: 30%;
  white-space: nowrap;
}

.hf-table tbody tr:nth-child(even) td {
  background: var(--hf-bg-alt);
}

.hf-cases__table th {
  width: 25%;
}

#horifuto .hf-cases__table td p {
  font-size: inherit;
  line-height: 1.6;
  margin: 0 0 8px;
}

#horifuto .hf-cases__table td p:has(.hf-cases__btn) {
  margin-bottom: 28px;
}

#horifuto .hf-cases__table td p:last-child {
  margin-bottom: 0;
}

.hf-cases__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 24px;
  border: 1px solid var(--hf-main);
  border-radius: 999px;
  color: var(--hf-main);
  font-size: var(--hf-body);
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: background 0.25s, color 0.25s;
}

.hf-cases__btn:hover {
  background: var(--hf-main);
  color: var(--hf-white);
}

.hf-cases__btn-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--hf-main);
  border-radius: 50%;
  transition: border-color 0.25s;
}

.hf-cases__btn-icon::before {
  font-family: 'design_plus';
  content: '\e910';
  font-size: 10px;
  line-height: 1;
  color: var(--hf-main);
  transition: color 0.25s;
}

.hf-cases__btn:hover .hf-cases__btn-icon {
  border-color: var(--hf-white);
}

.hf-cases__btn:hover .hf-cases__btn-icon::before {
  color: var(--hf-white);
}

/* --- ステップ --------------------------------------------- */
.hf-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.hf-steps__item {
  background: var(--hf-white);
  padding: 28px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.hf-steps__num {
  display: block;
  font-size: var(--hf-caption);
  font-weight: 700;
  color: var(--hf-main);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.hf-steps__item .hf-steps__text {
  font-size: var(--hf-body);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.6;
}

.hf-steps__desc {
  color: var(--hf-text);
  line-height: 1.7;
  margin: 0;
}

/* --- FAQ -------------------------------------------------- */
.hf-faq__list {
  margin: 0;
  padding: 0;
}

.hf-faq__item {
  border-bottom: 1px solid var(--hf-border);
}

.hf-faq__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  user-select: none;
}

.hf-faq__q > span:first-child {
  flex: 0 0 40px;
  height: 40px;
  background: var(--hf-main);
  color: var(--hf-white);
  font-size: var(--hf-body);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hf-faq__q p {
  flex: 1;
  margin: 0;
}

.hf-faq__icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
}

.hf-faq__icon::before,
.hf-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--hf-text);
  border-radius: 2px;
}

.hf-faq__icon::before {
  width: 2px;
  height: 100%;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.3s;
}

.hf-faq__icon::after {
  height: 2px;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
}

.hf-faq__item.is-open .hf-faq__icon::before {
  transform: translateX(-50%) rotate(90deg);
}

.hf-faq__a {
  display: none;
  flex-direction: row;
  gap: 16px;
  padding: 0 0 24px;
  line-height: 1.9;
}

.hf-faq__a.is-open {
  display: flex;
}

.hf-faq__a > span {
  flex: 0 0 40px;
  height: 40px;
  background: var(--hf-bg-alt);
  color: var(--hf-main);
  font-size: var(--hf-body);
  font-weight: 700;
  border: 2px solid var(--hf-main);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.hf-faq__a p {
  flex: 1;
}

/* --- ダウンロード ----------------------------------------- */
.hf-download {
  background: linear-gradient(135deg, var(--hf-main) 0%, var(--hf-hover) 100%);
  text-align: center;
}

.hf-download__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hf-download__lead {
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
}

/* --- お問い合わせ ----------------------------------------- */
.hf-contact {
  background: var(--hf-bg);
  text-align: center;
}

.hf-contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hf-contact__lead {
  color: var(--hf-text);
  margin-bottom: 36px;
}

/* ============================================================
   中村追記
   ============================================================ */

.hf-section__title.video_h {
  margin-top: 60px;
}

.hf-steps .video {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hf-steps .video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ============================================================
   スマートフォン対応
   ============================================================ */
@media (max-width: 768px) {
  #horifuto {
    --hf-body: clamp(18px, 4.8vw, 22px);
    --hf-caption: clamp(15px, 3.8vw, 18px);
    --hf-sub: clamp(24px, 5.6vw, 28px);
    --hf-heading-lg: clamp(22px, 5.2vw, 26px);
    --hf-table: clamp(17px, 4.4vw, 20px);
    --hf-heading: clamp(26px, 6.5vw, 34px);
    --hf-hero-sub: clamp(20px, 5.2vw, 24px);
    --hf-hero: clamp(32px, 9vw, 48px);
    font-size: var(--hf-body);
  }

  #horifuto p {
    font-size: 1em !important;
  }

  #horifuto h3 {
    font-size: var(--hf-sub) !important;
  }

  #horifuto .hf-section__lead,
  #horifuto .hf-about__text,
  #horifuto .hf-disaster__desc,
  #horifuto .hf-disaster__text,
  #horifuto .hf-reasons__block .hf-row__text p,
  #horifuto .hf-faq__q p,
  #horifuto .hf-faq__a p,
  #horifuto .hf-contact__lead,
  #horifuto .hf-download__lead,
  #horifuto .hf-btn,
  #horifuto .hf-cases__btn,
  #horifuto .hf-keypoints__btn {
    font-size: var(--hf-body) !important;
  }

  .hf-table th,
  .hf-table td {
    font-size: var(--hf-table) !important;
  }

  .hf-section__lead,
  .hf-download__lead,
  .hf-contact__lead {
    text-align: left;
  }

  .hf-download__inner,
  .hf-contact__inner {
    align-items: stretch;
  }

  .hf-section {
    padding: 60px 0;
  }

  /* ヒーロー */
  .hf-hero {
    padding: 80px 20px 70px;
  }

  /* about */
  .hf-about__wrap {
    flex-direction: column;
    gap: 32px;
  }

  .hf-about__img {
    flex: none;
    width: 100%;
  }


  .hf-keypoints__btn{
    width: 100%;
    padding: 10px 20px 10px 28px;
  }

  /* keypoints */
  .hf-keypoints__nav {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }


  

  .hf-keypoints__btn {
    width: 100%;
    flex: 1 1 100%;
    white-space: normal;
  }

  /* 災害時の給水体験 */
  .hf-disaster .hf-row__img {
    flex: none;
    max-width: none;
  }

  .hf-disaster__text_box {
    margin-top: 32px;
    padding: 32px 20px;
    border-radius: 16px;
  }

  .hf-disaster__text_title {
    margin-bottom: 24px;
  }

  /* 行 */
  .hf-row,
  .hf-row--reverse {
    flex-direction: column;
    gap: 28px;
  }

  .hf-row__img {
    flex: none;
    width: 100%;
  }

  /* 4つの理由 */
  .hf-reasons__list {
    gap: 48px;
  }

  .hf-reasons__heading {
    margin-bottom: 28px;
  }

  .hf-reasons__block .hf-row,
  .hf-reasons__block .hf-row--reverse {
    flex-direction: column;
    gap: 28px;
  }

  .hf-reasons__block .hf-row__img {
    flex: none;
    width: 100%;
  }

  /* ステップ */
  .hf-steps__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* テーブル */
  .hf-table {
    display: block;
    overflow-x: visible;
  }

  .hf-table tbody {
    display: block;
  }

  .hf-table tr {
    display: block;
    margin-bottom: 16px;
    border: 1px solid var(--hf-border);
    overflow: hidden;
  }

  .hf-table tr:last-child {
    margin-bottom: 0;
  }

  .hf-table th,
  .hf-table td {
    display: block;
    width: 100%;
    white-space: normal;
    box-sizing: border-box;
    border: none;
  }

  /* FAQ */
  .hf-faq__q {
    padding: 20px 0;
  }

  .hf-btn {
    width: 100%;
    text-align: center;
    padding: 16px 24px;
  }

  .hf-steps__item .hf-steps__text{
    margin-bottom: 0;
  }
}

/* ---------------------------

20260707 テキスト 画像の変更

------------------------------*/
.hf-disaster__desc .line-dot {
  display: block;
  padding-left: 1em;
  text-indent: -1em; 
}

.hf-disaster__text .line-num {
  display: block;
  padding-left: 2em;   
  text-indent: -2em;  
}
.hf-disaster__text .line-num .t-bold {
  font-weight: 700;
}
