@charset "UTF-8";
/* ==========================================================
   内野屋不動産  トップページ専用：スクロールで「暖簾をくぐる」演出
   ・店先の写真が画面に張りつき、スクロールに合わせて暖簾へ寄っていきます
   ・暖簾が画面いっぱいになったところへ、見出しとご相談メニューがせり上がります
   ・最後に暖簾がめくれて白くなり、そのまま次の段（地元で長く…）につながります
   ・このファイルと js/top-scroll.js は、トップページ（index.html）だけが読み込みます
   ・「動きを減らす」設定の端末や、JavaScript が動かないときは、
     写真 → 紺の帯 → 白い段 と上から順に並ぶ、ふつうの表示になります（1 の部分）
   ========================================================== */

/* ----------------------------------------------------------
   1. 土台（動きがなくても読める並び）
   ---------------------------------------------------------- */
.hero.ts { background: var(--kon); }
.ts-scene { position: relative; background: #ebe6de; }
.sf-panel > img { display: block; width: 100%; height: auto; max-width: none; }
.ts-glow, .ts-light, .ts-first, .ts-cue { display: none; }

.ts-content { position: relative; color: #fff; padding-block: 56px 64px; }

/* 見出し（h1） */
.ts-intro { text-align: center; }
.ts-eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 1em; margin-bottom: 1.1em;
  font-family: var(--f-min); font-size: 0.9375rem; font-weight: 700; letter-spacing: 0.34em; color: var(--on-kon-soft);
}
.ts-eyebrow::before, .ts-eyebrow::after { content: ""; width: 2.4em; height: 1px; background: currentColor; opacity: 0.7; }
.ts-intro h1 { color: #fff; font-size: clamp(1.75rem, 9vw, 4rem); line-height: 1.4; letter-spacing: 0.04em; text-shadow: 0 0.1em 0.55em rgba(6, 12, 36, 0.6); }
.ts-intro h1 .nb { display: block; }
.ts-intro .lead { margin: 1.5em auto 0; max-width: 33em; text-align: left; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(6, 12, 36, 0.7); }

/* ご相談の内容から選ぶ（売・継・買・貸） */
.ts-menu { margin-top: 64px; position: relative; }
.ts-kicker {
  font-family: var(--f-sans); font-size: var(--fs-s); font-weight: 700; letter-spacing: 0.3em; line-height: 1.6;
  color: var(--on-kon-soft); text-align: center; margin-bottom: 40px; word-break: normal;
}
.ts-feats { list-style: none; display: grid; gap: 48px; position: relative; }
.ts-feat {
  display: grid; justify-items: center; gap: 8px; max-width: 21em; margin-inline: auto;
  text-align: center; color: #fff; text-decoration: none;
}
.ts-feat:hover { color: #fff; }
.ts-feat .fuda { grid-row: auto; background: #fff; color: var(--kon); margin-bottom: 10px; box-shadow: 0 10px 28px rgba(6, 12, 36, 0.45); }
.ts-feat h3 { color: #fff; font-size: var(--fs-m); line-height: 1.55; text-shadow: 0 1px 14px rgba(6, 12, 36, 0.7); }
.ts-feat p { color: rgba(255, 255, 255, 0.9); font-size: 1rem; line-height: 1.85; text-align: left; text-shadow: 0 1px 10px rgba(6, 12, 36, 0.7); }
.ts-feat .go {
  margin-top: 6px; font-weight: 700; font-size: var(--fs-s); color: #fff;
  padding-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}
.ts-feat .go::after {
  /* 矢印（フォントに頼らず線で描く） */
  content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.5em; vertical-align: 0.06em;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s;
}
.ts-feat:hover .go { border-bottom-color: #fff; }
.ts-feat:hover .go::after { transform: translateX(4px) rotate(45deg); }

/* 5つ目：まん中に置く電話とボタン */
.ts-cta { margin-top: 64px; display: grid; justify-items: center; gap: 10px; text-align: center; }
.ts-cta-lead { max-width: 31em; text-align: left; color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 10px rgba(6, 12, 36, 0.7); }
.ts-cta .hero-tel { justify-content: center; margin-top: 10px; color: #fff; }
.ts-cta .hero-tel a { color: #fff; font-size: var(--fs-xxl); line-height: 1.2; text-shadow: 0 2px 18px rgba(6, 12, 36, 0.6); }
.ts-cta .hero-tel span { color: var(--on-kon-soft); width: 100%; }
.ts-cta .hero-actions { justify-content: center; width: 100%; max-width: 580px; margin-top: 16px; }
.ts-cta .hero-license { color: var(--on-kon-soft); margin-top: 12px; word-break: keep-all; overflow-wrap: anywhere; }

/* 白い段：地元で長く続けてきた不動産屋として */
.ts-trust { position: relative; background: var(--kami); }
.ts-trust-in { background: var(--kami); padding-block: 56px 64px; }
.ts-trust-head { display: grid; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid rgba(30, 35, 56, 0.18); }
.ts-trust-head h2 { font-size: clamp(1.875rem, 4.4vw, 3.5rem); line-height: 1.32; letter-spacing: 0.04em; word-break: normal; }
.ts-trust-head h2 span { display: block; white-space: nowrap; }
.ts-trust-head h2 span:last-child { color: #7f859f; }
.ts-trust-note { font-size: var(--fs-s); line-height: 1.85; color: var(--sumi-soft); max-width: 34em; }
.ts-trust-rows { list-style: none; }
.ts-trust-rows li { display: grid; gap: 10px; padding-block: 28px; border-bottom: 1px solid rgba(30, 35, 56, 0.18); }
.ts-trust-rows h3 { font-size: var(--fs-m); line-height: 1.55; }
.ts-trust-rows .n { display: block; margin-bottom: 6px; font: 700 0.8125rem/1 var(--f-sans); letter-spacing: 0.18em; color: var(--shu-deep); font-variant-numeric: tabular-nums; }
.ts-trust-rows p { font-size: clamp(1.0625rem, 1.6vw, 1.3125rem); line-height: 1.85; max-width: 34em; color: var(--sumi); }
@media (min-width: 768px) {
  .ts-trust-in { padding-block: 72px 96px; }
}
@media (min-width: 900px) {
  .ts-content { padding-block: 80px 96px; }
  .ts-trust-head { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: end; padding-bottom: 40px; }
  .ts-trust-rows li { grid-template-columns: 260px minmax(0, 1fr); gap: 0 48px; padding-block: 44px; align-items: start; }

  /* 売・継・買・貸 を、まん中の軸をはさんで左右対称に置く */
  .ts-feats { grid-template-columns: 1fr 1fr; column-gap: clamp(88px, 11vw, 190px); row-gap: 72px; }
  .ts-feats::before {
    content: ""; position: absolute; left: 50%; top: -12px; bottom: -12px; width: 0;
    border-left: 1px dashed rgba(255, 255, 255, 0.4);
  }
  .ts-feat { max-width: 21.5em; gap: 10px; }
  .ts-feat h3 { font-size: var(--fs-l); }
  .ts-feat p { font-size: var(--fs-b); }
  .ts-feats li:nth-child(odd) .ts-feat { justify-items: end; text-align: right; margin: 0 0 0 auto; }
  .ts-feats li:nth-child(odd) .ts-feat p { text-align: right; }
  .ts-feats li:nth-child(even) .ts-feat { justify-items: start; text-align: left; margin: 0 auto 0 0; }
  .ts-feats li:nth-child(n+3):nth-child(odd) .ts-feat { transform: translateX(-12px); }
  .ts-feats li:nth-child(n+3):nth-child(even) .ts-feat { transform: translateX(12px); }
}

/* ----------------------------------------------------------
   2. スクロールで進む演出（head の小さなスクリプトが <html> に ts-on を付けたときだけ）
      画面の高さが足りない（横向きのスマホなど）ときは 1 の並びのまま
   ---------------------------------------------------------- */
@media (min-height: 500px) {
  html.ts-on {
    --ts-top: calc(69px + env(safe-area-inset-top, 0px));      /* 上に張りつくヘッダーの高さ（js が実測して入れ直す） */
    --ts-bar: calc(71px + env(safe-area-inset-bottom, 0px));   /* スマホ下の固定バーの高さ（同上） */
    --ts-pre: 0px;                                             /* 場面が張りつくまでに流れる分（PC のヘッダー） */
    --ts-hid: 0px;                                             /* アドレスバーに隠れる分 */
    --ts-h: calc(100vh - var(--ts-top));                       /* 場面の高さ */
    --ts-band: 0px;                                            /* 開いた直後に見せる、写真の下の帯の高さ（パソコン） */
  }
  @supports (height: 100lvh) {
    html.ts-on { --ts-h: calc(100lvh - var(--ts-top)); --ts-hid: calc(100lvh - 100svh); }
  }

  .ts-on .hero.ts { overflow: visible; background: var(--kami); isolation: isolate; }

  /* 場面：画面に張りつく */
  .ts-on .ts-scene {
    position: -webkit-sticky; position: sticky; top: var(--ts-top); z-index: 0;
    height: var(--ts-h); overflow: hidden; background: var(--kami);
    display: flex; flex-direction: column;
  }
  .ts-on .ts-scene > .sf { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; background: #efebe4; }
  .ts-on .sf-crop { position: relative; z-index: 1; flex: none; overflow: visible; }
  .ts-on .sf-frame { animation: none; transform-origin: 0 0; }
  .ts-on .sf-bg { will-change: transform; }
  .ts-on .sf-panel > img { will-change: transform; }
  .ts-on .sf-panel::after {
    /* 暖簾を紺に沈める幕（白い文字が読めるように、染め抜きの字をうっすら残す） */
    content: ""; position: absolute; inset: 0; background: #15244d; opacity: var(--ts-dim, 0); pointer-events: none; will-change: opacity;
  }
  .ts-on .sf-panel::before {
    /* めくれるときに、裾の下へ落ちる影 */
    content: ""; position: absolute; left: 0; right: 0; top: 99%; height: 16%; pointer-events: none;
    background: linear-gradient(rgba(12, 20, 52, 0.3), rgba(12, 20, 52, 0)); opacity: var(--ts-shade, 0); will-change: opacity;
  }
  .ts-on .sf-noren { transform-origin: 42.977% 16.067%; }
  .ts-on .ts-glow { display: block; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; will-change: opacity; }
  .ts-on .ts-light { display: block; position: absolute; inset: 0; z-index: 6; background: var(--kami); opacity: 0; pointer-events: none; will-change: opacity; }
  .ts-on .sf-wall .catch, .ts-on .sf-wall .seal-area { opacity: var(--ts-ink, 1); }

  /* 「下へ」の合図 */
  .ts-on .ts-cue {
    display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
    position: absolute; z-index: 5; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--ts-pre) + var(--ts-bar) + var(--ts-hid) + 10px);
    padding: 6px 14px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.24em; line-height: 1.4;
    color: var(--kon); text-decoration: none; white-space: nowrap;
  }
  .ts-on .ts-cue::after {
    content: ""; width: 9px; height: 9px; border-right: 2px solid var(--shu); border-bottom: 2px solid var(--shu);
    transform: rotate(45deg); animation: ts-nudge 1.8s ease-in-out infinite;
  }
  @keyframes ts-nudge { 0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: 0.5; } 55% { transform: translateY(3px) rotate(45deg); opacity: 1; } }

  /* 文字の層：ふつうにスクロールして、場面の上を流れる */
  .ts-on .ts-content {
    z-index: 2; margin-top: calc(-1 * var(--ts-h));
    padding-block: calc(var(--ts-h) * 1.5) calc(var(--ts-h) * 1.4);
    pointer-events: none; background: none;
  }
  .ts-on .ts-content .ts-intro, .ts-on .ts-content .ts-menu, .ts-on .ts-content .ts-cta { pointer-events: auto; }
  .ts-on .ts-intro { scroll-margin-top: 22vh; }
  .ts-on .ts-menu { margin-top: calc(var(--ts-h) * 0.42); scroll-margin-top: 8vh; }
  .ts-on .ts-feats { row-gap: calc(var(--ts-h) * 0.2); }
  .ts-on .ts-cta { margin-top: calc(var(--ts-h) * 0.3); }

  /* 白い段は、白くなった場面の下から重なって上がってくる */
  .ts-on .ts-trust { z-index: 1; margin-top: calc(var(--ts-h) * -0.46); background: none; }
  .ts-on .ts-trust::before { content: ""; display: block; height: calc(var(--ts-h) * 0.12); background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
}

/* ---- スマホ・タブレット縦（〜899px）：写真の下は白壁。
        1画面に収めるため、壁のことばは横書きにする（演出なしの表示では今までどおり縦書き） ---- */
@media (min-height: 500px) and (max-width: 899px) {
  .ts-on .sf-wall {
    position: relative; z-index: 2; flex: 1 1 auto; min-height: 0;
    display: grid; grid-template-columns: auto; justify-content: center; justify-items: center; align-content: center; gap: 12px 0;
    padding-bottom: calc(var(--ts-bar) + var(--ts-hid) + 52px);
    will-change: transform;
  }
  .ts-on .sf-wall .catch { grid-column: 1; grid-row: 1; writing-mode: horizontal-tb; text-align: center; font-size: clamp(19px, 5.9vw, 30px); line-height: 1.75; letter-spacing: 0.06em; }
  .ts-on .sf-wall .seal-area { grid-column: 1; grid-row: 2; justify-self: end; margin-right: 4%; margin-top: -4px; padding: 0; }
  .ts-on .sf-wall .seal { font-size: clamp(13px, 2.2vw, 16px); }
  .ts-on.js .catch span { animation-name: ts-ink-h; }
  @keyframes ts-ink-h { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* ---- パソコン・タブレット横（900px〜）：写真を横いっぱいに、その下に白い帯
        横長の画面（21:9 など）で写真が縦に入りきらないときは、
        1) まず写真の下の端（ガラス戸のあたり）を少しだけ切って高さを合わせ、
        2) それでも入らなければ写真ごと縮めて、左右の余白を同じ写真のぼかしで埋める ---- */
@media (min-height: 500px) and (min-width: 900px) {
  /* 写真に使える高さ＝開いた直後に見える場面の高さ − 下の帯 */
  .ts-on .ts-scene { --ts-avail: calc(var(--ts-h) - var(--ts-pre) - var(--ts-bar) - var(--ts-hid) - var(--ts-band)); }
  .ts-on .ts-scene > .sf {
    flex: 0 0 auto; background: transparent; align-self: center;
    width: min(100%, calc(var(--ts-avail) * 2.825));         /* 2.825 = 写真の幅 ÷ 切ってよい限りの高さ（写真の 92％） */
  }
  .ts-on .sf-crop { height: min(38.477vw, var(--ts-avail)); }
  @supports (width: 1cqw) {
    .ts-on .sf-crop { height: min(38.477cqw, var(--ts-avail)); }
  }
  /* 左右の余白：同じ写真をぼかして敷く（js が横長と判断したときだけ） */
  .ts-on .ts-scene.ts-wide::before {
    content: ""; position: absolute; inset: -48px; z-index: 0; pointer-events: none; will-change: transform;
    background: #4a4038 var(--ts-bg, none) center 42% / cover no-repeat;
    filter: blur(34px) brightness(0.84) saturate(1.08);
  }
  .ts-on .ts-wide .sf-bg {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.2%, #000 97.8%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 2.2%, #000 97.8%, transparent 100%);
  }
  /* 「スクロール」は、帯の下に場所があるときだけ出す（js が場所を測って is-fit を付ける） */
  .ts-on .ts-cue { display: none; }
  .ts-on .ts-cue.is-fit { display: inline-flex; }
  .ts-on .sf-wall { z-index: 2; transform-origin: 0 0; will-change: transform; }
  .ts-on .ts-first {
    display: block; position: relative; z-index: 3; flex: 1 0 0px;
    background: var(--kami); will-change: transform;
  }
  .ts-on .ts-first .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 20px 0; }
  .ts-on .ts-first-lead { font-family: var(--f-min); font-weight: 700; font-size: var(--fs-l); color: var(--kon); letter-spacing: 0.06em; line-height: 1.5; }
  .ts-on .ts-first .hero-actions { margin-top: 0; flex: 0 1 auto; }
  .ts-on .ts-first .hero-actions .btn { flex: 0 1 auto; min-width: 216px; }
  .ts-on .ts-first .hero-tel { margin-top: 0; display: grid; gap: 0; line-height: 1.35; }
  .ts-on .ts-first .hero-tel span { font-size: 0.75rem; }

  .ts-on .ts-intro h1 { font-size: clamp(2.5rem, 4.9vw, 4.5rem); line-height: 1.34; }
  .ts-on .ts-menu { margin-top: calc(var(--ts-h) * 0.5); }
  .ts-on .ts-feats { row-gap: calc(var(--ts-h) * 0.16); }
  .ts-on .ts-kicker { margin-bottom: calc(var(--ts-h) * 0.1); }
  .ts-on .ts-cta { margin-top: calc(var(--ts-h) * 0.26); }
}
@media (min-height: 500px) and (min-width: 1024px) {
  html.ts-on { --ts-top: 0px; --ts-bar: 0px; --ts-pre: 146px; }
}
@media (min-height: 700px) and (min-width: 900px) {
  /* 開いた直後の画面に、ボタンの帯が必ず見えるようにする（その分、写真の高さを決めるときに差し引く） */
  html.ts-on { --ts-band: 96px; }
  .ts-on .ts-first { flex-basis: calc(var(--ts-band) + var(--ts-pre) + var(--ts-bar) + var(--ts-hid)); }
}
@media (min-height: 500px) and (min-width: 900px) and (max-width: 1199px) {
  /* 幅が狭いときは、帯を1行に収めるため「ご相談と査定は無料です。」を省く（ボタンに「無料」とあるため） */
  .ts-on .ts-first-lead { display: none; }
}

/* ---- 印刷するときは、動きも白抜きの文字もやめて、上から順に黒い文字で ---- */
@media print {
  .hero.ts { background: none !important; }
  .ts-first, .ts-cue, .ts-glow, .ts-light { display: none !important; }
  .ts-on .ts-scene { position: static !important; height: auto !important; }
  .ts-on .ts-content { margin-top: 0 !important; padding-block: 24px !important; }
  .ts-on .ts-menu, .ts-on .ts-cta { margin-top: 32px !important; }
  .ts-on .ts-feats { row-gap: 32px !important; }
  .ts-on .ts-trust { margin-top: 0 !important; }
  .ts-on .ts-trust::before { display: none !important; }
  .ts-content, .ts-content h1, .ts-content h2, .ts-content h3, .ts-content p, .ts-content a, .ts-content span { color: #1e2338 !important; text-shadow: none !important; }
  .ts-feat .fuda { background: #1f2f63 !important; color: #fff !important; box-shadow: none !important; }
}
