/* =========================================================
   custom.css — プルメリアホームズ 子テーマの主要スタイル
   - フロントとブロックエディタの両方で読み込まれる
   - クラスは .ph-* で名前空間を切り、Lightning 親テーマと衝突しないように
   ========================================================= */

/* ----------------- 全体の崩れ防止 ----------------- */
html,
body {
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(ellipse 90% 55% at 0% -10%, rgba(42, 163, 184, 0.09), transparent 50%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(15, 107, 125, 0.06), transparent 48%),
    var(--ph-bg);
}

/* ----------------- ヘッダー（Lightning標準の見た目調整） ----------------- */
#site-header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 10040;
}

/* TOP: ヘッダーをヒーロー上に固定し、ロゴ・グロナビを常に見える位置へ */
body.home #site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
}

body.home.admin-bar #site-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.home.admin-bar #site-header {
    top: 46px;
  }
}

/*
 * Lightning main.js がスクロール後にヘッダー次要素へ付与する margin-top。
 * TOP はヘッダー固定＋ヒーローに余白済みのため二重になりやすく、レイアウトを潰さないように打ち消す。
 */
body.home main#main.ph-front {
  margin-top: 0 !important;
}

/* メイン・アンカー先が固定ヘッダーに隠れないよう */
#main {
  scroll-margin-top: clamp(72px, 12vw, 104px);
}

@media (max-width: 991px) {
  #vk-mobile-nav-menu-btn {
    z-index: 10120 !important;
  }
}

/* アンカーリンク（サービスページ等）で見出しがヘッダーに被らない */
.ph-page-main h2[id],
.ph-page-main h3[id] {
  scroll-margin-top: clamp(72px, 10vw, 96px);
}

#site-header .site-header-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

#site-header .site-header-logo a {
  display: inline-flex;
  align-items: center;
}

/* ロゴを読みやすいサイズに（Lightning 既定より一段大きく） */
#site-header .site-header-logo img {
  display: block;
  width: auto;
  height: auto;
  max-height: clamp(56px, 7vw, 86px);
  max-width: min(280px, 52vw);
  object-fit: contain;
}

body.home:not(.header_scrolled) #site-header {
  background: linear-gradient(to bottom, rgba(15, 32, 41, 0.42), rgba(15, 32, 41, 0));
  box-shadow: none;
}

body.home:not(.header_scrolled) #site-header .site-header-logo a,
body.home:not(.header_scrolled) #site-header .global-nav-list > li > a {
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
}

/* 砂浜など明るいヒーロー上でも SVG ロゴ（ダーク線画）が読めるように */
body.home:not(.header_scrolled) #site-header .site-header-logo img {
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.55)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}

body.header_scrolled #site-header,
body:not(.home) #site-header {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 12px 40px rgba(15, 23, 42, 0.06);
}

/* モバイルではグローバルナビを隠し、ハンバーガー導線に一本化 */
@media (max-width: 991px) {
  #site-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px) saturate(130%);
    backdrop-filter: blur(8px) saturate(130%);
  }

  #site-header .site-header-container {
    min-height: 74px;
  }

  #global-nav {
    display: none !important;
  }

  #vk-mobile-nav-menu-btn,
  #vk-mobile-nav {
    display: none !important;
  }

  body.home:not(.header_scrolled) #site-header .site-header-logo a,
  body.home:not(.header_scrolled) #site-header .global-nav-list > li > a {
    color: var(--ph-text);
    text-shadow: none;
  }
}

/* 子テーマ側のモバイルメニュー */
.ph-mobile-menu-btn {
  display: none;
}

@media (max-width: 991px) {
  .ph-mobile-menu-btn {
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 10130;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(45, 58, 64, 0.22);
    background: rgba(255, 255, 255, 0.96);
    padding: 0;
  }

  body.admin-bar .ph-mobile-menu-btn {
    top: calc(max(10px, env(safe-area-inset-top, 0px)) + 46px);
  }

  .ph-mobile-menu-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--ph-text);
  }

  .ph-mobile-menu {
    position: fixed;
    top: calc(max(56px, env(safe-area-inset-top, 0px)) + 8px);
    left: 12px;
    right: 12px;
    z-index: 10125;
    padding: 10px 0;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 28px rgba(20, 36, 44, 0.18);
    backdrop-filter: blur(8px);
  }

  .ph-mobile-menu__list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ph-mobile-menu__list li {
    margin: 0;
  }

  .ph-mobile-menu__list a {
    display: block;
    padding: 12px 16px;
    color: var(--ph-text);
    text-decoration: none;
    border-top: 1px solid #edf1f4;
  }

  .ph-mobile-menu__list li:first-child a {
    border-top: none;
  }
}

/* ----------------- 固定ページの構造をシンプル化 ----------------- */
/* 独自ページヘッダーを使うため、Lightning標準のタイトル帯・パンくずは非表示 */
body.page .page-header,
body.page #breadcrumb {
  display: none !important;
}

/* 固定ページ下部の不要ウィジェット（アーカイブ/カテゴリ）を非表示 */
body.page .site-body-bottom {
  display: none !important;
}

/* 固定ページを1カラム化（空サイドバーで本文が痩せる問題を解消） */
body.page .site-body-container .sub-section.sub-section--col--two {
  display: none !important;
}

body.page .site-body-container .main-section.main-section--col--two {
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
}

body.page .site-body-container {
  display: block !important;
}

/* 子テーマ page.php 用の基本ラッパー */
/* 幅制限は各 .ph-container に任せ、セクション背景はビューポート幅まで広げる */
.ph-page-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ph-page-article {
  width: 100%;
}

.ph-page-article .entry-body {
  width: 100%;
  padding-bottom: clamp(56px, 8vw, 96px);
}

.ph-page-article .entry-body > *:first-child {
  margin-top: 0;
}

img,
svg,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* 埋め込みマップ等: グローバル iframe の height:auto を打ち消す */
.ph-map {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  box-shadow: var(--ph-shadow-sm);
  aspect-ratio: 16 / 9;
  min-height: clamp(240px, 42vw, 480px);
  background: var(--ph-line);
}

.ph-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}

/* 既存本文のインライン aspect-ratio ラッパー（シード済みHTML）にも対応 */
.ph-about .ph-container > div:has(> iframe) {
  position: relative;
  width: 100%;
  margin-top: 1rem;
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  box-shadow: var(--ph-shadow-sm);
  aspect-ratio: 16 / 9;
  min-height: clamp(240px, 42vw, 480px);
  background: var(--ph-line);
}

.ph-about .ph-container > div:has(> iframe) iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
}

/* ----------------- ブロックエディタ表示の整備 ----------------- */
.editor-styles-wrapper {
  padding: 24px !important;
}

.editor-styles-wrapper .ph-pagehead,
.editor-styles-wrapper .ph-section {
  margin: 0;
}

.editor-styles-wrapper .ph-pagehead {
  padding: clamp(32px, 5vw, 56px) 0;
}

.editor-styles-wrapper .ph-section {
  padding: clamp(24px, 4vw, 48px) 0;
}

.editor-styles-wrapper .ph-container,
.editor-styles-wrapper .ph-container--narrow {
  width: 100%;
  max-width: var(--ph-container);
  margin-inline: auto;
  box-sizing: border-box;
}

.editor-styles-wrapper .ph-container--narrow {
  max-width: var(--ph-container-narrow);
}

.entry-body,
.site-body,
.site-content {
  overflow-wrap: break-word;
  word-break: normal;
}

.entry-body table,
.site-body table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ----------------- 共通レイアウト ----------------- */
.ph-section {
  padding: var(--ph-section-y) 0;
}

.ph-section:nth-of-type(odd) {
  position: relative;
}

.ph-container,
.ph-container--narrow {
  width: 100%;
  max-width: var(--ph-container);
  margin-inline: auto;
  box-sizing: border-box;
}

.ph-container--narrow {
  max-width: var(--ph-container-narrow);
}

.ph-text-center {
  text-align: center;
}

.ph-note-muted {
  font-size: 0.875rem;
  color: var(--ph-muted);
  line-height: 1.65;
}

.ph-eyebrow {
  display: inline-block;
  font-family: var(--ph-font-en);
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ph-accent-deep);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
  padding: 0.35em 0.85em 0.35em 0.95em;
  border-radius: 999px;
  border: 1px solid rgba(15, 107, 125, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 238, 242, 0.65));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.ph-heading {
  font-size: clamp(1.65rem, 2.6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 clamp(1rem, 2vw, 1.35rem);
  letter-spacing: 0.04em;
}

.ph-heading--center {
  text-align: center;
}

.ph-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.82;
  color: var(--ph-text-soft);
  max-width: 54ch;
}

.ph-lead--center,
.ph-text-center .ph-lead,
.ph-section [style*="text-align:center"] .ph-lead,
.ph-section [style*="text-align: center"] .ph-lead {
  margin-inline: auto;
}

/* ----------------- ボタン ----------------- */
.ph-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.88em 1.85em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.ph-button:focus-visible {
  outline: 2px solid var(--ph-accent);
  outline-offset: 3px;
}

.ph-button--primary {
  background: var(--ph-accent-deep);
  color: #fff;
  box-shadow: 0 4px 16px rgba(15, 107, 125, 0.28), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.ph-button--primary:hover {
  background: #0d5d6d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 107, 125, 0.32), 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.ph-button--ghost {
  background-color: transparent;
  border-color: var(--ph-line);
  color: var(--ph-text);
}

.ph-button--light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.64);
  background-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
}

.ph-button--light:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
  background-color: rgba(255, 255, 255, 0.14);
}

.ph-button--ghost:hover {
  border-color: var(--ph-accent);
  color: var(--ph-accent-deep);
}

/* ----------------- ヒーロー ----------------- */
/* 従来のヒーロー高さ + cover。焦点は下部（花・手前）寄りで空・海も残す */
.ph-hero {
  position: relative;
  min-height: clamp(460px, 62vh, 640px);
  display: flex;
  align-items: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

body.home .ph-hero {
  padding-top: clamp(72px, 12vw, 96px);
}

.ph-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background-color: #5f7f92;
}

.ph-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.38) 0%,
    rgba(15, 23, 42, 0.06) 48%,
    rgba(15, 23, 42, 0.45) 100%
  );
}

.ph-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 58%;
  z-index: 0;
}

.ph-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ph-container);
  margin-inline: auto;
  box-sizing: border-box;
  padding: clamp(4.5rem, 12vh, 7rem) 0;
}

.ph-hero__eyebrow {
  font-family: var(--ph-font-en);
  letter-spacing: 0.26em;
  font-size: 0.76rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  opacity: 0.95;
  margin-bottom: 1.1rem;
}

.ph-hero__title {
  font-size: clamp(2.05rem, 4.8vw, 3.25rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.18;
  margin: 0 0 1.35rem;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

body.home main.ph-front .ph-hero h1.ph-hero__title {
  color: #fff !important;
}

.ph-hero__sub {
  max-width: 36ch;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  line-height: 1.82;
  margin: 0 0 2.25rem;
  color: rgba(255, 255, 255, 0.94);
  opacity: 1;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35);
}

.ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

@media (min-width: 921px) {
  .ph-hero {
    min-height: clamp(480px, 56vh, 680px);
    max-height: min(860px, 90vh);
  }

  body.home .ph-hero {
    padding-top: clamp(60px, 7vw, 84px);
  }

  .ph-hero__photo {
    /* PC: 下（花・植え込み）基準で上を切る。スマホは 64% のまま */
    object-position: 50% 73%;
  }

  .ph-hero__inner {
    padding: clamp(3rem, 6.5vh, 5rem) 0;
  }
}

@media (max-width: 920px) {
  .ph-hero {
    min-height: clamp(420px, 58vh, 580px);
  }

  .ph-hero__photo {
    object-position: 50% 64%;
  }

  .ph-hero__inner {
    padding: 4.2rem 0;
  }

  .ph-hero__title {
    font-size: clamp(1.9rem, 7vw, 2.7rem);
    line-height: 1.4;
  }

  .ph-hero__sub {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .ph-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .ph-hero__actions .ph-button {
    justify-content: center;
  }
}

/* ----------------- 信頼バー ----------------- */
.ph-trustbar {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--ph-line);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.ph-trustbar__list {
  margin: 0;
  padding: clamp(1.1rem, 2.5vw, 1.65rem) 0;
  list-style: none;
  display: grid;
  gap: 0.25rem 1.25rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-trustbar__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.35rem 1rem 0.35rem 1.25rem;
  border-left: 1px solid var(--ph-line);
}

.ph-trustbar__item:first-child {
  border-left: none;
  padding-left: 0;
}

.ph-trustbar__item strong {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ph-text);
}

.ph-trustbar__item span {
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--ph-muted);
}

@media (max-width: 780px) {
  .ph-trustbar__list {
    grid-template-columns: 1fr;
  }

  .ph-trustbar__item {
    border-left: none;
    border-top: 1px solid var(--ph-line);
    padding: 0.8rem 0;
  }

  .ph-trustbar__item:first-child {
    border-top: none;
  }
}

/* ----------------- 3カード（事業概要） ----------------- */
.ph-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(272px, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ph-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--ph-radius-lg);
  padding: 0 1.75rem 2rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--ph-shadow-sm);
}

.ph-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--ph-shadow);
  border-color: rgba(42, 163, 184, 0.35);
}

.ph-card__thumb {
  display: block;
  height: 160px;
  margin: 0 -1.75rem 0.35rem -1.75rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* 売買・移住はストックで体裁を揃え、賃貸のみクライアントの建物写真で差をつける */
.ph-card--sale .ph-card__thumb {
  background-image: url("../img/site/ph-card-sale.jpg?20260517b");
}

.ph-card--rent .ph-card__thumb {
  background-image: url("../img/site/ph-card-rent.jpg?20260517b");
}

.ph-card--relocation .ph-card__thumb {
  background-image: url("../img/site/ph-card-relocation.jpg?20260517b");
}

.ph-card__label {
  font-family: var(--ph-font-en);
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ph-accent-deep);
}

.ph-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0;
}

.ph-card__desc {
  color: var(--ph-text-soft);
  font-size: 0.93rem;
  line-height: 1.72;
  margin: 0;
}

.ph-card__more {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--ph-accent-deep);
  font-weight: 600;
}

.ph-intro {
  text-align: center;
  margin-bottom: clamp(0.5rem, 2vw, 1.25rem);
}

.ph-intro .ph-lead {
  margin-inline: auto;
  margin-top: 0.5rem;
  text-align: center;
}

/* ----------------- About 抜粋 ----------------- */
.ph-about {
  background-color: var(--ph-surface);
}

.ph-about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.ph-about__figure {
  margin: 0;
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--ph-accent-2);
  box-shadow: var(--ph-shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.ph-about__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 721px) {
  .ph-about__grid--reverse {
    grid-template-columns: 1fr 1.1fr;
  }

  .ph-about__grid--reverse .ph-about__figure {
    grid-column: 2;
    grid-row: 1;
  }

  .ph-about__grid--reverse .ph-about__body {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (max-width: 720px) {
  .ph-about__grid {
    grid-template-columns: 1fr;
  }

  .ph-about__figure {
    order: -1;
  }

  .ph-about__grid--reverse .ph-about__figure,
  .ph-about__grid--reverse .ph-about__body {
    grid-column: auto;
    grid-row: auto;
  }
}

.ph-about__body p {
  margin: 0 0 1rem;
  line-height: 1.85;
  color: var(--ph-text);
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
}

.ph-about__body p:last-child {
  margin-bottom: 0;
}

/* 会社概要: ご相談スペース（.ph-about のグレー帯を外し、ページ地色に溶かす） */
.ph-section.ph-about.ph-about--office {
  background-color: transparent;
}


/* ----------------- エリアセクション ----------------- */
.ph-areas {
  text-align: center;
}

.ph-areas__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin: clamp(1.25rem, 3vw, 2rem) 0 1.15rem;
}

.ph-areas__chip {
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.5em 1.4em;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ph-text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ph-areas__chip--accent {
  border-color: rgba(42, 163, 184, 0.45);
  background: linear-gradient(180deg, rgba(197, 232, 239, 0.9), rgba(232, 238, 242, 0.95));
  color: var(--ph-accent-deep);
}

.ph-areas__note {
  font-size: 0.85rem;
  color: var(--ph-muted);
  margin-top: clamp(1rem, 2.5vw, 1.5rem);
}

.ph-areas__rich-lead {
  max-width: 52ch;
  margin: clamp(0.75rem, 2vw, 1.25rem) auto 0;
  text-align: left;
  font-size: clamp(0.95rem, 1.05vw, 1.05rem);
  line-height: 1.85;
  color: var(--ph-text);
}

.ph-areas__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  max-width: 72rem;
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
  text-align: left;
}

.ph-areas__col p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.82;
  color: var(--ph-text-soft);
}

.ph-areas__h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(0.95rem, 1vw, 1.05rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ph-accent-deep);
}

.ph-areas__related {
  margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
  font-size: 0.88rem;
  color: var(--ph-muted);
}

.ph-areas__related a {
  color: var(--ph-accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.ph-areas__related a:hover {
  text-decoration-thickness: 2px;
}

.ph-areas__related-sep {
  margin: 0 0.35em;
  color: rgba(15, 23, 42, 0.25);
}

@media (max-width: 900px) {
  .ph-areas__columns {
    grid-template-columns: 1fr;
  }
}

/* ----------------- 代表メッセージ ----------------- */
.ph-message {
  background-color: #fff;
}

.ph-message__inner {
  display: grid;
  grid-template-columns: minmax(96px, min(16vw, 140px)) 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
}

.ph-message__figure {
  margin: 0;
  width: 100%;
  max-width: min(16vw, 140px);
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background-color: var(--ph-accent-2);
  box-shadow: var(--ph-shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.ph-message__img {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

.ph-message__body p {
  font-family: var(--ph-font-jp);
  line-height: 1.88;
  color: var(--ph-text);
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 1.05vw, 1.02rem);
}

.ph-message__author {
  font-size: 0.92rem;
  color: var(--ph-text-soft);
  margin-top: 1.2rem;
}

@media (max-width: 720px) {
  .ph-message__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .ph-message__figure {
    order: -1;
    max-width: min(40vw, 140px);
    margin-inline: auto;
    aspect-ratio: 4 / 5;
  }

  .ph-message__img {
    object-position: center center;
  }
}

/* ----------------- CTA帯 ----------------- */
.ph-cta {
  background: linear-gradient(125deg, #0a4f5c 0%, var(--ph-accent-deep) 42%, #1a9aad 100%);
  color: #fff;
  text-align: center;
}

.ph-cta__title {
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 0 0 1rem;
  color: #fff;
}

.ph-cta__sub {
  margin: 0 auto 2.25rem;
  max-width: 46ch;
  line-height: 1.82;
  opacity: 0.94;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.ph-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ph-cta__actions .ph-button {
  justify-content: center;
  min-width: min(260px, 92vw);
}

@media (max-width: 720px) {
  .ph-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.ph-cta .ph-button--primary {
  background: #fff;
  color: var(--ph-accent-deep);
}

.ph-cta .ph-button--primary:hover {
  background: var(--ph-surface);
  color: var(--ph-accent-deep);
}

/* ----------------- クイック相談 ----------------- */
.ph-quick {
  background: linear-gradient(180deg, #fff 0%, var(--ph-bg) 100%);
}

.ph-quick__box {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
  padding: clamp(28px, 4.5vw, 48px);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--ph-radius-xl);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--ph-shadow);
  backdrop-filter: blur(10px);
}

.ph-quick__content > p {
  margin: 0;
  color: var(--ph-text-soft);
}

.ph-quick__note {
  margin-top: 0.8rem !important;
  font-size: 0.9rem;
  color: var(--ph-muted);
}

.ph-quick__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ph-quick__actions .ph-button {
  justify-content: center;
}

@media (max-width: 780px) {
  .ph-quick__box {
    grid-template-columns: 1fr;
  }
}

/* ----------------- FAQ（TOP） ----------------- */
.ph-faq {
  background: var(--ph-bg);
}

.ph-faq__intro {
  margin: 0.75rem auto 0;
  max-width: 48ch;
  text-align: center;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.75;
  color: var(--ph-text-soft);
}

.ph-faq__list {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ph-faq__item {
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.ph-faq__summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 2.75rem 1rem 1.15rem;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ph-text);
  position: relative;
}

.ph-faq__summary::-webkit-details-marker {
  display: none;
}

.ph-faq__summary::marker {
  content: "";
}

.ph-faq__summary::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--ph-accent-deep);
  border-bottom: 2px solid var(--ph-accent-deep);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}

.ph-faq__item[open] .ph-faq__summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.ph-faq__panel {
  padding: 0 1.15rem 1.1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.ph-faq__panel p {
  margin: 0.85rem 0 0;
  font-size: 0.94rem;
  line-height: 1.8;
  color: var(--ph-text-soft);
}

.ph-faq__footnote {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--ph-muted);
}

.ph-faq__footnote a {
  color: var(--ph-accent-deep);
  font-weight: 600;
}

/* ----------------- ページヘッダ（下層共通） ----------------- */
.ph-pagehead {
  background: linear-gradient(180deg, var(--ph-surface) 0%, rgba(244, 247, 249, 0.4) 100%);
  padding: clamp(64px, 10vw, 112px) 0 clamp(52px, 8vw, 88px);
  text-align: center;
  border-bottom: 1px solid var(--ph-line);
}

.ph-pagehead__en {
  font-family: var(--ph-font-en);
  letter-spacing: 0.26em;
  color: var(--ph-accent-deep);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ph-pagehead__jp {
  font-size: clamp(1.65rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin: 0.55rem 0 0;
}

/* ----------------- 会社概要テーブル ----------------- */
.ph-info-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--ph-line);
}

.ph-info-table th,
.ph-info-table td {
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--ph-line);
  vertical-align: top;
}

.ph-info-table th {
  width: 28%;
  background-color: var(--ph-surface);
  font-weight: 600;
  color: var(--ph-text);
}

.ph-info-table td {
  color: var(--ph-text-soft);
}

@media (max-width: 640px) {
  .ph-info-table th,
  .ph-info-table td {
    display: block;
    width: 100%;
    border-bottom: none;
  }
  .ph-info-table tr {
    border-bottom: 1px solid var(--ph-line);
    display: block;
    padding: 0.8rem 0;
  }
}

/* ----------------- サービスセクション ----------------- */
.ph-service {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(48px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--ph-line);
}

.ph-service:last-child {
  border-bottom: none;
}

/* wpautop の余分な空 p が混ざってもレイアウトを崩さない */
.ph-service > p:empty {
  display: none;
}

.ph-service__media {
  grid-column: 1;
  grid-row: 1;
}

.ph-service > div:not(.ph-service__media) {
  grid-column: 2;
  grid-row: 1;
}

.ph-service--reverse .ph-service__media {
  grid-column: 2;
}

.ph-service--reverse > div:not(.ph-service__media) {
  grid-column: 1;
}

.ph-service__media {
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: var(--ph-accent-2);
  background-size: cover;
  background-position: center;
  box-shadow: var(--ph-shadow);
}

.ph-service__media--sale {
  background-image: url("../img/site/ph-service-sale.jpg?20260517");
}

.ph-service__media--rent {
  background-image: url("../img/site/ph-service-rent.jpg?20260517");
}

.ph-service__media--relocation {
  background-image: url("../img/site/ph-service-relocation.jpg?20260517");
}

@media (max-width: 720px) {
  .ph-service,
  .ph-service--reverse {
    grid-template-columns: 1fr;
  }
  .ph-service__media,
  .ph-service > div:not(.ph-service__media),
  .ph-service--reverse .ph-service__media,
  .ph-service--reverse > div:not(.ph-service__media) {
    grid-column: auto;
    grid-row: auto;
  }
  .ph-service--reverse .ph-service__media {
    order: 0;
  }
}

/* ----------------- 相談の流れ（4ステップ） ----------------- */
.ph-steps {
  display: grid;
  gap: 1.2rem;
  counter-reset: ph-step;
  width: 100%;
  margin-inline: auto;
  grid-template-columns: 1fr;
  max-width: 22rem;
}

@media (min-width: 640px) {
  .ph-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 36rem;
  }
}

@media (min-width: 960px) {
  .ph-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: min(100%, 56rem);
    justify-content: center;
  }
}

.ph-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius-lg);
  padding: 1.6rem 1.4rem;
  counter-increment: ph-step;
  box-shadow: var(--ph-shadow-sm);
}

.ph-step::before {
  content: "STEP " counter(ph-step);
  display: inline-block;
  font-family: var(--ph-font-en);
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--ph-accent-deep);
  margin-bottom: 0.6rem;
}

.ph-step__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
}

.ph-step__desc {
  font-size: 0.92rem;
  color: var(--ph-text-soft);
  margin: 0;
}

/* ----------------- サービス内 小CTA ----------------- */
.ph-inline-cta {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.ph-inline-cta .ph-button {
  padding: 0.72em 1.3em;
  font-size: 0.88rem;
}

.ph-inline-cta .ph-button--ghost {
  background: #fff;
}

@media (max-width: 720px) {
  .ph-inline-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .ph-inline-cta .ph-button {
    width: 100%;
    justify-content: center;
  }
}

/* ----------------- フッター・連絡先 ----------------- */
.ph-contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.ph-contact-info__item {
  background: var(--ph-surface);
  padding: 1.2rem;
  border-radius: var(--ph-radius);
}

.ph-contact-info__label {
  display: block;
  font-family: var(--ph-font-en);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  color: var(--ph-accent-deep);
  margin-bottom: 0.4rem;
}

.ph-contact-info__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ph-text);
}

.ph-contact-info__value--small {
  font-size: 0.98rem;
  font-weight: 500;
}

.ph-contact-info--sub .ph-contact-info__item {
  background: rgba(255, 255, 255, 0.88);
}

.ph-contact-info--minor {
  margin-top: 1rem;
}

.ph-contact-alt__note {
  margin: 0 0 1.25rem;
  color: var(--ph-text-muted);
  font-size: 0.95rem;
}

.ph-contact-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.1rem, 3vw, 1.5rem);
  background: var(--ph-surface);
  border-radius: var(--ph-radius-lg);
  border: 1px solid var(--ph-line);
}

.ph-contact-line__text {
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ph-text-muted);
}

.ph-contact-line__actions {
  margin: 0;
}

.ph-contact-line__qr-wrap {
  margin: 0;
  text-align: center;
}

.ph-contact-line__qr {
  display: block;
  width: 160px;
  height: auto;
  margin-inline: auto;
  border-radius: 8px;
}

.ph-contact-line__caption {
  margin-top: 0.45rem;
  font-size: 0.75rem;
  color: var(--ph-text-muted);
}

.ph-button--line {
  border-color: #06c755;
  color: #047a36;
}

.ph-button--line:hover {
  background: rgba(6, 199, 85, 0.08);
}

@media (max-width: 720px) {
  .ph-contact-line {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .ph-contact-line__qr-wrap {
    justify-self: center;
  }
}

/* ----------------- フォーム周辺 ----------------- */
.ph-form-wrap {
  background: var(--ph-surface);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--ph-radius-lg);
}

.ph-form-wrap input[type="text"],
.ph-form-wrap input[type="email"],
.ph-form-wrap input[type="tel"],
.ph-form-wrap textarea,
.ph-form-wrap select {
  width: 100%;
  padding: 0.7em 0.9em;
  border: 1px solid var(--ph-line);
  border-radius: var(--ph-radius);
  background: #fff;
  font-size: 1rem;
  color: var(--ph-text);
}

.ph-form-wrap input:focus,
.ph-form-wrap input:focus-visible,
.ph-form-wrap textarea:focus,
.ph-form-wrap textarea:focus-visible,
.ph-form-wrap select:focus,
.ph-form-wrap select:focus-visible {
  outline: 2px solid var(--ph-accent);
  outline-offset: 2px;
  border-color: var(--ph-accent);
}

/* Contact Form 7（.ph-form-wrap 内） */
.ph-form-wrap .wpcf7 {
  margin: 0;
}

.ph-form-wrap .wpcf7-form > p {
  margin: 0 0 1.15rem;
}

.ph-form-wrap .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0.35rem;
}

.ph-form-wrap input[type="submit"],
.ph-form-wrap .wpcf7-submit {
  width: auto;
  min-width: min(100%, 220px);
  margin-top: 0.25rem;
  padding: 0.85em 1.75em;
  font-weight: 600;
  color: #fff;
  background: var(--ph-accent-deep);
  border: none;
  border-radius: var(--ph-radius);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.ph-form-wrap input[type="submit"]:hover,
.ph-form-wrap .wpcf7-submit:hover {
  opacity: 0.92;
}

.ph-form-wrap .wpcf7-response-output {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--ph-radius);
  font-size: 0.92rem;
}

.ph-form-wrap label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.ph-form-wrap .required {
  color: var(--ph-warning);
  font-size: 0.78rem;
  margin-left: 0.3em;
}

/* ----------------- フッター SNS（全ページ・画面幅いっぱい） ----------------- */
.ph-footer-sns {
  width: 100%;
  background: linear-gradient(180deg, #1e272e 0%, #1a2227 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ph-footer-sns__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1.5rem;
  padding-block: 0.85rem;
  box-sizing: border-box;
}

.ph-footer-sns__link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.ph-footer-sns__link:hover {
  color: var(--ph-accent-2);
}

.ph-footer-sns__link:hover .ph-footer-sns__icon-wrap {
  transform: scale(1.04);
}

.ph-footer-sns__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  background: linear-gradient(145deg, #f58529 0%, #dd2a7b 48%, #8134af 100%);
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ph-footer-sns__icon {
  display: block;
}

.ph-footer-sns__note {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: right;
  flex: 1 1 12rem;
}

@media (max-width: 640px) {
  .ph-footer-sns__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-block: 1rem;
    gap: 0.5rem;
  }

  .ph-footer-sns__note {
    text-align: center;
    flex: none;
  }
}

/* ----------------- フッター（独自） ----------------- */
.ph-footer {
  background-color: #1f2a30;
  color: #c8d3d8;
  padding: clamp(48px, 6vw, 88px) 0 24px;
}

.ph-footer a {
  color: #ffffff;
}

.ph-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.ph-footer__brand {
  font-family: var(--ph-font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: #fff;
}

.ph-footer__address {
  font-style: normal;
  font-size: 0.92rem;
  line-height: 1.9;
}

.ph-footer__heading {
  font-size: 0.78rem;
  font-family: var(--ph-font-en);
  letter-spacing: 0.22em;
  color: var(--ph-accent-2);
  margin-bottom: 1rem;
}

.ph-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 2.1;
}

.ph-footer__bottom {
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

@media (max-width: 720px) {
  .ph-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ----------------- モバイル固定CTA ----------------- */
.ph-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9998;
  display: none;
  grid-template-columns: 1fr 1fr;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--ph-line);
  box-shadow: 0 -8px 24px rgba(25, 41, 49, 0.12);
}

/* ----------------- スクロール演出 ----------------- */
.ph-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.ph-reveal.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .ph-hero__bg,
  .ph-hero__photo,
  .ph-reveal,
  .ph-button,
  .ph-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.ph-sticky-cta__item {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 0.5rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.ph-sticky-cta__item--tel {
  background: #fff;
  color: var(--ph-accent-deep);
}

.ph-sticky-cta__item--form {
  background: var(--ph-accent-deep);
  color: #fff;
}

@media (max-width: 920px) {
  .ph-sticky-cta {
    display: grid;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}

/* ----------------- ユーティリティ ----------------- */
.ph-text-center { text-align: center; }
.ph-mt-0 { margin-top: 0; }
.ph-mt-3 { margin-top: clamp(0.85rem, 2vw, 1.25rem); }
.ph-mt-6 { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.ph-mt-8 { margin-top: clamp(2.5rem, 6vw, 4rem); }
