/*
 * /about/・/floor/・/use-cases/・/price/ 専用のスタイル。style.css・animation.css のあとに読む
 * （同じ詳細度のルールで後勝ちさせるため）。クラスはすべて pg- で始める。
 * style.css は article.studio・article.contact のような一般的な名前を使っているので、
 * 接頭辞で衝突を避ける。新しい色は足さない（#000・#fff・#ccc・#333・#666・#4fc7c5・#00b2a6・#d4e4e0・#4e6761）。
 */

/* ---- アンカーの位置合わせ ----
   style.css の :target は 5ex だけで、固定ヘッダ（90px、SP は 60px）の下に見出しが隠れるため。 */
.pg-usecase,
.pg-room,
[id].pg-section {
  scroll-margin-top: 110px;
}

/* ---- ヒーロー ----
   features-visual は h1 に英字の大きな見た目を当てており、h1 を日本語にすると打ち消しが要るため、
   値を写して独立させた。英字ラベルは p、h1 は日本語のページ名。 */
article.pg-visual {
  margin-top: 90px;
  width: 100%;
  height: 600px;
  color: #fff;
  background-position: center;
  background-size: cover;
}

article.pg-visual .pg-visual__inner {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pg-visual__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pg-visual__label {
  position: relative;
  text-align: center;
  color: #fff;
  font-size: 3rem;
  line-height: 1.1;
  padding: 1.5rem;
  margin-bottom: 55px;
}

.pg-visual__label::after {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 20%);
  width: 40%;
  height: 4px;
  content: "";
  border-radius: 3px;
  background: #4fc7c5;
}

.pg-visual__title {
  font-size: 1.5rem;
  line-height: 1.5;
  color: #fff;
  text-align: center;
  padding: 0 16px;
}

.pg-visual--price {
  background-image: url(/assets/images/features-img12.jpg);
}

.pg-visual--floor {
  background-image: url(/assets/images/bg03.jpg);
}

.pg-visual--use-cases {
  background-image: url(/assets/images/features-img04.jpg);
}

.pg-visual--about {
  background-image: url(/assets/images/features-img09.jpg);
}

/* ---- パンくず ---- */
nav.pg-breadcrumb {
  background: #000;
  color: #fff;
  font-size: 0.85rem;
  padding: 16px 55px;
}

nav.pg-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.pg-breadcrumb li + li::before {
  content: "＞";
  margin: 0 0.6em;
}

nav.pg-breadcrumb a {
  color: #4fc7c5;
}

/* ---- セクションの共通部品 ---- */
article.pg-section {
  background: #000;
  color: #fff;
  padding: 110px 55px;
}

.pg-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pg-eyebrow {
  font-family: "mrs-eaves", serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: #4fc7c5;
  text-align: center;
  margin-bottom: 16px;
}

.pg-eyebrow--left {
  text-align: left;
}

.pg-heading {
  position: relative;
  text-align: center;
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 55px;
}

.pg-heading::after {
  position: absolute;
  bottom: -10px;
  left: calc(50% - 30px);
  width: 60px;
  height: 4px;
  content: "";
  border-radius: 3px;
  background: #4fc7c5;
}

/* リードが続くときは、見出しとの間を詰める */
.pg-heading--tight {
  margin-bottom: 2.5rem;
}

.pg-lead {
  text-align: center;
  font-size: 1.1rem;
  line-height: 2;
  max-width: 760px;
  margin: 0 auto 55px;
}

.pg-text-link {
  color: #4fc7c5;
  text-decoration: none;
}

.pg-text-link::before {
  content: "＞ ";
}

.pg-text-link:hover {
  text-decoration: underline;
}

.pg-inline-link {
  color: #4fc7c5;
  text-decoration: underline;
}

/* ---- ボタン ---- */
.pg-button {
  display: inline-block;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;
  padding: 1rem 4rem;
  font-weight: bold;
  border: 2px solid #00b2a6;
  background: #00b2a6;
  color: #fff;
  border-radius: 100vh;
  transition: 0.5s;
}

.pg-button:hover {
  color: #00b2a6;
  background: #fff;
}

.pg-button--outline {
  background: transparent;
  border-color: #fff;
}

.pg-button--outline:hover {
  color: #000;
  background: #fff;
}

/* ---- お問い合わせへの導線 ---- */
article.pg-cta {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(/assets/images/bg04.jpg);
  background-size: cover;
  background-position: center;
  color: #fff;
  text-align: center;
  padding: 110px 55px;
}

.pg-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pg-cta__note {
  margin-top: 24px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #ccc;
}

/* ---- 関連ページ ---- */
nav.pg-related {
  background: #000;
  color: #fff;
  padding: 55px;
}

.pg-related__title {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.pg-related__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pg-related__list a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  border: 1px solid #666;
  padding: 24px;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.3s;
}

.pg-related__list a:hover {
  border-color: #4fc7c5;
}

.pg-related__en {
  font-family: "mrs-eaves", serif;
  letter-spacing: 0.1em;
  color: #4fc7c5;
}

.pg-related__name {
  font-size: 1.1rem;
}

.pg-related__arrow {
  align-self: flex-end;
  color: #4fc7c5;
}

/* ---- /price/ ---- */
table.pg-price-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.pg-price-table th {
  background: #d4e4e0;
  color: #4e6761;
  text-align: left;
  padding: 18px 24px;
}

.pg-price-table td {
  padding: 18px 24px;
  border-bottom: 1px solid #666;
}

.pg-price-table th:last-child,
.pg-price-table td:last-child {
  text-align: right;
}

.pg-price-table td:nth-child(2) {
  color: #ccc;
}

.pg-price-table__price {
  font-size: 1.5rem;
  white-space: nowrap;
}

ul.pg-notes {
  max-width: 900px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  line-height: 1.8;
  color: #ccc;
}

.pg-terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
}

.pg-terms__box {
  background: #333;
  border-radius: 10px;
  padding: 55px;
}

.pg-terms__box h3 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pg-terms__box h3::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 0.8rem;
  background: #4fc7c5;
}

.pg-terms__box p {
  color: #ccc;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.pg-terms__dl dt {
  margin-top: 1.2rem;
  font-size: 1.05rem;
}

.pg-terms__dl > div:first-child dt {
  margin-top: 0;
}

.pg-terms__dl dd {
  color: #ccc;
  line-height: 1.9;
  font-size: 0.95rem;
}

.pg-terms__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-terms__list li {
  position: relative;
  padding-left: 18px;
  margin-top: 0.8rem;
  line-height: 1.8;
}

.pg-terms__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: #4fc7c5;
}

.pg-terms__more {
  margin-top: 55px;
  text-align: center;
}

ol.pg-flow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.pg-flow li {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid #666;
}

.pg-flow__num {
  font-family: "mrs-eaves", serif;
  font-size: 2.5rem;
  line-height: 1;
  color: #4fc7c5;
}

.pg-flow h3 {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.pg-flow p {
  color: #ccc;
  line-height: 1.9;
}

/* ---- /floor/ ---- */
.pg-floor {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 55px;
  align-items: center;
}

figure.pg-floor-map {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

figure.pg-floor-map img {
  width: 100%;
  height: auto;
}

/* 位置は FLOOR_ROOMS の rect の中心（図に対する %）。content.ts とずれていないかはテストで見る */
.pg-floor-map__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4fc7c5;
  color: #000;
  font-family: "mrs-eaves", serif;
  font-weight: bold;
  text-decoration: none;
}

.pg-floor-map__pin--studio { top: 20.5%; left: 35.75%; }
.pg-floor-map__pin--lounge { top: 53.5%; left: 37.5%; }
.pg-floor-map__pin--booth1 { top: 41.75%; left: 13.95%; }
.pg-floor-map__pin--booth2 { top: 61.7%; left: 13.85%; }
.pg-floor-map__pin--meeting-a { top: 74%; left: 17%; }
.pg-floor-map__pin--meeting-b { top: 89%; left: 20%; }

ol.pg-floor-legend {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-floor-legend a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #666;
  color: #fff;
  text-decoration: none;
}

.pg-floor-legend a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.pg-floor-legend__num {
  flex: 0 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #4fc7c5;
  color: #000;
  font-family: "mrs-eaves", serif;
  font-weight: bold;
}

.pg-floor-legend__name {
  flex: 0 0 auto;
}

.pg-floor-legend__en {
  flex: 1;
  color: #ccc;
  font-size: 0.9rem;
}

.pg-floor-legend__area {
  font-family: "mrs-eaves", serif;
  font-size: 1.05rem;
  color: #4fc7c5;
  text-align: right;
}

article.features-detail .pg-room img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

article.features-detail .pg-room h3 {
  line-height: 1.5;
}

/* 読み上げで室名と英名が続かないよう HTML に空白を入れたので、その分だけ余白を減らして見た目を保つ */
.pg-room__en {
  margin-left: 0.25em;
  font-size: 0.9rem;
  color: #ccc;
}

article.features-detail .pg-room .pg-room__area {
  margin: 0 auto 1rem;
  text-align: center;
  font-family: "mrs-eaves", serif;
  font-size: 1.1rem;
  color: #4fc7c5;
}

article.features-detail .pg-room .pg-text-link {
  display: block;
  text-align: center;
  line-height: 1.7;
  text-wrap: balance;
}

/* features-detail の見出しは section（#333）の中に置く。外に置くと白地に白い字になる */
article.features-detail .pg-heading {
  margin-bottom: 2.5rem;
}

/* ---- /use-cases/ ---- */
nav.pg-toc ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav.pg-toc a {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border: 1px solid #4fc7c5;
  border-radius: 100vh;
  color: #fff;
  text-decoration: none;
  text-wrap: balance;
  transition: 0.3s;
}

nav.pg-toc a:hover {
  background: #4fc7c5;
  color: #000;
}

.pg-usecases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  margin-top: 55px;
}

section.pg-usecase {
  display: flex;
  flex-direction: column;
  background: #333;
  border-radius: 10px;
  padding: 40px 32px;
}

.pg-usecase__num {
  font-family: "mrs-eaves", serif;
  font-size: 2rem;
  line-height: 1;
  color: #4fc7c5;
  margin-bottom: 0.8rem;
}

section.pg-usecase h2 {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

section.pg-usecase p {
  line-height: 1.9;
}

.pg-usecase__links {
  margin: auto 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  line-height: 1.7;
}

.pg-usecase__links li {
  text-wrap: balance;
}

.pg-usecase__links li + li {
  margin-top: 0.4rem;
}

/* ---- /about/ ----
   width・height 属性を付けた img が、属性の高さのまま縦に伸びないようにする */
article.features-about#stance img {
  width: 100%;
  height: auto;
  align-self: center;
}

ul.pg-stance-points {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.pg-stance-points li {
  padding-left: 12px;
  border-left: 2px solid #4fc7c5;
}

.pg-stance-points li + li {
  margin-top: 1rem;
}

.pg-stance-points strong {
  display: block;
  font-weight: inherit;
  font-size: 1.05rem;
}

.pg-stance-points span {
  display: block;
  color: #ccc;
  font-size: 0.9rem;
  line-height: 1.7;
}

.pg-benefit__num {
  display: block;
  text-align: center;
  font-family: "mrs-eaves", serif;
  font-size: 2rem;
  line-height: 1;
  color: #4fc7c5;
}

ul.pg-record {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
}

.pg-record li {
  padding: 40px 16px;
  text-align: center;
}

.pg-record li + li {
  border-left: 1px solid #666;
}

.pg-record__num {
  display: block;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #4fc7c5;
}

.pg-record__label {
  display: block;
  margin-top: 0.8rem;
  color: #fff;
}

.pg-record + .pg-lead {
  margin-top: 40px;
  margin-bottom: 0;
}

.pg-record__note {
  margin-top: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* 部屋カードは 3 列だと 1200px 以下で窮屈（リンクが折り返して 1 字だけ残る）ので 2 列にする。
   features-detail の SP の 1 列（834px 以下）は style.css が持つが、ここの詳細度が勝つので書き直す */
@media screen and (max-width: 1200px) {
  article.features-detail#rooms ul {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 導入メリットは 1100px 以下で 1 列（3 列だと本文の幅が 120px 台になる） */
@media screen and (max-width: 1100px) {
  article.features-detail#benefits ul {
    grid-template-columns: 1fr;
    gap: 3em;
  }

  article.features-detail#benefits li {
    max-width: 640px;
    margin: 0 auto;
  }

  /* 2 列の箱・カードの内側が狭くなるので、余白と文字を詰める */
  .pg-usecases {
    grid-template-columns: repeat(2, 1fr);
  }

  section.pg-usecase {
    padding: 40px 24px;
  }

  .pg-usecase__links {
    font-size: 0.95rem;
  }

  .pg-terms__box {
    padding: 40px 32px;
  }

  .pg-record__num {
    font-size: 2rem;
  }

  /* 図と凡例を 2 列にすると凡例が 220px 台になり、面積と英名が折り返すので縦に並べる */
  .pg-floor {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  ol.pg-floor-legend {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
  }
}

@media screen and (max-width: 834px) {
  .pg-usecase,
  .pg-room,
  [id].pg-section {
    scroll-margin-top: 80px;
  }

  article.pg-visual {
    margin-top: 60px;
    height: calc(80lvh - 60px);
    max-height: 600px;
  }

  article.pg-visual .pg-visual__inner {
    grid-template-columns: 1fr;
  }

  .pg-visual__label {
    font-size: 2rem;
    padding: 1.5rem 0 0;
    margin-bottom: 3rem;
  }

  nav.pg-breadcrumb {
    padding: 12px 16px;
  }

  article.pg-section {
    padding: 3rem 16px;
  }

  .pg-eyebrow {
    font-size: 1rem;
  }

  /* style.css が SP では OUR STANCE の h2 を中央に寄せるので、ラベルも合わせる */
  .pg-eyebrow--left {
    text-align: center;
  }

  .pg-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .pg-heading--tight {
    margin-bottom: 1.5rem;
  }

  .pg-lead {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 2rem;
  }

  .pg-text-link {
    text-decoration: underline;
  }

  .pg-button {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 1rem;
  }

  article.pg-cta {
    padding: 4rem 16px;
  }

  .pg-cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  nav.pg-related {
    padding: 3rem 16px;
  }

  .pg-related__list {
    grid-template-columns: 1fr;
  }

  .pg-price-table th,
  .pg-price-table td {
    padding: 12px 8px;
    font-size: 0.9rem;
  }

  .pg-price-table__price {
    font-size: 1.1rem;
  }

  .pg-terms {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pg-terms__box {
    padding: 32px 16px;
  }

  .pg-terms__more {
    margin-top: 2rem;
  }

  .pg-flow li {
    grid-template-columns: 64px 1fr;
  }

  .pg-flow__num {
    font-size: 2rem;
  }

  .pg-floor {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pg-floor-map__pin {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }

  nav.pg-toc ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  nav.pg-toc a {
    display: block;
    padding: 0.6rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
  }

  article.features-detail#rooms ul {
    grid-template-columns: 1fr;
  }

  .pg-usecases {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  section.pg-usecase {
    padding: 32px 16px;
  }

  ul.pg-record {
    grid-template-columns: 1fr;
  }

  .pg-record li + li {
    border-left: none;
    border-top: 1px solid #666;
  }
}
