/* トップの新しい FV（A案・2026-10-29）。site/home/fv.blade.php。旧テーマの CSS には触らず、.p-hero の中に閉じる */
.p-hero {
  --hero-ink: #1a1a1a;
  --hero-bg: #ffffff;
  --hero-soft: #f5f5f5;
  --hero-brand: linear-gradient(90deg, #2af598, #009efd); /* ホワイトパンダのブランドグラデーション（文字は白） */
  position: relative;
  display: grid;
  place-items: center;
  min-height: 34em;
  padding: 6em 1.5em 4em; /* 上はヘッダー（写真の上に重なる）の分 */
  overflow: hidden;
  background: var(--hero-soft);
  color: var(--hero-ink);
  font-family: 'Google Sans', 'Noto Sans JP', sans-serif;
}
.p-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 文字は写真に直接のせず白い面の上に（白ホリの白い写真でも溶けない） */
.p-hero__inner {
  position: relative;
  width: min(92%, 42em);
  padding: 2em 2.25em 1.75em;
  border-radius: 1em;
  background: rgba(255, 255, 255, .94);
  text-align: center;
}
.p-hero__stat {
  display: inline-block;
  margin: 0 0 .875em;
  padding: .25em 1em;
  border-radius: 999em;
  background: var(--hero-ink);
  color: var(--hero-bg);
  font-size: .8125em;
  white-space: nowrap;
}
.p-hero__stat b { font-size: 1.125em; }
.p-hero__title {
  margin: 0 0 .375em;
  font-size: 2.125em;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: balance;
}
.p-hero__lead { margin: 0 0 1.5em; font-size: .9375em; line-height: 1.7; text-wrap: balance; }
.p-hero__search { margin: 0; text-align: left; }
.p-hero__tabs { display: flex; gap: .25em; }
.p-hero__tab {
  padding: .5em 1.125em;
  border: 0;
  border-radius: .5em .5em 0 0;
  background: var(--hero-soft);
  color: var(--hero-ink);
  font: inherit;
  font-size: .875em;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.p-hero__tab.is-active { background: var(--hero-ink); color: var(--hero-bg); cursor: default; }
/* 「今日の空き」（2026-11-14）は /studio?available=today へのリンク。見た目はほかのタブと同じ */
.p-hero__tab--link, .p-hero__tab--link:hover { display: inline-block; text-decoration: none; color: var(--hero-ink); }
.p-hero__tab:focus-visible, .p-hero__submit:focus-visible, .p-hero__chips a:focus-visible { outline: .125em solid var(--hero-ink); outline-offset: .125em; }
.p-hero__kw { display: flex; border-radius: 0 .5em .5em .5em; background: var(--hero-soft); overflow: hidden; }
.p-hero__kw input[type="search"] {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: .875em 1em;
  border: 0;
  background: transparent;
  color: var(--hero-ink);
  font: inherit;
  font-size: .9375em;
  outline: 0;
}
.p-hero__kw input::placeholder { color: #8a8f94; }
.p-hero__submit {
  padding: 0 1.75em;
  border: 0;
  background: var(--hero-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.p-hero__sr { position: absolute; width: .0625em; height: .0625em; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p-hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5em; margin: 1.125em 0 0; padding: 0; list-style: none; }
.p-hero__chips a {
  display: block;
  padding: .375em .875em;
  border-radius: 999em;
  background: var(--hero-soft);
  color: var(--hero-ink);
  font-size: .8125em;
  text-decoration: none;
  white-space: nowrap;
}
.p-hero__chips a:hover { background: var(--hero-ink); color: var(--hero-bg); }
.p-hero__credit {
  position: absolute;
  right: 1em;
  bottom: 1em;
  padding: .25em .75em;
  border-radius: .375em;
  background: rgba(255, 255, 255, .9);
  color: var(--hero-ink);
  font-size: .75em;
  text-decoration: none;
}
.p-hero__credit:hover { text-decoration: underline; }

/* B案（?v=new&fv=b）。左に見出しと検索、右に写真3件。文字と写真を重ねない */
.p-hero--b {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  place-items: stretch; /* .p-hero の中央寄せを打ち消す（写真の列が幅0になるため） */
  min-height: 0;
  padding: 3.75em 0 0; /* 上はヘッダー（白地・3.75em）の分 */
  background: var(--hero-bg);
}
.p-hero--b .p-hero__side { display: flex; flex-direction: column; justify-content: center; padding: 3em 2.5em 3em max(2.5em, calc((100vw - 80em) / 2)); }
.p-hero--b .p-hero__title { margin-bottom: .5em; font-size: 2em; text-align: left; }
.p-hero__count { font-size: 1.125em; }
.p-hero--b .p-hero__lead { text-align: left; }
.p-hero--b .p-hero__chips { justify-content: flex-start; }
.p-hero__slides { position: relative; min-height: 32em; overflow: hidden; background: var(--hero-soft); }
.p-hero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.2s ease; }
.p-hero__slide.is-active { opacity: 1; }
.p-hero__slide img { width: 100%; height: 100%; object-fit: cover; }
.p-hero__card { position: absolute; left: 1.25em; bottom: 1.25em; max-width: calc(100% - 2.5em); }
.p-hero__card a {
  display: grid;
  gap: .125em;
  padding: .875em 1.125em;
  border-radius: .625em;
  background: rgba(255, 255, 255, .95);
  color: var(--hero-ink);
  font-size: .8125em;
  text-decoration: none;
}
.p-hero__card a:hover .p-hero__card-name { text-decoration: underline; }
.p-hero__card-name { font-size: 1.125em; }
.p-hero__dots { position: absolute; top: 1.25em; right: 1.25em; display: flex; gap: .375em; }
.p-hero__dots i { width: .5em; height: .5em; border-radius: 50%; background: rgba(26, 26, 26, .25); } /* 白い写真でも見えるように */
.p-hero__dots i.is-active { background: var(--hero-ink); }
@media (prefers-reduced-motion: reduce) { .p-hero__slide { transition: none; } }

/* トップのヘッダー（PC）は旧テーマでは透明で写真に重なる。写真がランダムで暗いこともあるので、新しい FV のときは白地にする（このファイルは新しい FV のときだけ読む） */
.home header.site.pc { background-color: #fff; }

/* エリア・条件のモーダル */
.p-hero__dialog {
  width: min(92%, 40em);
  max-height: 80vh;
  padding: 1.5em 1.75em;
  border: 0;
  border-radius: 1em;
  background: var(--hero-bg);
  color: var(--hero-ink);
  text-align: left;
}
.p-hero__dialog::backdrop { background: rgba(0, 0, 0, .5); }
.p-hero__dialog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1em; }
.p-hero__dialog-title { margin: 0; font-size: 1.125em; font-weight: 700; }
.p-hero__close { width: 2em; height: 2em; border: 0; border-radius: .5em; background: none; color: var(--hero-ink); font-size: 1.25em; line-height: 1; cursor: pointer; }
.p-hero__close:hover { background: var(--hero-soft); }
.p-hero__group { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: .5em 1em; padding: .625em 0; }
.p-hero__group-title { margin: 0; padding-top: .25em; font-size: .875em; font-weight: 700; }
.p-hero__links { display: flex; flex-wrap: wrap; gap: .375em; margin: 0; padding: 0; list-style: none; }
.p-hero__links a {
  display: block;
  padding: .25em .75em;
  border-radius: .375em;
  background: var(--hero-soft);
  color: var(--hero-ink);
  font-size: .875em;
  text-decoration: none;
  white-space: nowrap;
}
.p-hero__links a:hover { background: var(--hero-ink); color: var(--hero-bg); }
.p-hero__more { margin: 1em 0 0; font-size: .875em; text-align: right; }
.p-hero__more a { color: var(--hero-ink); }

@media (max-width: 769px) {
  .p-hero { min-height: 0; padding: 5em 1em 3.5em; }
  .p-hero__inner { width: 100%; padding: 1.5em 1.125em 1.25em; }
  .p-hero__title { font-size: 1.5em; }
  .p-hero__lead { font-size: .875em; }
  .p-hero__kw input[type="search"] { font-size: 1em; } /* 16px 未満だと iOS で入力時に拡大される */
  .p-hero__submit { padding: 0 1.25em; }
  .p-hero__credit { right: .75em; bottom: .75em; }
  .p-hero__dialog { padding: 1.25em 1.125em; }
  .p-hero__group { grid-template-columns: minmax(0, 1fr); gap: .375em; }
  /* B案のスマホは検索を先に、写真を下に */
  .p-hero--b { grid-template-columns: minmax(0, 1fr); padding: 0; } /* スマホのヘッダーは FV に重ならない */
  .p-hero--b .p-hero__side { padding: 1.75em 1em 1.5em; }
  .p-hero--b .p-hero__title { font-size: 1.5em; }
  .p-hero__slides { min-height: 15em; }
  .p-hero__card { left: .75em; bottom: .75em; max-width: calc(100% - 1.5em); }
}
