/* トップの入口（ヘアと湯を半分ずつ）と湯への帯。index.html と main_tmp_pc.html の両方から読む
   6 月のトップ案の写真の敷き詰めとメタル文字に、湯の足もとの灯りを合わせる。下の欄は既存のまま（mily）なので、ここだけ px で書く
   2 つの入口は「ロゴ・一言・説明・リンク」を同じ組みで積む。段の高さが左右で同じなので、横に並ぶ PC で
   ロゴの中の HideOut とリンクが同じ高さにそろう。説明が 2 行に折れると崩れるので、説明は 1 行に収める（2026-11-13） */
/* 飛んだ先の頭をヘッダーの下端に合わせる。--hdr-h は top-doors.js がヘッダーの実寸（幅で 55〜70px）を入れる。−1px も JS と同じ */
html { scroll-padding-top: calc(var(--hdr-h, 70px) - 1px); }

.doors {
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --silver: linear-gradient(135deg, #f5f7f9 0%, #b3b9bf 34%, #eef1f3 56%, #8e959c 100%);
  --copper: linear-gradient(135deg, #ffe6c2 0%, #f2a445 36%, #ffd9a3 58%, #b9701f 100%);
  --logo-h: min(150px, 34svh);
  display: grid; grid-template-rows: 1fr 1fr; gap: 2px; background: #0b0c0d;
}
.doors .door { position: relative; display: flex; align-items: center; justify-content: center; min-height: calc((100vh - 70px) / 2); min-height: calc((100svh - 70px) / 2); overflow: hidden; color: #edeff1; text-decoration: none; touch-action: manipulation; }
.doors .door:hover { color: #edeff1; text-decoration: none; }
.doors .door:focus-visible { outline: 2px solid #fc9f2f; outline-offset: -4px; }
.doors p { margin: 0; }
.doors .door__metal { -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; }
.doors .door__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 16px 20px; text-align: center; }

/* ロゴ: 2 つとも同じ高さ。この高さで、ロゴの中の HideOut の字の大きさも左右で同じになる */
.doors .door__logo { display: block; width: auto; height: var(--logo-h); }
/* 一言（大人の隠れ家／お風呂ではありません。）: 字の大きさ・行の高さを左右で同じにする */
.doors :is(.door__jp, .door__sign) { margin-top: 10px; font-family: var(--serif); font-size: 15px; font-weight: 600; line-height: 1.6; letter-spacing: .4em; text-indent: .4em; white-space: nowrap; }
.doors .door__text { margin-top: 6px; font-size: 12px; line-height: 1.7; letter-spacing: .12em; white-space: nowrap; }

/* 線つきの文字リンク */
.doors .door__link { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; font-family: var(--serif); font-size: 14px; font-weight: 500; letter-spacing: .18em; line-height: 1.5; }
.doors .door__link::before { content: ""; width: 34px; height: 1px; transition: width .3s; }
@media (hover: hover) { .doors .door:hover .door__link::before { width: 54px; } }
@media (hover: none) { .doors .door:active .door__link { opacity: .65; } }

/* ヘア: 今のトップの写真を敷き詰める */
/* PC もスマホと同じ 3 列 2 段。縦長の写真が縦長のマスに入り、どの写真も髪型の全体が見える（PC を 2 列 3 段にすると、横長のマスで髪の真ん中だけが大きく写る） */
.door--hair .door__photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; }
/* 写真はマスいっぱいに伸ばす。height: 100% だと Safari（WebKit）がグリッド全体の高さで描き、写真の上の部分だけが大きく寄って見えた（2026-11-13） */
.door--hair .door__photos img { display: block; width: 100%; height: auto; min-height: 0; align-self: stretch; justify-self: stretch; object-fit: cover; }
.door--hair::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 78% at center, rgba(11, 12, 13, .5) 0%, rgba(11, 12, 13, .58) 58%, rgba(11, 12, 13, .84) 100%); }
/* 細い白線が明るい写真に溶けないよう、まわりだけ少し沈める。
   下へのずらしは、湯のロゴと HideOut の字の位置を合わせる分（ロゴ画像の中で、ヘアの字は高さの 0.66% だけ上にある。実測） */
.door--hair .door__logo { filter: drop-shadow(0 0 14px rgba(11, 12, 13, .55)); translate: 0 calc(var(--logo-h) * .0066); }
.door--hair .door__jp { background-image: var(--silver); }
.door--hair .door__text { color: #c9cdd1; }
.door--hair .door__link::before { background: var(--silver); }

/* 湯: 足もとの灯り */
.door--yu { background: radial-gradient(80% 62% at 50% 100%, rgba(252, 159, 47, .62), rgba(107, 50, 8, .34) 55%, transparent 100%), #0c0a08; }
.door--yu .door__sign { background-image: var(--copper); }
.door--yu :is(.door__text, .door__link) { color: #efe7da; }
.door--yu .door__link::before { background: var(--copper); }

@media (min-width: 769px) {
  .doors { --logo-h: min(330px, 44vh); grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .doors .door { min-height: min(calc(100vh - 70px), 760px); min-height: min(calc(100svh - 70px), 760px); }
  .doors :is(.door__jp, .door__sign) { margin-top: 20px; font-size: 19px; }
  .doors .door__text { margin-top: 12px; font-size: 13px; }
  .doors .door__link { margin-top: 26px; }
}

/* お知らせの下の、湯への帯 */
.yu-band { --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif; --copper: linear-gradient(135deg, #ffe6c2 0%, #f2a445 36%, #ffd9a3 58%, #b9701f 100%); padding: 68px 26px; background: radial-gradient(60% 70% at 50% 100%, rgba(252, 159, 47, .42), rgba(107, 50, 8, .24) 55%, transparent 100%), #0c0a08; text-align: center; color: #efe7da; }
.yu-band .yu-band__lat { display: block; margin: 0; font-family: var(--serif); font-size: 14px; letter-spacing: .12em; line-height: 1.5; color: #fc9f2f; }
.yu-band h2 { width: fit-content; margin: 6px auto 0; padding: 0; background: var(--copper); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--serif); font-size: clamp(23px, 5.6vw, 34px); font-weight: 600; line-height: 1.5; letter-spacing: .14em; }
.yu-band h2::before, .yu-band h2::after { content: none; }
.yu-band .yu-band__text { margin: 18px 0 26px; font-size: 15px; line-height: 1.9; word-break: keep-all; overflow-wrap: anywhere; color: #efe7da; }
.yu-band__btn { display: inline-flex; align-items: center; justify-content: center; block-size: 52px; padding-inline: 28px; border-radius: 1px; background: linear-gradient(135deg, #ffc176, #f49a2e); color: #0b0c0d; font-family: var(--serif); font-size: 14px; font-weight: 600; letter-spacing: .12em; touch-action: manipulation; }
a.yu-band__btn, a.yu-band__btn:hover { color: #0b0c0d; text-decoration: none; }
.yu-band__btn span { text-box: trim-both cap alphabetic; }
@media (hover: hover) { .yu-band__btn:hover { filter: brightness(1.1); } }
@media (hover: none) { .yu-band__btn:active { opacity: .7; } }

/* ヘアの Instagram の欄（トップ）: 湯の欄と同じく、動画の投稿に印を付け、動画の本体が取れない投稿（著作権のある音源のリール）は
   拡大表示で「再生の印つきサムネイル＋Instagramで動画を見る」にする。動きは _include/instagram.js の data-video-link="instagram"（2026-11-24 主の指示） */
.integration--Instagram .api-image { position: relative; display: block; }
.integration--Instagram .api-image.is-video::after { content: ""; position: absolute; top: 10px; right: 10px; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .7)); pointer-events: none; }
.media-play { position: relative; display: block; }
.media-play .media-img { width: 100%; }
.media-play__icon { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 50%; background: rgba(0, 0, 0, .5); pointer-events: none; }
.media-play__icon::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.media-play__note { margin-top: 12px; font-size: 13px; color: #555; }
