@charset "UTF-8";

/* =============================================
   subpage.css
   下層ページ共通スタイル
   - page-header（ページタイトルエリア）
   - subpage-main（メインコンテンツ共通ラッパー）
   - contact-form（お問い合わせフォーム）
   - news-list（お知らせ一覧）
   ============================================= */

/* =============================================
   Block: page-header（ページタイトルエリア）
   ============================================= */
.page-header {
  width: 100%;
  margin-top: 89px; /* header高さ分 */
}
.page-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 360px;
  row-gap: 1.6rem;
  position: relative;
}

/* Modifier: 黄色背景（contact） */
.page-header--yellow {
  background-color: var(--color-yellow);
}

/* Modifier: 黒背景（news） */
.page-header--black {
  background-color: var(--color-black);
}
.page-header--black .page-header__title,
.page-header--black .page-header__sub {
  color: var(--color-white);
}

.page-header__title {
  font-size: 10rem;
  line-height: 1;
  margin: 0;
}
.page-header__sub {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1;
}

/* タグリスト（contact用） */
.page-header__tag-list {
  display: flex;
  column-gap: 1rem;
  position: absolute;
  bottom: -4rem;
}
.page-header__tag-item {
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 2.4rem;
  font-weight: bold;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   Block: subpage-main（メインコンテンツ共通）
   ============================================= */
.subpage-main {
  width: 100%;
  padding: 80px 0 120px;
}
.subpage-main__wrapper {
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

/* TOPへ戻るボタン（news用） */
.subpage-main__back-wrap {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}
.subpage-main__back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.2rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: bold;
  width: 100%;
  max-width: 270px;
  padding: 1.4rem 4rem;
  border-radius: 500px;
  transition: background-color 0.2s ease;
}
.subpage-main__back-btn:hover {
  background-color: #333;
  color: var(--color-white);
}

/* =============================================
   Block: contact-form（お問い合わせフォーム）
   ============================================= */

/* リード文 */
.contact-form__lead {
  text-align: center;
  line-height: 2;
  margin-bottom: 60px;
  font-size: 1.6rem;
}

/* フォーム行 */
.contact-form__row {
  display: flex;
  align-items: flex-start;
  column-gap: 4rem;
  padding: 3rem 0;
  border-bottom: 1px solid #e0e0e0;
}
.contact-form__row:first-of-type {
  border-top: 1px solid #e0e0e0;
}

/* ラベル */
.contact-form__label-wrap {
  display: flex;
  align-items: center;
  column-gap: 0.8rem;
  width: 200px;
  flex-shrink: 0;
  padding-top: 1rem;
}
.contact-form__label {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.4;
}
.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* フィールド */
.contact-form__field {
  flex: 1;
}

/* 横並びフィールド（お名前・ふりがな） */
.contact-form__field--split {
  display: flex;
  column-gap: 1rem;
}

/* input共通 */
.contact-form__input {
  width: 100%;
  height: 48px;
  border: none;
  background-color: #ececec;
  padding: 0 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  outline: none;
  transition: background-color 0.2s ease;
}
.contact-form__input:focus {
  background-color: #e0e0e0;
}
.contact-form__input::placeholder {
  color: #aaa;
}

/* select */
.contact-form__select-wrap {
  position: relative;
}
.contact-form__select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.6rem;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--color-black);
  pointer-events: none;
}
.contact-form__select {
  width: 100%;
  height: 48px;
  border: none;
  background-color: #ececec;
  padding: 0 4rem 0 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.contact-form__select:focus {
  background-color: #e0e0e0;
}

/* textarea行 */
.contact-form__row--textarea {
  align-items: flex-start;
}
.contact-form__textarea {
  width: 100%;
  height: 220px;
  border: none;
  background-color: #ececec;
  padding: 1.6rem;
  font-size: 1.6rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  transition: background-color 0.2s ease;
}
.contact-form__textarea:focus {
  background-color: #e0e0e0;
}

/* 送信ボタン */
.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 60px;
}
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 1.2rem;
  background-color: var(--color-black);
  color: var(--color-white);
  font-size: 1.8rem;
  font-weight: bold;
  width: 100%;
  max-width: 270px;
  padding: 1.4rem 4rem;
  border-radius: 500px;
  transition: background-color 0.2s ease;
}
.contact-form__submit:hover {
  background-color: #333;
}

/* =============================================
   Block: news-list（お知らせ一覧）
   ============================================= */
.news-list {
  display: flex;
  flex-direction: column;
}
.news-list__item {
  display: flex;
  column-gap: 6rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid #d7d7d7;
}
.news-list__item:first-child {
  border-top: none;
}
.news-list__date {
  font-size: 2.4rem;
  font-weight: bold;
  white-space: nowrap;
  padding-top: 0.4rem;
  flex-shrink: 0;
  width: 80px;
}
.news-list__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  row-gap: 1.2rem;
}
.news-list__title {
  font-size: 2.4rem;
  font-weight: bold;
  line-height: 1.4;
}
.news-list__text {
  text-align: justify;
}

/* =============================================
   下層ページ共通: footerの調整
   ============================================= */
.footer__brand-name {
  font-size: 1.6rem;
  font-weight: bold;
  line-height: 1.8;
}

/* =============================================
   Responsive: 768px以下
   ============================================= */
@media screen and (max-width: 768px) {
  /* page-header */
  .page-header__inner {
    height: 260px;
  }
  .page-header__title {
    font-size: 7rem;
  }
  .page-header__sub {
    font-size: 2.4rem;
  }
  .page-header__tag-item {
    font-size: 2rem;
  }

  /* subpage-main */
  .subpage-main {
    padding: 60px 0 80px;
  }
  .subpage-main__wrapper {
    padding: 0 3rem;
  }

  /* contact-form */
  .contact-form__field {
    width: 100%;
  }
  .contact-form__lead {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }
  .contact-form__row {
    flex-direction: column;
    row-gap: 1.2rem;
    padding: 2.4rem 0;
  }
  .contact-form__label-wrap {
    width: 100%;
    padding-top: 0;
  }
  .contact-form__label {
    font-size: 2.2rem;
  }
  .contact-form__required {
    font-size: 1.6rem;
  }
  .contact-form__input {
    height: 56px;
    font-size: 2rem;
  }
  .contact-form__select {
    height: 56px;
    font-size: 2rem;
  }
  .contact-form__textarea {
    font-size: 2rem;
  }
  .contact-form__submit {
    font-size: 2.4rem;
    padding: 2rem 5rem;
    max-width: 100%;
    justify-content: center;
  }

  /* news-list */
  .news-list__item {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.2rem;
    padding: 4rem 0;
  }
  .news-list__date {
    font-size: 2.2rem;
    line-height: 1;
  }
  .news-list__title {
    font-size: 2.4rem;
  }
  .news-list__text {
    font-size: 1.8rem;
  }

  /* back btn */
  .subpage-main__back-btn {
    font-size: 2.4rem;
    padding: 1.8rem 5rem;
    max-width: 100%;
  }
}

/* =============================================
   Responsive: 440px以下
   ============================================= */
@media screen and (max-width: 440px) {
  /* page-header */
  .page-header__title {
    font-size: 5.5rem;
  }
  .page-header__sub {
    font-size: 1.8rem;
  }
  .page-header__inner {
    padding: 50px 15px 60px;
  }

  /* subpage-main */
  .subpage-main {
    padding: 60px 0 60px;
  }
  .subpage-main__wrapper {
    padding: 0 1.5rem;
  }
  .subpage-main__back-wrap {
    display: flex;
    justify-content: center;
    margin-top: 60px;
  }

  /* contact-form */
  .contact-form__field--split {
    flex-direction: column;
    row-gap: 1rem;
  }

  /* news-list */
  .news-list__item {
    padding: 3rem 0;
  }
}
/* ラベルと必須バッジを横並びに */
.contact-form__label-wrap p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
}

.contact-form__label-wrap p br {
  display: none;
}

/* スマホで姓・名を縦並びに */
@media screen and (max-width: 440px) {
  .contact-form__field--split p {
    flex-direction: column;
  }

  .contact-form__field--split p br {
    display: none;
  }
}
