@charset "UTF-8";
/******************************************************************
Theme Name: ibarasekizai
Theme URI: https://ibarasekizai.co.jp/
Description: 井原石材 コーポレートサイト用のオリジナルテーマです。
Version: 1.0.0
Author: 井原石材有限会社
Author URI: https://ibarasekizai.co.jp/
******************************************************************/
.bg-primary {
  background-color: #042563;
  color: var(--bs-white);
}

.text-primary {
  color: #042563;
}

.bg-secondary-1 {
  background-color: #03204f;
  color: var(--bs-white);
}

.text-secondary-1 {
  color: #03204f;
}

.bg-secondary-2 {
  background-color: #196090;
  color: var(--bs-white);
}

.text-secondary-2 {
  color: #196090;
}

.bg-secondary-3 {
  background-color: #124364;
  color: var(--bs-white);
}

.text-secondary-3 {
  color: #124364;
}

.bg-secondary-4 {
  background-color: #0a2639;
  color: var(--bs-white);
}

.text-secondary-4 {
  color: #0a2639;
}

.bg-secondary-5 {
  background-color: #02090e;
  color: var(--bs-white);
}

.text-secondary-5 {
  color: #02090e;
}

.bg-secondary-tint-1 {
  background-color: #5faee3;
  color: #000;
}

.text-secondary-tint-1 {
  color: #5faee3;
}

.bg-secondary-tint-2 {
  background-color: #8bc4ea;
  color: #000;
}

.text-secondary-tint-2 {
  color: #8bc4ea;
}

.bg-secondary-analogous-1 {
  background-color: #34dbcb;
  color: var(--bs-white);
}

.text-secondary-analogous-1 {
  color: #34dbcb;
}

.bg-secondary-analogous-2 {
  background-color: #3445db;
  color: var(--bs-white);
}

.text-secondary-analogous-2 {
  color: #3445db;
}

.bg-secondary-complementary {
  background-color: #A68C48;
  color: var(--bs-white);
}

.text-secondary-complementary {
  color: #A68C48;
}

.bg-secondary-triad-1 {
  background-color: #db3498;
  color: var(--bs-white);
}

.text-secondary-triad-1 {
  color: #db3498;
}

.bg-secondary-triad-2 {
  background-color: #98db34;
  color: var(--bs-white);
}

.text-secondary-triad-2 {
  color: #98db34;
}

.bg-key-complement {
  background-color: #A68C48;
  color: var(--bs-white);
}

.text-key-complement {
  color: #A68C48;
}

.bg-key-analogous-1 {
  background-color: #34dbcb;
  color: var(--bs-white);
}

.text-key-analogous-1 {
  color: #34dbcb;
}

.bg-key-analogous-2 {
  background-color: #3445db;
  color: var(--bs-white);
}

.text-key-analogous-2 {
  color: #3445db;
}

.bg-key-triad-1 {
  background-color: #db3498;
  color: var(--bs-white);
}

.text-key-triad-1 {
  color: #db3498;
}

.bg-key-triad-2 {
  background-color: #98db34;
  color: var(--bs-white);
}

.text-key-triad-2 {
  color: #98db34;
}

.bg-key-shade-1 {
  background-color: #03204f;
  color: var(--bs-white);
}

.text-key-shade-1 {
  color: #03204f;
}

.bg-key-tint-1 {
  background-color: #5faee3;
  color: #000;
}

.text-key-tint-1 {
  color: #5faee3;
}

:root {
  /* 井原石材 デザイントークン（Guideline 正典 / _figma_shots/guideline/guideline_pc.png） */
  --black: #333333;       /* 文字色 */
  --primary: #042563;     /* コーポレートカラー */
  --secondary: #03204f;   /* primary のホバー暗色 */
  --key: #A68C48;         /* アクセント */
  --section-bg: #F0EDE8;  /* セクション背景 */
  --review-tag: #323063;  /* 口コミカテゴリ（Figma） */
  --text-muted: #808080;  /* 日付・補助テキスト */
  --header-height: 70px;  /* SP ヘッダーバー高さ（Figma nav_sp 70px） */
}

.container {
  --bs-gutter-x: 1.875rem;
}

html {
  overflow-x: hidden;
}

body {
  color: var(--black);
  background-color: var(--bs-white);
  font-family: "Roboto", "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  word-wrap: break-word;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding-top: var(--header-height);
}

.number-font {
  font-family: "Roboto", Helvetica, sans-serif;
}

a:hover {
  opacity: .75;
}

#breadcrumb {
  font-size: 60%;
  margin: 19px 0 0;
}

/* お墓の悩み解決ガイド一覧・施工事例 */
body.blog #breadcrumb,
body.post-type-archive-works #breadcrumb,
body.tax-works_cat #breadcrumb, .page-breadcrumb-wrap--section-bg #breadcrumb {
  margin: 0;
}

/* パンくず共通ラッパー（PC: 左右50px / SP: 左右15px） */
.page-breadcrumb-fluid {
  padding-left: 15px;
  padding-right: 15px;
}
.page-breadcrumb-box {
  width: 100%;
}
.page-breadcrumb-box--faq {
  margin-top: 0;
}
.page-breadcrumb-box--faq #breadcrumb {
  margin: 10px 0 0;
}
.page-breadcrumb-wrap--section-bg {
  background: var(--section-bg);
  padding: 19px 0 0;
}

#breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  max-width: 100%;
  list-style: none;
  overflow: visible;
  padding-left: 0;
  margin-bottom: 0;
  row-gap: 0.35em;
}

#breadcrumb ol li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  margin-left: .4em;
  font-size: 14px;
}

#breadcrumb ol li:not(.bc-current) {
  flex: 0 0 auto;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

#breadcrumb ol li:first-child {
  margin-left: 0;
}

#breadcrumb ol li.bc-current {
  color: #929292;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: normal;
  overflow-wrap: normal;
}

#breadcrumb ol li.bc-current span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#breadcrumb ol li a::after {
  color: var(--black);
  content: ">";
  display: inline-block;
  line-height: 1.7;
  margin-left: .4em;
}

#breadcrumb ol li a:hover {
  opacity: .5;
  filter: alpha(opacity=50);
  -ms-filter: "alpha(opacity=50)";
}

#breadcrumb li a {
  text-decoration: underline;
  max-width: 100%;
}

.bc-home-ic {
  display: inline-flex;
  align-items: center;
  width: 15px;
  height: 18px;
  vertical-align: -.32em;
  color: var(--black);
  margin-right: 10px;
}
.bc-home-ic svg { width: 100%; height: 100%; display: block; }

button {
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

input[type="submit"] {
  cursor: pointer;
  -webkit-transition: 0.3s ease-in-out;
  -moz-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}

input[type="text"] {
  display: block;
  padding: 10px 2%;
  font-size: 1em;
  color: var(--black);
  -webkit-transition: background-color .24s ease-in-out;
  transition: background-color .24s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--bs-gray-400);
}

input[type="email"] {
  display: block;
  padding: 10px 2%;
  font-size: 1em;
  color: var(--black);
  -webkit-transition: background-color .24s ease-in-out;
  transition: background-color .24s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--bs-gray-400);
}

input[type="url"] {
  display: block;
  padding: 10px 2%;
  font-size: 1em;
  color: var(--black);
  -webkit-transition: background-color .24s ease-in-out;
  transition: background-color .24s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--bs-gray-400);
}

textarea {
  display: block;
  padding: 10px 2%;
  font-size: 1em;
  color: var(--black);
  -webkit-transition: background-color .24s ease-in-out;
  transition: background-color .24s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: 1px solid var(--bs-gray-400);
  resize: vertical;
}

select {
  width: auto;
  border: 1px solid var(--bs-gray-400);
  padding: 10px 30px 10px 2%;
  -webkit-appearance: none;
  appearance: none;
  background-image: url(./library/images/material/select-arrow.svg);
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 13px 13px;
}

.asterisk {
  color: var(--bs-red);
}

input[type="search"] {
  display: block;
  padding: 10px 2%;
  font-size: 16px;
  -webkit-transition: background-color .24s ease-in-out;
  transition: background-color .24s ease-in-out;
  -webkit-appearance: none;
  appearance: none;
  width: calc(100% - 70px);
  height: 40px;
  line-height: 40px;
  border: 1px solid var(--bs-gray-400);
}

.searchform button {
  height: 40px;
  width: 50px;
  cursor: pointer;
  position: relative;
  border: none;
  border-radius: 4px;
  background: var(--bs-gray-100);
}

.searchform button::before {
  content: " ";
  background-image: url(./library/images/icon/search.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: inline-block;
  width: 23px;
  height: 22px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.policy ul {
  list-style: none;
  padding-left: 0;
}

.policy ul li {
  position: relative;
  padding-left: 25px;
}

.policy ul li span {
  position: absolute;
  left: 0;
}

.lower-page {
  max-width: 1100px;
  padding-top: 80px;
  padding-bottom: 100px;
}

/* 見つからなかったときの表示（404／検索0件／一覧0件）を、他の下層ページと同じ体裁に揃える */
#not-found,
#post-not-found {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  background: var(--section-bg);
  border: 1px solid var(--bs-gray-300);
  padding: 40px 20px;
  border-radius: 10px;
}

#not-found h2,
#post-not-found h2 {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.48px;
  color: var(--black);
  margin: 0 0 15px;
}

#not-found p,
#post-not-found p {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
}

#not-found .not-found-sec,
#post-not-found .not-found-sec {
  margin-top: 40px;
}

#not-found h3,
#post-not-found h3 {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 40px;
  letter-spacing: 0.4px;
  color: var(--black);
  background: #f1f1f1;
  border: none;
  border-left: 5px solid var(--primary);
  padding: 5px 15px;
  margin: 0 0 15px;
}

table.form {
  margin-top: -15px;
}

table.form tr th {
  vertical-align: text-top;
  padding: 15px 0 0;
}

table.sp-block-table tr th {
  display: block;
  width: 100%;
  text-align: left;
}

table.sp-block-table tr td {
  display: block;
  width: 100%;
  text-align: left;
}

.contact-btn-flex-box {
  display: flex;
  justify-content: center;
  margin-left: -7.5px;
  margin-right: -7.5px;
}

.contact-btn-flex-box button {
  margin: 0 7.5px;
}

.category-name {
  padding: .2em .5em;
  opacity: .9;
  filter: alpha(opacity=90);
  -ms-filter: "alpha(opacity=90)";
  font-size: 65%;
}

@media print, screen and (min-width: 768px) {
  .container {
    --bs-gutter-x: 1.25rem;
  }
  .lower-page {
    padding-top: 100px;
    padding-bottom: 100px;
  }
  #breadcrumb {
    margin: 23px 0 0;
  }
  .page-breadcrumb-box--faq #breadcrumb {
    margin: 17px 0 0;
  }
  .page-breadcrumb-fluid {
    padding-left: 24px;
    padding-right: 24px;
  }
  #not-found {
    padding: 40px;
  }
  #not-found h2 {
    font-size: 28px;
  }
  #post-not-found {
    padding: 40px;
  }
  #post-not-found h2 {
    font-size: 28px;
  }
  table.sp-block-table tr th {
    display: table-cell;
    width: auto;
  }
  table.sp-block-table tr td {
    display: table-cell;
    width: auto;
  }
  table.form.sp-block-table tr th {
    padding: 20px 10px 20px 0;
    font-size: 20px;
    line-height: 1.2;
    width: 280px;
  }
}

.primary-ttl01 {
  border-left: 5px solid var(--primary);
}

.primary-btn01 {
  background: var(--primary);
  color: var(--bs-white);
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 5px;
  padding: .75rem 1.5rem;
  position: relative;
  box-shadow: 0 0 10px var(--bs-gray-400);
  display: inline-block;
  text-align: center;
}

.primary-btn01::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 15px;
  width: 7px;
  height: 7px;
  margin: auto 0;
  border-top: 1px solid var(--bs-white);
  border-right: 1px solid var(--bs-white);
  transform: rotate(45deg);
  transition: all 0.3s;
}

.primary-btn01:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  opacity: 1;
}

.primary-btn01.rev {
  background: var(--bs-white);
  color: var(--primary);
}

.primary-btn01.rev::after {
  border-top: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}

.primary-btn01.rev:hover {
  background: var(--primary);
  color: var(--bs-white);
}

.primary-btn01.rev:hover::after {
  border-top: 1px solid var(--bs-white);
  border-right: 1px solid var(--bs-white);
}

@media print, screen and (min-width: 768px) {
  .primary-btn01 {
    max-width: 250px;
  }
}

@media print, screen and (min-width: 1200px) {
  .primary-btn01 {
    padding: 1rem 1.5rem;
  }
}

table {
  border-collapse: collapse;
}

table th, table td {
  width: 100%;
  display: inline-block;
  padding: .85em 0;
  text-align: left;
}

table th + td {
  padding-top: 0;
}

table td {
  border-bottom: 1px solid var(--bs-gray-400);
}

@media print, screen and (min-width: 768px) {
  table th, table td {
    display: table-cell;
    width: auto;
  }
  table tr {
    border-bottom: 1px solid var(--bs-gray-400);
  }
  table th + td {
    padding-top: .85em;
  }
  table td {
    border-bottom: none;
  }
}

@media print, screen and (min-width: 1200px) {
  .page-breadcrumb-fluid {
    padding-left: 50px;
    padding-right: 50px;
  }
}

/* =========================================================
   フッター（Figma 20260626 / モバイルファースト）
   ========================================================= */
.footer {
  background: var(--primary);
  color: #fff;
  -webkit-text-fill-color: #fff;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 40px;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.footer-main {
  padding: 0;
}
.footer-main .container,
.footer-copy .container {
  max-width: none;
  width: 100%;
  padding-inline: 20px;
}

.footer-cols {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* SP: メニュー先頭 / 会社情報その下 */
.footer-spnav {
  order: 1;
}
.footer-company {
  order: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-company .header-logo-card {
  padding: 8px 10px 6px;
  width: 160px;
}
.footer-company .header-logo-card img {
  height: 44.18px;
}
.footer-right {
  display: none;
}

/* SP 縦並びメニュー */
.footer-spnav-list {
  display: flex;
  flex-direction: column;
}
.footer-spnav-item {
  border-bottom: 1px solid #9C9C9C;
  padding-block: 15px;
}
.footer-spnav-link,
.footer-spnav-head {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.32px;
  text-decoration: none;
}
.footer-spnav-item--group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-spnav-sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-inline: 30px;
}
.footer-spnav-sub a {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .02em;
  text-decoration: none;
}

/* 会社情報 */
.footer-logo-card {
  margin-bottom: 0;
  align-self: flex-start;
  width: fit-content;
}
.footer-logo-card img {
  height: 44px;
  width: auto;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-lead {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.30px;
  margin: 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.footer-tel,
.footer-tel:link,
.footer-tel:visited,
.footer-tel:hover,
.footer-tel:active {
  color: #fff;
  -webkit-text-fill-color: #fff;
  gap: 5px;
  margin: 0;
}
.footer-tel-icon {
  display: inline-flex;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
}
.footer-tel-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.footer-tel-num {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.footer-address {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .02em;
  margin: 0;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
/* iOS が住所内の電話番号を自動リンク化したときの色崩れ防止 */
.footer-address a,
.footer-address a:link,
.footer-address a:visited,
.footer a[href^="tel"],
.footer a[href^="tel"]:link,
.footer a[href^="tel"]:visited {
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
}
.footer-company-name {
  display: inline-block;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.8;
  letter-spacing: .02em;
  margin-bottom: 5px;
}

/* 下帯（コピーライト） */
.footer-copy {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: .02em;
}
.footer-copy-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding-block: 10px;
  border-top: 1px solid var(--bs-white);
}
.footer-copy-text {
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.footer-policy {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.28px;
  text-decoration: underline;
}

@media print, screen and (min-width: 992px) {
  .footer {
    gap: 70px;
    padding-top: 60px;
  }
  .footer-main .container,
  .footer-copy .container {
    padding-inline: 26px;
  }
  .footer-cols {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    width: 100%;
  }
  .footer-spnav {
    display: none;
  }
  .footer-company {
    order: 0;
    flex: 0 0 auto;
    gap: 27px;
  }
  .footer-right {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 40px;
    padding-block: 10px;
    padding-inline: 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
  }
  .footer-topnav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px 30px;
  }
  .footer-topnav-list a {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.36px;
    text-decoration: none;
    white-space: nowrap;
  }
  .footer-collist {
    display: flex;
    flex-wrap: nowrap;
    gap: 50px;
  }
  .footer-col {
    flex: 0 0 auto;
    min-width: 0;
  }
  .footer-col-head {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.36px;
    margin-bottom: 10px;
  }
  .footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-inline: 20px;
    margin-top: 10px;
  }
  .footer-col li a {
    color: #fff;
    -webkit-text-fill-color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.32px;
    text-decoration: none;
  }
  .footer-logo-card img {
    height: 44px;
  }
  .footer-tel-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
  }
  .footer-company-name {
    font-size: 26px;
    line-height: 1.8;
    letter-spacing: 0.52px;
  }
  .footer-address {
    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.32px;
  }
  .footer-copy-inner {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}
/* 1920 PDF準拠: container を全幅にし、左右 100px 余白 / topnav 一列 */
@media print, screen and (min-width: 1440px) {
  .footer-main .container,
  .footer-copy .container {
    padding-inline: 100px;
  }
  .footer-topnav-list {
    flex-wrap: nowrap;
  }
}
/* =========================================================
   ヘッダー（井原石材 / navy 2段 / 出典: _figma_shots/screens/top/full_pc.png）
   ========================================================= */

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 100%;
}
#header > .visually-hidden {
  position: absolute;
  margin: 0;
}

.page-top-visual figure {
  margin: 0;
  line-height: 0;
}
.page-top-visual img {
  display: block;
  width: 100%;
}

@media (max-width: 991px) {
  #header {
    height: var(--header-height);
    background: var(--primary);
  }

  /* 固定ヘッダー直下のフル幅ヒーロー — body padding-top との隙間を解消（SP） */
  .page-top-visual-section:not(.page-top-visual-section--faq),
  .company-hero,
  .whyus-hero {
    margin-top: calc(-1 * var(--header-height));
  }

  /* テキストありヒーロー：画像だけ上に伸ばし、本文はヘッダー下から表示 */
  .fp-kv {
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
  }
  .lower-hero--page {
    margin-top: calc(-1 * var(--header-height));
    padding-top: var(--header-height);
    box-sizing: border-box;
    min-height: calc(205px + var(--header-height));
  }
}

/* SP ヘッダーバー（〜991px） */
.header-sp {
  position: relative;
  height: var(--header-height);
  background: var(--primary);
  padding: 0 15px;
}

.header-sp .header-logo {
  display: flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}

.header-hamburger {
  flex: 0 0 40px;
  width: 40px;
  height: var(--header-height);
}

/* ロゴカード（白角丸・PC/SP 共通。ロゴ画像は濃色透過のため白背景必須） */
.header-logo-card {
  background: #D9D9D9;
  border-radius: 6px;
  padding: 6px 9px;
  line-height: 0;
}

.header-logo-card img {
  height: 36px;
  width: auto;
  display: block;
}

.header-hamburger-btn {
  position: fixed;
  top: 0;
  right: 15px;
  width: 60px;
  height: var(--header-height);
  background: transparent;
  border: none;
  padding: 0;
  z-index: 1; /* オーバーレイ(9)・パネル(10)より下。閉じたときは navy ヘッダー上に表示 */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.header-hamburger-btn-inner {
  display: block;
  position: relative;
  width: 30px;
  height: 16px;
}

.header-hamburger-btn-line {
  position: absolute;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--bs-white);
  -webkit-transition: .35s ease-in-out;
  -moz-transition: .35s ease-in-out;
  transition: .35s ease-in-out;
}

.header-hamburger-btn-line:nth-child(1) {
  top: calc(50% - 12px);
}

.header-hamburger-btn-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.header-hamburger-btn-line:nth-child(3) {
  top: calc(50% + 9px);
}

.header-hamburger-overlay {
  position: fixed;
  inset: 0;
  z-index: 9;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity .35s ease, visibility .35s ease;
  transition: opacity .35s ease, visibility .35s ease;
}

html.open .header-hamburger-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

html.open {
  overflow: hidden;
}

.header-hamburger-nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: calc(100% - 40px);
  max-width: 350px;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity .35s ease, visibility .35s ease;
  transition: opacity .35s ease, visibility .35s ease;
  box-shadow: 1px 0 8px rgba(0, 0, 0, .08);
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html.open .header-hamburger-nav {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .header-hamburger-nav,
  .header-hamburger-overlay {
    -webkit-transition: none;
    transition: none;
  }
}

.header-hamburger-nav::-webkit-scrollbar {
  display: none;
}

.header-hamburger-nav-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 100px;
  padding: 20px 15px;
  background: #D9D9D9;
}

.header-hamburger-nav-logo .header-logo-card img {
  height: 33px;
}

.header-hamburger-close-btn {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  position: relative;
  border: none;
  padding: 0;
  background: #E8E9EB;
  cursor: pointer;
}

.header-hamburger-close-btn::before,
.header-hamburger-close-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 2px;
  margin-top: -1px;
  margin-left: -15px;
  background: var(--black);
}

.header-hamburger-close-btn::before {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.header-hamburger-close-btn::after {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

.header-hamburger-nav-inner ul {
  list-style: none;
  margin: 0;
  padding: 13px 25px 15px;
}

.header-hamburger-nav-inner ul:not(.sub-menu) > li {
  position: relative;
}

.header-hamburger-nav-inner a {
  display: block;
  padding: 20px 15px;
  color: var(--black);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 1px solid #808080;
}

.header-hamburger-nav-inner li:has(> .sub-menu) {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  border-bottom: 1px solid #808080;
}

.header-hamburger-nav-inner li:has(> .sub-menu) > a {
  flex: 1 1 0;
  min-width: 0;
  padding-right: 10px;
  border-bottom: none;
}

.header-hamburger-nav-inner li.is-submenu-open {
  border-bottom: none;
}

.header-hamburger-nav-inner li.is-submenu-open > a {
  background: #EAEAEA;
  box-shadow: inset 0 -1px 0 #808080;
}

.header-hamburger-nav-inner li.is-submenu-open > .accordion_icon {
  background: #EAEAEA;
  box-shadow: inset 0 -1px 0 #808080;
}

.header-hamburger-nav-inner .accordion_icon {
  flex: 0 0 54px;
  align-self: stretch;
  position: relative;
  box-sizing: border-box;
  width: 54px;
  height: auto;
  min-height: 66px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.header-hamburger-nav-inner .accordion_icon::before,
.header-hamburger-nav-inner .accordion_icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--primary);
  -webkit-transition: opacity .3s, -webkit-transform .3s;
  transition: opacity .3s, transform .3s;
}

/* ＋ の横棒 */
.header-hamburger-nav-inner .accordion_icon::before {
  width: 14px;
  height: 1px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* ＋ の縦棒（展開時は非表示 → － になる） */
.header-hamburger-nav-inner .accordion_icon::after {
  width: 1px;
  height: 14px;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.header-hamburger-nav-inner .accordion_icon.sp-menu-close::after {
  opacity: 0;
  -webkit-transform: translate(-50%, -50%) scaleY(0);
  transform: translate(-50%, -50%) scaleY(0);
}

.header-hamburger-nav-inner .sub-menu {
  display: none;
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  background: #F6F6F6;
}

.header-hamburger-nav-inner .sub-menu a {
  padding: 20px 15px;
  font-weight: 600;
}

.header-hamburger-nav-inner li.nav-submenu-grouped > .sub-menu > li:not(.nav-submenu-lead) > a {
  padding-left: 30px;
}

.header-hamburger-nav-inner li.nav-submenu-lead > a {
  border-bottom-color: #808080;
}

/* SNS（SP メニュー最下部）
   デザイン実測：丸の直径56px・丸どうしの間隔24px・中心間80px。
   アイコンの画像は周囲に余白を持つ（丸は枠の93.75%）ため、枠は60px・gapは20pxで合う。 */
.header-sns img {
  display: block;
}
.header-sns--sp {
  gap: 20px;
  padding: 30px 25px 40px;
}
.header-sns--sp img {
  width: 60px;
  height: 60px;
}

.header-contact-btn {
  border-radius: 25px;
  padding: 5px 10px;
  text-decoration: none;
  transition: all ease-in 0.2s;
}

@media print, screen and (min-width: 576px) {
  .header-hamburger-nav {
    width: 350px;
    max-width: 350px;
  }
}

@media print, screen and (min-width: 992px) {
  body {
    --header-height: 188px; /* 上段77px + 2段グロナビ */
  }

  /* ---- 上段（タグライン / ロゴ / TEL / SNS） ---- */
  .header-upper {
    background: var(--primary);
    position: relative;
  }
  /* デザイン実測：丸の直径38px・丸どうしの間隔24px・中心間62px・画面右端から23px */
  .header-sns--pc {
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    gap: 22px;
  }
  .header-sns--pc img {
    width: 40px;
    height: 40px;
  }
  .header-upper-inner {
    height: 77px;
    gap: 27px;
  }
  .header-tagline {
    color: var(--bs-white);
    font-size: 15px;
    letter-spacing: .02em;
    line-height: 1.6;
  }
  .header-upper .header-logo-card {
    padding: 7px 9px 5px;
  }
  .header-upper .header-logo-card img {
    height: 37px;
  }
  .header-tel-block,
  .header-tel-block:link,
  .header-tel-block:visited,
  .header-tel-block:hover,
  .header-tel-block:active {
    color: #fff;
    -webkit-text-fill-color: #fff;
  }
  .header-tel-icon {
    display: inline-flex;
    margin-right: 10px;
  }
  .header-tel-icon svg {
    width: 42px;
    height: 42px;
  }
  .header-tel-text {
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }
  .header-tel-num {
    /* font-family: "Roboto", sans-serif; */
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .02em;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }
  .header-tel-hours {
    font-size: 14px;
    font-weight: 400;
    /* opacity: .85; */
    letter-spacing: .02em;
    line-height: 1;
    color: #fff;
    -webkit-text-fill-color: #fff;
  }

  /* ---- 下段グローバルナビ（Figma: 〜1260px・16px / 左右24px・2段折り返し） ---- */
  .header-lower {
    --header-nav-font-size: 16px;
    --header-subnav-font-size: 16px;
    background: var(--bs-white);
    box-shadow: 0 4px 10px rgba(143, 143, 143, .25);
    overflow: visible;
    padding-block: 10px;
  }
  .header-lower .container {
    max-width: 100%;
    padding-inline: 30px 20px;
  }
  .header-global-nav > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .header-global-nav > ul > li.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    list-style: none;
  }
  /* 区切り線（行末は custom.js が .is-row-end を付与して非表示） */
  .header-global-nav > ul > li.menu-item > a {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    font-size: var(--header-nav-font-size);
    line-height: 1.6;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-decoration: none;
    border-right: 1px solid #c9c9c9;
    transition: background-color .2s ease;
  }
  .header-global-nav > ul > li.menu-item.is-row-end > a,
  .header-global-nav > ul > li.menu-item:last-child > a {
    border-right: none;
  }
  .header-global-nav > ul > li.menu-item > a:hover,
  .header-global-nav > ul > li.menu-item:hover > a {
    background: #eaeaea;
    opacity: 1;
  }
  /* ▼ 印（12×7 / #042563 / gap 5px） */
  .header-global-nav > ul > li:has(> .sub-menu) > a::after {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 12px;
    height: 7px;
    margin-left: 5px;
    transform: translateY(-1px);
    background: url(./library/images/material/nav-submenu-arrow.svg) center / contain no-repeat;
  }
  /* ドロップダウン（Figma: 20260625-PC親メニューホバー時） */
  .header-global-nav > ul > li > .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    min-width: 230px;
    margin: 0;
    padding: 20px 10px;
    list-style: none;
    background: var(--bs-white);
    box-shadow: 0 4px 10px rgba(143, 143, 143, .25);
  }
  .header-global-nav > ul > li:hover > .sub-menu {
    display: block;
  }
  .header-global-nav > ul > li > .sub-menu li {
    border-left: none;
  }
  .header-global-nav > ul > li > .sub-menu li a {
    display: block;
    color: var(--black);
    padding: 10px 20px;
    font-weight: 700;
    line-height: 1.6;
    letter-spacing: 0.02em;
    border-bottom: 1px solid #ebebeb;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color .2s ease;
  }
  .header-global-nav ul.sub-menu a {
    font-size: var(--header-subnav-font-size);
  }
  .header-global-nav > ul > li > .sub-menu > li:first-child > a {
    border-top: 1px solid #ebebeb;
  }
  .header-global-nav > ul > li > .sub-menu li a:hover {
    background: #eaeaea;
    opacity: 1;
  }
  /* グループ型サブメニュー：親メニューに nav-submenu-grouped を指定 */
  .header-global-nav > ul > li.nav-submenu-grouped > .sub-menu {
    min-width: 0;
    width: max-content;
  }
  .header-global-nav > ul > li.nav-submenu-grouped > .sub-menu > li:first-child > a {
    border-top: none;
  }
  .header-global-nav > ul > li.nav-submenu-grouped > .sub-menu > li:not(.nav-submenu-lead) {
    padding-left: 30px;
  }
  /* 先頭項目：子メニューに nav-submenu-lead を指定 → 下線 #808080 */
  .header-global-nav > ul > li > .sub-menu li.nav-submenu-lead > a {
    border-bottom-color: #808080;
  }
}

@media print, screen and (min-width: 1261px) {
  body {
    --header-height: 143px; /* 上段77px + 1段グロナビ */
  }
  .header-global-nav > ul > li.menu-item:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 46px;
    background: #c9c9c9;
  }
  .header-global-nav > ul > li.menu-item > a {
    border-right: none;
  }
  .header-lower .container {
    padding-inline: 15px;
  }
  .header-global-nav > ul {
    flex-wrap: nowrap;
  }
  .header-global-nav > ul > li.menu-item > a {
    padding-inline: 25px;
  }
}

/* ===== フェードイン基盤（全セクション / custom.js と対） ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* =========================================================
   P2 トップ（frontpage.php / Figma node 1:33）
   ========================================================= */
.fp { overflow: hidden; max-width: 100%; }
/* 長文・ラベル類のみ Noto Sans JP（見出し・明朝テキストは body の Noto Serif JP を継承） */
.fp-sans,
.fp-kv .fp-promise,
.fp-reason-tx,
.fp-review-text,
.fp-review-more,
.fp-worry-item,
.fp-vcard-date,
.fp-hcard-date,
.fp-hcard-meta .fp-badge,
.fp-badge-on,
.fp-catbtn, .fp-blog-more .primary-btn01 {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
}

/* セクション共通（フルブリード帯＋内側1100幅） */
.fp-sec {
  padding: 80px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fp-sec > * {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.fp-sec-ttl {
  text-align: center;
  color: var(--black);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: .04em;
  margin: 0 0 26px;
}
.fp-sec-head {
  text-align: center;
  margin-bottom: 30px;
}
.fp-sec-sub {
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
}

/* バッジ（カテゴリ） */
.fp-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: var(--bs-white);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  padding: 3px 15px;
  border-radius: 5px;
  white-space: nowrap;
}
.fp-badge-ic {
  width: 13px;
  height: 13px;
  display: inline-block;
  flex: none;
  background-color: var(--primary);
  -webkit-mask-image: url(./library/images/icon/icon-tag.svg);
  mask-image: url(./library/images/icon/icon-tag.svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.fp-badge-ic svg,
.fp-badge-ic img { width: 100%; height: 100%; display: block; opacity: 0; }
.fp-badge-on {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  border-radius: 0 0 5px 0;
  font-size: 16px;
}

/* ============ KV ============ */
.fp-kv {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 625px;
}
.fp-kv-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
}
.fp-kv-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.fp-kv-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}
.fp-kv-copy-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 15px 0;
}
.fp-kv-copy {
  margin: 0;
  color: var(--black);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  /* Guideline（正典）の字間 2%。PC/SP ともカンプ実測の文字幅に一致する */
  letter-spacing: .02em;
}
.fp-kv-em {
  color: var(--primary);
  font-size: 55px;
  line-height: 1.5;
  text-decoration: underline;
  text-decoration-color: rgba(242, 187, 57, 0.7);
  text-decoration-thickness: 13px;
  text-underline-offset: -5px;
}
.fp-promise {
  position: relative;
  z-index: 1;
  margin: 41px 25px 0;
  width: auto;
  background: rgba(250, 249, 247, 0.9);
  border-radius: 5px;
  padding: 10px 20px 25px;
  box-shadow: 0 2px 24px rgba(0,0,0,.07);
}
.fp-promise-head {
  text-align: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 10px;
}
.fp-kv .fp-promise-head {
  color: var(--black);
  border-bottom: 1px solid #BFC4CE;
  padding-bottom: 10px;
  margin-bottom: 0;
  margin-inline: -20px;
  padding-inline: 20px;
}
.fp-promise-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: none;
  padding-top: 20px;
}
.fp-promise-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.fp-kv .fp-promise-item {
  flex-direction: row-reverse;
  justify-content: space-between;
  gap: 5px;
}
.fp-promise-item + .fp-promise-item {
  border-top: 1px solid #BFC4CE;
  margin-top: 15px;
  padding-top: 10px;
}
.fp-promise-ic {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-block;
  background-color: var(--black);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.fp-promise-item:nth-child(1) .fp-promise-ic {
  -webkit-mask-image: url(./library/images/icon/icon-promise01.svg);
  mask-image: url(./library/images/icon/icon-promise01.svg);
}
.fp-promise-item:nth-child(2) .fp-promise-ic {
  -webkit-mask-image: url(./library/images/icon/icon-promise02.svg);
  mask-image: url(./library/images/icon/icon-promise02.svg);
}
.fp-promise-item:nth-child(3) .fp-promise-ic {
  -webkit-mask-image: url(./library/images/icon/icon-promise03.svg);
  mask-image: url(./library/images/icon/icon-promise03.svg);
}
.fp-promise-ic img { width: 100%; height: 100%; display: block; opacity: 0; }
.fp-promise-tx {
  display: inline-block;
  font-weight: 700;
  color: var(--black);
}
.fp-kv .fp-promise-tx {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
  display: block;
}
.fp-promise-tx-lead {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.fp-promise-tx-em {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: .02em;
}
.fp-promise-tx--stack .fp-promise-tx-lead,
.fp-promise-tx--stack .fp-promise-tx-em {
  display: block;
}

/* SPのみ：約束帯直下の whyus 誘導ボタン（Figma SP） */
.fp-kv-whyus-wrap {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 20px auto 28px;
  padding: 0 10px;
}
.fp-kv-whyus-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px 24px;
  background: var(--primary);
  color: var(--bs-white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: .02em;
  text-decoration: none;
  transition: opacity .3s;
}
.fp-kv-whyus-btn:hover {
  color: var(--bs-white);
  opacity: .85;
}

@media (min-width: 768px) {
  .fp-promise {
    margin: 41px auto 0;
    width: min(576px, 92%);
  }
}

/* ============ お客様の声 ============ */
.fp-review { background: var(--bs-white); padding: 70px 15px 60px; }
.fp-review .fp-sec-ttl {
  margin: 0 0 23px;
}
.fp-review-stage {
  position: relative;
  max-width: 1240px !important;
  padding: 0;
}
.fp-review-vp { position: relative; overflow-x: hidden; overflow-y: visible; }
/* SP: スワイプヒント（横スクロール可能であることを示す） */
.fp-review-scroll-hint {
  display: none;
  opacity: 0.7;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
}
.fp-review-scroll-hint.is-scroll {
  visibility: hidden;
  opacity: 0;
}
.fp-review-scroll-hint-inr {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 15px 10px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  animation: fp-review-scroll-hint-blink 2s infinite ease-in-out;
}
.fp-review-scroll-hint-ic img {
  display: block;
  width: 50px;
  height: auto;
}
@keyframes fp-review-scroll-hint-blink {
  0% { opacity: 0.2; }
  50% { opacity: 1; }
  100% { opacity: 0.2; }
}
.fp-review-slider {
  display: flex;
  gap: 20px;
  transition: transform .42s ease;
  align-items: flex-start;
}
.fp-review-nav {
  position: absolute;
  top: 140px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
}
.fp-review-nav span {
  display: block;
  width: 11px;
  height: 11px;
  border-top: 2px solid var(--bs-white);
  border-right: 2px solid var(--bs-white);
}
.fp-review-prev { left: 0; }
.fp-review-prev span { transform: rotate(-135deg); margin-left: 4px; }
.fp-review-next { right: 0; }
.fp-review-next span { transform: rotate(45deg); margin-right: 4px; }
.fp-review-nav:hover { background: var(--secondary); }
/* SP: カード下のプログレスバー（Figma SP忠実） */
.fp-review-progress {
  display: block;
  width: 243px;
  max-width: 100%;
  height: 3px;
  margin: 23px auto 0;
  background: #d9d9d9;
  position: relative;
  overflow: hidden;
}
.fp-review-progress-thumb {
  display: block;
  height: 3px;
  background: #939393;
  transition: transform .42s ease, width .42s ease;
  will-change: transform;
}
.fp-review-card {
  flex: 0 0 100%;
  background: #eeeeee;
  border-radius: 5px;
  padding: 20px;
  box-sizing: border-box;
}
.fp-review-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
/* タグ＋氏名を左カラムに縦積み、円形写真を右に中央揃え（Figma忠実） */
.fp-review-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
/* レビューのタグは navy 塗りアイコン＋navy文字（Figma忠実） */
.fp-review-head .fp-badge {
  position: static;
  background: transparent;
  color: var(--black);
  padding: 0;
  gap: 6px;
  font-size: 16px;
  font-weight: 500;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}
.fp-review-head .fp-badge-ic {
  width: 30px;
  height: 30px;
  background-color: var(--review-tag);
}
.fp-review-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: 0 0 100px;
}
.fp-review-name {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  margin: 0;
}
.fp-review-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp-review-card.is-open .fp-review-text {
  -webkit-line-clamp: unset;
  overflow: visible;
}
.fp-review-more {
  background: none;
  border: none;
  padding: 0;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--black);
  text-decoration: underline;
}

/* ============ 選ばれる理由 ============ */
.fp-reasons { background: var(--section-bg); padding: 70px 15px 60px; }
.fp-reasons .fp-sec-ttl { font-size: 28px; line-height: 1.8; }
.fp-reasons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 70px;
}
.fp-reason {
  background: var(--bs-white);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 22px 23px 20px;
  text-align: justify;
}
.fp-reason-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 20px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--primary);
}
.fp-reason-em { color: var(--key); font-weight: 500; }
.fp-reason-ic { width: 40px; height: 40px; color: var(--key); flex: none; }
.fp-reason-ic svg,
.fp-reason-ic img { width: 100%; height: 100%; display: block; }
.fp-reason-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  letter-spacing: .02em;
}
.fp-reason-tx {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
}
.fp-reasons-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  color: var(--black);
  margin: 0;
}

/* ============ お悩み ============ */
.fp-worry { background: var(--bs-white); padding: 80px 20px 0;}
.fp-worry.post-worry {
  padding: 80px 20px 50px;
}
.fp-worry .fp-sec-ttl { margin-bottom: 50px; }
.fp-worry-box-wrap {
  max-width: 600px;
  margin: 0 auto 40px;
}
.fp-worry-box {
  position: relative;
  border: 3px dotted #b9b4aa;
  border-radius: 10px;
  padding: 40px 26px;
  background-color: var(--bs-white);
}
.post-worry .fp-worry-box {
  padding: 30px 26px 50px;
}
.fp-worry-img {
  position: absolute;
  right: 0;
  bottom: -31px;
  width: 88px;
  height: auto;
  z-index: 1;
  display: block;
  margin: 0;
}
.post-worry .fp-worry-img {
  bottom: -19px;
}
.fp-worry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--black);
  padding: 20px 0;
  text-align: left;
  border-bottom: 1px solid #CDCDCD;
}
.fp-worry-ck {
  position: relative;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #eceae5;
  color: var(--primary);
  flex: none;
  overflow: visible;
}
.fp-worry-ck img {
  position: absolute;
  top: 4px;
  left: 7px;
  width: 17px;
  height: auto;
  display: block;
}
.fp-worry-lead {
  text-align: center;
  font-size: 18px;
  line-height: 2;
  color: var(--black);
  font-weight: 700;
  margin: 0;
}

/* ============ 相談CTA ============ */
.fp-leadcta { background: var(--bs-white); padding-bottom: 100px;}
.fp-leadcta-inner {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.fp-leadcta-photo {
  order: 2;
  width: 100%;
  height: 252px;
  background-size: cover;
  background-position: center;
  flex: none;
}
.fp-leadcta-body {
  order: 1;
  flex: 1;
  background: var(--primary);
  color: var(--bs-white);
  padding: 40px 30px;
  text-align: center;
}
.fp-leadcta-ttl {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 15px;
  letter-spacing: .02em;
}
.fp-leadcta-tx {
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  margin: 0 0 25px;
  color: var(--bs-white);
}
.fp-leadcta-btns {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 360px;
  margin: 0 auto;
}
.fp-leadcta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--bs-white);
  border-radius: 5px;
  padding: 14px 20px;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  transition: all .3s;
}
.fp-leadcta-btn-ic { width: 40px; height: 40px; display: inline-flex; }
.fp-leadcta-btn-ic svg { width: 100%; height: 100%; display: block; }
.fp-leadcta-btn-ic svg .cls-1 { transition: fill .3s; }
.fp-leadcta-btn:hover {
  background: var(--bs-white);
  color: var(--primary);
  -webkit-text-fill-color: var(--primary);
  opacity: 1;
}
.fp-leadcta-btn:hover .fp-leadcta-btn-ic svg .cls-1 { fill: var(--primary); }

/* ============ 基礎知識（縦カード） ============ */
.fp-blog { background: var(--section-bg); }
.fp-blog .fp-sec-ttl {
  font-size: 26px;
  line-height: 1.5;
  margin-bottom: 20px;
}
.fp-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 80px;
}
.fp-vcard-link { text-decoration: none; display: block; }
.fp-vcard-thumb {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 360 / 225;
  margin-bottom: 15px;
}
.fp-vcard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fp-vcard-date {
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.fp-vcard-ttl {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
}
.fp-vcard-link:hover .fp-vcard-ttl { color: var(--primary); }
.fp-blog-more { text-align: center; }
.fp-blog-more .primary-btn01 { max-width: 240px; font-size: 16px; font-weight: 500; line-height: 1.6; padding: 15px 40px;}
.fp-blog-more .primary-btn01::after { display: none; }

/* ============ よく読まれている（横カード） ============ */
.fp-popular { background: var(--bs-white); padding: 80px 15px 0; }
.fp-popular .fp-sec-ttl {
  font-size: 26px;
  line-height: 1.5;
}
.fp-popular-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 33px;
}
.fp-hcard { min-width: 0; }
.fp-hcard-link {
  display: flex;
  gap: 15px;
  text-decoration: none;
  align-items: flex-start;
  min-width: 0;
}
.fp-hcard-thumb {
  width: 119px;
  height: 119px;
  border-radius: 0;
  overflow: hidden;
  flex: none;
}
.fp-hcard-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-hcard-body { flex: 1; min-width: 0; }
.fp-hcard-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 5px;
  min-width: 0;
}
.fp-hcard-date { font-size: 14px; font-weight: 500; line-height: 1.8; color: var(--text-muted); }
.fp-hcard-meta .fp-badge {
  display: inline-block;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
  background: var(--primary);
  color: var(--bs-white);
  border: none;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 400;
}
.fp-hcard-ttl {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--black);
  margin: 0;
}
.fp-hcard-link:hover .fp-hcard-ttl { color: var(--primary); }

/* ============ カテゴリ検索 ============ */
.fp-catsearch { background: var(--bs-white); }
.fp-catsearch-box {
  background: var(--section-bg);
  border-radius: 10px;
  padding: 50px 15px;
}
.fp-catsearch-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 34px;
}
.fp-catsearch-ic { width: 35px; height: 35px; color: var(--black); }
.fp-catsearch-ic svg,
.fp-catsearch-ic img { width: 100%; height: 100%; display: block; }
.fp-catsearch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  align-items: stretch;
}
.fp-catsearch-grid > li {
  display: grid;
  align-content: stretch;
  min-height: 0;
}
.fp-catbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  line-height: 1.6;
  background: var(--bs-white);
  border: 1px solid #9a9a9a;
  border-radius: 10px;
  min-height: 82px;
  padding: 15px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--black);
  font-size: 16px;
  transition: all .3s;
}
.fp-catbtn:hover {
  background: var(--bs-white);
  color: rgba(0, 0, 0, .5);
  border-color: rgba(154, 154, 154, .5);
  opacity: 1;
}

/* ============ whyus 誘導（ダーク） ============ */
.fp-whyus {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 66px 15px;
}
.fp-whyus-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.fp-whyus-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
}
.fp-whyus-inner { position: relative; z-index: 1; }
.fp-whyus-ttl {
  color: var(--bs-white);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0 0 20px;
}
.fp-whyus-tx {
  color: var(--bs-white);
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  margin: 0 0 35px;
}
.fp-whyus-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 250px;
  padding: 20px 28px;
  color: var(--bs-white);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 5px;
  background: transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: .2s;
  line-height: 1.5;
}
.fp-whyus-btn:hover { background: rgba(255,255,255,.12); opacity: 1; }
/* .fp-whyus-btn-arrow {
  width: 8px;
  height: 8px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
} */

/* ============ 右下追従ボタン（初めての方へ） ============ */
.fp-firstbtn {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 90;
  width: 150px;
  display: none;
  text-decoration: none;
}
.fp-firstbtn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .3s;
  backface-visibility: hidden;
}
.fp-firstbtn:hover { opacity: 1; }
.fp-firstbtn:hover img { transform: scale(1.05); }

@media (max-width: 991px) {
  .fp-kv-copy-detail {
    text-indent: 2.5rem;
    display: inline-block;
  }
  .fp-review-scroll-hint.is-active { display: block; }
}
@media (min-width: 992px) {
  .fp-review-scroll-hint { display: none !important; }
  .fp-review-progress { display: none; }
  .fp-kv-whyus-wrap { display: none; }
  .fp-sec { padding: 100px 15px; }
  .fp-sec-ttl { font-size: 28px; line-height: 1.5; margin-bottom: 50px; }
  .fp-review .fp-sec-ttl {
    margin-bottom: 50px;
  }
  .fp-reasons .fp-sec-ttl { font-size: 40px; line-height: 1.5; }
  .fp-reason-head {
    padding-bottom: 15px;
  }
  .fp-reason-head.fp-reason-head-short {
    text-indent: -.5rem;
  }
  .fp-reason-head.fp-reason-head-short .fp-reason-ic {
    margin-left: -.5rem;
  }
  .text-lg-nowrap {
    white-space: nowrap;
  }
  .fp-popular {
    padding: 100px 15px 0;
  }
  .fp-popular .fp-sec-ttl { font-size: 32px; line-height: 1.5; }
  .fp-kv {
    /* 1440:670 の比率で高さ可変。1440以上はPDF(1920)準拠で段階的に伸長 */
    aspect-ratio: 1440 / 670;
    min-height: 670px;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }
  .fp-kv-photo img {
    object-position: center bottom;
  }
  /* ビューポート幅に固定（ページ横はみ出しで中央が右ズレするのを防ぐ） */
  .fp-kv-inner {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  /* Figma(1440): copy y=64 / promise y=312。カンプはテキストボックス上端から
     文字までの余白がブラウザより8px広いため、見た目を合わせる copy は 72px とする
     （約束帯 312px はそのままで一致）。
     出典: _figma_shots/screens/top/full_pc.png（1440幅1:1）の画素実測
     — 写真上端143 → コピー1行目 y=239 / 約束帯の見出し y=480。top の % は高さ基準 */
  .fp-kv-copy-wrap {
    position: absolute;
    top: calc(72px + max(0px, (100% - 670px) * 132 / 131));
    left: 15px;
    right: 15px;
    width: auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
  }
  .fp-kv-copy { font-size: 56px; line-height: 1; }
  .fp-kv-em { font-size: 86px; line-height: 1.5; text-decoration-thickness: 16px; }
  /* left/right + 明示width + margin:auto で中央寄せ（transform非依存） */
  .fp-kv .fp-promise {
    position: absolute;
    top: calc(312px + max(0px, (100% - 670px) * 132 / 131));
    left: 0;
    right: 0;
    width: min(888px, calc(100% - 30px));
    max-width: 888px;
    margin: 0 auto;
    margin-left: auto;
    margin-right: auto;
    transform: none;
    padding: 18px 26px 22px;
    box-sizing: border-box;
  }
  .fp-promise { padding: 18px 26px 22px; width: min(888px, 92%); border-radius: 10px; }
  .fp-promise-head { font-size: 18px; }
  .fp-kv .fp-promise-head {
    font-size: 16px;
  }
  .fp-kv .fp-promise-head {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 10px;
    margin-inline: 0;
    padding-inline: 0;
  }
  .fp-promise-list {
    flex-direction: row;
    gap: 10px;
    border-top: 1px solid rgba(4,37,99,.18);
    padding-top: 20px;
  }
  .fp-promise-tx-lead { font-size: 18px; }
  .fp-promise-tx-em { font-size: 22px; }
  .fp-kv .fp-promise-tx {
    font-size: 20px;
    white-space: nowrap;
    text-align: left;
  }
  .fp-promise-ic { width: 40px; height: 40px; }
  .fp-promise-item {
    justify-content: center;
    border-right: 1px solid #BFC4CE;
  }
  .fp-promise-item:last-child {
    border-right: none;
  }
  .fp-kv .fp-promise-list {
    justify-content: center;
    gap: 10px;
  }
  .fp-kv .fp-promise-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }
  .fp-kv .fp-promise-item:nth-child(1) {
    flex-basis: 257px;
    width: 257px;
    padding-left: 25px;
    padding-right: 35px;
  }
  .fp-kv .fp-promise-item:nth-child(2) {
    flex-basis: 258px;
    width: 258px;
    padding-left: 25px;
    padding-right: 35px;
  }
  .fp-kv .fp-promise-item:nth-child(3) {
    flex-basis: 289px;
    width: 289px;
    padding-left: 25px;
    padding-right: 25px;
  }
  .fp-promise-item + .fp-promise-item {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
  }
  .fp-review-stage { padding: 0 70px; }
  .fp-review-card {
    flex: 0 0 calc((100% - 40px) / 3);
    border-radius: 10px;
    padding: 22px 24px;
  }
  .fp-review-head { margin-bottom: 16px; }
  .fp-review-head .fp-badge { font-weight: 700; color: var(--review-tag); }
  .fp-review-nav {
    display: flex;
    width: 55px;
    height: 55px;
    top: 153px;
  }
  .fp-reason-ttl { font-size: 26px; }
  .fp-reason-tx { font-size: 18px; }
  .fp-reasons-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 50px; }
  .fp-reasons-lead { line-height: 2.2; }
  .fp-worry {
    padding: 100px 15px 0;
  }
  .fp-worry.post-worry {
    padding: 100px 15px;
  }
  .fp-worry-box-wrap {
    margin-bottom: 54px;
  }
  .fp-worry-box {
    padding: 30px 40px 30px;
  }
  .post-worry .fp-worry-box {
    padding: 20px 40px 30px;
  }
  .fp-worry .fp-sec-ttl { margin-bottom: 60px; }
  .fp-worry-item { font-size: 22px; gap: 20px; padding: 25px 0; }
  
  .fp-worry-img { right: 27px; bottom: 0; width: 115px; }
  .post-worry .fp-worry-img {
    bottom: 0;
  }
  .fp-worry-ck { width: 40px; height: 40px; }
  .fp-worry-ck img { 
    top: 4px;
    left: 10px;
    width: 28px;
   }
  .fp-worry-lead { font-size: 28px; line-height: 2.2; }
  .fp-leadcta-inner { flex-direction: row; }
  .fp-leadcta-photo {
    order: 0;
    flex: 0 0 auto;
    width: 470px;
    max-width: 470px;
    min-height: 463px;
    height: auto;
  }
  .fp-leadcta-body {
    order: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 40px;
  }
  .fp-leadcta-ttl { font-size: 32px; }
  .fp-leadcta-tx { font-size: 18px; }
  .fp-leadcta-btn { font-size: 20px; width: 100%; }
  .fp-sec-sub { font-size: 18px; }
  .fp-sec-head {
    margin-bottom: 60px;
  }
  .fp-blog .fp-sec-ttl { font-size: 32px; line-height: 1.5; margin-bottom: 6px; }
  .fp-hcard-link {
    align-items: center;
  }
  .fp-vcard-thumb { aspect-ratio: 347 / 217; }
  .fp-vcard-ttl { font-size: 20px; line-height: 1.6; }
  .fp-hcard-date { font-size: 16px; }
  .fp-hcard-meta {
    margin-bottom: 10px;
  }
  .fp-hcard-meta .fp-badge { font-size: 16px; padding: 2px 15px; }
  .fp-hcard-ttl { font-size: 20px; line-height: 1.8; }
  .fp-blog-grid { grid-template-columns: repeat(3, 1fr); gap: 50px 35px; margin-bottom: 60px; }
  .fp-popular-grid { grid-template-columns: repeat(2, 1fr); gap: 50px 40px; }
  .fp-catsearch-box { padding: 50px 60px; }
  .fp-catsearch-head { font-size: 24px; margin: 0 0 38px; }
  .fp-catsearch-ic {
    width: 40px;
    height: 40px;
  }
  .fp-catsearch-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .fp-catbtn { min-height: 80px; font-size: 20px; border: 2px solid #808080; padding: 22px 15px; }
  .fp-whyus { padding: 80px 15px; }
  .fp-whyus-ttl { font-size: 36px; margin: 0 0 30px; }
  .fp-whyus-tx { font-size: 22px; margin: 0 0 30px; }
  .fp-whyus-btn { font-size: 20px; padding: 14px 100px; }
  .fp-firstbtn { display: block; }
}

@media (min-width: 1440px) {
  /* 1920 PDF: KV 801px（1440比+131px）。aspect-ratio(893px)より短く老夫婦を確保 */
  .fp-kv {
    aspect-ratio: unset;
    height: calc(670px + (100vw - 1440px) * 131 / 480);
    min-height: 670px;
  }
  /* 1440以上：KV が縦に伸びるぶんコピーと約束帯を比例して下げる。
     起点（1440px）はカンプ実測どおり copy=72 / promise=312、
     終点（1920px＝KV高さ801px）は 1920 の構図に合わせ copy=160 / promise=408。
     1439px との段差が出ないよう起点を上の指定と揃える。 */
  .fp-kv-copy-wrap {
    top: calc(72px + max(0px, (100% - 670px) * 88 / 131));
  }
  .fp-kv .fp-promise {
    top: calc(312px + max(0px, (100% - 670px) * 96 / 131));
  }
}

@media (min-width: 1200px) {
  .fp-catsearch-box {
    padding: 70px 100px;
  }
  .fp-firstbtn { width: 177px; }
  .fp-leadcta-body {
    padding: 50px;
  }
}

/* =========================================================
   P3 下層ページ共通（page-*.php）
   ========================================================= */
/* 横スクロール防止（防御的） */
html, body { overflow-x: hidden; max-width: 100%; }
.lower { overflow: hidden; }

/* 写真なしのタイトル帯（privacy 等） */
.lower-head--plain {
  text-align: center;
  padding: 80px 15px 26px;
}
.lower-ttl {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.5;
  margin: 0;
}

/* 写真ヒーロー（service/whyus/company/flow/faq 等） */
.lower-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
}
.lower-hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.lower-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(40,42,48,.7);
}
.lower-hero-ttl {
  position: relative;
  z-index: 1;
  color: var(--bs-white);
  font-size: 28px;
  font-weight: bold;
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.lower-hero--page {
  width: 100%;
  height: 205px;
  min-height: 205px;
  background: #DDE1EA;
}
.lower-hero--page .lower-hero-photo::after {
  background: rgba(40, 42, 48, 0.70);
}
.lower-hero--page .lower-hero-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  text-shadow: none;
}

/* 下層共通の本文ラッパ（コンテンツ幅1100） */
.lower-body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 0 100px;
}

/* ---- privacy ---- */
.privacy-body {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}
.privacy-body h2,
.privacy-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 28px 0 8px;
}
.privacy-body h2:first-child,
.privacy-body h3:first-child { margin-top: 0; }
.privacy-body p { margin: 0 0 14px; }
.privacy-body ul {
  list-style: none;
  margin: 0 0 14px;
  padding-left: 0;
}
.privacy-body ul li {
  position: relative;
  padding-left: 1.3em;
}
.privacy-body ul li::before {
  content: "";
  position: absolute;
  left: 0.45em;
  top: 0.5lh;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

@media (min-width: 992px) {
  .privacy-body, .privacy-body h2, .privacy-body h3 {
    font-size: 18px;
  }
  .lower-head--plain { padding: 100px 15px 46px; }
  /* お問い合わせはヘッダー直下の余白を詰める（デザイン指定 60px） */
  .contact-lower .lower-head--plain { padding-top: 60px; }
  .lower-ttl { font-size: 28px; }
  .lower-hero { min-height: 280px; }
  .lower-hero-ttl { font-size: 36px; }
  .lower-hero--page {
    height: 220px;
    min-height: 220px;
  }
  .lower-hero--page .lower-hero-ttl {
    font-size: 32px;
    line-height: 1.8;
  }
  .lower-body {
    padding: 54px 0 150px;
  }
}

/* ---- company ---- */
.company-hero {
  width: 100%;
  height: 205px;
  overflow: hidden;
}
.company-hero-photo {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.company-page .container > section {
  max-width: 950px;
  margin-left: auto;
  margin-right: auto;
}
.company-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 80px 0 70px;
  gap: 40px;
}
.company-intro-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.48px;
  color: var(--black);
  margin: 0;
}
.company-intro-tx {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  color: var(--black);
  margin: 0;
}
.company-info { margin-bottom: 30px; }
.company-table { width: 100%; border-collapse: collapse; }
.company-table th,
.company-table td {
  display: table-cell;
  width: auto;
  border: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 10px 20px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  color: var(--black);
  vertical-align: middle;
  text-align: left;
}
.company-table th {
  width: 110px;
  text-align: center;
  padding: 15px 10px;
  background: var(--bs-white);
  white-space: nowrap;
}
.company-qualification-list {
  margin: 0;
  padding-left: 1.3em;
  list-style: disc;
}
.company-access { margin-bottom: 30px; }
.company-map {
  position: relative;
  width: 100%;
}
.company-map iframe {
  display: block;
  width: 100%;
  height: 250px;
  border: 0;
}
.company-photos {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 100px;
}
.company-photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.company-photo-grid img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  display: block;
}
.company-photo-wide {
  width: 100%;
  height: 270px;
  object-fit: cover;
  object-position: center 75%;
  display: block;
}

@media (min-width: 992px) {
  .company-hero { height: 300px; }
  .company-hero-photo {
    background-position: center 71%;
  }
  .company-intro {
    padding: 80px 0;
    gap: 30px;
  }
  .company-intro-ttl {
    font-size: 32px;
    line-height: 51.2px;
    letter-spacing: 0.64px;
  }
  .company-intro-tx {
    font-size: 18px;
    font-weight: 500;
    line-height: 32.4px;
    letter-spacing: 0.36px;
  }
  .company-info { margin-bottom: 52px; }
  .company-table th {
    width: 150px;
    padding: 15px 10px;
    font-size: 18px;
    line-height: 32.4px;
    letter-spacing: 0.36px;
  }
  .company-table td {
    padding: 15px 20px;
    font-size: 18px;
    line-height: 32.4px;
    letter-spacing: 0.36px;
  }
  .company-access { margin-bottom: 52px; }
  .company-map iframe { height: 501px; }
  .company-photo-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .company-photo-grid img { height: 227px; }
  .company-photo-wide { height: 198px; }
}

/* ---- flow ---- */
.flow-page { background: var(--section-bg); padding: 60px 0 100px; overflow: visible; }
.flow-head {
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
  padding: 0 0 60px;
}
.flow-head .lower-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0;
}
.flow-sub {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 1.8;
  margin: 0;
}
.flow-sub br { display: inline; }
.flow-card {
  max-width: 950px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  overflow: visible;
}
.flow-steps { overflow: visible; }
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 30px 30px 0;
  background: var(--bs-white);
  overflow: visible;
}
.flow-step-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}
.flow-step--last {
  padding-bottom: 30px;
}
.flow-step-photo { width: 100%; flex: none; }
.flow-step-photo img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
}
.flow-step-body {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.flow-step-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 43.2px;
  margin: 0;
  text-align: left;
}
.flow-step-tx {
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  margin: 0;
}
.flow-step-tx--contract {
  font-size: 18px;
  line-height: 36px;
  letter-spacing: 0.36px;
}
.flow-step-tx--contract strong {
  font-weight: 700;
}
.flow-step-note {
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.32px;
  color: #C33030;
  background: #F1F1F1;
  border-radius: 0;
  padding: 20px;
  margin: 9px 0 0;
}
/* 連結部: 全幅ゴールド線＋中央の菱形矢印（Figma rotate 45deg） */
.flow-step-divider {
  display: flex;
  align-items: center;
  margin: 0 -30px -7.5px;
  padding: 15px 0 0;
  position: relative;
  z-index: 1;
}
.flow-step-divider::before,
.flow-step-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--key);
}
.flow-arrow-ic {
  flex: none;
  box-sizing: border-box;
  /* 24px四方 → 対角幅 約34px（Figma SP） */
  width: 24px;
  height: 24px;
  margin: 0 2px;
  background: var(--bs-white);
  border-right: 1px solid var(--key);
  border-bottom: 1px solid var(--key);
  transform: rotate(45deg);
  transform-origin: center center;
}

@media (min-width: 992px) {
  .flow-page { padding: 80px 0 200px; }
  .flow-head { padding-bottom: 46px; }
  .flow-head .lower-ttl {
    font-size: 28px;
    line-height: 42px;
    letter-spacing: 0.56px;
  }
  .flow-sub {
    font-size: 18px;
    line-height: 32.4px;
  }
  .flow-step--last { padding-top: 40px; }
  .flow-step-main {
    flex-direction: row;
    align-items: center;
    gap: 50px;
  }
  .flow-step--last .flow-step-main { align-items: flex-start; }
  .flow-step-photo { width: 300px; flex: none; }
  .flow-step-divider {
    margin: 0 -30px -30px;
    padding: 15px 0;
  }
  .flow-step-tx {
    font-size: 18px;
    line-height: 36px;
  }
  /* 45deg回転後の対角幅 = 42.46px */
  .flow-arrow-ic {
    width: calc(42.46px / 1.4142135623730951);
    height: calc(42.46px / 1.4142135623730951);
  }
  .flow-step-note {
    margin: 0;
  }
}

/* ---- service ---- */
.service-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: var(--section-bg);
  border-radius: 16px;
  padding: 50px 20px;
  scroll-margin-top: 24px;
}
.service-block-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-block-no {
  font-family: "Roboto", sans-serif;
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  margin: 0;
}
.service-block-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}
.service-block-tx {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--black);
  margin: 0;
}
.service-page .fp-sec {
  padding: 60px 15px 100px;
}
.page-leadcta .fp-leadcta-ttl {
  margin-bottom: 15px;
}
.page-leadcta .fp-leadcta-tx {
  margin-bottom: 25px;
}
.page-leadcta .fp-leadcta-btns {
  gap: 15px;
}
.page-leadcta .fp-leadcta-btn {
  padding: 15px 20px;
}

@media (min-width: 992px) {
  .service-list {
    padding: 60px 0 0;
    gap: 30px;
  }
  .service-block {
    padding: 50px;
  }
  .service-block-ttl {
    font-size: 32px;
  }
  .service-block-tx {
    font-size: 18px;
  }
  .service-page .fp-sec {
    padding: 100px 15px 90px;
  }
  .page-leadcta .fp-leadcta-ttl {
    font-size: 28px;
    line-height: 1.8;
  }
}

/* ---- faq ---- */
.faq-page > .container {
  max-width: 1100px;
}
.faq-hero {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  min-height: 205px;
  height: 205px;
}
.faq-hero.lower-hero {
  text-align: left;
}
.faq-hero-head {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: calc(100% - 30px);
}
.faq-hero-ic {
  flex: none;
  width: 60px;
  line-height: 0;
}
.faq-hero-ic img {
  width: 100%;
  height: auto;
  display: block;
}
.faq-hero .lower-hero-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.56px;
  text-shadow: none;
  text-align: left;
}
.faq-hero-ttl-sub { color: var(--bs-white); }
.faq-hero-ttl-em { color: #f2bb39; }

.faq-page-body {
  max-width: 950px;
  margin: 0 auto;
  padding-bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 74px;
}
.faq-groups {
  max-width: none;
  margin: 0;
  padding: 50px 0 0;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.faq-group {
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-group-head {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.36px;
  color: var(--primary);
  margin: 0;
}
.faq-group-ic {
  width: 40px;
  height: 40px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.faq-group-ic img,
.faq-group-ic svg { width: 100%; height: 100%; display: block; }
.faq-group-ic svg path { fill: var(--primary); }
.faq-q {
  width: 100%;
  display: block;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}
.faq-q-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-q-lead {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-width: 0;
}
.faq-toggle {
  position: relative;
  flex: none;
}
.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: opacity .3s, transform .3s;
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.is-open .faq-toggle::after { opacity: 0; }
.faq-a {
  overflow: hidden;
  height: 0;
  transition: height .45s cubic-bezier(.4, 0, .2, 1);
}
.faq-a-inner {
  overflow: hidden;
  display: flex;
  padding: 0;
  box-sizing: border-box;
}
.faq-a-mark,
.faq-a-text {
  min-width: 0;
}

/* faq 下部 相談box */
.faq-page .faq-contact {
  width: 100%;
  margin: 0;
  text-align: center;
  background: var(--section-bg);
  border-radius: 0;
  padding: 50px 15px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 34px;
}
.faq-page .faq-contact-ttl {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 42px;
  letter-spacing: 0.56px;
  color: var(--black);
  margin: 0;
}
.faq-page .faq-contact-tx {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  color: var(--black);
  margin: 0;
}
.faq-page .faq-contact-box {
  width: 100%;
  background: var(--bs-white);
  border-radius: 5px;
  overflow: hidden;
  text-align: left;
}
.faq-page .faq-contact-box-ttl {
  background: var(--primary);
  color: var(--bs-white);
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  margin: 0;
  padding: 20px 10px;
  text-align: center;
}
.faq-page .faq-contact-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 40px;
  padding: 40px 20px 30px;
}
.faq-page .faq-contact-tel,
.faq-page .faq-contact-tel:link,
.faq-page .faq-contact-tel:visited,
.faq-page .faq-contact-tel:hover,
.faq-page .faq-contact-tel:active {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
  gap: 10px;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
  text-decoration: none;
}
.faq-page .faq-contact-tel-ic { width: 40px; height: 40px; flex: none; }
.faq-page .faq-contact-tel-ic svg { width: 100%; height: 100%; display: block; }
.faq-page .faq-contact-actions .faq-contact-tel-ic svg .cls-1 { fill: var(--black); }
.faq-page .faq-contact-tel-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}
.faq-page .faq-contact-tel-num {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.64px;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
}
.faq-page .faq-contact-tel-hours {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0.28px;
  color: var(--black);
  -webkit-text-fill-color: var(--black);
}
.faq-page .faq-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  gap: 10px;
  background: var(--primary);
  color: var(--bs-white);
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  border-radius: 5px;
  padding: 20px;
  text-decoration: none;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.32px;
  transition: opacity .3s;
  width: 100%;
}
.faq-page .faq-contact-btn-ic { width: 30px; height: 30px; flex: none; }
.faq-page .faq-contact-btn-ic svg { width: 100%; height: 100%; display: block; }
.faq-page .faq-contact-btn:hover { opacity: .85; }

@media print, screen and (min-width: 576px) {
  .faq-page .faq-contact-tel {
    justify-content: center;
  }
}
@media print, screen and (min-width: 768px) {
  .faq-page .faq-contact {
    padding: 50px;
  }
  .faq-page .faq-contact-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    gap: 0;
    padding: 20px;
  }
  .faq-page .faq-contact-tel {
    align-self: auto;
    width: auto;
  }
  .faq-page .faq-contact-btn {
    align-self: auto;
    width: auto;
    padding: 20px 40px;
  }
}

@media (min-width: 992px) {
  .faq-hero.lower-hero {
    text-align: center;
  }
  .faq-hero .lower-hero-photo {
    background-position: center 79%;
  }
  .faq-hero-ic {
    width: 77.68px;
  }
  .faq-hero .lower-hero-ttl {
    font-size: 32px;
    line-height: 1.8;
    letter-spacing: 0.64px;
    text-align: center;
  }
  .faq-hero-head { max-width: none; }
  .faq-groups {
    padding: 70px 0 0;
  }
  .faq-page .faq-group {
    padding-left: 22px;
    padding-right: 22px;
  }
  .faq-group-head {
    font-size: 20px;
    line-height: 40px;
    letter-spacing: 0.4px;
  }
  .faq-page .faq-items {
    padding-left: 0;
    padding-right: 0;
  }
  .faq-page .faq-contact { padding: 100px; }
  .faq-page .faq-contact-actions {
    justify-content: space-between;
  }
  .faq-page .faq-contact-ttl {
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 0.8px;
  }
  .faq-page .faq-contact-tx {
    font-size: 18px;
    line-height: 32.4px;
    letter-spacing: 0.36px;
  }
  .faq-page .faq-contact-box-ttl {
    font-size: 18px;
    line-height: 32.4px;
    letter-spacing: 0.36px;
    padding: 15px 10px;
  }
  .faq-page .faq-contact-tel-ic { width: 60px; height: 60px; }
  .faq-page .faq-contact-tel-num {
    font-size: 40px;
    letter-spacing: 0.8px;
  }
  .faq-page .faq-contact-tel-hours {
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.36px;
  }
  .faq-page .faq-contact-btn {
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0.4px;
  }
  .faq-page .faq-contact-btn-ic { width: 40px; height: 40px; }
}

/* ---- whyus（井原石材のこだわり） ---- */
.whyus-hero { width: 100%; height: 205px; overflow: hidden; }
.whyus-hero-photo { width: 100%; height: 100%; background-size: cover; background-position: center; }

.whyus-intro {
  text-align: center;
  padding: 80px 15px 0;
}
.whyus-intro-ttl {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0 0 48px;
}
.whyus-intro-tx {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--black);
  margin: 0;
}

.whyus-values {
  background: transparent;
  padding: 46px 15px 0;
}
.whyus-values .container {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  background: var(--section-bg);
  border-radius: 10px;
  padding: 50px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.whyus-values .whyus-values-ttl {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .02em;
  margin: 0;
}
.whyus-value-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.whyus-value {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.whyus-value-head {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  padding-bottom: 10px;
  margin: 0;
  border-bottom: 1px solid #808080;
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 33px;
  letter-spacing: .02em;
}
.whyus-value-ic { width: 40px; height: 40px; flex: none; }
.whyus-value-ic img { width: 100%; height: 100%; display: block; }
.whyus-value-tx {
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  text-align: justify;
  margin: 0;
}
.whyus-value-em { font-weight: 700; }
.whyus-value-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 0;
}
.whyus-value-imgs img {
  width: 100%;
  height: auto;
  border-radius: 0;
  display: block;
  background: var(--bs-white);
}
.whyus-value-note {
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  text-align: justify;
  margin: 0;
}

.whyus-story {
  padding: 80px 15px 0;
}
.whyus-story .whyus-story-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}
.whyus-story-rev .whyus-story-body { order: -1; }
.whyus-story + .whyus-story { padding-bottom: 120px; }
.whyus-story-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.whyus-story-photo { width: 100%; flex: none; }
.whyus-story-photo img { width: 100%; border-radius: 0; display: block; }
.whyus-story-ttl {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}
.whyus-story-tx {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 2.2;
  letter-spacing: .02em;
  margin: 0;
}
.whyus-reasons.fp-sec {
  padding: 80px 15px;
  gap: 26px;
}
.whyus-reasons .fp-sec-ttl {
  font-size: 28px;
  line-height: 1.8;
  letter-spacing: .02em;
  margin-bottom: 0;
}
.whyus-reasons .fp-reasons-grid {
  gap: 15px;
  margin-bottom: 43px;
}
.whyus-reasons .fp-reason {
  padding: 10px 23px 20px;
}
.whyus-reasons .fp-reason-head {
  padding-top: 15px;
  padding-bottom: 20px;
  margin-bottom: 15px;
}
.whyus-reasons .fp-reason-tx {
  color: #3a3e48;
  text-align: justify;
}
.whyus-reasons .fp-reasons-lead {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: .02em;
  max-width: 720px;
  margin: 0 auto;
}
.whyus-gallery {
  padding: 100px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.whyus-gallery .fp-sec-ttl {
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0;
}
.whyus-gallery .container { max-width: 720px; padding: 0; }
.whyus-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: none;
  margin: 0;
}
.whyus-gallery-grid img {
  width: 100%;
  border-radius: 0;
  display: block;
}

.whyus-faq {
  padding: 50px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}
.whyus-faq .fp-sec-ttl {
  font-size: 24px;
  line-height: 1.5;
  letter-spacing: .02em;
  margin: 0;
}
.whyus-faq .container { max-width: 720px; padding: 0; }
.whyus-faq .faq-items,
.faq-page .faq-items { max-width: none; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.whyus-faq .faq-item,
.faq-page .faq-item {
  border: 1px solid #c7c7c7;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bs-white);
  margin-bottom: 0;
}
.whyus-faq .faq-q,
.faq-page .faq-q {
  padding: 20px 20px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.whyus-faq .faq-q:focus,
.whyus-faq .faq-q:focus-visible,
.whyus-faq .faq-q:active,
.faq-page .faq-q:focus,
.faq-page .faq-q:focus-visible,
.faq-page .faq-q:active {
  outline: none;
  border: none;
  box-shadow: none;
}
.whyus-faq .faq-q-row,
.faq-page .faq-q-row {
  padding-bottom: 20px;
  border-bottom: 1px solid transparent;
}
.whyus-faq .faq-item.is-open .faq-q-row,
.faq-page .faq-item.is-open .faq-q-row {
  border-bottom-color: #c7c7c7;
}
.whyus-faq .faq-q-lead,
.faq-page .faq-q-lead {
  gap: 5px;
}
.whyus-faq .faq-q-mark,
.faq-page .faq-q-mark {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.36px;
  color: var(--black);
  flex: none;
}
.whyus-faq .faq-q-text,
.faq-page .faq-q-text {
  flex: 1;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 2;
  letter-spacing: 0.32px;
  color: var(--black);
}
.whyus-faq .faq-toggle,
.faq-page .faq-toggle { width: 30px; height: 30px; flex: none; }
.whyus-faq .faq-toggle::before,
.whyus-faq .faq-toggle::after,
.faq-page .faq-toggle::before,
.faq-page .faq-toggle::after {
  width: 24px;
  height: 2px;
  background: #c7c7c7;
}
.whyus-faq .faq-a,
.faq-page .faq-a {
  border: none;
  background: transparent;
}
.whyus-faq .faq-a-inner,
.faq-page .faq-a-inner {
  gap: 10px;
  align-items: baseline;
  padding: 0;
  border: none;
  background: transparent;
}
.whyus-faq .faq-item.is-open .faq-a-inner,
.faq-page .faq-item.is-open .faq-a-inner {
  padding: 30px 20px;
  border: none;
  background: transparent;
}
.whyus-faq .faq-a-mark,
.faq-page .faq-a-mark {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.36px;
  color: var(--black);
  flex: none;
}
.whyus-faq .faq-a-text,
.faq-page .faq-a-text {
  flex: 1;
  font-family: "Noto Sans JP", "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.32px;
  color: var(--black);
  text-align: justify;
}

.whyus-closing {
  text-align: center;
  padding: 8px 15px 22px;
  max-width: 720px;
  margin: 0 auto;
}
.whyus-closing-tx {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: .02em;
  color: var(--black);
  margin: 0;
}
.whyus-closing-em { color: var(--primary); }

.whyus-page .fp-leadcta { background: var(--bs-white); }

@media (min-width: 992px) {
  .whyus-hero { height: 300px; }
  .whyus-hero-photo {
    background-position: center 53%;
  }
  .whyus-intro {
    max-width: 723px;
    margin: 0 auto;
    padding: 60px 15px 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  .whyus-intro-ttl {
    font-size: 32px;
    line-height: 1.6;
    letter-spacing: .02em;
    margin: 0;
  }
  .whyus-intro-tx {
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: .02em;
  }
  .whyus-values {
    padding: 80px 15px 0;
  }
  .whyus-values .container {
    max-width: 950px;
    padding: 80px 150px;
    gap: 50px;
  }
  .whyus-values .whyus-values-ttl {
    font-size: 32px;
    line-height: 1.6;
    letter-spacing: .02em;
  }
  .whyus-values .whyus-values-ttl br { display: none; }
  .whyus-value-list { gap: 50px; }
  .whyus-value-head {
    gap: 15px;
    font-size: 28px;
    line-height: 42px;
  }
  .whyus-value-tx {
    font-size: 18px;
    line-height: 1.8;
    letter-spacing: .02em;
  }
  .whyus-value-imgs {
    display: inline-flex;
    gap: 10px;
    width: auto;
  }
  .whyus-value-imgs img {
    width: 252px;
    max-width: 252px;
  }
  .whyus-story {
    padding: 100px 15px 0;
  }
  .whyus-values + .whyus-story { padding-top: 150px; }
  .whyus-values + .whyus-story .whyus-story-tx { padding-bottom: 50px; }
  .whyus-story + .whyus-story { padding-bottom: 100px; }
  .whyus-story .whyus-story-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1142px;
  }
  .whyus-story-rev { flex-direction: row; }
  .whyus-story-rev .whyus-story-body { order: 0; }
  .whyus-story-rev .whyus-story-photo { order: -1; }
  .whyus-story-body { max-width: 570px; }
  .whyus-story-photo { width: 500px; }
  .whyus-story-ttl { font-size: 32px; line-height: 1.6; }
  .whyus-story-ttl br { display: none; }
  .whyus-story-tx {
    font-size: 18px;
    line-height: 2.2;
    letter-spacing: .02em;
  }
  .whyus-reasons.fp-sec { padding: 100px 15px; gap: 50px; }
  .whyus-reasons .fp-sec-ttl {
    font-size: 40px;
    line-height: 1.5;
    letter-spacing: .02em;
  }
  .whyus-reasons .fp-reasons-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 0;
  }
  .whyus-reasons .fp-reason-head {
    padding-top: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
  }
  .whyus-reasons .fp-reason-ttl { font-size: 26px; line-height: 1.5; }
  .whyus-reasons .fp-reason-tx { font-size: 18px; line-height: 1.8; }
  .whyus-reasons .fp-reasons-lead {
    max-width: 841px;
    font-size: 18px;
    font-weight: 600;
    line-height: 2.2;
    letter-spacing: .02em;
  }
  .whyus-gallery {
    padding: 100px 15px;
    gap: 50px;
  }
  .whyus-gallery .container { max-width: 900px; }
  .whyus-gallery-grid { gap: 20px; }
  .whyus-faq .container { max-width: 900px; }
  .whyus-faq .faq-q,
  .faq-page .faq-q {
    padding: 20px 30px 0;
  }
  .whyus-faq .faq-q-lead,
  .faq-page .faq-q-lead {
    gap: 10px;
  }
  .whyus-faq .faq-q-mark,
  .faq-page .faq-q-mark {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0.44px;
  }
  .whyus-faq .faq-q-text,
  .faq-page .faq-q-text {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 0.36px;
  }
  .whyus-faq .faq-item.is-open .faq-a-inner,
  .faq-page .faq-item.is-open .faq-a-inner {
    gap: 10px;
    padding: 30px;
  }
  .whyus-faq .faq-a-mark,
  .faq-page .faq-a-mark {
    font-size: 22px;
    line-height: 1.5;
    letter-spacing: 0.44px;
  }
  .whyus-faq .faq-a-text,
  .faq-page .faq-a-text {
    font-size: 18px;
    letter-spacing: 0.36px;
  }
  .whyus-closing {
    max-width: none;
    padding: 100px 15px 0;
  }
  .whyus-closing-tx {
    font-size: 28px;
    line-height: 2.2;
    letter-spacing: .02em;
  }
  .whyus-closing-em {
    border-bottom: 1px solid var(--primary);
  }
}

/* =========================================================================
   P4: 動的（works CPT / blog）— Figma works 1:1138 / works-detail 1:919 /
       blog 1:1030 / blog-column 1:1077 / blog-detail 1:743
   ========================================================================= */

/* --- カテゴリフィルタ帯（一覧上部・section-bg） --- */
.lower-cathead {
  background: var(--section-bg);
  padding: 19px 0 36px;
}
.lower-cathead--continued {
  padding: 0 0 50px;
}

/* 施工事例一覧: SP=container内側3pxのカード型 / PC=blog同様フル幅 section-bg */
body.post-type-archive-works .page-breadcrumb-wrap.page-breadcrumb-wrap--section-bg,
body.tax-works_cat .page-breadcrumb-wrap.page-breadcrumb-wrap--section-bg {
  background: none;
}
body.post-type-archive-works .page-breadcrumb-wrap.lower-cathead,
body.tax-works_cat .page-breadcrumb-wrap.lower-cathead {
  background: none;
  padding: 14px 0 26px;
}
body.post-type-archive-works .lower-cathead.lower-cathead--continued,
body.tax-works_cat .lower-cathead.lower-cathead--continued {
  background: none;
  padding: 0 10px;
}
body.post-type-archive-works .lower-cathead.lower-cathead--continued > .container,
body.tax-works_cat .lower-cathead.lower-cathead--continued > .container {
  box-sizing: border-box;
  width: calc(100% - 34px);
  max-width: calc(100% - 34px);
  margin-inline: auto;
  padding: 30px 15.5px;
  background: var(--section-bg);
  border-radius: 10px;
}
body.post-type-archive-works .lower-cathead.lower-cathead--continued .cat-tabs,
body.tax-works_cat .lower-cathead.lower-cathead--continued .cat-tabs {
  gap: 5px;
}
body.post-type-archive-works .lower-cathead.lower-cathead--continued .cat-tab,
body.tax-works_cat .lower-cathead.lower-cathead--continued .cat-tab {
  flex: 0 0 calc((100% - 5px) / 2);
  border-radius: 5px;
}

/* お墓の悩み解決ガイド一覧（投稿インデックス / body.blog） */
body.blog .page-breadcrumb-wrap.lower-cathead {
  padding: 19px 0 36px;
}
body.blog .lower-cathead.lower-cathead--continued {
  padding: 0 0 50px;
}

.page-top-visual-section--faq {
  margin-top: 15px;
}
.page-top-visual-section--faq > .container {
  max-width: 1100px;
}
.page-top-visual-section--faq .faq-hero {
  margin-top: 0;
}
.cat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
}
.cat-tab {
  flex: 0 0 calc((100% - 10px) / 2);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bs-white);
  border: 1px solid #bebebe;
  border-radius: 10px;
  padding: 15px 8px;
  color: var(--black);
  text-decoration: none;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.6;
  transition: background-color .2s, color .2s, border-color .2s;
}
.cat-tab:hover,
.cat-tab.is-active {
  background: var(--primary);
  color: var(--bs-white);
  border-color: var(--primary);
  opacity: 1;
}

/* --- 一覧見出し・本体 --- */
.blog-archive {
  padding-top: 80px;
}
.works-archive {
  padding-top: 70px;
}
.blog-archive,
.works-archive { max-width: 1100px; padding-bottom: 100px; }
.cat-archive-ttl {
  text-align: center;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--primary);
  margin: 0 0 60px;
}
.cat-archive-desc { text-align: center; max-width: 820px; margin: -24px auto 36px; }

/* --- カードグリッド共通 --- */
.card-grid {
  --bs-gutter-x: 10px;
  row-gap: 33px;
}
.blog-card-link,
.works-card-link { display: block; text-decoration: none; color: var(--black); }
.blog-card-thumb,
.works-card-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 360 / 225;
}
.blog-card-thumb img,
.works-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog-card .card-badge,
.works-card .card-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--primary);
  color: var(--bs-white);
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  padding: 3px 15px;
  border-bottom-right-radius: 5px;
}
.card-badge {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: var(--primary);
  color: var(--bs-white);
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  padding: 3px 15px;
}
.card-badge--sm { font-size: 10px; padding: 3px 9px; }
.blog-card-date {
  display: block;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  color: #808080;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.8;
  margin-top: 15px;
}
.blog-card-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.8;
  color: var(--black);
  margin-top: 5px;
  margin-bottom: 0;
}
.works-card-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  color: var(--black);
  margin: 15px 0 0;
}
.blog-card-link:hover .blog-card-ttl,
.works-card-link:hover .works-card-ttl { color: var(--primary); }

@media (min-width: 992px) {
  .lower-cathead--continued {
    padding: 0 10px 80px;
  }
  .lower-cathead--continued > .container {
    max-width: 1060px;
  }
  .page-breadcrumb-wrap--section-bg {
    padding: 20px 0 0;
  }
  body.post-type-archive-works .page-breadcrumb-wrap.page-breadcrumb-wrap--section-bg,
  body.tax-works_cat .page-breadcrumb-wrap.page-breadcrumb-wrap--section-bg,
  body.blog .page-breadcrumb-wrap.page-breadcrumb-wrap--section-bg {
    background: var(--section-bg);
  }
  body.post-type-archive-works .page-breadcrumb-wrap.lower-cathead,
  body.tax-works_cat .page-breadcrumb-wrap.lower-cathead,
  body.blog .page-breadcrumb-wrap.lower-cathead {
    background: var(--section-bg);
    padding: 23px 0 0;
  }
  body.post-type-archive-works .lower-cathead.lower-cathead--continued,
  body.tax-works_cat .lower-cathead.lower-cathead--continued,
  body.blog .lower-cathead.lower-cathead--continued {
    background: var(--section-bg);
    padding: 52px 10px 80px;
  }
  body.post-type-archive-works .lower-cathead.lower-cathead--continued > .container,
  body.tax-works_cat .lower-cathead.lower-cathead--continued > .container,
  body.blog .lower-cathead.lower-cathead--continued > .container {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    padding: 0;
    background: none;
    border-radius: 0;
  }
  body.post-type-archive-works .lower-cathead.lower-cathead--continued .cat-tabs,
  body.tax-works_cat .lower-cathead.lower-cathead--continued .cat-tabs {
    gap: 10px;
  }
  body.post-type-archive-works .lower-cathead.lower-cathead--continued .cat-tab,
  body.tax-works_cat .lower-cathead.lower-cathead--continued .cat-tab {
    flex: 0 0 calc((100% - 40px) / 5);
    border-radius: 10px;
    padding: 15px;
    font-size: 16px;
  }
  .cat-tab {
    flex: 0 0 calc((100% - 40px) / 5);
    padding: 15px;
    font-size: 16px;
  }
  .blog-archive.container,
  .works-archive.container {
    max-width: 1100px;
  }
  .card-grid {
    --bs-gutter-x: 35px;
    row-gap: 50px;
  }
  .works-archive .card-grid {
    row-gap: 70px;
  }
  .cat-archive-ttl {
    font-size: 32px;
    line-height: 1.6;
    margin-bottom: 80px;
  }
  body.category .blog-archive .cat-archive-ttl {
    margin-bottom: 75px;
  }
  .blog-card-ttl {
    font-size: 20px;
    line-height: 1.6;
  }
}

/* --- 一覧ページネーション（Figma blog / works: 1 2 3 4 5 6 … 10） --- */
.blog-archive .pagination:not(:has(.page-numbers > li)),
.works-archive .pagination:not(:has(.page-numbers > li)) {
  display: none;
  margin: 0;
  padding: 0;
  border: none;
}
.blog-archive .pagination {
  margin-top: 80px;
}
.works-archive .pagination {
  margin-top: 110px;
}
.blog-archive .pagination,
.works-archive .pagination {
  padding: 0;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
}
.blog-archive .pagination ul,
.works-archive .pagination ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-archive .pagination li,
.works-archive .pagination li {
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 1 45px;
  min-width: 0;
  display: inline-flex;
  justify-content: center;
}
.blog-archive .pagination a,
.works-archive .pagination a,
.blog-archive .pagination span,
.works-archive .pagination span {
  box-sizing: border-box;
  width: 45px;
  max-width: 100%;
  height: 45px;
  padding: 0;
  border: none;
  border-radius: 5px;
  background: none;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--black);
  line-height: 1.8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.blog-archive .pagination .current,
.works-archive .pagination .current {
  color: #B6B4B4;
  background: none;
  cursor: pointer;
}
.blog-archive .pagination span.dots,
.works-archive .pagination span.dots {
  color: var(--black);
  background: none !important;
  pointer-events: none;
}
.blog-archive .pagination ul.page-numbers > li > a.page-numbers:hover,
.blog-archive .pagination ul.page-numbers > li > a.page-numbers:focus,
.blog-archive .pagination ul.page-numbers > li > .current:hover,
.blog-archive .pagination ul.page-numbers > li > .current:focus,
.works-archive .pagination ul.page-numbers > li > a.page-numbers:hover,
.works-archive .pagination ul.page-numbers > li > a.page-numbers:focus,
.works-archive .pagination ul.page-numbers > li > .current:hover,
.works-archive .pagination ul.page-numbers > li > .current:focus {
  background-color: var(--primary);
  color: var(--bs-white);
  border: none;
  border-radius: 0;
  opacity: 1;
}
.blog-archive .pagination span.dots:hover,
.works-archive .pagination span.dots:hover,
.blog-archive .pagination span.dots:focus,
.works-archive .pagination span.dots:focus {
  color: var(--black);
  background: none !important;
  opacity: 1;
}

/* --- works カードの「お客様の声」 --- */
.works-card-voice {
  position: relative;
  background: #f1f1f1;
  border-radius: 5px;
  padding: 25px 20px 20px;
  margin: 30px 0 0;
}
.works-card-voice-label {
  position: absolute;
  top: -15px;
  left: 0;
  display: inline-block;
  background: #ffda84;
  color: var(--black);
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  padding: 5px 15px;
  border-radius: 100px;
  margin: 0;
}
.works-card-voice-tx {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
  color: var(--black);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

@media (min-width: 992px) {
  .works-card-voice-tx {
    font-size: 18px;
  }
}

/* --- 記事/施工事例 詳細 共通レイアウト --- */
.blog-single-wrap,
.works-single-wrap { max-width: 1130px; }
.blog-single-wrap {
  padding-top: 50px;
  padding-bottom: 60px;
}
.works-single-wrap { padding-top: 60px; padding-bottom: 120px; }

/* --- 記事詳細 ヘッダ（Figma blog-detail） --- */
.blog-single-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; }
.blog-single-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 0; }
.blog-single-meta .card-badge {
  position: static;
  padding: 1.5px 10px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .02em;
}
.blog-single-date {
  color: #808080;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .02em;
}
.blog-single-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .02em;
  color: var(--black);
  margin: 0;
}
.blog-single-eyecatch { margin: 0; }
.blog-single-eyecatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-single > .blog-single-eyecatch {
  margin-bottom: 20px;
}

/* --- 目次（Figma blog-detail Frame 572/573） --- */
.toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 30px;
  padding: 15px 20px 30px;
  border: 1px solid var(--primary);
  border-radius: 5px;
  background: var(--bs-white);
}
.toc-ttl {
  margin: 0;
  padding: 0;
  border: none;
  text-align: left;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: 0.36px;
  color: var(--primary);
}
.toc-body { display: flex; flex-direction: column; gap: 10px; }
.toc-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--primary);
}
.toc-section:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.toc-item {
  margin: 0;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.32px;
  color: var(--primary);
}
.toc-item a {
  color: inherit;
  text-decoration: none;
}
.toc-item a:hover { text-decoration: underline; }
.toc-sublist { padding-left: 20px; }

/* a11y: スクリーンリーダー向け非表示（Bootstrap 5 互換・utilities 未読込のため自前定義） */
.visually-hidden {
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* a11y: skip-link（キーボード操作時のみ表示／WCAG 2.4.1 Bypass Blocks） */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; }
.skip-link:focus { left: 0; padding: 10px 16px; background: var(--primary, #042563); color: var(--bs-white); font-weight: bold; text-decoration: none; border-radius: 0 0 8px 0; }
main[tabindex="-1"] { outline: none; scroll-margin-top: var(--header-height); }

/* --- サイドバー（おすすめ/よく読まれている/その他事例/カテゴリ別） --- */
.works-side { margin-top: 40px; }
.blog-side .side-ttl-ic {
  width: 32px;
  height: 32px;
}
.blog-side .mini-card-ttl {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  word-break: break-word;
}
.side-block { margin-bottom: 40px; }
.side-ttl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 18px;
  line-height: 1.3;
}
.side-ttl-ic { flex: none; width: 1.3em; height: 1.3em; color: var(--black); }
.side-ttl-ic svg,
.side-ttl-ic img { width: 100%; height: 100%; display: block; }
.side-list { border: 1px solid #808080; border-radius: 8px; }
.mini-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--black); padding: 14px; border-bottom: 1px solid #808080; }
.mini-card:last-child { border-bottom: none; }
.mini-card-thumb { position: relative; flex: 0 0 88px; width: 88px; aspect-ratio: 4 / 3; overflow: hidden; }
.mini-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-card-body { min-width: 0; }
.mini-card-body .card-badge--sm {
  position: static;
  display: inline-block;
  max-width: 100%;
  margin: 0 0 6px;
  border-radius: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.mini-card-ttl { font-size: 13px; line-height: 1.55; margin: 0; }
.mini-card:hover .mini-card-ttl { color: var(--primary); }

/* --- 投稿詳細：本文＋サイド 2カラム（Figma 1440 = main + 40px + 300px） --- */
/* 施工事例詳細：SP = 本文 → pager → サイドバー（order）／PC = 本文+サイドの下に pager */
.works-single-wrap > .row.works-single-row {
  display: flex;
  flex-direction: column;
  margin-left: 0;
  margin-right: 0;
  --bs-gutter-x: 0;
}
.works-single-wrap > .row.works-single-row > * {
  flex-shrink: 1;
  padding-left: 0;
  padding-right: 0;
}
.works-single-wrap > .row.works-single-row > .works-single-main-col,
.works-single-wrap > .row.works-single-row > .works-single-side-col,
.works-single-wrap > .row.works-single-row > .works-single-pager {
  max-width: 100%;
  width: 100%;
}
.works-single-main-col { order: 1; }
.works-single-pager { order: 2; flex-shrink: 0; }
.works-single-side-col { order: 3; margin-top: 100px; flex-shrink: 0; }
.works-single-side-col .works-side { margin-top: 0; }

.works-side .side-cat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.side-cat {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  background: var(--bs-white);
  border: 1px solid #bebebe;
  border-radius: 10px;
  padding: 20px 15px;
  color: var(--black);
  text-decoration: none;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.32px;
  transition: background-color .2s, color .2s, border-color .2s;
}
.side-cat-list li {
  min-width: 0;
}
.side-cat:hover,
.side-cat.is-active {
  background: var(--primary);
  color: var(--bs-white);
  border-color: var(--primary);
  opacity: 1;
}

/* --- 記事末 お悩み＋約束（fp-worry 流用＋section-bg化） --- */
.post-worry { background: var(--section-bg); }
.post-worry .fp-worry-lead {
  font-size: 18px;
  font-weight: 600;
  line-height: 2;
}
.post-promise-lead { text-align: center; font-size: 22px; font-weight: 700; margin: 40px 0 20px; }
.post-worry .fp-promise {
  margin: 0 auto;
  width: min(888px, 100%);
  background: var(--bs-white);
  border-radius: 5px;
  box-shadow: none;
  padding: 20px;
}
.post-worry .fp-promise-list {
  border-top: none;
  padding-top: 0;
  padding-inline: 0;
}
.post-worry .fp-promise-item {
  justify-content: flex-start;
}
.post-worry .fp-promise-tx {
  text-align: left;
}
.post-worry.fp-leadcta {
  padding-top: 0;
  padding-bottom: 80px;
}
/* --- works 詳細 本文（Figma works-detail SP390 / PC1440） --- */
/* gap 使用（空白テキストノード対策で font-size:0）— 先頭余白のみ発生させない */
.works-single {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.works-single > * {
  font-size: 1rem;
  line-height: normal;
}
.works-single-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  font-size: 0;
  line-height: 0;
}
.works-single-head > * {
  font-size: 1rem;
  line-height: normal;
}
.works-single-head .card-badge {
  position: static;
  display: inline-block;
  align-self: flex-start;
  padding: 0 10px 3px;
  border-radius: 3px;
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 25.2px;
  letter-spacing: 0.28px;
}
.works-single-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0;
}
.works-single-main {
  margin: 0;
  aspect-ratio: 360 / 240;
  overflow: hidden;
}
.works-single-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-single-head + .works-single-main {
  margin-top: 20px;
}
/* SP セクション間余白 */
.works-single-head + .works-ba,
.works-single-main + .works-ba {
  margin-top: 30px;
}
.works-single-head + .works-detail,
.works-single-main + .works-detail,
.works-ba + .works-detail {
  margin-top: 30px;
}
.works-detail + .works-voice {
  margin-top: 50px;
}
.works-voice + .works-review-img {
  margin-top: 50px;
}
.works-ba {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.works-ba-col {
  min-width: 0;
}
.works-ba-label {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 22px;
  font-weight: 500;
  line-height: 33px;
  letter-spacing: 0.44px;
  color: #3a3e48;
  border-left: 5px solid var(--primary);
  padding: 0 20px;
  margin: 0 0 10px;
}
.works-ba-label--before { border-left-color: #d4cfcf; }
.works-ba-label--after { border-left-color: var(--primary); }
.works-ba-fig {
  aspect-ratio: 360 / 240;
  overflow: hidden;
  margin: 0;
}
.works-ba-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.works-detail { margin: 0; }
.works-sec-ttl {
  background: var(--primary);
  color: var(--bs-white);
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.4px;
  padding: 10px 20px;
  margin: 0 0 15px;
  border: none;
}
.works-voice {
  margin: 0;
  position: relative;
}
.works-voice-label {
  display: inline-block;
  background: #ffda84;
  color: var(--black);
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 25.6px;
  letter-spacing: 0.32px;
  padding: 10px 30px;
  border-radius: 100px;
  margin: 0 0 0 20px;
  position: absolute;
  top: -23px;
  left: 0;
  z-index: 1;
  border: none;
}
.works-voice-box {
  background: #f1f1f1;
  border-radius: 5px;
  padding: 50px 20px 40px;
}
.works-voice-box p {
  margin: 0;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 180%;
  letter-spacing: 0.4px;
  color: var(--black);
}
.works-review-img {
  margin: 0;
  overflow: hidden;
}
.works-review-img img {
  width: 100%;
  height: auto;
  display: block;
}
.works-pager,
.works-pager a {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0.8px;
  color: var(--black);
}
.works-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  border-top: 1px solid #808080;
  border-bottom: 1px solid #808080;
  padding: 10px 0;
}
.works-pager.works-single-pager {
  margin-top: 77px;
}
.works-pager a {
  text-decoration: none;
}
.works-pager a:hover {
  text-decoration: underline;
}
.works-pager-list { font-weight: 500; }
.works-pager-prev:empty,
.works-pager-next:empty { display: none; }

/* --- works サイドバー（SP: Figma works-detail） --- */
.works-side .side-ttl {
  justify-content: center;
  gap: 5px;
  margin-bottom: 15px;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: 0.4px;
}
.works-side .side-ttl-ic {
  width: 40px;
  height: 40px;
}
.works-side .side-ttl-ic--tag {
  background-color: var(--black);
  -webkit-mask-image: url(./library/images/icon/icon-tag.svg);
  mask-image: url(./library/images/icon/icon-tag.svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.works-side .mini-card {
  align-items: flex-start;
  gap: 10px;
  padding: 15px;
}
.works-side .mini-card-thumb {
  flex: 0 0 100px;
  width: 100px;
  aspect-ratio: 1;
}
.works-side .mini-card-body .card-badge--sm {
  font-family: "Noto Sans JP", "Roboto", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  margin-bottom: 5px;
}
.works-side .mini-card-ttl {
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.4px;
}
.works-side .side-block { margin-bottom: 50px; }
.works-side .side-block:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .lower-cathead { padding: 18px 0 80px; }
  .blog-archive,
  .works-archive { padding-top: 80px; padding-bottom: 120px; }
  .not-found-page { padding-bottom: 120px; }
  .blog-archive .pagination {
    margin-top: 75px;
  }
  body.blog .blog-archive .pagination {
    margin-top: 80px;
  }
  .works-archive .pagination { margin-top: 80px; }
  .blog-archive .pagination li,
  .works-archive .pagination li {
    flex: 0 0 auto;
  }
  .blog-archive .pagination a,
  .works-archive .pagination a,
  .blog-archive .pagination span,
  .works-archive .pagination span {
    width: 50px;
    max-width: none;
    height: 50px;
    font-size: 18px;
  }
  .blog-single-meta { gap: 20px; }
  .blog-single-meta .card-badge {
    padding: 0 15px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.32px;
  }
  .blog-single-date {
    font-size: 16px;
    letter-spacing: 0.32px;
  }
  .toc {
    gap: 20px;
    margin-bottom: 50px;
    padding: 10px 20px 50px;
  }
  .toc-ttl {
    font-size: 24px;
    line-height: 48px;
    letter-spacing: 0.48px;
  }
  .toc-body {
    padding-left: 40px;
    padding-right: 40px;
  }
  .toc-item {
    font-size: 18px;
    line-height: 36px;
    letter-spacing: 0.36px;
  }
  .toc-sublist {
    padding-left: 40px;
    padding-right: 40px;
  }
  .works-single-ttl {
    font-size: 24px;
  }
  .works-single-head .card-badge {
    padding: 0 15px;
    border-radius: 5px;
    font-size: 16px;
    line-height: 28.8px;
    letter-spacing: 0.32px;
  }
  .works-single-main {
    aspect-ratio: 760 / 427.5;
  }
  .works-ba {
    flex-direction: row;
    gap: 50px;
  }
  .works-ba-col {
    flex: 1 1 0;
  }
  .works-ba-fig {
    aspect-ratio: auto;
    height: 237px;
  }
  .works-sec-ttl {
    font-size: 24px;
    line-height: 48px;
    letter-spacing: 0.48px;
    padding: 5px 25px;
    margin-bottom: 10px;
  }
  .works-voice-label {
    font-size: 24px;
    line-height: 38.4px;
    letter-spacing: 0.48px;
    padding: 5px 30px;
    top: -23px;
  }
  .works-voice-box {
    padding: 60px 40px 40px;
  }
  .works-voice-box p {
    font-size: 20px;
  }
  .works-pager,
  .works-pager a {
    font-size: 18px;
    line-height: 32.4px;
    letter-spacing: 0.9px;
  }
  .post-worry .fp-worry-lead {
    font-size: 22px;
    line-height: 2.2;
  }
}
@media (max-width: 991px) {
  .blog-single-head {
    gap: 20px;
  }
  .blog-single > .blog-single-eyecatch {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 20px;
    aspect-ratio: 360 / 240;
    overflow: hidden;
    line-height: 0;
  }
  .works-side .side-block:has(.side-cat-list) {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }
  .works-side .side-cat-list {
    width: 100%;
  }
}
@media (min-width: 992px) {
  .blog-single-wrap {
    padding-top: 87px;
    padding-bottom: 150px;
  }
  .works-single-wrap {
    padding-top: 95px;
  }
  .blog-single-wrap > .row,
  .works-single-wrap > .row.works-single-row {
    --blog-side-width: 300px;
    --blog-side-gap: 40px;
    display: flex;
    gap: 150px var(--blog-side-gap);
    margin-left: 0;
    margin-right: 0;
  }
  .blog-single-wrap > .row {
    flex-wrap: nowrap;
  }
  .works-single-wrap > .row.works-single-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .works-single-wrap > .row.works-single-row > .works-single-main-col,
  .works-single-wrap > .row.works-single-row > .works-single-side-col {
    width: auto;
  }
  .blog-single-wrap > .row > main.col-lg-8,
  .blog-single-wrap > .row > .col-lg-4 {
    padding-left: 0;
    padding-right: 0;
    flex: none;
    max-width: none;
    width: auto;
  }
  .works-single-wrap > .row.works-single-row > .works-single-main-col,
  .works-single-wrap > .row.works-single-row > .works-single-side-col {
    flex: none;
    max-width: none;
    width: auto;
  }
  .blog-single-wrap > .row > main.col-lg-8,
  .works-single-wrap > .row.works-single-row > .works-single-main-col {
    flex: 1 1 0;
    flex-shrink: 1;
    min-width: 0;
    order: 1;
  }
  .blog-single-wrap > .row > .col-lg-4,
  .works-single-wrap > .row.works-single-row > .works-single-side-col {
    flex: 0 0 var(--blog-side-width);
    flex-shrink: 0;
    width: var(--blog-side-width);
    max-width: var(--blog-side-width);
    order: 2;
    margin-top: 0;
  }
  .works-single-wrap > .row.works-single-row > .works-single-pager {
    order: 3;
    flex: 0 0 100%;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
  }
  .blog-side,
  .works-side {
    width: 100%;
    max-width: var(--blog-side-width);
    margin-top: 0;
  }
  .blog-side {
    padding-top: 35px;
  }
  .works-side {
    padding-top: 0;
  }
  .works-single-wrap > .row.works-single-row > .works-single-main-col,
  .works-single-wrap > .row.works-single-row > .works-single-side-col {
    align-self: flex-start;
    padding-top: 0;
    margin-top: 0;
  }
  .works-single-main-col .works-single {
    margin: 0;
    padding: 0;
  }
  /* PC セクション間余白（Figma works-detail 1440） */
  .works-single {
    gap: 0;
  }
  .works-single-head {
    margin-bottom: 0;
  }
  .works-single-head + .works-single-main {
    margin-top: 20px;
  }
  .works-single-head + .works-ba,
  .works-single-main + .works-ba {
    margin-top: 50px;
  }
  .works-single-head + .works-detail,
  .works-single-main + .works-detail,
  .works-ba + .works-detail {
    margin-top: 50px;
  }
  .works-detail + .works-voice {
    margin-top: 100px;
  }
  .works-voice + .works-review-img {
    margin-top: 50px;
  }
  .works-voice {
    margin-top: 0;
  }
  .works-single-wrap > .row.works-single-row > .works-single-side-col {
    margin-top: 0;
  }
  .blog-side .side-block,
  .works-side .side-block {
    margin-bottom: 50px;
  }
  .blog-side .side-block:last-child,
  .works-side .side-block:last-child {
    margin-bottom: 0;
  }
  .blog-side .side-ttl,
  .works-side .side-ttl {
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 40px;
    letter-spacing: 0.4px;
  }
  .blog-side .side-ttl-ic,
  .works-side .side-ttl-ic {
    width: 40px;
    height: 40px;
  }
  .blog-side .mini-card,
  .works-side .mini-card {
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
  }
  .blog-side .mini-card-thumb,
  .works-side .mini-card-thumb {
    flex: 0 0 100px;
    width: 100px;
    aspect-ratio: 1;
  }
  .blog-side .mini-card-body .card-badge--sm,
  .works-side .mini-card-body .card-badge--sm {
    font-size: 16px;
    margin-bottom: 5px;
    padding: 0 15px;
  }
  .blog-side .mini-card-ttl {
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
  }
  .works-side .mini-card-ttl {
    font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: 0.36px;
  }
  .blog-single-head {
    margin-bottom: 50px;
  }
  .blog-single-ttl {
    font-size: 26px;
    line-height: 1.8;
    letter-spacing: 0.48px;
  }
  .fp-worry.post-worry .fp-sec-ttl {
    margin-bottom: 66px;
  }
  .post-promise-lead {
    line-height: 2.2;
    margin: 60px 0 30px;
  }
  .post-worry .fp-promise {
    width: min(888px, 100%);
    padding: 40px 25px;
  }
  .post-worry .fp-promise-item {
    justify-content: center;
  }
  .post-worry .fp-promise-tx {
    font-size: 18px;
    line-height: 1.5;
  }
  .post-worry .fp-promise-tx--stack .fp-promise-tx-lead,
  .post-worry .fp-promise-tx--stack .fp-promise-tx-em {
    font-size: 18px;
  }
  .post-worry .fp-promise-tx--stack .fp-promise-tx-em {
    font-size: 22px;
  }
  .post-worry.fp-leadcta {
    padding-top: 0;
    padding-bottom: 100px;
  }
} 
/* =========================================================================
   P5: お問い合わせ（入力 / 確認 / 完了）— Figma 20260630
   ========================================================================= */
body.contact { background: var(--section-bg); }

.lower-body.contact-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 46px;
  max-width: 950px;
  padding: 0 0 150px;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.contact-intro {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
}
.contact-lead {
  align-self: stretch;
  margin: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .02em;
  padding-top: 20px;
}
/* 公式LINEのQRコード（PC） */
.contact-line-qr {
  width: 120px;
  height: 120px;
}
/* 公式LINEの追加ボタン（スマホ） */
.contact-line-btn {
  align-items: center;
  width: 262px;
  height: 70px;
  padding-left: 20px;
  background: #06C755;
  border-radius: 5px;
  text-decoration: none;
}
.contact-line-btn img {
  display: block;
  width: 60px;
  height: 60px;
  flex: none;
}
.contact-line-btn span {
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .02em;
}

.contact-req-note { color: #C01717; }

.contact-err-top {
  align-self: stretch;
  background: #fdecea;
  color: #C01717;
  padding: 14px 18px;
  border-radius: 5px;
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 28.8px;
  letter-spacing: 0.32px;
}

.contact-form {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 46px;
  margin: 0;
  background: var(--section-bg);
}

.contact-form-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* h-adr 内の p-country-name 用 <p> / <br> を除き、contact-row 同士の間隔だけ gap で取る */
.contact-form-body .h-adr {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.contact-form-body .h-adr .p-country-name,
.contact-form-body .h-adr br,
.contact-form-body .h-adr > p:has(.p-country-name) {
  display: none;
}

.contact-row {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.contact-row .contact-label {
  margin-bottom: 10px;
}

.contact-label {
  display: block;
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-req {
  color: #C01717;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.8;
}

input.contact-input,
textarea.contact-input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 10px 20px;
  background: var(--bs-white);
  border: none;
  border-radius: 5px;
  color: var(--black);
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 32.4px;
  letter-spacing: 0.36px;
}

input.contact-input::placeholder,
textarea.contact-input::placeholder {
  color: #A9A9A9;
  opacity: 1;
}

input.contact-input:focus,
textarea.contact-input:focus {
  outline: 2px solid var(--primary);
  background: var(--bs-white);
  border: none;
}

.contact-textarea {
  resize: vertical;
  min-height: 300px;
  height: 300px;
}

.contact-err {
  color: #C01717;
  font-size: 16px;
  font-weight: 500;
  line-height: 28.8px;
  letter-spacing: 0.32px;
  margin: 0;
}

.contact-agree {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-align: center;
}

.contact-agree-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 32.4px;
  letter-spacing: 0.36px;
}

.contact-agree-txt {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-agree-label a,
.contact-agree-txt a {
  color: var(--primary);
  text-underline-offset: 2px;
}

.contact-agree-label input,
.contact-agree input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  background: var(--bs-white);
  border: none;
  border-radius: 0;
  cursor: pointer;
}

.contact-agree-label input:checked,
.contact-agree input[type="checkbox"]:checked {
  background: var(--bs-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23042563' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-btns {
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  width: 100%;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 250px;
  min-width: 0;
  margin: 0;
  padding: 15px 40px;
  background: #042563;
  color: var(--bs-white);
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 32.4px;
  letter-spacing: 0.36px;
  cursor: pointer;
  transition: opacity .2s;
}

.contact-btn:hover {
  background: var(--secondary);
  color: var(--bs-white);
  opacity: 1;
}

.contact-btn--ghost {
  background: transparent;
  color: #042563;
  border: 1px solid #042563;
}

.contact-btn--ghost:hover {
  background: var(--bs-white);
  color: #042563;
}

/* 確認画面 */
.contact-row--confirm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid #d9d4ca;
  padding: 16px 0;
  margin: 0;
}

.contact-row--confirm:first-of-type { border-top: 1px solid #d9d4ca; }

.contact-row--confirm .contact-label {
  flex: none;
  margin: 0;
}

.contact-confirm-val {
  color: var(--black);
  font-size: 18px;
  font-weight: 500;
  line-height: 32.4px;
  letter-spacing: 0.36px;
  min-width: 0;
  word-break: break-word;
}

.contact-form--confirm .contact-form-body { gap: 0; }

.contact-form--confirm .contact-btns { margin-top: 0; }

/* 完了画面 */
.contact-complete {
  align-self: stretch;
  text-align: center;
  padding: 0;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
}

.contact-complete-ttl {
  margin: 0 0 22px;
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}

.contact-complete-tx { margin: 0 0 22px; }

.contact-complete-note {
  margin: 0 0 32px;
  color: #808080;
  font-size: 14px;
  font-weight: 400;
  line-height: 25.2px;
  letter-spacing: 0.28px;
}
.contact-complete-note a,
.contact-complete-note a:link,
.contact-complete-note a:visited {
  color: #808080;
  -webkit-text-fill-color: #808080;
  text-decoration: underline;
}

@media (min-width: 768px) {
  .contact-btns {
    flex-direction: row;
    gap: 20px;
  }

  .contact-row--confirm {
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
  }

  .contact-row--confirm .contact-label {
    flex: 0 0 200px;
  }
}

@media (min-width: 992px) {
  .lower-body.contact-page {
    padding-bottom: 150px;
  }
  .contact-complete-ttl {
    font-size: 24px;
  }
  .contact-lead {
    font-size: 18px;
    padding-top: 0;
  }
}

/* =========================================================================
   CF7 お問い合わせフォーム + 確認画面（フォームを隠し同じ位置に表示する方式）
   ========================================================================= */
body.contact,
body.thanks { background: var(--section-bg); }

/* CF7 が挿入する .wpcf7 ラッパーを contact-page 幅いっぱいに */
.contact-page .wpcf7 {
  align-self: stretch;
  width: 100%;
}

.wpcf7 form.contact-form {
  align-self: stretch;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 46px;
}

/* 確認画面表示中はフォームをhidden属性で隠す。上のdisplay:flexが
   ブラウザ既定の[hidden]{display:none}に(UAスタイルより優先度が高い自スタイルとして)
   勝ってしまうため、明示的に上書きする（そうしないと隠したはずのフォームが
   確認画面と二重に表示される）。 */
.wpcf7 form.contact-form[hidden] {
  display: none;
}

.wpcf7 form.contact-form .contact-form-body,
.wpcf7 form.contact-form .contact-row,
.wpcf7 form.contact-form .contact-btns {
  width: 100%;
}

.wpcf7 form.contact-form .contact-form-body .h-adr {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.wpcf7 form.contact-form .contact-form-body .h-adr .p-country-name,
.wpcf7 form.contact-form .contact-form-body .h-adr br,
.wpcf7 form.contact-form .contact-form-body .h-adr > p:has(.p-country-name) {
  display: none;
}

.wpcf7 form.contact-form .contact-row {
  display: flex;
  flex-direction: column;
}

/* CF7 が <p> で包む場合も縦積みにする */
.wpcf7 form.contact-form .contact-row > p {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
}

/* CF7 が label とフィールドの間に挿入する <br> を除去（label margin-bottom: 10px で間隔を取る） */
.wpcf7 form.contact-form .contact-row br {
  display: none;
}

.wpcf7 form.contact-form .contact-row .contact-label {
  margin-bottom: 10px;
}

.wpcf7 form.contact-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  margin: 0;
}

.wpcf7 form.contact-form input.wpcf7-form-control:not([type="submit"]),
.wpcf7 form.contact-form textarea.wpcf7-form-control,
.wpcf7 form.contact-form select.wpcf7-form-control {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.wpcf7 form.contact-form p {
  margin: 0;
}

.wpcf7 form.contact-form .wpcf7-not-valid-tip {
  color: #C01717;
  font-size: 16px;
  font-weight: 700;
  margin-top: 8px;
}

.wpcf7 form.contact-form .wpcf7-response-output {
  margin: 16px 0 0;
  padding: 14px 18px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
}

.wpcf7 form.contact-form.sent .wpcf7-response-output {
  display: none;
}

/* スピナーは visibility:hidden でも幅を取るため、ボタン行からレイアウト除外 */
.wpcf7 form.contact-form .contact-btns .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: calc(50% + 125px + 12px);
  transform: translateY(-50%);
  margin: 0;
  visibility: hidden;
}

.wpcf7 form.contact-form.submitting .contact-btns .wpcf7-spinner {
  visibility: visible;
}

.wpcf7 form.contact-form .contact-agree {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.wpcf7 form.contact-form .contact-agree br {
  display: none;
}

.wpcf7 form.contact-form .contact-agree .wpcf7-form-control-wrap {
  display: inline-flex;
  align-items: center;
  width: auto;
}

/* CF7 はチェックボックスを行内要素（span）の入れ子で包む。行内のままだと
   文字のベースラインを基準に置かれ、チェックボックスだけが数px上へずれる。
   入れ子を縦中央揃えにして、文字と中心を揃える。 */
.wpcf7 form.contact-form .contact-agree .wpcf7-acceptance,
.wpcf7 form.contact-form .contact-agree .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.wpcf7 form.contact-form .contact-agree .wpcf7-list-item label,
.wpcf7 form.contact-form .contact-agree-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 32.4px;
  letter-spacing: 0.36px;
}

.wpcf7 form.contact-form .contact-agree .wpcf7-list-item-label:empty {
  display: none;
}

.wpcf7 form.contact-form .contact-agree input[type="checkbox"] {
  margin: 0;
}

.wpcf7 form.contact-form .contact-agree a {
  color: var(--black);
}

.wpcf7 form.contact-form .contact-btns {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  justify-content: center;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.wpcf7 form.contact-form .contact-btns > p {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin: 0;
  width: 100%;
}

.wpcf7 form.contact-form .contact-btns .wpcf7-form-control-wrap {
  display: inline-flex;
  width: auto;
  max-width: 100%;
}

.wpcf7 form.contact-form .contact-btn,
.wpcf7 form.contact-form input[type="submit"].contact-btn {
  display: inline-flex;
  width: 250px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* 確認画面（フォームをhidden属性で隠し、同じ位置に表示する。オーバーレイの
   ポップアップではない＝背景のスクロール固定等モーダル特有の指定は持たない） */
.ibara-cf7-confirm[hidden] {
  display: none;
}

.ibara-cf7-confirm {
  outline: none;
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
}

.ibara-cf7-confirm-title {
  margin: 0 0 16px;
  color: var(--primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  outline: none;
}

.ibara-cf7-confirm-lead {
  margin: 0 0 24px;
  color: var(--black);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.ibara-cf7-confirm .contact-btns {
  margin-top: 32px;
}

.contact-confirm-list {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  color: var(--black);
  font-size: 16px;
}

.contact-confirm-list dt {
  margin: 0;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-confirm-list dd {
  margin: 0 0 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ececec;
  line-height: 1.8;
  word-break: break-word;
  font-weight: 500;
}

@media (min-width: 768px) {
  .contact-confirm-list {
    grid-template-columns: 200px 1fr;
    gap: 12px 24px;
    align-items: baseline;
  }

  .contact-confirm-list dt { grid-column: 1; }
  .contact-confirm-list dd {
    grid-column: 2;
    margin-bottom: 0;
  }
}

/* =========================================================================
   SP 追従お問い合わせバナー（contact 画面以外 / Figma 20260626）
   ========================================================================= */
:root {
  --sp-cta-height: 63px;
}
.sp-cta-banner {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  padding-bottom: env(safe-area-inset-bottom, 0);
  font-family: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  transform: translateY(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.45s ease, visibility 0s linear 0.45s;
}
.sp-cta-banner.is-visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.45s ease, visibility 0s linear 0s;
}
.sp-cta-banner > a {
  flex: 1 1 0;
  height: var(--sp-cta-height);
  padding: 0;
  text-decoration: none;
}
.sp-cta-banner > a:hover {
  opacity: 1;
}
.sp-cta-banner-tel,
.sp-cta-banner-tel:link,
.sp-cta-banner-tel:visited,
.sp-cta-banner-tel:hover,
.sp-cta-banner-tel:active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--bs-white);
  color: #042563;
  -webkit-text-fill-color: #042563;
  outline: 1px solid #042563;
  outline-offset: -1px;
}
/* 電話・メールの2行テキスト（デザイン：14px / 行送り19.6px） */
.sp-cta-banner-tx {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.28px;
}
/* 公式LINE（幅はデザインどおり60px固定。.sp-cta-banner > a の指定より強くする） */
.sp-cta-banner > .sp-cta-banner-line {
  flex: 0 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06C755;
}
.sp-cta-banner-line img {
  display: block;
  width: 54px;
  height: 54px;
}
.sp-cta-banner-tel .sp-cta-banner-ic {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: none;
}
.sp-cta-banner-tel .sp-cta-banner-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sp-cta-banner-tel .sp-cta-banner-ic svg .cls-1 {
  fill: #042563;
}
.sp-cta-banner-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #042563;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.sp-cta-banner-mail .sp-cta-banner-ic {
  width: 30px;
  height: 30px;
  display: inline-flex;
  flex: none;
}
.sp-cta-banner-mail .sp-cta-banner-ic svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sp-cta-banner-mail .sp-cta-banner-ic svg .cls-1 {
  fill: var(--bs-white);
}
/* 固定CTA分の余白（SP・表示時のみ / フッター背景で埋め、白い隙間を出さない） */
@media (max-width: 767.98px) {
  body:has(.sp-cta-banner.is-visible) .footer {
    padding-bottom: calc(var(--sp-cta-height) + env(safe-area-inset-bottom, 0px));
  }
}

@media (min-width: 768px) {
  .sp-cta-banner {
    display: none;
  }
  body:has(.sp-cta-banner) .footer,
  body:has(.sp-cta-banner.is-visible) .footer {
    padding-bottom: 0;
  }
}

/* =========================================================================
   ページトップへ戻る（全画面 / スクロールで表示）
   SP: 固定CTAの上・右下 / PC: フローティングバナーと反対側（左下）
   ========================================================================= */
#page-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  /* 非表示時: opacity フェード後に visibility を切る */
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}
/* SP（CTA表示幅）では常にCTA上に固定（is-visible解除で位置が飛ばないようにする） */
@media (max-width: 767.98px) {
  body:has(.sp-cta-banner) #page-top {
    bottom: calc(var(--sp-cta-height) + env(safe-area-inset-bottom, 0px) + 12px);
  }
}
#page-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  /* 表示時: すぐに visibility を立ててからフェードイン */
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0s;
}
#page-top img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.2);
}
@media (min-width: 992px) {
  #page-top {
    left: 24px;
    right: auto;
    bottom: 28px;
  }
  #page-top img {
    width: 50px;
    height: 50px;
  }
}
