/*
 * ======================================
 * 追加クラス一覧（共通SCSS取り込み検討用）
 * ======================================
 *
 * .sph-en-label         - 英語ラベル（グラデ横線+英語テキスト）
 * .sph-accent-text      - グラデーション文字アクセント
 * .sph-btn-gradient     - オレンジグラデーションボタン
 * .sph-btn-navy         - ネイビーボタン
 * .sph-btn-white        - 白ボタン（ネイビーテキスト）
 * .sph-btn-outline-w    - 白アウトラインボタン
 * .sph-header-cta       - ヘッダーCTAボタン（斜めカット）
 * .sph-hero             - TOPメインビジュアル
 * .sph-opening          - オープニング演出
 * .sph-feature-card     - 5つの強みカード
 * .sph-service-card     - サービスカード（横型）
 * .sph-emergency        - 緊急サポートセクション
 * .sph-law-block        - 防火管理代行/消防法ブロック
 * .sph-contact-card     - お問い合わせCTAカード
 * .sph-footer-*         - フッター固有クラス群
 *
 * ======================================
 * 共通SCSSに不足していたもの
 * ======================================
 *
 * - 構造不足：ヒーロー左テキスト+右画像の50/50レイアウト
 * - 構造不足：英語ラベル（グラデ横線+テキスト）
 * - 構造不足：グラデーション文字テキスト
 * - 構造不足：ヘッダーCTAの斜めカット装飾
 * - 値の粒度不足：セクション背景クリーム(#FDF3EB)指定
 * - 構造不足：サービスカード（260px画像+テキスト横型2列）
 * - 構造不足：緊急サポートのフルグラデ背景+2列
 * - 構造不足：オープニングアニメーション
 * - 装飾パターン不足：フッターのダークネイビー3列グリッド
 *
 */

/* =====================================================
   Brand Variables（ブランドカラー）
   ===================================================== */
:root {
  --sph-orange-1: #FA8809;
  --sph-orange-2: #E83C26;
  --sph-navy: #004AAD;
  --sph-navy-deep: #002F70;
  --sph-cream: #FDF3EB;
  --sph-cream-2: #FBE8D4;
  --sph-line-color: #e6dcd0;
  --sph-ink: #111827;
  --sph-ink-2: #374151;
  --sph-mute: #6b7280;
  --grad-sun: linear-gradient(135deg, #FA8809 0%, #E83C26 100%);
  --grad-sun-h: linear-gradient(90deg, #FA8809 0%, #E83C26 100%);
  --shadow-orange: 0 16px 36px rgba(232, 60, 38, .25), 0 6px 14px rgba(250, 136, 9, .18);
}

/* =====================================================
   Base Overrides
   ===================================================== */
body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--sph-ink);
}

/* =====================================================
   Common Parts：見出し
   ===================================================== */
.heading__ja {
  font-size: 40px;
}
@media (max-width: 639px) {
  .heading__ja { font-size: 25px; }
  .sph-support-lead { text-align: left !important; }
}

/* =====================================================
   Common Parts：英語ラベル・アクセントテキスト
   ===================================================== */
.sph-en-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--sph-orange-2);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sph-en-label::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--grad-sun);
  border-radius: 2px;
  flex-shrink: 0;
}
.sph-en-label--center {
  justify-content: center;
}

.sph-accent-text {
  background: var(--grad-sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section title（見出し）共通 */
.sph-section-title {
  font-size: clamp(2.2rem, 3.4vw, 3.6rem);
  font-weight: 700;
  color: var(--sph-navy);
  margin: 14px 0 18px;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* =====================================================
   Buttons（ボタン）
   ===================================================== */
.sph-btn-gradient,
.sph-btn-navy,
.btn-cta-line,
.sph-btn-outline-w,
.sph-btn-emergency-main {
  min-width: 220px;
  justify-content: center;
}

.sph-btn-gradient {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  border: none;
  background: var(--grad-sun);
  color: #fff;
  box-shadow: var(--shadow-orange);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.sph-btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(232, 60, 38, .32);
  color: #fff;
}
@media (max-width: 639px) {
  .sph-btn--sp-250 { min-width: 250px; }
  .sph-btn--sp-318 { min-width: 318px; }
  .sph-btn--sp-320 { min-width: 320px; }
}

.sph-btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
  border: none;
  background: var(--sph-navy);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.sph-btn-navy:hover {
  background: var(--sph-navy-deep);
  transform: translateY(-2px);
  color: #fff;
}

.sph-btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  background: #fff;
  color: var(--sph-navy);
  border: 2px solid var(--sph-navy);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.sph-btn-white:hover {
  background: var(--sph-navy);
  color: #fff;
  transform: translateY(-2px);
}

.sph-btn-outline-w {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
  cursor: pointer;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.04em;
}
.sph-btn-outline-w:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Override btn-cta-line color for LINE brand */
.btn-cta-line {
  background: #06C755;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  letter-spacing: 0.04em;
}
.btn-cta-line:hover {
  background: #05a548;
  transform: translateY(-2px);
  color: #fff;
}

/* =====================================================
   Header（ヘッダー）
   ===================================================== */
/* Override common header brand color */
.sph-header-bar.header-bar,
.header.header-bar {
  border-bottom: 1px solid #f1ebe1;
  background: #fff;
}

.header__nav-item a:hover {
  color: var(--sph-orange-2);
}
.header__nav-item a:hover .header__nav-ja {
  color: var(--sph-orange-2);
}
.header__nav-item--current a {
  color: var(--sph-orange-2);
}

/* CTA button with diagonal left cut */
.sph-header-cta.header__cta {
  position: relative;
  height: 100%;
  padding: 0 36px 0 44px;
  background: var(--grad-sun);
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 0;
  transition: filter 0.2s ease;
  flex-shrink: 0;
}
.sph-header-cta.header__cta:hover {
  filter: brightness(1.1);
  color: #fff;
}

/* SP nav override - brand gradient */
.sp-nav {
  background: linear-gradient(160deg, #002F70 0%, #004AAD 60%, #FA8809 100%);
}
.sp-nav__link:hover {
  color: #FFD18A;
}

/* =====================================================
   Opening Animation（オープニング演出）
   ===================================================== */
.sph-opening {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: radial-gradient(circle at 50% 40%, #FFE6BD 0%, #FDF3EB 60%, #fff 100%);
  display: grid;
  place-items: center;
  pointer-events: none;
  animation: sphOpeningFade 3.4s ease forwards;
}
.sph-opening__inner {
  text-align: center;
  animation: sphOpeningTextIn 2.6s ease forwards;
}
.sph-opening__logo {
  width: 200px;
  margin: 0 auto 18px;
  opacity: 0;
  transform: translateY(8px);
  animation: sphOpeningLogoIn 1.4s 0.2s ease forwards;
}
.sph-opening__name {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--sph-navy);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(8px);
  animation: sphOpeningLogoIn 1.4s 0.6s ease forwards;
}
.sph-opening__tag {
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--sph-orange-2);
  margin-top: 8px;
  opacity: 0;
  animation: sphOpeningLogoIn 1.4s 1s ease forwards;
}
@keyframes sphOpeningFade {
  0%, 70% { opacity: 1; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes sphOpeningTextIn {
  0% { opacity: 0; transform: translateY(4px) scale(0.98); }
  20%, 75% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: scale(1.02); }
}
@keyframes sphOpeningLogoIn {
  to { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   Section 1: Hero MV（メインビジュアル）
   ===================================================== */
.sph-hero {
  position: relative;
  overflow: hidden;
  background: var(--sph-cream);
  min-height: 640px;
  display: flex;
  align-items: stretch;
  padding-top: 80px;
}
@media (max-width: 1100px) {
  .sph-hero { padding-top: 60px; }
}
.sph-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: 640px;
}
.sph-hero__copy {
  position: relative;
  padding: 80px 60px 80px max(60px, calc((100vw - 1200px) / 2 + 60px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.sph-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232, 60, 38, 0.08);
  color: var(--sph-orange-2);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  width: fit-content;
}
.sph-hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-sun);
  flex-shrink: 0;
  animation: sphDotPulse 1.5s ease-in-out infinite;
}
@keyframes sphDotPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}
.sph-hero__h1 {
  font-size: clamp(3.2rem, 4.6vw, 5.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin: 0 0 24px;
}
.sph-hero__sub {
  color: #4a4a4a;
  font-size: 1.5rem;
  line-height: 2.0;
  margin-bottom: 36px;
  max-width: 460px;
}
.sph-hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sph-hero__visual {
  position: relative;
  overflow: hidden;
}
.sph-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* #slideshow CMS slider container */
#slideshow {
  width: 100%;
  height: 100%;
  min-height: 640px;
}
#slideshow .swiper-slide {
  width: 100%;
  height: 100%;
  min-height: 640px;
}
#slideshow .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1024px) {
  .sph-hero { min-height: 0; }
  .sph-hero__inner {
    grid-template-columns: 1fr;
  }
  .sph-hero__copy {
    padding: 56px 24px;
  }
  .sph-hero__visual {
    min-height: 360px;
  }
  #slideshow,
  #slideshow .swiper-slide {
    min-height: 360px;
  }
}
@media (max-width: 639px) {
  .sph-hero__copy { padding: 48px 20px; }
  .sph-hero__visual { min-height: 260px; }
  #slideshow, #slideshow .swiper-slide { min-height: 260px; }
}

/* MV テキストオーバーレイ */
.sph-hero__overlay {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 2;
}
.sph-hero__overlay-text {
  display: inline-block;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: clamp(2rem, 2.8vw, 3rem);
  font-weight: 700;
  letter-spacing: .1em;
  padding: 12px 28px;
  border-radius: 4px;
}
@media (max-width: 1024px) {
  .sph-hero__overlay { top: 50%; }
}
@media (max-width: 639px) {
  .sph-hero__overlay-text { font-size: 1.8rem; padding: 10px 18px; }
}

/* =====================================================
   Section 2: Fire Prevention（防火管理代行の訴求）
   ===================================================== */
.sph-bg-cream {
  background: var(--sph-cream);
}
.sph-law-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sph-law-visual {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(0, 74, 173, 0.88), rgba(0, 47, 112, 0.88));
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 40px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sph-law-visual::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 136, 9, 0.4) 0%, transparent 70%);
  pointer-events: none;
}
.sph-law-visual h4 {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}
.sph-law-visual ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.sph-law-visual li {
  padding-left: 30px;
  position: relative;
  font-size: 1.4rem;
  line-height: 1.6;
}
.sph-law-visual li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad-sun);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

/* Orange risk variant */
.sph-law-visual--risk {
  background: linear-gradient(135deg, rgba(232, 60, 38, 0.92), rgba(250, 136, 9, 0.92));
}
.sph-law-visual--risk .sph-law-visual-tag {
  font-family: "Roboto", sans-serif;
  letter-spacing: 0.2em;
  font-size: 1.2rem;
  color: #FFE8B5;
  margin-bottom: 8px;
}
.sph-law-visual--risk .sph-law-visual-heading {
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.5;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

@media (max-width: 896px) {
  .sph-law-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Full-bleed image section (防火管理代行) */
.sph-omakase-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 896px) {
  .sph-omakase-grid {
    grid-template-columns: 1fr;
  }
  .sph-omakase-grid__img { order: 2; }
  .sph-omakase-grid__text { order: 1; padding: 40px 24px !important; }
  .sph-omakase-grid__text .heading__ja { font-size: 27px !important; }
}

/* =====================================================
   Section 3: Feature Cards（5つの強み）
   ===================================================== */
.container:has(.sph-feature-grid) .heading__ja {
  font-size: 4rem;
}
.sp-only { display: none; }
@media (max-width: 639px) {
  .sp-only { display: inline; }
  .container:has(.sph-feature-grid) .heading__ja { font-size: 30px; }
  .sph-service-heading { font-size: 25px !important; }
  .sph-law-heading { font-size: 30px !important; }
  .sph-news-heading { font-size: 30px !important; }
  .sph-cta-heading { font-size: 25px !important; }
  .sph-service-overview-heading { font-size: 25px !important; }
  .sph-pricing-heading { font-size: 30px !important; }
}
.sph-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sph-feature-card {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 20px;
  padding: 28px 22px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.sph-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.04);
  border-color: transparent;
}
.sph-feature-card__num {
  font-family: "Roboto", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--grad-sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.sph-feature-card__num::before {
  content: "REASON / ";
}
.sph-feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF0DD 0%, #FFD7A8 100%);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--sph-orange-2);
  font-size: 2.4rem;
}
.sph-feature-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0 0 10px;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.sph-feature-card p {
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  margin: 0;
  line-height: 1.7;
  flex: 1;
}

@media (max-width: 1024px) {
  .sph-feature-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .sph-feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .sph-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .sph-feature-card { padding: 20px 16px; }
}

/* =====================================================
   Section 4: Service Cards（サービス内容）
   ===================================================== */
.sph-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sph-service-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}
.sph-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08), 0 2px 6px rgba(17, 24, 39, 0.04);
}
.sph-service-card__img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}
.sph-service-card--warm .sph-service-card__img {
  background: linear-gradient(135deg, #FFEAD3 0%, #FFD4A8 100%);
}
.sph-service-card--cool .sph-service-card__img {
  background: linear-gradient(135deg, #D9E8FB 0%, #B6D4F2 100%);
}
.sph-service-grid .sph-service-card:nth-child(1) .sph-service-card__img,
.sph-service-grid .sph-service-card:nth-child(2) .sph-service-card__img {
  background: linear-gradient(135deg, #FFEAD3 0%, #FFD4A8 100%);
}
.sph-service-grid .sph-service-card:nth-child(3) .sph-service-card__img,
.sph-service-grid .sph-service-card:nth-child(4) .sph-service-card__img {
  background: linear-gradient(135deg, #D9E8FB 0%, #B6D4F2 100%);
}
.sph-service-card__img img {
  max-height: 280px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}
.sph-service-card__body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sph-service-card__num {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--sph-orange-2);
  margin-bottom: 8px;
}
.sph-service-card h3 {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--sph-navy);
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.sph-service-card p {
  margin: 0 0 20px;
  font-size: 1.4rem;
  color: var(--sph-ink-2);
  line-height: 1.85;
  flex: 1;
}
.sph-service-card__link {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sph-orange-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.sph-service-card:hover .sph-service-card__link {
  gap: 10px;
}
.sph-service-card__link::after {
  content: "→";
}

@media (max-width: 1024px) {
  .sph-service-card { grid-template-columns: 200px 1fr; }
}
@media (max-width: 768px) {
  .sph-service-grid { grid-template-columns: 1fr; }
  .sph-service-card { grid-template-columns: 1fr; }
  .sph-service-card__img { min-height: 180px; }
}

/* =====================================================
   Section 5: Emergency（緊急サポート導線）
   ===================================================== */
.sph-emergency {
  position: relative;
  background: var(--grad-sun);
  color: #fff;
  overflow: hidden;
  padding: 80px 0;
}
.sph-emergency::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 35%),
    radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 40%);
  z-index: 0;
  pointer-events: none;
}
.sph-emergency .container {
  position: relative;
  z-index: 1;
}
.sph-emergency__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sph-emergency__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.sph-emergency__tag-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: sphDotPulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
.sph-emergency h2 {
  font-size: clamp(2.2rem, 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 20px;
  letter-spacing: 0.02em;
}
.sph-emergency p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 28px;
  font-size: 1.5rem;
  line-height: 1.9;
}
.sph-emergency__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sph-emergency__visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}

@media (max-width: 896px) {
  .sph-emergency__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .sph-emergency__visual { display: none; }
}

/* =====================================================
   Section 6: News（お知らせ）
   ===================================================== */
/* Override news-list brand colors */
.news-list__date {
  font-size: 13px;
}

/* CMS出力のリストバレット「・」を非表示 */
.blog-list,
.blog-list li,
.blog-list__item,
#cms-blog-entry-list-1-area ul,
#cms-blog-entry-list-1-area li {
  list-style: none !important;
}
#cms-blog-entry-list-1-area ul {
  margin: 0;
  padding: 0;
}

.news-list__cat {
  background: var(--sph-navy);
  font-size: 11px;
}
.news-list__cat--service {
  background: var(--sph-orange-2);
}
.news-list__cat--column {
  background: #555;
}
.news-list__link:hover .news-list__title,
.news-list a:hover .news-list__title {
  color: var(--sph-orange-2);
}

/* =====================================================
   Section 7: Company / Access（会社概要）
   ===================================================== */
.sph-company-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.sph-map-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  border: 1px solid var(--sph-line-color);
  background: #ddd;
  aspect-ratio: 4 / 3;
}
.sph-map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 896px) {
  .sph-company-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* =====================================================
   Contact CTA（お問い合わせCTAセクション）
   ===================================================== */
.sph-contact-cta {
  background: linear-gradient(180deg, #fff 0%, #FFF7EE 100%);
}
.sph-contact-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sph-contact-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid #f0e6d8;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sph-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}
.sph-contact-card--primary {
  background: linear-gradient(180deg, #fff 0%, #FFFBF4 100%);
  border: 2px solid var(--sph-orange-1);
  position: relative;
}
.sph-contact-card--primary::before {
  content: "おすすめ";
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad-sun);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.sph-contact-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  color: #fff;
  font-size: 2.4rem;
}
.sph-contact-card h3 {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0 0 10px;
}
.sph-contact-card p {
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  margin: 0 0 20px;
  line-height: 1.7;
  flex: 1;
}
.sph-tel-big {
  font-family: "Roboto", sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sph-navy);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}
.sph-tel-big a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 896px) {
  .sph-contact-card-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* =====================================================
   Page Hero（下層ページヒーロー）- Override
   ===================================================== */
/* Page hero: background image + orange gradient overlay */
.page-hero--solid {
  background: url('https://ros-cdn.s3.ap-northeast-1.amazonaws.com/hp/img/ros_keiyaku/28163/page_hero.png') center center / cover no-repeat;
  position: relative;
  overflow: hidden;
  padding: 127px 0 60px;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.page-hero--solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,47,112,0.55) 0%, rgba(0,63,138,0.45) 35%, rgba(26,91,184,0.3) 55%, rgba(176,74,16,0.2) 80%, rgba(250,136,9,0.25) 100%);
  z-index: 0;
  pointer-events: none;
}
.page-hero--solid::after {
  display: none;
}
.page-hero--solid .container {
  position: relative;
  z-index: 1;
}
.page-hero--solid .heading__en,
.page-hero__en-label {
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
}
.page-hero--solid .heading__ja,
.page-hero--solid h1,
.page-hero__title {
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
  font-weight: 800;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 16px;
}
.page-hero__breadcrumb {
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  margin: 0;
}
.page-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.page-hero__breadcrumb a:hover {
  color: #fff;
}
@media (max-width: 639px) {
  .page-hero--solid { min-height: 300px; }
}

/* =====================================================
   Footer（フッター）
   ===================================================== */
.sph-footer-body {
  background: var(--sph-navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 64px 0 0;
}
.sph-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
}
.sph-footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.sph-footer-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.sph-footer-addr {
  font-size: 1.3rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.sph-footer-nav-col h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 18px;
  font-family: "Roboto", sans-serif;
}
.sph-footer-nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sph-footer-nav-col li {
  margin-bottom: 10px;
}
.sph-footer-nav-col a {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sph-footer-nav-col a:hover {
  color: #FFD18A;
}
.sph-footer-cta-col h4 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
  font-family: "Roboto", sans-serif;
}
.sph-footer-tel {
  font-family: "Roboto", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}
.sph-footer-tel a {
  color: inherit;
  text-decoration: none;
}
.sph-footer-hours {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}
.sph-footer-map {
  margin-top: 16px;
  border-radius: 10px;
  overflow: hidden;
  height: 120px;
}
.sph-footer-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.sph-footer-bottom {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0));
}
.sph-footer-bottom .container {
  display: flex;
  justify-content: center;
}
.footer-bottom__copyright {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 896px) {
  .sph-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 639px) {
  .sph-footer-grid {
    grid-template-columns: 1fr;
  }
  .sph-footer-body { padding-top: 48px; }
}

/* =====================================================
   Service Page：サービス詳細
   ===================================================== */
.sph-svc-anchor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.sph-svc-anchor {
  background: #fff;
  border-radius: 14px;
  padding: 22px 16px;
  border: 1px solid #f0e6d8;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sph-svc-anchor:hover {
  transform: translateY(-3px);
  border-color: var(--sph-orange-1);
  box-shadow: 0 4px 12px rgba(250, 136, 9, 0.15);
}
.sph-svc-anchor__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #FFF0DD 0%, #FFD7A8 100%);
  display: grid;
  place-items: center;
  color: var(--sph-orange-2);
  font-size: 2rem;
}
.sph-svc-anchor h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0;
  line-height: 1.4;
}
.sph-svc-anchor p {
  font-size: 1.2rem;
  color: var(--sph-mute);
  margin: 0;
  line-height: 1.5;
}

.sph-svc-detail {
  scroll-margin-top: 100px;
  border-top: 1px solid #f0e6d8;
}
.sph-svc-detail:first-of-type {
  border-top: 0;
}
.sph-svc-detail__head {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 36px;
}
.sph-svc-detail__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-sun);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Roboto", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  flex-shrink: 0;
}
.sph-svc-detail h2 {
  font-size: clamp(2.2rem, 3vw, 3rem);
  color: var(--sph-navy);
  margin: 0;
  line-height: 1.35;
}
.sph-svc-detail h2 small {
  display: block;
  font-family: "Roboto", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  color: var(--sph-orange-2);
  margin-bottom: 6px;
  font-weight: 500;
}

.sph-feature-list {
  background: var(--sph-cream);
  border-radius: 14px;
  padding: 24px 28px;
  list-style: none;
  margin: 0;
}
.sph-feature-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1.4rem;
  color: var(--sph-ink);
  border-bottom: 1px dashed rgba(0, 74, 173, 0.15);
}
.sph-feature-list li:last-child { border-bottom: 0; }
.sph-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 18px;
  height: 18px;
  background: var(--sph-navy);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.2l-3.5-3.5L4 14l5 5 11-11-1.5-1.5z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='currentColor' d='M9 16.2l-3.5-3.5L4 14l5 5 11-11-1.5-1.5z'/></svg>") center/contain no-repeat;
}

.sph-checklist {
  background: #FFF7EE;
  border-radius: 14px;
  padding: 24px 28px;
  list-style: none;
  margin: 20px 0 0;
  border: 1px dashed var(--sph-orange-1);
}
.sph-checklist h4 {
  margin: 0 0 14px;
  font-size: 1.4rem;
  color: var(--sph-orange-2);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.sph-checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1.4rem;
}
.sph-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--sph-orange-1);
  border-radius: 4px;
  background: #fff;
}

@media (max-width: 896px) {
  .sph-svc-anchor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .sph-svc-anchor-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* =====================================================
   Company Page：資格グリッド
   ===================================================== */
.sph-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.sph-cert-grid li {
  background: #fff;
  border: 1px solid var(--sph-line-color);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 1.4rem;
  color: var(--sph-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sph-cert-grid li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--grad-sun);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .sph-cert-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   About-Law Page：リスクカード
   ===================================================== */
.sph-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.sph-risk-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
}
.sph-risk-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 60, 38, 0.1);
  color: var(--sph-orange-2);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 2rem;
}
.sph-risk-card h3 {
  font-size: 1.6rem;
  color: var(--sph-navy);
  margin: 0 0 10px;
  font-weight: 700;
}
.sph-risk-card p {
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  margin: 0;
  line-height: 1.7;
}

@media (max-width: 896px) {
  .sph-risk-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .sph-risk-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Works Page：事例カード
   ===================================================== */
.sph-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sph-work-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0e6d8;
}
.sph-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}
.sph-work-card__img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #FFD7A8, #6FB6FF);
  position: relative;
}
.sph-work-card__cat {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--sph-navy);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}
.sph-work-card__body {
  padding: 22px 22px 26px;
}
.sph-work-card h3 {
  font-size: 1.6rem;
  color: var(--sph-navy);
  margin: 0 0 8px;
  line-height: 1.5;
  font-weight: 700;
}
.sph-work-card p {
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  margin: 0;
  line-height: 1.7;
}

.sph-filter-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.sph-filter-chips button {
  border: 1px solid #e6dcd0;
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--sph-ink-2);
  transition: all 0.2s ease;
  font-family: "Noto Sans JP", sans-serif;
  letter-spacing: 0.04em;
}
.sph-filter-chips button:hover {
  border-color: var(--sph-orange-1);
  color: var(--sph-orange-2);
}
.sph-filter-chips button.is-active {
  background: var(--grad-sun);
  color: #fff;
  border-color: transparent;
}

@media (max-width: 896px) {
  .sph-work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .sph-work-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Contact Page：フォーム
   ===================================================== */
.sph-contact-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.04);
  border: 1px solid #f0e6d8;
}
.sph-form-row {
  margin-bottom: 22px;
}
.sph-form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin-bottom: 6px;
}
.sph-req {
  display: inline-block;
  background: var(--sph-orange-2);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.sph-opt {
  display: inline-block;
  background: #e5e7eb;
  color: #4b5563;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}
.sph-form-input {
  width: 100%;
  border: 1px solid #e6dcd0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1.4rem;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sph-form-input:focus {
  outline: none;
  border-color: var(--sph-orange-1);
  box-shadow: 0 0 0 3px rgba(250, 136, 9, 0.15);
}
textarea.sph-form-input {
  min-height: 160px;
  resize: vertical;
}
select.sph-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7280' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.sph-form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--sph-ink-2);
}
.sph-form-check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--sph-orange-1);
}
.sph-form-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 639px) {
  .sph-contact-form-wrap { padding: 28px 20px; }
}

/* =====================================================
   Partner section（パートナー募集）
   ===================================================== */
.sph-partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.sph-partner-item {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 12px;
  padding: 18px 16px;
  font-size: 1.4rem;
  color: var(--sph-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sph-partner-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--grad-sun);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 639px) {
  .sph-partner-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Entry list / Entry detail（ブログ）
   ===================================================== */
.sph-entry-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}
.sph-entry-sidebar {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 24px;
}
.sph-side-block {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 14px;
  padding: 24px 20px;
}
.sph-side-block h4 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sph-navy);
  font-family: "Roboto", sans-serif;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sph-orange-1);
  display: inline-block;
  text-transform: uppercase;
}
.sph-side-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sph-side-block li {
  font-size: 1.3rem;
  padding: 8px 0;
  border-bottom: 1px dashed #e6dcd0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sph-side-block li:last-child { border-bottom: 0; }
.sph-side-block a {
  color: var(--sph-ink-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.sph-side-block a:hover { color: var(--sph-orange-2); }
.sph-side-block .count {
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  color: var(--sph-mute);
}

/* Blog list two-column layout */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 56px;
  align-items: start;
}
.blog-layout__sidebar {
  position: sticky;
  top: 100px;
}
.blog-sidebar-widget {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 14px;
  padding: 24px 20px;
}
.blog-sidebar-widget__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sph-navy);
  font-family: "Roboto", sans-serif;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sph-orange-1);
  display: inline-block;
  text-transform: uppercase;
}
@media (max-width: 767px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .blog-layout__sidebar {
    position: static;
  }
}

.sph-entry-article h1 {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  color: var(--sph-navy);
  line-height: 1.5;
  margin: 16px 0 24px;
  font-weight: 700;
}
.sph-entry-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 1.2rem;
  color: var(--sph-mute);
  margin-bottom: 8px;
}
.sph-entry-meta .date { font-family: "Roboto", sans-serif; }
.sph-entry-meta .cat {
  background: var(--sph-navy);
  color: #fff;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
}
.sph-entry-body {
  font-size: 1.5rem;
  line-height: 2;
  color: var(--sph-ink-2);
}
.sph-entry-body h2 {
  font-size: 2rem;
  color: var(--sph-navy);
  border-left: 5px solid var(--sph-orange-1);
  padding-left: 14px;
  margin: 36px 0 18px;
}
.sph-entry-body p { margin: 0 0 18px; }

@media (max-width: 896px) {
  .sph-entry-layout { grid-template-columns: 1fr; }
  .sph-entry-sidebar { position: static; }
}

/* =====================================================
   Table override（会社概要テーブル）
   ===================================================== */
.sph-company-table {
  width: 100%;
  border-collapse: collapse;
}
.sph-company-table th,
.sph-company-table td {
  text-align: left;
  padding: 16px 12px;
  border-bottom: 1px solid #e6dcd0;
  font-size: 1.4rem;
  vertical-align: top;
  line-height: 1.7;
}
.sph-company-table th {
  font-weight: 700;
  color: var(--sph-navy);
  width: 130px;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.sph-company-table td { color: var(--sph-ink-2); }

/* =====================================================
   Override: page-top（トップに戻るボタン）
   ===================================================== */
.page-top__link {
  background: var(--sph-navy);
}
.page-top__link:hover {
  background: var(--sph-navy-deep);
}

@media (max-width: 639px) {
  .sph-footer-nav { display: none; }
  .sph-partner-desc { text-align: left; }
}

@media (max-width: 896px) {
  .sph-footer-bottom { padding-bottom: 90px; }
}

.sph-omakase-heading { font-size: 39px; }
@media (max-width: 639px) {
  .sph-omakase-heading { font-size: 27px; }
}

/* ページトップボタンをSP固定バーに被らないよう上にずらす */
@media (max-width: 896px) {
  .page-top { bottom: 90px; }
}

/* =====================================================
   SP Fixed Bar override
   ===================================================== */
.sp-fixed-bar {
  background: transparent;
  border-top: none;
  padding: 0;
  gap: 2px;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
}
.sp-fixed-bar__item { flex: 1; }
.sp-fixed-bar__link {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--sph-navy);
  color: #fff !important;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  width: 100%;
  height: 100%;
}
.sp-fixed-bar__link--line { background: #06C755 !important; }
.sp-fixed-bar__link:hover { opacity: 0.9; color: #fff !important; }
.sp-fixed-bar__icon { font-size: 2rem; display: block; line-height: 1; }

/* =====================================================
   AOS: duration/delay overrides handled by JS inline style
   ===================================================== */

/* =====================================================
   Opening: sub-element aliases
   ===================================================== */
.sph-opening__en {
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: var(--sph-orange-2);
  margin-top: 6px;
  opacity: 0;
  animation: sphOpeningLogoIn 1.4s 1s ease forwards;
}

/* =====================================================
   Hero: content layout aliases
   ===================================================== */
.sph-hero__content {
  padding: 80px 60px 80px 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.sph-hero__en {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Roboto", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--sph-orange-2);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.sph-hero__catch {
  font-size: clamp(3.2rem, 4.6vw, 5.6rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: #1a1a1a;
  margin: 0 0 24px;
}
.sph-hero__btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sph-hero__btns .sph-btn-gradient,
.sph-hero__btns .btn-cta-line {
  width: 280px;
  min-width: unset;
}
@media (max-width: 639px) {
  .sph-hero__btns .sph-btn-gradient,
  .sph-hero__btns .btn-cta-line {
    width: 320px;
  }
}
@media (max-width: 1024px) {
  .sph-hero__content { padding: 56px 24px; }
}
@media (max-width: 639px) {
  .sph-hero__content { padding: 48px 20px; }
}

/* =====================================================
   Btn row
   ===================================================== */
.sph-btns-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.sph-btns-row--center { justify-content: center; }
.sph-omakase-grid__text .sph-btn-navy,
.sph-omakase-grid__text .btn-cta-line {
  width: 320px;
}
@media (max-width: 639px) {
  .sph-omakase-grid__text .sph-btns-row {
    flex-direction: column;
    align-items: stretch;
  }
  .sph-omakase-grid__text .sph-btns-row > a {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }
}
.sph-btns-sub {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sph-btn-emergency-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.5rem;
  background: #fff;
  color: var(--sph-navy);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.sph-btn-emergency-main:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--sph-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}
.sph-btn-emergency-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.8rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sph-btn-emergency-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* =====================================================
   Law block: text / visual inner
   ===================================================== */
.sph-law-visual__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 20px;
}
.sph-law-visual__label {
  font-family: "Roboto", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  margin-top: 14px;
}
.sph-law-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Service card sub-elements (used in index.php) */
.sph-service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #FFF0DD 0%, #FFD7A8 100%);
  display: grid;
  place-items: center;
  color: var(--sph-orange-2);
  font-size: 2rem;
  margin-bottom: 14px;
}
.sph-service-card__title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0 0 14px;
  line-height: 1.45;
}
.sph-service-card__text {
  font-size: 1.4rem;
  color: var(--sph-ink-2);
  line-height: 1.85;
  margin: 0;
}

/* =====================================================
   Emergency: inner center variant + illust
   ===================================================== */
.sph-emergency__inner--center {
  display: block;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.sph-emergency__illust {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.sph-emergency__illust img {
  max-width: 78%;
  width: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.15));
}
.sph-en-label--light {
  color: rgba(255,255,255,.85);
}
.sph-en-label--light::before {
  background: rgba(255,255,255,.5);
}
/* Emergency section: label → pill tag */
.sph-emergency .sph-en-label--light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 20px;
}
.sph-emergency .sph-en-label--light::before {
  display: none;
}
/* Emergency section: heading */
.sph-emergency .heading {
  padding-bottom: 0;
  margin-bottom: 0;
}
.sph-emergency .heading::after {
  display: none;
}
.sph-emergency .heading__ja {
  display: block;
  font-size: clamp(2.4rem, 3.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: #fff;
  margin-bottom: 20px;
}
/* Emergency section: paragraph spacing */
.sph-emergency .mb-40 {
  margin-bottom: 28px !important;
}
/* Emergency section: buttons flat row */
.sph-emergency .sph-btns-sub {
  display: contents;
}
/* Emergency section: inner-center heading alignment */
.sph-emergency__inner--center .heading--center {
  text-align: left;
}
.sph-emergency__inner--center .heading--center .sph-en-label--light {
  display: inline-flex;
}
/* Emergency section: check-list → 対応範囲 glass card */
.sph-emergency .sph-check-list--light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 28px 32px;
  gap: 14px;
  text-align: left;
  counter-reset: coverage-item;
}
.sph-emergency .sph-check-list--light li {
  font-size: 1.4rem;
  line-height: 1.7;
  gap: 12px;
  counter-increment: coverage-item;
  color: rgba(255, 255, 255, 0.95);
  align-items: center;
}
.sph-emergency .sph-check-list--light li::before {
  content: counter(coverage-item);
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #fff;
  color: var(--sph-orange-2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-family: "Roboto", sans-serif;
  line-height: 1;
}
.sph-emergency .sph-check-list--light li i {
  display: none;
}

/* =====================================================
   About-law block
   ===================================================== */
.sph-about-law-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.sph-about-law-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sph-about-law-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sph-law-badge {
  background: linear-gradient(135deg, #FFF7EE, #FFE8CC);
  border: 2px solid var(--sph-orange-1);
  border-radius: 20px;
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  max-width: 320px;
}
@media (max-width: 896px) {
  .sph-about-law-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sph-about-law-visual { display: none; }
}

/* =====================================================
   Company block (index.php)
   ===================================================== */
.sph-company-block {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.sph-company-table-wrap { display: flex; flex-direction: column; }
.sph-company-map {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.sph-company-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 896px) {
  .sph-company-block { grid-template-columns: 1fr; gap: 32px; }
}

/* =====================================================
   Service page: svc anchor card, detail layout
   ===================================================== */
.sph-svc-anchor-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 18px;
  border: 1px solid #f0e6d8;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sph-svc-anchor-card:hover {
  transform: translateY(-3px);
  border-color: var(--sph-orange-1);
  box-shadow: 0 4px 12px rgba(250, 136, 9, 0.15);
  color: inherit;
}
.sph-svc-anchor-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFF0DD 0%, #FFD7A8 100%);
  display: grid;
  place-items: center;
  color: var(--sph-orange-2);
  font-size: 2.2rem;
}
.sph-svc-anchor-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0;
  line-height: 1.4;
}
.sph-svc-anchor-card p {
  font-size: 1.25rem;
  color: var(--sph-mute);
  margin: 0;
  line-height: 1.5;
}
.sph-svc-anchor-card__arrow {
  color: var(--sph-orange-2);
  font-size: 1.2rem;
  margin-top: 4px;
}

/* Service detail two-column layout */
.sph-svc-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  scroll-margin-top: 100px;
}
.sph-svc-detail--rev .sph-svc-detail__img { order: 2; }
.sph-svc-detail--rev .sph-svc-detail__body { order: 1; }
.sph-svc-detail__img {
  border-radius: 20px;
  overflow: hidden;
}
.sph-svc-detail__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.sph-svc-detail__body {
  display: flex;
  flex-direction: column;
}
@media (max-width: 896px) {
  .sph-svc-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sph-svc-detail--rev .sph-svc-detail__img { order: 0; }
  .sph-svc-detail--rev .sph-svc-detail__body { order: 0; }
}

/* Check list & worry list */
.sph-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sph-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--sph-ink-2);
  line-height: 1.7;
}
.sph-check-list li i {
  color: var(--sph-navy);
  font-size: 1.6rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.sph-check-list--light li { color: rgba(255,255,255,.9); }
.sph-check-list--light li i { color: #fff; }
.sph-check-list--2col { grid-template-columns: 1fr 1fr; gap: 4px 16px; }
@media (max-width: 639px) { .sph-check-list--2col { grid-template-columns: 1fr; } }
.sph-check-list--center { max-width: 480px; margin: 0 auto; }

.sph-worry-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.sph-worry-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.4rem;
  color: var(--sph-ink-2);
  line-height: 1.7;
}
.sph-worry-list li i {
  color: var(--sph-orange-2);
  font-size: 1.6rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Equipment grid */
.sph-equip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sph-equip-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--sph-cream);
  border: 1px solid var(--sph-cream-2);
  border-radius: 999px;
  font-size: 1.3rem;
  color: var(--sph-ink);
  font-weight: 500;
}
.sph-equip-tag i { color: var(--sph-navy); font-size: 1.2rem; }

/* Price box */
.sph-price-box {
  background: var(--sph-cream);
  border-radius: 20px;
  padding: 40px 48px;
  border: 1px solid var(--sph-cream-2);
  max-width: 800px;
  margin: 0 auto;
}
@media (max-width: 639px) { .sph-price-box { padding: 28px 20px; } }

/* =====================================================
   Company page
   ===================================================== */
.sph-greeting-block {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}
.sph-greeting-photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sph-greeting-photo__placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f1f5f9;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px dashed #cbd5e1;
}
.sph-greeting-sig {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sph-navy);
  text-align: center;
}
.sph-greeting-text { display: flex; flex-direction: column; gap: 0; }
@media (max-width: 768px) {
  .sph-greeting-block {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .sph-greeting-photo { max-width: 240px; margin: 0 auto; }
}

/* Navy background section */
.sph-bg-navy {
  background: var(--sph-navy-deep);
}

/* Cert cards */
.sph-cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sph-cert-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: background 0.2s ease;
}
.sph-cert-card:hover { background: rgba(255,255,255,.12); }
.sph-cert-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-sun);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
}
.sph-cert-card--placeholder .sph-cert-card__icon {
  background: rgba(255,255,255,.15);
}
.sph-cert-card__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 896px) { .sph-cert-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .sph-cert-grid { grid-template-columns: 1fr 1fr; } }

/* Table narrow wrapper */
.sph-table-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* Access block */
.sph-access-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.sph-access-info { display: flex; flex-direction: column; gap: 14px; }
.sph-access-map {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.sph-access-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 768px) {
  .sph-access-block { grid-template-columns: 1fr; gap: 28px; }
}

/* =====================================================
   About-law page: duty grid
   ===================================================== */
.sph-duty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sph-duty-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px;
  border: 1px solid #f0e6d8;
  box-shadow: 0 1px 2px rgba(17,24,39,.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.sph-duty-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17,24,39,.08);
}
.sph-duty-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #D9E8FB 0%, #B6D4F2 100%);
  color: var(--sph-navy);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.sph-duty-card__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin: 0 0 10px;
}
.sph-duty-card__text {
  font-size: 1.4rem;
  color: var(--sph-ink-2);
  line-height: 1.8;
  margin: 0 0 14px;
}
.sph-duty-card__eg {
  background: var(--sph-cream);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1.25rem;
  color: var(--sph-ink-2);
}
.sph-duty-card__eg-label {
  font-weight: 700;
  color: var(--sph-navy);
  margin-right: 6px;
}
@media (max-width: 639px) { .sph-duty-grid { grid-template-columns: 1fr; } }

/* Intro box */
.sph-intro-box {
  background: var(--sph-cream);
  border-radius: 20px;
  padding: 40px;
  border-left: 5px solid var(--sph-orange-1);
}
@media (max-width: 639px) { .sph-intro-box { padding: 24px 20px; } }

/* Support list */
.sph-support-list-wrap { display: flex; justify-content: center; }

/* =====================================================
   Contact page form
   ===================================================== */
.sph-form-wrap {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.04);
  border: 1px solid #f0e6d8;
}
@media (max-width: 639px) { .sph-form-wrap { padding: 24px 16px; } }

.sph-form-row { margin-bottom: 22px; }
.sph-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sph-navy);
  margin-bottom: 6px;
}
.sph-form-req {
  display: inline-block;
  background: var(--sph-orange-2);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.sph-form-select {
  width: 100%;
  border: 1px solid #e6dcd0;
  border-radius: 10px;
  padding: 12px 36px 12px 14px;
  font-size: 1.4rem;
  font-family: "Noto Sans JP", sans-serif;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%236b7280' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>") no-repeat right 14px center;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sph-form-select:focus {
  outline: none;
  border-color: var(--sph-orange-1);
  box-shadow: 0 0 0 3px rgba(250,136,9,.15);
}
.sph-form-textarea {
  width: 100%;
  border: 1px solid #e6dcd0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 1.4rem;
  font-family: "Noto Sans JP", sans-serif;
  resize: vertical;
  min-height: 160px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sph-form-textarea:focus {
  outline: none;
  border-color: var(--sph-orange-1);
  box-shadow: 0 0 0 3px rgba(250,136,9,.15);
}
.sph-form-row--check { margin-top: 8px; }
.sph-form-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  cursor: pointer;
}
.sph-form-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--sph-orange-1);
}
.sph-form-check-label a { color: var(--sph-orange-2); }
.sph-btn-submit {
  padding: 16px 48px;
  font-size: 1.6rem;
  letter-spacing: 0.06em;
}

/* Contact card recommend badge */
.sph-contact-card__recommend {
  display: inline-block;
  background: var(--grad-sun);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Partner tags */
.sph-partner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1020px;
  margin: 0 auto;
}
.sph-partner-tag {
  background: #fff;
  border: 1px solid #f0e6d8;
  border-radius: 12px;
  padding: 24px 20px;
  font-size: 1.6rem;
  color: var(--sph-ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  line-height: 1.6;
}
.sph-partner-tag i { color: var(--sph-navy); font-size: 2rem; }
@media (max-width: 639px) {
  .sph-partner-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   Works page
   ===================================================== */
.sph-works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sph-work-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,24,39,.06), 0 1px 3px rgba(17,24,39,.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid #f0e6d8;
  text-decoration: none;
  display: block;
  color: inherit;
  cursor: pointer;
}
.sph-work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(17,24,39,.08);
}
.sph-work-card__img {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #D9E8FB, #B6D4F2);
}
.sph-work-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sph-work-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sph-navy);
  opacity: 0.4;
}
.sph-work-card__body { padding: 22px 22px 26px; }
.sph-work-card__cat {
  display: inline-block;
  background: var(--sph-navy);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.sph-work-card__title {
  font-size: 1.6rem;
  color: var(--sph-navy);
  margin: 0 0 6px;
  font-weight: 700;
}
.sph-work-card__place {
  font-size: 1.2rem;
  color: var(--sph-mute);
  margin: 0 0 10px;
}
.sph-work-card__place i { color: var(--sph-orange-2); margin-right: 4px; }
.sph-work-card__text {
  font-size: 1.3rem;
  color: var(--sph-ink-2);
  margin: 0;
  line-height: 1.7;
}
@media (max-width: 896px) { .sph-works-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px) { .sph-works-grid { grid-template-columns: 1fr; } }

/* =====================================================
   Entry page
   ===================================================== */
.sph-entry-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.sph-entry__header { margin-bottom: 32px; }
.sph-entry__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}
.sph-entry__title {
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  color: var(--sph-navy);
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
}
.sph-entry__body {
  font-size: 1.5rem;
  color: var(--sph-ink-2);
  line-height: 2;
  margin-bottom: 40px;
}
.sph-entry__body p { margin: 0 0 1.5em; }
.sph-entry__footer { padding-top: 24px; border-top: 1px solid #f0e6d8; }

/* =====================================================
   Utility: mt-50, mb-0, text-white
   ===================================================== */
.mt-50 { margin-top: 50px; }
.mb-0  { margin-bottom: 0; }
.text-white { color: #fff; }

/* table override for site */
.table { width: 100%; border-collapse: collapse; }
.table th,
.table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid #e6dcd0;
  font-size: 1.4rem;
  vertical-align: top;
  line-height: 1.7;
  color: var(--sph-ink-2);
}
.table th {
  font-weight: 700;
  color: var(--sph-navy);
  width: 140px;
  white-space: nowrap;
  font-size: 1.3rem;
}
.table td a { color: var(--sph-navy); }
.table td a:hover { color: var(--sph-orange-2); }

/* Company info table — orange th design */
.table--company {
  border-collapse: separate;
  border-spacing: 0 5px;
}
.table--company th,
.table--company td {
  border-bottom: none;
  padding: 16px 20px;
  vertical-align: middle;
  font-size: 1.4rem;
  line-height: 1.7;
}
.table--company th {
  background: var(--grad-sun);
  color: #fff;
  text-align: center;
  font-weight: 700;
  width: 200px;
  white-space: nowrap;
}
.table--company td {
  background: #f5f5f5;
  color: #374151;
}
.table--company td a { color: var(--sph-navy); }
.table--company td a:hover { color: var(--sph-orange-2); }
@media (max-width: 639px) {
  .table--company,
  .table--company tbody,
  .table--company tr { display: block; }
  .table--company th,
  .table--company td { display: block; width: 100%; text-align: left; }
  .table--company th { padding: 10px 16px; }
  .table--company tr { margin-bottom: 5px; }
}

/* risk cards override from about-law (text variant used) */
.sph-risk-card__text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sph-navy);
  text-align: center;
  line-height: 1.6;
  margin: 0;
}

/* =====================================================
   Override: フォームCMS サンクスページ 戻るボタン
   ===================================================== */
.form-pattern-2 .form-thanks-msg .back-home-btn a {
  background: var(--sph-navy) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}
.form-pattern-2 .form-thanks-msg .back-home-btn a:hover {
  background: var(--sph-navy-deep) !important;
  transform: translateY(-2px) !important;
}

/* =====================================================
   SP横はみ出し対策
   - A: html にも overflow-x: hidden（iOS Safari等で body 単独だと効かない問題への保険）
   - B: ボタンの min-width が極小幅で親をはみ出さないよう max-width: 100% で抑制
   ===================================================== */
html {
  overflow-x: hidden;
}

@media (max-width: 639px) {
  .sph-btn-gradient,
  .sph-btn-navy,
  .btn-cta-line,
  .sph-btn-outline-w,
  .sph-btn-emergency-main,
  .sph-btn--sp-250,
  .sph-btn--sp-318,
  .sph-btn--sp-320 {
    max-width: 100%;
  }
}