@charset "utf-8";

/* =========================================================
   layout.css
   役割：サイト全体の骨組み（主に PC / 共通）

   このファイルで担当するもの
   - 共通の中央寄せ幅
   - header の PC レイアウト
   - スクロール時の compact 表示
   - パンくず
   - クイックナビ
   - フッター
   - Cookie 同意バナー

   運用ルール
   1. PC の見た目は基本的にこのファイルで管理する
   2. スマホの見た目は responsive.css で上書きする
   3. header の見た目を変える時は、まず header.html の構造と
      クラス名を確認してから触る

   header.html の現在構造（要点）
   - .site-header
     - .site-header__bar
       - .site-header__logo-link
         - .site-header__logo
         - .site-header__title
           - .site-header__text
       - .site-header__toggle
     - .site-header__backdrop
     - .site-header__nav
       - .site-header__nav-list

   注意
   - 現在の header.html には .site-header__logo-mini は無い
   - スマホでは既存の .site-header__logo を小さく使う前提
   - 小ロゴを別要素で使いたい場合は HTML 側の追加が必要
   ========================================================= */

@import url(common.css);

/* =========================================================
   1) Shared Width
   共通で中央寄せしたい主要ブロック
   ========================================================= */
.site-header,
#contents,
.site-footer {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* =========================================================
   2) Site Header
   PC 用の基本レイアウト
   - 通常時：大ロゴ + 大きめタイトル
   - スクロール時：compact 表示へ縮小
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1550;
  margin: 0 auto 24px;
  padding-top: 18px;
  padding-bottom: 10px;

  /* 通常時は背景を透過。
     背景を見せたいので border / shadow も消す。 */
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  transition:
    padding 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    backdrop-filter 0.2s ease,
    -webkit-backdrop-filter 0.2s ease;
}

@media (min-width: 768px) {
  .site-header__logo-mini {
    display: none;
  width: 100px;
  height: 80px;
  object-fit: contain;
  flex: 0 0 auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.92);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-header.is-compact .site-header__logo-mini {
  display: block !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
  }
}

/* スクロール後の compact 状態
   JS 側で .site-header.is-compact が付与される前提。 */
.site-header.is-compact {
  max-width: 1100px;
  padding-top: 2px;
  padding-bottom: 8px;

  /* 今回は画面いっぱい背景ではなく、透明のまま軽く影だけ出す。 */
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ヘッダー上段
   左：ブランド
   右：ハンバーガー（PC では非表示だが位置だけ確保しやすい形） */
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* ブランドリンク全体
   min-width: 0 は flex 子要素の文字省略や縮小で重要。 */
.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.site-header__logo-link:hover,
.site-header__logo-link:focus,
.site-header__logo-link:active {
  text-decoration: none;
  color: inherit;
}

/* 疑似要素による下線などを完全に切る。
   テーマ側の汎用 a 装飾が乗っても崩れにくくする目的。 */
.site-header__text::before,
.site-header__text::after,
.site-header__logo-link::before,
.site-header__logo-link::after {
  content: none !important;
}

/* 大ロゴ画像
   PC では表示、SP は responsive.css 側で非表示にする。 */
.site-header__logo {
  width: 244px;
  max-width: 60vw;
  flex: 0 0 auto;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

/* compact 時は大ロゴを見えなくし、高さも抑える。 */
.site-header.is-compact .site-header__logo {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  position: absolute;
}

/* タイトル内側の文字ブロック
   PC では少し下げて、大ロゴと視覚的に揃える。 */
.site-header__text {
  position: relative;
  top: 30px;
  white-space: nowrap;
  text-decoration: none;
  transition:
    top 0.2s ease,
    white-space 0.2s ease;
}

/* compact 時は通常位置へ戻す。
   1 行維持の方が安定するので nowrap を保つ。 */
.site-header.is-compact .site-header__text {
  top: 0;
  white-space: nowrap;
}

/* タイトル本体 */
.site-header__title {
  margin: 0;
  text-align: center;
  font-size: 3.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 2.05;
  color: #334155;
  transition:
    margin 0.2s ease,
    font-size 0.2s ease,
    line-height 0.2s ease,
    letter-spacing 0.2s ease;
}

/* compact 時のタイトル
   line-height を極端に小さくすると見切れやすいので 1.1 を採用。 */
.site-header.is-compact .site-header__title {
  font-size: 2.58rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* 改行用 span は PC では使わない。 */
.site-header__break {
  display: none;
}

/* compact 時は上段の高さを少しだけ締める。 */
.site-header.is-compact .site-header__bar {
  min-height: 40px;
}

/* =========================================================
   3) Header Navigation
   - PC：横並びボタン群
   - SP：responsive.css で開閉式に切り替える
   ========================================================= */
.site-header__nav {
  margin-top: 10px;
}

/* スクロール時だけ nav を少しだけ下げる。
   見た目の微調整をしたい時はまずここを触る。 */
.site-header.is-compact .site-header__nav {
  margin-top: 8px;
}

.site-header__nav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
}

.site-header__nav-item {
  width: auto;
}

/* ナビリンクは PC で丸ボタン風にする。 */
.site-header__nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 10px;
  padding: 0 18px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgb(192, 192, 192);
  color: #333;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.site-header__nav-link:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* 現在地のページだけ少し見た目を変える。 */
#properties #nav_properties .site-header__nav-link,
#property-detail #nav_properties .site-header__nav-link,
.section-properties #nav_properties .site-header__nav-link,
#docs #nav_about .site-header__nav-link,
.page-about #nav_about .site-header__nav-link,
#contact #nav_contact .site-header__nav-link,
#staff #nav_staff .site-header__nav-link {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* =========================================================
   4) Hamburger Button / Backdrop
   - PC では非表示
   - SP では responsive.css 側で表示する
   ========================================================= */
.site-header__toggle,
.site-header__backdrop {
  display: none;
}

.site-header__toggle {
  appearance: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.10);
}

.site-header__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #334155;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-open .site-header__toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.is-open .site-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.site-header.is-open .site-header__toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 背景オーバーレイ
   メニュー展開時の背面暗転に使う。 */
.site-header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.32);
  z-index: 1590;
}

/* =========================================================
   5) Breadcrumb
   ========================================================= */
#path {
  max-width: 860px;
  margin: 12px auto 20px;
  padding: 0 16px;
  font-size: 0.9rem;
  color: #64748b;
}

#path ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#path li {
  display: flex;
  align-items: center;
}

#path li:last-child {
  color: #1f2937;
  font-weight: 600;
}

#path a {
  color: #0f766e;
  text-decoration: none;
}

#path a:hover {
  text-decoration: underline;
}

/* =========================================================
   6) Quick Navigation
   - PC：右上固定
   - SP：responsive.css で下部固定に切り替える
   ========================================================= */
.floating-nav {
  position: fixed;
  z-index: 1560; /* header(1550) より手前 */
  display: flex;
  gap: 10px;
}

.floating-nav .nav-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease,
    top 0.2s ease;
}

.floating-nav .nav-chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.98);
}

.floating-nav .nav-chip.prop {
  background: #e0f2fe;
  color: #075985;
  border-color: #7dd3fc;
}

.floating-nav .nav-chip.fav {
  background: #fce7f3;
  color: #9d174d;
  border-color: #f9a8d4;
}

.floating-nav .nav-chip.hist {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
}

@media (min-width: 768px) {
  .floating-nav {
    top: 8px;
    right: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
      top 0.2s ease,
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

  body.is-scrolled .floating-nav {
    top: 6px;
  }
}

/* =========================================================
   7) Site Footer
   ========================================================= */
.site-footer {
  max-width: 860px;
  margin: 24px auto 80px;
  padding: 0 16px;
  color: #666;
}

.site-footer__card {
  padding: 14px 14px 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.site-footer__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px;
}

.site-footer__info {
  flex: 1 1 320px;
  min-width: 260px;
}

.site-footer__site-name,
.site-footer__links-title {
  margin-bottom: 8px;
  font-weight: 700;
  color: #111827;
}

.site-footer__info-list {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}

.site-footer__term {
  color: #6b7280;
}

.site-footer__desc {
  margin: 0;
  color: #111827;
}

.site-footer__tel,
.site-footer__link {
  color: #111827;
  text-decoration: none;
}

.site-footer__tel:hover,
.site-footer__link:hover {
  text-decoration: underline;
}

.site-footer__copyright {
  margin-top: 10px;
  border-top: 1px solid rgb(232, 233, 236);
  font-size: 12px;
  color: #6b7280;
  text-align: center;
}

.site-footer__links-block {
  flex: 1 1 240px;
  min-width: 240px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  font-size: 13px;
}

.site-footer__note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: #6b7280;
}

/* =========================================================
   8) Cookie Banner
   ========================================================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1700;
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
  padding: 14px 16px;
  background: rgba(15, 23, 42, 0.96);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.cookie-banner__text {
  margin: 0;
  line-height: 1.7;
}

.cookie-banner__link {
  color: #fff;
  text-decoration: underline;
}

.cookie-banner__tech {
  font-size: 12px;
  color: #cbd5e1;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-btn {
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 10px;
}

.cookie-btn--primary {
  background: #fff;
  color: #111827;
}

.cookie-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}
