/**
 * 2つ以上のページで共通の、ユーティリティのclassで表せない指定と、くり返す見出し・ボタン・ページの冒頭・カード・
 * ヘッダー・フッターの指定。classの名前は「site-」で始める。1つのページだけの指定は、ページのCSSに書く。
 * site.jsonのcommon.cssで、components.cssの後に読み込む。
 *
 * 値はFigma（1600pxの幅）の値を、xl（1200px以上、ルートが画面の幅の1%）の大きさにしている。
 * 1600pxの幅でルートが16pxになるため、xlの値はFigmaのpxを16で割ったremと同じ。
 */

/* ---------- 影 ---------- */

/* Figmaの「見出しセット」（英字の小見出し・見出し）に付いた4層の影と、写真・カードの3層の影。
 * 見出しはFigmaのdrop shadow（ぼかし48・24・12・6）を、文字の影（text-shadow）で再現する。 */
:root {
  --heading-shadow:
    0 1rem 3rem rgb(0 0 0 / 0.12),
    0 0.5rem 1.5rem rgb(0 0 0 / 0.08),
    0 0.25rem 0.75rem rgb(0 0 0 / 0.04),
    0 0.125rem 0.375rem rgb(0 0 0 / 0.02);
  --photo-shadow:
    0 0.5rem 1.5rem 0.25rem rgb(0 0 0 / 0.08),
    0 0.25rem 0.75rem 0.125rem rgb(0 0 0 / 0.08),
    0 0.125rem 0.375rem 0.0625rem rgb(0 0 0 / 0.08);
}

/* ---------- 区画 ---------- */

.site-section {
  position: relative;
  padding-block: 4.5rem;

  @media screen and (min-width: 768px) {
    padding-block: 5rem;
  }
  @media screen and (min-width: 1200px) {
    padding-block: 7.5rem;
  }
}

.site-section--short {
  padding-block: 3.5rem;

  @media screen and (min-width: 1200px) {
    padding-block: 5rem;
  }
}

/* 下の余白だけをFigmaの80pxにする区画（カードの並びで終わる区画など） */
.site-section--pb-80 {
  @media screen and (min-width: 1200px) {
    padding-bottom: 5rem;
  }
}

.site-inner {
  position: relative;
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
}

/* 幅1000pxの中央の段（会社情報の表） */
.site-inner--narrow {
  max-width: 62.5rem;
}

/* ---------- 文字 ---------- */

/* 英字の小見出し。左上の短い斜線は、Figmaの「装飾 / 短い斜線」 */
.site-eyebrow {
  position: relative;
  padding-left: 0.25rem;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--gold);
  white-space: pre-line;
  text-shadow: var(--heading-shadow);

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: -0.125rem;
    width: 0.5rem;
    height: 1px;
    background-color: var(--gold);
    transform: rotate(-45deg);
    transform-origin: right center;
  }

  @media screen and (min-width: 1200px) {
    font-size: 1rem;
  }
}

.site-eyebrow--small {
  font-size: 0.75rem;

  @media screen and (min-width: 1200px) {
    font-size: 0.75rem;
  }
}

.site-eyebrow--plain {
  padding-left: 0;

  &::before {
    content: none;
  }
}

/* 区画の見出し（Figmaの40px・Light） */
.site-heading {
  word-break: auto-phrase;
  font-weight: 300;
  font-size: 1.5rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--green);
  text-shadow: var(--heading-shadow);

  @media screen and (min-width: 768px) {
    font-size: 1.625rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 1.75rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 2.5rem;
  }
}

/* 小見出し（Figmaの28px・Light） */
.site-title {
  word-break: auto-phrase;
  font-weight: 300;
  font-size: 1.25rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--green);

  @media screen and (min-width: 768px) {
    font-size: 1.25rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 1.3125rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 1.75rem;
  }
}

.site-title--ink {
  color: var(--ink);
}

/* 事業名などの、英字の下の和文の添え字（Figmaの18px・Light・金） */
.site-label {
  word-break: auto-phrase;
  font-weight: 300;
  font-size: 0.9375rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-shadow: var(--heading-shadow);

  @media screen and (min-width: 1200px) {
    font-size: 1.125rem;
  }
}

/* 見出しセットの中の小見出し（トップの事業・カードの見出し） */
.site-title--shadow {
  text-shadow: var(--heading-shadow);
}

/* 本文（Figmaの16px・行間2）。1行を全角45字以内にする（撮影の検査は、幅÷文字の大きさで数える） */
.site-text {
  word-break: auto-phrase;
  max-width: 45em;
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--ink);

  @media screen and (min-width: 768px) {
    font-size: 0.9375rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 0.875rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 1rem;
  }
}

/* Figmaで区画の幅いっぱいに置く本文（料金の注記・フォームの案内など）と、プライバシーポリシーの本文 */
.site-text--full,
.site-privacy .site-text {
  max-width: none;
}

.site-text--note {
  color: var(--gold);
}

.site-text--wide {
  line-height: 2.4;
}

/* ---------- ボタン ---------- */

/* 線のボタン。ホバーで塗りが現れ、文字と矢印が白になる */
.site-button {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border: 1px solid var(--green);
  color: var(--green);
  background-color: transparent;
  text-decoration: none;
  transition:
    background-color var(--duration) var(--easing),
    color var(--duration) var(--easing);

  & p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    color: inherit;

    @media screen and (min-width: 1200px) {
      font-size: 0.875rem;
    }
  }

  & img {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--duration) var(--easing);
  }

  & .site-button-hover {
    display: none;
  }

  &:hover,
  &:focus-visible {
    background-color: var(--green);
    color: var(--snow);

    & .site-button-icon {
      display: none;
    }
    & .site-button-hover {
      display: block;
      transform: translateX(0.25rem);
    }
  }
}

/* 文字だけのリンク（カードの「詳しく見る」） */
.site-more {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--gold);
  text-decoration: none;

  & p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    color: inherit;

    @media screen and (min-width: 1200px) {
      font-size: 0.875rem;
    }
  }

  & img {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform var(--duration) var(--easing);
  }
}

a:hover .site-more img,
a:focus-visible .site-more img,
.site-more:hover img {
  transform: translateX(0.25rem);
}

/* ---------- 写真 ---------- */

.site-photo {
  position: relative;
  overflow: hidden;
  box-shadow: var(--photo-shadow);

  & > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.site-photo--flat {
  box-shadow: none;
}

/* ---------- カード ---------- */

.site-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--snow);
  border: 1px solid var(--green);

  @media screen and (min-width: 1200px) {
    gap: 1.25rem;
    padding: 2rem;
  }
}

.site-card--gold {
  border-color: var(--gold);

  @media screen and (min-width: 1200px) {
    gap: 1.5rem;
    padding: 2.5rem;
  }

  & .site-card-rule {
    background-color: var(--gold);
  }
}

.site-card-rule {
  height: 1px;
  background-color: var(--green);
}

/* 薄い地の囲み（確認事項・選ぶ前のポイントなど） */
.site-box {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--cream);

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    gap: 3rem;
  }
  @media screen and (min-width: 1200px) {
    padding: 2rem;
  }
}

/* 白い地の囲み（薄い地の区画の上に置くとき） */
.site-box--white {
  background-color: var(--snow);
}

/* 区切り線のある表（会社情報・施工概要・お知らせいただきたい内容） */
.site-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.site-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid var(--line);

  @media screen and (min-width: 768px) {
    flex-direction: row;
    gap: 2rem;
  }
  @media screen and (min-width: 1200px) {
    gap: 5rem;
    padding-block: 1.5rem;
  }
}

.site-row-head {
  flex: none;

  @media screen and (min-width: 768px) {
    width: 32%;
  }
}

/* ---------- 下層ページの冒頭 ---------- */

/* Figmaの下層の冒頭の見出しには、影がない */
.site-pagehead .site-eyebrow,
.site-pagehead .site-heading {
  text-shadow: none;
}

.site-pagehead {
  position: relative;
  overflow: hidden;
  padding-block: 2.5rem 3.5rem;
  background-color: var(--cream);

  @media screen and (min-width: 1200px) {
    padding-block: 5rem;
  }
}

.site-pagehead-deco {
  position: absolute;
  top: 0;
  right: -6rem;
  width: 20rem;
  opacity: 1;
  pointer-events: none;

  @media screen and (min-width: 1200px) {
    right: 2.5rem;
    width: 35rem;
  }
}

.site-breadcrumb {
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--gold);

  & a {
    letter-spacing: inherit;
    color: inherit;
    text-decoration: none;
    transition: opacity var(--duration) var(--easing);
  }
  & a:hover {
    opacity: 0.7;
  }

  @media screen and (min-width: 1200px) {
    font-size: 0.875rem;
  }
}

/* ---------- 印の付いた一覧（対応する工事） ---------- */

.site-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  padding: 1.25rem;
  background-color: var(--cream);
  border: 1px solid rgb(40 78 58 / 0.2);

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  @media screen and (min-width: 1200px) {
    gap: 1rem;
    padding: 1.5rem;
  }
}

.site-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  & img {
    flex: none;
    width: 1.125rem;
  }
  & p {
    margin: 0;
    word-break: auto-phrase;
    font-size: 0.8125rem;
    line-height: 1.3;
    letter-spacing: 0.08em;
    color: var(--green);

    @media screen and (min-width: 1200px) {
      font-size: 0.875rem;
    }
  }
}

/* ---------- 写真の切り替え（slider）の点 ---------- */

/* Figmaは、幅24px・高さ44pxの枠を12px間隔で並べ、枠の中央に点（選択中は24pxの線）を置く */
.site-dots {
  --slider-bullet-gap: 0.75rem;
  align-items: center;
  min-height: 2.75rem;

  & .swiper-pagination-bullet {
    position: relative;
    width: 1.5rem;
    height: 2.75rem;
    border-radius: 0;
    background: none;
    opacity: 1;

    &::before {
      content: "";
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0.25rem;
      height: 0.25rem;
      border-radius: 0.125rem;
      background-color: var(--snow);
      transform: translate(-50%, -50%);
      transition: width var(--duration) var(--easing);
    }
  }
  & .swiper-pagination-bullet-active::before {
    width: 1.5rem;
    height: 2px;
    border-radius: 1px;
  }
}

.site-dots--green .swiper-pagination-bullet::before {
  background-color: var(--green);
}

/* 前後のボタン（商品ギャラリー） */
.site-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--green);
  background-color: var(--snow);
  transition: background-color var(--duration) var(--easing);

  & img {
    width: 1.25rem;
  }
  &:hover {
    background-color: var(--cream);
  }
}

.site-arrow--prev img {
  transform: scaleX(-1);
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgb(247 244 237 / 0.94);
  transition: box-shadow var(--duration) var(--easing);
}

.site-logo {
  display: block;
  width: 7.5rem;
  transition: opacity var(--duration) var(--easing);

  & img {
    display: block;
    width: 100%;
  }
  &:hover {
    opacity: 0.75;
  }

  @media screen and (min-width: 1200px) {
    width: 12.5rem;
  }
}

.site-nav-link {
  position: relative;
  padding-block: 0.5rem;
  color: var(--ink);
  text-decoration: none;

  & p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
    white-space: nowrap;
  }

  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: var(--green);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--duration) var(--easing);
  }
  &:hover::after,
  &.is-current::after {
    transform: scaleX(1);
  }
}

.site-menu-panel {
  background-color: var(--cream);
}

.site-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid rgb(40 78 58 / 0.2);
  color: var(--green);
  text-decoration: none;

  & p {
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
  }
  & img {
    width: 1.25rem;
  }
}

/* ---------- お問い合わせの導線 ---------- */

.site-contact {
  display: grid;
  background-color: var(--cream);

  @media screen and (min-width: 1024px) {
    grid-template-columns: 45fr 55fr;
  }
}

.site-contact-body {
  border-top: 2px solid var(--gold);

  @media screen and (min-width: 1024px) {
    border-top-width: 4px;
  }
}

.site-contact-photo {
  position: relative;
  min-height: 15rem;
  overflow: hidden;

  & img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* ---------- フッター ---------- */

.site-footer {
  background-color: var(--green);
  color: var(--snow);

  & a {
    color: var(--snow);
    text-decoration: none;
    transition: opacity var(--duration) var(--easing);
  }
  & a:hover {
    opacity: 0.7;
  }
}

.site-footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;

  & p {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.25;
    letter-spacing: 0.08em;
    white-space: nowrap;

    @media screen and (min-width: 768px) {
      font-size: 0.875rem;
      letter-spacing: 0.12em;
    }
    @media screen and (min-width: 1200px) {
      font-size: 1rem;
    }
  }

  @media screen and (min-width: 1200px) {
    gap: 1.5rem 3rem;
  }
}

.site-footer-sns {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  & img {
    width: 1rem;
  }
  & p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.25;
    letter-spacing: 0.12em;
  }
}

/* ---------- 記事のカード（データブロック） ---------- */

.site-news-list .webgene-blog {
  display: grid;
  gap: 2.5rem;

  @media screen and (min-width: 768px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }
  @media screen and (min-width: 1024px) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.site-news-list .webgene-pagination {
  grid-column: 1 / -1;
}

.news-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  color: var(--ink);
  text-decoration: none;

  &:hover {
    color: var(--ink);
  }
}

.news-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--cream);

  & img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms var(--easing);
  }
}

.news-card:hover .news-card-image img {
  transform: scale(1.04);
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-card-category {
  display: inline-block;
  padding: 0.25rem 0.375rem;
  border: 1px solid var(--gold);
  font-size: 0.75rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.news-card-date {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.news-card-title {
  margin: 0;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.25;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color var(--duration) var(--easing);

  @media screen and (min-width: 1200px) {
    font-size: 1.25rem;
  }
}

.news-card:hover .news-card-title {
  color: var(--green);
}

.news-card .site-more {
  align-self: flex-end;
  margin-top: auto;
}

/* データブロックのテンプレートの矢印。テンプレートの中の画像のパスは置き換わらないため、CSSの背景にする */
.site-more-arrow,
.site-button-arrow {
  flex: none;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150546284860.svg) center / contain no-repeat;
  transition: transform var(--duration) var(--easing);
}

.site-button-arrow {
  background-image: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150459873455.svg);
}

.site-button:hover .site-button-arrow,
.site-button:focus-visible .site-button-arrow {
  background-image: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150512657223.svg);
  transform: translateX(0.25rem);
}

.news-card:hover .site-more-arrow {
  transform: translateX(0.25rem);
}

/* 記事の一覧のページ送り */
.webgene-pagination ul {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;

  & a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding-inline: 1rem;
    border: 1px solid var(--green);
    font-size: 0.875rem;
    letter-spacing: 0.12em;
    color: var(--green);
    text-decoration: none;
    transition:
      background-color var(--duration) var(--easing),
      color var(--duration) var(--easing);
  }
  & a:hover {
    background-color: var(--green);
    color: var(--snow);
  }
  & .number a {
    padding-inline: 0;
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 1rem;
  }
  & .selected a {
    background-color: var(--green);
    color: var(--snow);
  }

  /* 前へ・次へ。Figmaは線のボタン（左20px・右16px）に矢印を添える */
  & .prev a,
  & .next a {
    gap: 1rem;
    padding: 0.75rem 1rem 0.75rem 1.25rem;
  }
  & .prev a {
    flex-direction: row-reverse;
    padding: 0.75rem 1.25rem 0.75rem 1rem;
  }
  & .prev a::after,
  & .next a::after {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    background: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150459873455.svg) center / contain no-repeat;
  }
  & .prev a::after {
    transform: scaleX(-1);
  }
  & .prev a:hover::after,
  & .next a:hover::after {
    background-image: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150512657223.svg);
  }
}

/* 記事の詳細 */
.news-detail {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;

  @media screen and (min-width: 1200px) {
    gap: 3rem;
  }
}

/* Figmaは、分類のラベルから40px下に英字の小見出しと記事の題名を置く */
.news-detail-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  & .news-card-meta {
    margin-bottom: 1.5rem;
  }
}

.news-detail .item-images {
  max-width: 50rem;
}

.news-detail .item-image img {
  display: block;
  width: 100%;
  height: auto;
}

.article-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 0.875rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--ink);

  @media screen and (min-width: 768px) {
    font-size: 0.9375rem;
  }
  @media screen and (min-width: 1024px) {
    font-size: 0.875rem;
  }
  @media screen and (min-width: 1200px) {
    font-size: 1rem;
  }

  & h2 {
    margin: 1.5rem 0 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    color: var(--green);

    @media screen and (min-width: 1200px) {
      font-size: 1.75rem;
    }
  }
  & h3 {
    margin: 0.5rem 0 0;
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.6;
    letter-spacing: 0.06em;
    color: var(--green);

    @media screen and (min-width: 1200px) {
      font-size: 1.25rem;
    }
  }
  & p {
    max-width: 45em;
    margin: 0;
  }
  & img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  & a {
    color: var(--green);
    text-decoration: underline;
  }
}

.news-detail-nav {
  display: grid;
  gap: 1.5rem;
  align-items: start;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);

  @media screen and (min-width: 768px) {
    grid-template-columns: 1fr auto 1fr;
    gap: 2.5rem;
  }
  /* Figmaは、前後の記事の欄が400pxで、一覧へのボタンを中央に置く */
  @media screen and (min-width: 1200px) {
    grid-template-columns: 25rem 1fr 25rem;

    & .news-detail-back {
      justify-self: center;
    }
  }
}

.news-detail-back {
  justify-self: center;
}

.news-detail-around {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & p {
    margin: 0;
  }
  & .webgene-item-aroundPageLink {
    font-size: 0.9375rem;
    line-height: 2;
    letter-spacing: 0.08em;
    color: rgb(40 78 58 / 0.35);

    @media screen and (min-width: 1200px) {
      font-size: 1rem;
    }
  }
  & a {
    color: var(--green);
    text-decoration: none;
  }
  & a:hover {
    text-decoration: underline;
  }
}

.news-detail-next {
  @media screen and (min-width: 768px) {
    text-align: right;
  }
}

.news-detail-around-label {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--ink);

  @media screen and (min-width: 1200px) {
    font-size: 1rem;
  }
}

/* 新着情報のカテゴリの絞り込み */
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;

  @media screen and (min-width: 1200px) {
    gap: 1rem;
  }

  & .webgene-blog {
    display: contents;
  }
  & .webgene-item {
    display: contents;
  }
}

.news-filter-link {
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--green);
  background-color: var(--snow);
  font-size: 0.8125rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color var(--duration) var(--easing),
    color var(--duration) var(--easing);

  & p {
    margin: 0;
    letter-spacing: inherit;
  }
  &:hover,
  &.is-current {
    background-color: var(--green);
    color: var(--snow);
  }

  @media screen and (min-width: 1200px) {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ---------- フォーム ---------- */

.site-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  @media screen and (min-width: 1024px) {
    flex-direction: row;
    gap: 5rem;
  }
}

/* Figmaの入力欄は、上下16pxの余白と行間32pxで高さ66px。ラベルの行間は2 */
.contact-form {
  @media screen and (min-width: 1200px) {
    --form-control-height: 4.125rem;
  }

  & .site-form-label p,
  & .site-text,
  & label p {
    line-height: 2;
  }

  /* Figmaのラジオボタン・チェックボックスは16px */
  --form-check-size: 1rem;
}

.site-form-label {
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;

  @media screen and (min-width: 1024px) {
    width: 25rem;
    min-height: 4rem;
    align-items: flex-start;
    padding-top: 1rem;
  }

  & p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 2;
    letter-spacing: 0.08em;
    color: var(--ink);

    @media screen and (min-width: 1200px) {
      font-size: 1rem;
    }
  }
}

.site-required {
  flex: none;
  padding: 0.25rem 0.5rem;
  background-color: var(--green);

  & p {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.25;
    color: var(--snow);

    @media screen and (min-width: 1200px) {
      font-size: 0.875rem;
    }
  }
}

.site-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--gold-light);
  border-radius: 0;
  background-color: var(--snow);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--ink);

  &::placeholder {
    color: var(--gold);
  }
  &:focus {
    outline: 2px solid rgb(40 78 58 / 0.4);
    outline-offset: 0;
    border-color: var(--green);
  }
}

textarea.site-input {
  min-height: 10rem;
}

/* お問い合わせの本文欄。Figmaは高さ224px */
.contact-form textarea.site-input--tall {
  min-height: 12rem;

  @media screen and (min-width: 1200px) {
    min-height: 14rem;
  }
}

.site-choice {
  display: flex;
  align-items: center;
  gap: 1rem;

  & input {
    flex: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--green);
  }
  & label {
    margin: 0;
  }
  & label p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 2;
    letter-spacing: 0.08em;

    @media screen and (min-width: 1200px) {
      font-size: 1rem;
    }
  }
}

/* プライバシーポリシーを枠の中で読む */
.site-privacy {
  max-height: 17.5rem;
  overflow-y: auto;
  padding: 1.5rem;
  background-color: var(--snow);
  border: 1px solid var(--green);

  @media screen and (min-width: 1200px) {
    padding: 2rem;
  }
}

/* 送信ボタン。Figmaは線のボタン（左20px・右16px・上下12px）と右向きの矢印 */
.site-submit {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem 0.75rem 1.25rem;
  border: 1px solid var(--green);
  border-radius: 0;
  background-color: transparent;
  font-size: 0.875rem;
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--green);
  cursor: pointer;
  transition:
    background-color var(--duration) var(--easing),
    color var(--duration) var(--easing);

  &::after {
    content: "";
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    background: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150459873455.svg) center / contain no-repeat;
  }

  &:hover,
  &:focus-visible {
    background-color: var(--green);
    color: var(--snow);

    &::after {
      background-image: url(https://rebirth-osaka.co.jp/system_panel/uploads/images/20261109150512657223.svg);
    }
  }
}

/* ---------- 動きを減らす ---------- */

@media (prefers-reduced-motion: reduce) {
  .site-button img,
  .site-more img,
  .news-card-image img {
    transition: none;
  }
}

/* ---------- 商品ギャラリー（slider） ---------- */

.site-gallery-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  & img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background-color: var(--snow);
  }
  & p {
    margin: 0;
    font-size: 0.8125rem;
    letter-spacing: 0.08em;
    color: var(--green);

    @media screen and (min-width: 1200px) {
      font-size: 0.875rem;
    }
  }
}

.site-footer-link {
  display: block;
}


/* 新着情報のカテゴリが空の場合は、記事一覧側の案内だけを表示する */
.news-filter .webgene-no-items {
  display: none;
}
