@charset "UTF-8";
/* ==========================================================
   自社製品紹介ページ専用CSS（products.css）
   ・base.css の後に読み込んでください（配置例：themes/freuntek/products/css/style.css）
   ・すべて .products-page 配下にスコープ（独自クラスは pp- 接頭辞）
   ・既存の base.css は変更しません／既存ページに影響しません
   ・ブレークポイントは base.css に合わせて 767px 以上をPCとする
   ・box-sizing / img の max-width / .inner / .flex 系は base.css のものを使用
   ========================================================== */


/* ヘッダ
---------------------------------------------------- */
.header-bg {
	height: 65px;
	background: url(../images/header.jpg) center center no-repeat;
	background-size: cover;
}
.header-bg h1 {
	padding-top: 15px;
	font-size: 20px;
	font-size: 2.0rem;
	line-height: 35px;
	font-weight: 900;
	color: #fff;
}

.products-page {
  --pp-blue: #005BAC;   /* 既存サイトのメインカラー */
  --pp-navy: #1b2540;
  --pp-gray: #eff0f5;
  --pp-line: #c9ccd6;
  --pp-text: #222;
  color: var(--pp-text);
  line-height: 1.8;
}
/* base.css の `main p { margin-bottom:1em }` を打ち消す */
.products-page h2,
.products-page h3,
.products-page h4,
.products-page p {
  margin: 0;
  padding: 0;
}

.products-page ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.products-page .pp-sp {
  display: inline;
}

.products-page .pp-pc {
  display: none;
}

main p {
  margin-bottom: 0;
}

/* ---------- リード ---------- */
.products-page .products-1 {
  padding: 35px 0 55px;
}

.products-page .products-1__title {
  font-family: 'Noto Serif', serif;
  font-size: 22px;
  font-size: 2.2rem;
  line-height: 1.5;
  color: var(--pp-navy);
}

.products-page .products-1__title span {
  display: inline-block;
}

.products-page .products-1__text {
  margin-top: 12px;
  font-size: 13px;
  font-size: 1.3rem;
  line-height: 1.5;
}

.products-page .pp-anchors {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 50px;
}

.products-page .pp-anchors a {
  position: relative;
  display: block;
  padding: 13px 44px 13px 16px;
  background: var(--pp-blue);
  color: #fff;
  font-size: 16px;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.6;
  text-align: left;
}

.products-page .pp-anchors a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 10px;
  height: 10px;
  margin: 0;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: translateY(-70%) rotate(45deg);
}

/* ホバー：色を反転（アニメーションなし）。タッチ端末では反転が残らないよう hover: hover のみ */
@media (hover: hover) {
  .products-page .pp-anchors a:hover {
    background: #fff;
    color: var(--pp-blue);
    box-shadow: inset 0 0 0 2px var(--pp-blue);  /* 枠線（レイアウトがずれない） */
    text-decoration: none;
  }

  .products-page .pp-anchors a:hover::after {
    border-color: var(--pp-blue);
  }
}

.products-page .pp-anchors a:focus-visible {
  outline: 3px solid var(--pp-navy);
  outline-offset: 2px;
}

.products-page .pp-anchors__num {
  margin-right: .3em;
}

/* ---------- セクション ---------- */
.products-page .pp-section {
  padding: 60px 0;
  scroll-margin-top: 60px;
}

.products-page .pp-section--gray {
  background: var(--pp-gray);
}

.products-page .pp-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Noto Serif', serif;
  font-size: 20px;
  font-size: 2rem;
  line-height: 1.4;
  color: var(--pp-navy);
}

.products-page .pp-heading__num {
  flex: none;
  padding: 3px 6px;
  background: var(--pp-blue);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 500;
}

.products-page .pp-note {
  margin-top: 24px;
  padding: 16px;
  background: #fff;
}

.products-page .pp-section:not(.pp-section--gray) .pp-note {
  background: var(--pp-gray);
}

.products-page .pp-note > p {
  position: relative;
  /* padding-left: 1em; */
}

.products-page .pp-note > p + p {
  margin-top: 10px;
}

.products-page .pp-note__main {
  font-size: 16px;
  font-size: 1.6rem;
  /* font-weight: 700; */
  line-height: 1.5;
  padding-left: 1em;
}

.products-page .pp-note__main::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  border-left: 10px solid var(--pp-navy);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.products-page .pp-note__sub {
  font-size: 12px;
  font-size: 1.2rem;
  padding-left: 1.3em;
}

/* ---------- 共通パーツ ---------- */
/* WordPress の自動整形で入る空の p / br を無効にする */
.products-page .pp-note > p:empty,
.products-page .pp-note > br {
  display: none;
}

.products-page .pp-tag {
  display: inline-block;
  padding: 2px 10px;
  border: 1px solid var(--pp-text);
  background: #fff;
  font-size: 15px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.7;
}

.products-page .pp-name {
  margin-top: 5px;
  font-size: 24px;
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.products-page .pp-catch {
  font-size: 16px;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.products-page .pp-small {
  font-size: 12px;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.products-page .pp-feature__title {
  margin-top: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pp-line);
  font-size: 16px;
  font-size: 1.6rem;
}

.products-page .pp-feature__list {
  margin-top: 7px;
  font-size: 16px;
  font-size: 1.6rem;
}

.products-page .pp-feature__list + .pp-small {
  margin-top: 3px;
}

.products-page .pp-feature__line {
  font-size: 16px;
  font-size: 1.6rem;
}

.products-page .pp-feature__title + .pp-feature__line {
  margin-top: 10px;
}

.products-page .pp-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 14px;
  background: #00457e;
  color: #fff;
  font-size: 14px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.products-page .pp-btn::after {
  content: "";
  display: inline-block;
  margin-left: 8px;
  border-left: 9px solid #fff;
  border-top: 5.5px solid transparent;
  border-bottom: 6px solid transparent;
}

/* ホバー：色を反転（アニメーションなし）。base.css の a:hover { underline } も打ち消す */
@media (hover: hover) {
  .products-page .pp-btn:hover {
    background: #fff;
    color: #00457e;
    box-shadow: inset 0 0 0 2px #00457e;
    text-decoration: none;
  }

  .products-page .pp-btn:hover::after {
    border-left-color: #00457e;
  }
}

.products-page .pp-btn:focus-visible { outline: 3px solid var(--pp-navy); outline-offset: 2px; }

/* ---------- 乾燥機（SP：テキスト→画像 ／ PC：画像左・テキスト右） ---------- */
.products-page .pp-dryer {
  gap: 0;
  margin-top: 55px;
}

.products-page .pp-dryer__img {
  background: #fff;
  margin-top: 25px;
}

.products-page .pp-dryer__img img {
  display: block;
  width: 100%;
}

/* ---------- ダンパー（SP：テキスト→画像 ／ PC：2カラム・画像が上） ---------- */
.products-page .pp-grid {
  gap: 88px;
  margin-top: 55px;
}

.products-page .pp-card {
  display: flex;
  flex-direction: column;
}

.products-page .pp-card__body {
  flex: 1;
}

.products-page .pp-card__img {
  margin-top: 25px;
}

.products-page .pp-card__img img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- モーダル（ダンパー口径寸法表） ---------- */
/* 背面の透過ブラックを敷いた全画面レイヤー（普段は非表示、:target で表示） */
.products-page .pp-modal {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 12px;
  background: rgba(0, 0, 0, .7);
  color: var(--pp-text);
  font-size: 14px;
  font-size: 1.4rem;
  line-height: 1.6;
}

/* ボタン（<a href="#id">）を押すと、同じ id のモーダルが表示される */
.products-page .pp-modal:target {
  display: flex;
}

/* 表示中は背面をスクロールさせない（:has 対応ブラウザ） */
html:has(.pp-modal:target) {
  overflow: hidden;
}

/* 白いウィンドウの外側（黒い部分）を押すと閉じる */
.products-page .pp-modal__bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  cursor: default;
}

.products-page .pp-modal__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 12px 10px 22px;
  background: #fff;
}

.products-page .pp-modal__close {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 0 8px auto;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.products-page .pp-modal__close::before,
.products-page .pp-modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 1.5px;
  background: #333;
}

.products-page .pp-modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.products-page .pp-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.products-page .pp-modal__close:focus-visible {
  outline: 3px solid var(--pp-navy);
  outline-offset: 2px;
}

.products-page .pp-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: 1px solid #c8c8c8;
  text-align: center;
}

.products-page .pp-table th,
.products-page .pp-table td {
  padding: 5px 0;
  border: 1px solid #d8d8d8;
  font-size: 13px;
  font-size: 1.3rem;
  line-height: 1.6;
  font-weight: 400;
  vertical-align: middle;
}

.products-page .pp-table thead th {
  padding: 10px 4px;
  background: #e6e6e6;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.products-page .pp-table tbody th {
  background: #e6e6e6;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.products-page .pp-modal__note {
  margin-top: 12px;
  font-size: 12px;
  font-size: 1.2rem;
  line-height: 1.7;
  letter-spacing: -0.05em;
}

/* ※ のぶら下げインデント */
.products-page .pp-modal__note li {
  padding-left: 1em;
  text-indent: -1em;
  line-height: 1.5;
}

.products-page .pp-modal__note li:first-child {
  font-weight: 700;
}

/* ==========================================================
   PC（base.css と同じ 767px 以上）
   ========================================================== */
@media all and (min-width: 767px) {

  .header-bg {
    height: 220px;
    padding-top: 120px;
  }

  .header-bg h1 {
    font-size: 30px;
    font-size: 3.0rem;
  }

  .products-page .pp-sp {
    display: none;
  }

  .products-page .pp-pc {
    display: inline;
  }

  .products-page .products-1 {
    padding: 32px 0 56px;
  }

  .products-page .products-1__title {
    font-size: 35px;
    font-size: 3.5rem;
  }

  .products-page .products-1__text {
    font-size: 16px;
    font-size: 1.6rem;
  }

  .products-page .pp-anchors {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
  }


  .products-page .pp-anchors a {
    min-width: 210px;
    min-height: 50px;
    padding: 8px 0 10px;
    font-size: 15px;
    font-size: 1.5rem;
    text-align: center;
  }

  .products-page .pp-anchors a::after {
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    position: absolute;
    top: 65%;
    right: 100px;
  }

  .products-page .pp-section {
    padding: 60px 0;
    scroll-margin-top: 80px;
  }

  .products-page .pp-heading {
    font-size: 24px;
    font-size: 2.4rem;
  }
  
  .products-page .pp-note {
    padding: 20px 24px;
  }

  .products-page .pp-dryer {
    gap: 0;
    align-items: flex-start;
    margin-top: 48px;
  }

  .products-page .pp-dryer__img,
  .products-page .pp-dryer__body {
    flex: 0 0 auto;                  /* base.css の .flex-1 を打ち消す */
    width: calc((100% - 40px) / 2);  /* 48px が中央の余白 */
    margin-top: 0;
  }

  .products-page .pp-dryer__body {
    padding-left: 40px;
  }

  /* WordPress の自動整形で flex の中に入る p / br を無効にする */
  .products-page .flex > p,
  .products-page .flex > br {
    display: none;
  }

  .products-page .pp-note > p + p {
    margin-top: 4px;
  }

  .products-page .pp-grid {
    column-gap: 48px;
    row-gap: 95px;
    margin: 60px 0 80px 0;
  }

  .products-page .pp-card {
    width: calc((100% - 85px) / 2);
  }

  .products-page .pp-card__img {
    order: -1; margin: 0 0 25px;
  }

  /* モーダル（PC） */
  .products-page .pp-modal__inner {
    max-width: 680px;
    padding: 20px 32px 32px;
  }

  .products-page .pp-table thead th {
    font-size: 16px;
    font-size: 1.6rem;
    padding: 15px 0;
  }

  .products-page .pp-table th {
    font-size: 16px;
    font-size: 1.6rem;
  }

  .products-page .pp-table td {
    font-size: 16px;
    font-size: 1.6rem;
    padding: 8px 0;
  }

  .products-page .pp-modal__note {
    font-size: 14px;
    font-size: 1.4rem;
    letter-spacing: 0;
  }
}
