/* ==========================================================================
   1. Reset & Base Settings
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: #333333;
  background-color: #f8f9fa;
  line-height: 1.6;
  padding-bottom: 90px; /* モバイル用固定バーの重なり防止 */
  top: 0 !important;
}
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* ==========================================================================
   2. Layout (l-)
   ========================================================================== */
.l-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.p-section {
  padding: 60px 0;
}

/* ==========================================================================
   3. Components (c-)
   ========================================================================== */
.c-heading-primary {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  font-weight: bold;
}

.c-heading-primary::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #d70466; /* Airbnbテーマカラー意識 */
  margin: 10px auto 0;
}

.c-badge {
  display: inline-block;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: bold;
  border-radius: 20px;
  margin-right: 5px;
  margin-bottom: 8px;
}

.c-badge--accent {
  background-color: #d70466;
  color: #ffffff;
}

.c-badge--sub {
  background-color: #003580;
  color: #ffffff;
}

.c-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: opacity 0.3s;
  cursor: pointer;
}

.c-button:hover {
  opacity: 0.85;
}

.c-button--brand {
  background-color: #d70466;
  color: #ffffff;
}

.c-button--outline {
  border: 1px solid #333333;
  color: #333333;
  background-color: #ffffff;
}

.c-button--small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.c-button-lang {
  background: none;
  border: 1px solid #cccccc;
  padding: 6px 12px;
  min-height: 36px;
  font-size: 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.c-button-lang.is-active {
  background-color: #333333;
  color: #ffffff;
  border-color: #333333;
}

/* ==========================================================================
   4. Projects & Patterns (p-)
   ========================================================================== */
/* Header */
.p-header {
  background-color: #ffffff;
  border-bottom: 1px solid #eef0f2;
  position: sticky;
  top: 0;
  z-index: 100;
}

.p-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.p-header__logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  display: block;
}

.p-header__logo-sub {
  font-size: 0.7rem;
  color: #666666;
  display: block;
}

.p-header__nav {
  display: none;
}

@media (min-width: 768px) {
  .p-header__nav {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}

.p-header__menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.p-header__link {
  font-size: 0.95rem;
  font-weight: 500;
}

.p-header__link.is-active {
  color: #d70466;
  font-weight: bold;
}

/* Hero Section */
.p-hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/mv.webp') no-repeat center/cover;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.p-hero__title {
  font-size: 1.8rem;
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.p-hero__subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

@media (min-width: 768px) {
  .p-hero {
    padding: 120px 20px;
  }
  .p-hero__title {
    font-size: 2.8rem;
  }
}

/* Features Section */
.p-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .p-features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-card-feature {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
}

.c-card-feature__icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.c-card-feature__title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.c-card-feature__desc {
  font-size: 0.9rem;
  color: #666666;
}

/* Properties Section */
.p-properties__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 768px) {
  .p-properties__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-card-property {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

.c-card-property__image-wrapper {
  position: relative;
}

/* 物件カード上のバッジスタイル */
.c-card-property__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap; /* 画面幅が狭い場合は折り返し */
  gap: 6px;       /* バッジ同士の間隔 */
  z-index: 1;
}

.c-card-property__badge {
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.c-card-property__content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-card-property__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.c-card-property__desc {
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.c-card-property__actions {
  display: grid;
  gap: 10px;
}

.c-card-property__actions .c-button {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 0;
}

/* Bottom Fixed Navigation (Mobile Only) */
.p-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #dddddd;
  padding: 10px 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 99;
}

.p-bottom-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
}

.p-bottom-nav__text {
  font-weight: bold;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .p-bottom-nav {
    display: none;
  }
}

/* Footer */
.p-footer {
  background-color: #222222;
  color: #ffffff;
  padding: 30px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* ==========================================================================
   Properties Page Specific Styles
   ========================================================================== */

/* ページヘッダー */
.p-page-header {
  background-color: #ffffff;
  padding: 40px 0;
  text-align: center;
  border-bottom: 1px solid #eef0f2;
}

.p-page-header__title {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.p-page-header__desc {
  font-size: 0.95rem;
  color: #666666;
}

/* フィルターボタンエリア */
.p-filter {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (min-width: 768px) {
  .p-filter {
    flex-direction: row;
    justify-content: center;
  }
}

.p-filter__label {
  font-weight: bold;
  font-size: 0.9rem;
}

.p-filter__group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.c-filter-btn {
  background-color: #ffffff;
  border: 1px solid #cccccc;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.c-filter-btn:hover {
  border-color: #333333;
}

.c-filter-btn.is-active {
  background-color: #333333;
  color: #ffffff;
  border-color: #333333;
}

/* 特徴タグリスト */
.c-card-property__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.c-tag {
  background-color: #f0f2f5;
  color: #555555;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

/* ==========================================================================
   Property Detail Page Specific Styles
   ========================================================================== */

/* ヒーローエリア */
.p-property-detail-hero {
  background-color: #ffffff;
  padding: 30px 0;
  border-bottom: 1px solid #eef0f2;
}

.p-property-detail-hero__header {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

@media (min-width: 768px) {
  .p-property-detail-hero__header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.p-property-detail-hero__title {
  font-size: 1.8rem;
  margin: 5px 0;
}

.p-property-detail-hero__address {
  font-size: 0.9rem;
  color: #666666;
}

/* 画像ギャラリー */
.p-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 768px) {
  .p-gallery {
    grid-template-columns: 2fr 1fr;
  }
}

.p-gallery__sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* 詳細コンテンツボディ */
.p-property-detail-body {
  padding-top: 40px;
  padding-bottom: 60px;
}

.p-detail-block {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.p-detail-block__title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f2f5;
}

.p-detail-block__subtitle {
  font-size: 1.1rem;
  margin: 20px 0 10px;
}

/* リスト・スペック表示 */
.p-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 6px;
}

.p-spec-item {
  display: flex;
  flex-direction: column;
}

.p-spec-item__label {
  font-size: 0.75rem;
  color: #666;
}

.p-spec-item__value {
  font-size: 0.95rem;
  font-weight: bold;
}

.p-amenity-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

@media (min-width: 768px) {
  .p-amenity-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.p-amenity-list__item {
  font-size: 0.9rem;
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
}

.p-rule-list, .p-location-list {
  list-style: none;
}

.p-rule-list li, .p-location-list li {
  margin-bottom: 8px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Guide Page Specific Styles
   ========================================================================== */

/* ステップフロー */
.p-flow-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.p-flow-step {
  display: flex;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  align-items: flex-start;
  gap: 20px;
}

.p-flow-step__number {
  background-color: #d70466;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.p-flow-step__title {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.p-flow-step__desc {
  font-size: 0.9rem;
  color: #666666;
}

/* FAQ（details/summary アコーディオン） */
.p-faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.p-faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.p-faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
}

.p-faq-item__question::-webkit-details-marker {
  display: none;
}

.p-faq-item__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.p-faq-item[open] .p-faq-item__icon {
  transform: rotate(45deg); /* +マークを×マークに変化 */
}

.p-faq-item__answer {
  background-color: #f8f9fa;
  padding: 15px 20px;
  border-top: 1px solid #eef0f2;
}

.p-faq-item__answer p {
  font-size: 0.9rem;
  color: #555555;
}

@media (prefers-reduced-motion: reduce) {
  .p-faq-item__icon {
    transition: none;
  }
}

/* Google翻訳ウィジェットの不要な表示を非表示化 */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
}

body {
  top: 0px !important;
}

#google_translate_element {
  display: none !important;
}

/* Google Map埋め込み用スタイル */
.p-map-wrapper {
  margin-top: 20px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.p-map-wrapper iframe {
  width: 100%;
  display: block;
}

/* ==========================================
   写真付きおすすめポイントカード（BEM記法）
   ========================================== */
.p-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

@media (min-width: 600px) {
  .p-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .p-feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.c-feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #eef0f2;
  display: flex;
  flex-direction: column;
}

.c-feature-card__image-wrapper {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.c-feature-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.c-feature-card:hover .c-feature-card__image {
  transform: scale(1.05); /* マウスホバー時に少し拡大 */
}

.c-feature-card__body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.c-feature-card__title {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333333;
}

.c-feature-card__desc {
  font-size: 0.85rem;
  color: #666666;
  line-height: 1.5;
}

/* ==========================================
   アクセス・周辺環境リスト（施設名と詳細を2列グリッドで揃える）
   ========================================== */
.p-location-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  row-gap: 10px;
}

.p-location-list li {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* 対応ブラウザでは全行で列幅（コロンの位置）を揃える */
@supports (grid-template-columns: subgrid) {
  .p-location-list li {
    grid-template-columns: subgrid;
  }
}

/* スマホ（幅600px以下）：施設名の下に詳細を縦積み */
@media (max-width: 600px) {
  .p-location-list,
  .p-location-list li {
    grid-template-columns: 1fr;
  }
  .p-location-list {
    row-gap: 12px;
  }
  .p-location-name {
    font-weight: bold;
  }
  .p-location-name::after {
    content: none;
  }
}

/* ==========================================================================
   Additions (v2): a11y / mobile nav / breadcrumb / legal / etc.
   ========================================================================== */

/* hidden属性を確実に効かせる（フィルター用） */
[hidden] {
  display: none !important;
}

/* キーボードフォーカスの可視化 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #003580;
  outline-offset: 2px;
}

/* ---------- Header: モバイルメニュー ---------- */
.p-header__container {
  gap: 12px;
}

.p-header__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  background: none;
  border: 1px solid #cccccc;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.p-header__toggle-bar {
  display: block;
  height: 2px;
  background-color: #333333;
}

@media (min-width: 768px) {
  .p-header__toggle {
    display: none;
  }
}

@media (max-width: 767px) {
  .p-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid #eef0f2;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.08);
  }

  .p-header__nav.is-open {
    display: block;
  }

  .p-header__menu {
    flex-direction: column;
    gap: 0;
  }

  .p-header__link {
    display: block;
    padding: 14px 20px;
    border-top: 1px solid #eef0f2;
  }

  .p-header__logo-text {
    font-size: 1rem;
  }

  .p-header__logo-sub {
    font-size: 0.6rem;
  }
}

/* ---------- 画像（レイアウトシフト防止） ---------- */
.c-card-property__image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.p-gallery__main .p-gallery__img {
  height: auto;
  aspect-ratio: 3 / 2;
}

/* ---------- Footer links ---------- */
.p-footer__links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 15px;
}

.p-footer__link {
  color: #dddddd;
  text-decoration: underline;
}

.p-footer__link:hover {
  color: #ffffff;
}

/* ---------- Breadcrumb ---------- */
.p-breadcrumb {
  background-color: #ffffff;
  border-bottom: 1px solid #eef0f2;
  padding: 10px 0;
  font-size: 0.8rem;
}

.p-breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.p-breadcrumb__item + .p-breadcrumb__item::before {
  content: "›";
  margin-right: 4px;
  color: #666;
}

.p-breadcrumb__link {
  color: #003580;
  text-decoration: underline;
}

/* ---------- 物件詳細：補足 ---------- */
.p-spec-note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #666;
}

.p-other-properties {
  padding-top: 0;
}

.p-other-properties .p-properties__grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .p-other-properties .p-properties__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Index: お見舞い・通院セクション ---------- */
.p-medical__lead {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 0.95rem;
  text-align: center;
}

.p-medical__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 800px;
  margin: 0 auto 20px;
}

.p-medical__note {
  max-width: 700px;
  margin: 0 auto 25px;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

.p-medical__action {
  text-align: center;
}

/* ---------- 法務ページ（プライバシー／規約／特商法） ---------- */
.p-legal {
  max-width: 800px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .p-legal {
    padding: 40px;
  }
}

.p-legal__section + .p-legal__section {
  margin-top: 28px;
}

.p-legal__title {
  font-size: 1.1rem;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f0f2f5;
}

.p-legal__text {
  font-size: 0.92rem;
  line-height: 1.8;
}

.p-legal__list {
  margin: 8px 0 0 1.4em;
  font-size: 0.92rem;
  line-height: 1.8;
}

.p-legal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.p-legal__table th,
.p-legal__table td {
  border: 1px solid #e3e6ea;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.p-legal__table th {
  width: 30%;
  background-color: #f8f9fa;
}

@media (max-width: 600px) {
  .p-legal__table th,
  .p-legal__table td {
    display: block;
    width: 100%;
  }
}

.p-legal__todo {
  padding: 0 4px;
  border-radius: 3px;
}

.p-legal__date {
  margin-top: 28px;
  font-size: 0.85rem;
  color: #666666;
  text-align: right;
}

/* ---------- 複数ルームの予約 ---------- */
.p-property-detail-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p-bottom-nav__buttons {
  display: flex;
  gap: 8px;
}

.p-room-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .p-room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

html {
  scroll-padding-top: 80px;
}

/* ---------- 物件カード：部屋ごとの予約ボタン（横並び） ---------- */
.c-card-property__rooms {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.c-card-property__rooms .c-button {
  flex: 1;
  font-size: 0.85rem;
  padding: 8px 0;
  text-align: center;
}

/* ==========================================================================
   ページ先頭へ戻るボタン
   ========================================================================== */
.c-page-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 98; /* ヘッダー(100)・モバイル予約バー(99)より下 */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #d70466;
  background-color: rgba(255, 255, 255, 0.96);
  border: 1px solid #f0dfe3;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(34, 34, 34, 0.16);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s,
              background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.c-page-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.c-page-top__icon {
  display: block;
  transition: transform 0.2s ease;
}

.c-page-top__label {
  font-size: 0.6rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  line-height: 1;
}

.c-page-top:hover {
  color: #ffffff;
  background-color: #d70466;
  border-color: #d70466;
  box-shadow: 0 10px 24px rgba(255, 56, 92, 0.35);
}

.c-page-top:hover .c-page-top__icon {
  transform: translateY(-2px);
}

.c-page-top:active {
  transform: translateY(1px) scale(0.96);
}

/* モバイル：下部の固定予約バーに重ならない位置へ */
@media (max-width: 767px) {
  .c-page-top {
    right: 12px;
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-page-top,
  .c-page-top__icon {
    transition: none;
  }
}

@media print {
  .c-page-top {
    display: none;
  }
}

/* ---------- 言語切替（ナビ内） ---------- */
.p-header__lang-switcher {
  display: flex;
  gap: 8px;
}

@media (max-width: 767px) {
  .p-header__lang-switcher {
    padding: 14px 20px;
    border-top: 1px solid #eef0f2;
  }
  .c-button-lang {
    flex: 1;
    min-height: 44px;
    font-size: 0.9rem;
  }
}

/* ---------- フォーカス表示 ---------- */
summary:focus-visible {
  outline: 2px solid #003580;
  outline-offset: -4px;
}

.p-footer a:focus-visible,
.p-footer button:focus-visible {
  outline-color: #ffffff;
}

/* ==========================================================================
   ゲストの評価（Airbnb）
   ========================================================================== */
.p-reviews__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .p-reviews__grid:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; } }
.p-reviews__card { background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); padding: 20px; }
.p-reviews__card-title { font-size: 1.05rem; margin-bottom: 8px; }
.p-reviews__score { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.p-reviews__num { font-size: 2.2rem; font-weight: bold; line-height: 1; }
.p-reviews__star { color: #d70466; font-size: 1.4rem; }
.p-reviews__new { font-size: 1.1rem; font-weight: bold; }
.p-reviews__count { font-size: 0.9rem; color: #555555; }
.p-reviews__hint { margin-top: 6px; font-size: 0.8rem; color: #666666; }
.p-reviews__choice { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 20px; background: #fdecf3; color: #b0034f; font-size: 0.8rem; font-weight: bold; }
.p-reviews__cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; }
.p-reviews__cats div { display: flex; justify-content: space-between; border-bottom: 1px solid #eeeeee; padding-bottom: 4px; font-size: 0.85rem; }
.p-reviews__cats dt { color: #555555; }
.p-reviews__cats dd { font-weight: bold; }
.p-reviews__link { display: inline-block; margin-top: 14px; font-size: 0.85rem; color: #d70466; }
.p-reviews__host { list-style: none; display: grid; gap: 10px; margin-top: 16px; padding: 16px 20px; background: #ffffff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
@media (min-width: 768px) { .p-reviews__host { grid-template-columns: repeat(3, 1fr); } }
.p-reviews__host li { font-size: 0.85rem; color: #555555; }
.p-reviews__host strong { display: block; font-size: 1rem; color: #333333; }
.p-reviews__voices { display: grid; gap: 12px; margin-top: 16px; }
.p-reviews__voice { background: #ffffff; border-left: 4px solid #d70466; border-radius: 4px; padding: 14px 18px; font-size: 0.9rem; }
.p-reviews__voice footer { margin-top: 8px; font-size: 0.8rem; color: #666666; }

/* ---------- 物件カード：こんな方に ---------- */
.c-card-property__target {
  margin: 6px 0 10px;
  padding-left: 10px;
  border-left: 3px solid #d70466;
  font-size: 0.95rem;
  font-weight: bold;
  color: #333333;
  line-height: 1.4;
}

/* ---------- ギャラリー：その他の写真（サムネイル列） ---------- */
.p-gallery__more {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.p-gallery__more .p-gallery__img {
  height: auto;
  aspect-ratio: 3 / 2;
}
.p-gallery__more .p-gallery__img:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
@media (min-width: 768px) {
  .p-gallery__more { grid-template-columns: repeat(5, 1fr); }
  .p-gallery__more .p-gallery__img:last-child:nth-child(odd) { grid-column: auto; }
}

/* ==========================================================================
   写真カルーセル（スワイプ / 矢印 / サムネイル）
   ========================================================================== */
.p-carousel { margin-bottom: 24px; }
.p-carousel__viewport { position: relative; border-radius: 8px; overflow: hidden; background: #f0f0f0; }
.p-carousel__track {
  display: flex; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.p-carousel__track::-webkit-scrollbar { display: none; }
.p-carousel__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 2; }
.p-carousel__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-carousel__img--contain { object-fit: contain; background: #ffffff; }
.p-carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: #333333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25); cursor: pointer;
}
.p-carousel__btn[hidden] { display: none; }
.p-carousel__btn:disabled { opacity: 0.35; cursor: default; }
.p-carousel__btn--prev { left: 12px; }
.p-carousel__btn--next { right: 12px; }
.p-carousel__count {
  position: absolute; right: 12px; bottom: 12px; z-index: 2; margin: 0;
  padding: 2px 10px; border-radius: 12px;
  background: rgba(0,0,0,0.6); color: #ffffff; font-size: 0.8rem;
}
.p-carousel__thumbs {
  position: relative; display: flex; gap: 8px; margin-top: 10px; padding-bottom: 4px;
  overflow-x: auto; scrollbar-width: thin;
}
.p-carousel__thumb {
  flex: 0 0 auto; width: 88px; aspect-ratio: 3 / 2; padding: 0;
  border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  background: #f0f0f0; cursor: pointer; opacity: 0.7;
}
.p-carousel__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.p-carousel__thumb.is-active { border-color: #d70466; opacity: 1; }
@media (max-width: 767px) { .p-carousel__btn { width: 40px; height: 40px; } .p-carousel__thumb { width: 72px; } }

/* 特徴カードのアイコン画像サイズ調整 */
.c-card-feature__icon img {
  width: 48px;  /* 横幅の指定（お好みのサイズに変更可能） */
  height: 48px; /* 縦幅の指定（お好みのサイズに変更可能） */
  object-fit: contain; /* 画像が歪まないように収める設定 */
}

.p-property-detail-hero__address img {
  width: 24px;  /* 横幅の指定（お好みのサイズに変更可能） */
  height: 24px; /* 縦幅の指定（お好みのサイズに変更可能） */
  object-fit: contain; /* 画像が歪まないように収める設定 */
}

.c-feature-card__title img {
  width: 24px;  /* 横幅の指定（お好みのサイズに変更可能） */
  height: 24px; /* 縦幅の指定（お好みのサイズに変更可能） */
  object-fit: contain; /* 画像が歪まないように収める設定 */
    
}

/* ---------- ヒーロー：行動ボタン ---------- */
.p-hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 28px; }
.p-hero__cta .c-button { width: 100%; max-width: 280px; padding: 14px 20px; }
@media (min-width: 768px) {
  .p-hero__cta { flex-direction: row; justify-content: center; }
  .p-hero__cta .c-button { width: auto; min-width: 220px; }
}

/* ---------- お見舞い・通院：病院アクセス表 ---------- */
.p-medical__table-wrap { overflow-x: auto; margin: 20px 0; }
.p-medical__table { width: 100%; min-width: 560px; border-collapse: collapse; background-color: #ffffff; font-size: 0.9rem; }
.p-medical__caption { text-align: left; font-weight: bold; padding: 0 0 8px; }
.p-medical__table th,
.p-medical__table td { padding: 10px 12px; border-bottom: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.p-medical__table thead th { background-color: #e3e8ee; font-size: 0.85rem; white-space: nowrap; }
.p-medical__table tbody th { font-weight: bold; }
.p-medical__table tbody tr:nth-child(odd) { background-color: #ffffff; }
.p-medical__table tbody tr:nth-child(even) { background-color: #e9eef5; }
.p-medical__table td:nth-child(3),
.p-medical__table td:nth-child(4) { white-space: nowrap; }

.c-card-property__badge-premium {
  background-color: rgba(255, 215, 0, 1);
  color: #333333;
  font-weight: 700;
}