/* ===================================
   Foundation (リセット・ベース設定)
=================================== */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background-color: #fff;
  color: #151515;
}

/* ===================================
   Layout (共通レイアウト構造)
=================================== */
.l-header {
  width: 100%;
  background-color: #9fc6fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.l-header__left {
  width: 90%;
  margin: 0 auto;
  display: flex;
}

.l-main {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  max-width: 350px;
  width: 90%;
  margin: 0 auto;
  padding: 20px 0 120px 0;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE10+ */
}
.l-main::-webkit-scrollbar {
  display: none;
}

/* ===================================
   Component (再利用可能パーツ)
=================================== */
.c-title {
  font-size: 28px;
  text-align: center;
  white-space: nowrap;
}
.c-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 24px;
}

.c-footer-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 0;
  border-top: 0.5px solid #151515;
  background-color: rgba(255, 255, 255, 0.6);
  z-index: 100;
}
.c-footer-nav__list {
  display: flex;
  align-items: center;
  height: 100%;
}
.c-footer-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}
.c-footer-nav__item:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.5px;
  height: 100%;
  background-color: #151515;
}
.c-footer-nav__icon {
  width: 40px;
  height: 40px;
}
.c-footer-nav__text {
  font-size: 0.75rem;
  color: #151515;
  margin-top: 12px;
}

/* ===================================
   Utility (使い捨てユーティリティ)
=================================== */
.u-text-center {
  text-align: center;
}
.u-mb-20 {
  margin-bottom: 20px;
}

.u-text-20 {
  font-size: 20px;
}

/* ===================================
   Project: Laundry (ランドリー利用状況)
=================================== */
.p-laundry__bg {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}
.p-laundry__list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.p-laundry__machine {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.p-laundry__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 70%;
}
.p-laundry__text-block {
  background-color: #fff;
  padding: 3%;
  text-align: center;
}
.p-laundry__text-block:last-child {
  padding: 5%;
}
.p-laundry__text {
  font-weight: 400;
  color: #151515;
}
.p-laundry__elapsed {
  text-align: center;
  margin-bottom: -4px;
}
.p-laundry__icon {
  width: 30%;
  height: auto;
  max-width: 200px;
}

/* ===================================
   Project: Bath (大浴場混雑状況)
=================================== */
.p-bath__bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}
.p-bath__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.p-bath__img {
  width: 70%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

/* ===================================
   Project: Breakfast (朝食会場混雑状況)
=================================== */
.p-breakfast__bg {
  position: fixed;
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  // iOS対策（擬似要素で背景を固定）
  &::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    z-index: -1;
  }
}
.p-breakfast__img {
  width: 70%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ===================================
   Project: Crowding Top (トップページ)
=================================== */
.p-crowding__bg {
  background-image: url(../img/top_bg.jpeg);
  height: 100vh;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  background-attachment: fixed; 
  z-index: 0;
  // iOS対応：擬似要素で背景を固定
  &::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: inherit;
    background-position: inherit;
    background-repeat: inherit;
    z-index: -1;
  }
}
.p-crowding__bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 1;
}
.p-crowding__inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  max-width: 350px;
  padding: 20px 0;
  width: 90%;
  margin: 0 auto;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 4;
  -webkit-overflow-scrolling: touch; // iOSの慣性スクロール
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE10+ */

  &::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
  }
}
.p-crowding__inner::-webkit-scrollbar {
  display: none;
}
.p-crowding__list {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.p-crowding__link {
  border: 0.5px solid #151515;
  border-radius: 10px;
  padding: 18px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.p-crowding__icon {
  width: 50px;
  height: 60px;
}
.p-crowding__icon-text {
  font-size: 1.2rem;
  color: rgba(21, 21, 21, 0.7);
  text-align: center;
  letter-spacing: 1.5px;
}
.p-crowding__text {
  font-size: 18px;
  color: #151515;
  margin-top: 20px;
}
@media (min-width: 600px) {
  .p-crowding__text {
    text-align: center;
  }
}
