/* トップページ専用スタイル */

/* コンセプトページのみ：管理画面で追加するFV説明文の改行を406px以下で有効にする。 */
body:has(.point) .page-fv__description br {
  display: none;
}

@media screen and (max-width: 406px) {
  body:has(.point) .page-fv__description br {
    display: inline;
  }
}

/* Concept */
.concept {
  position: relative;
  isolation: isolate;
  padding-bottom: 80px;
  overflow: hidden;
  background-color: #fff;
  color: #665f53;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .concept {
    padding-bottom: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .concept {
    padding-bottom: 120px;
  }
}

/* Concept インナー */
.concept__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .concept__inner {
    padding-inline: 25px;
  }
}

/* Concept コンテンツ */
.concept__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 950px;
  margin: 60px auto 0;
  text-align: center;
}

@media screen and (min-width: 769px) {
  .concept__content {
    margin-top: 70px;
  }
}

@media screen and (min-width: 1024px) {
  .concept__content {
    margin-top: 80px;
  }
}

/* 見出し */
.concept__title {
  margin: 0;
  color: #665f53;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .concept__title {
    font-size: 26px;
  }
}

@media screen and (min-width: 1024px) {
  .concept__title {
    font-size: 28px;
  }
}

/* 本文 */
.concept__text {
  margin: 25px 0 0;
  color: #665f53;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .concept__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .concept__text {
    margin-top: 30px;
    font-size: 16px;
  }
}

/* Concept 左右の装飾 */
.concept::before,
.concept::after {
  content: "";
  position: absolute;
  z-index: 0;
  display: none;
  width: 230px;
  height: 150px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

@media screen and (min-width: 1024px) {
  .concept::before,
  .concept::after {
    display: block;
  }
}

/* 左側 */
.concept::before {
  top: 50%;
  left: 0;
  background-image: url("/system_panel/uploads/images/concept_deco_left.png");
  background-position: left center;
  transform: translateY(-50%);
}

/* 右側 */
.concept::after {
  top: 50%;
  right: 0;
  background-image: url("/system_panel/uploads/images/concept_deco_right.png");
  background-position: right center;
  transform: translateY(-50%);
}

/* Point セクション */
.point {
  position: relative;
  isolation: isolate;
  margin-top: 60px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .point {
    margin-top: 70px;
  }
}

@media screen and (min-width: 1024px) {
  .point {
    margin-top: 80px;
  }
}

/* Point 背景画像 */
.point::before {
  content: "";
  position: absolute;
  inset: 25% 0 0;
  z-index: -1;
  background-image: url("/system_panel/uploads/images/point_bg.png");
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

/* Point インナー */
.point__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
}

.point__list {
  display: flex;
  flex-direction: column;
  gap: 66px;
  max-width: 600px;
  margin-inline: auto;
}

@media screen and (min-width: 769px) {
  .point__list {
    max-width: none;
  }
}

.point__item {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 30px;
  width: 100%;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .point__item {
    gap: 40px;
    padding-inline: 25px;
  }
}

@media screen and (min-width: 1024px) {
  .point__item {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  .point__item:not(.point__item--reverse) .point__content {
    grid-column: 1;
    grid-row: 1;
  }
  .point__item:not(.point__item--reverse) .point__image {
    grid-column: 2;
    grid-row: 1;
  }
  .point__item--reverse .point__image {
    grid-column: 1;
    grid-row: 1;
  }
  .point__item--reverse .point__content {
    grid-column: 2;
    grid-row: 1;
  }
}

/* Point01・03：テキスト左／画像右 */

/* Point02・04：画像左／テキスト右 */

/* Point 英字タイトル */
.point__number {
  margin: 0;
  color: #c0b1a3;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

/* Point 日本語タイトル */
.point__title {
  margin: 15px 0 0;
  color: #333;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .point__title {
    font-size: 32px;
  }
}

@media screen and (min-width: 1024px) {
  .point__title {
    margin-top: 20px;
    font-size: 40px;
  }
}

/* Point 本文 */
.point__text {
  margin: 30px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .point__text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .point__text {
    margin-top: 35px;
    font-size: 16px;
  }
}

/* Point 画像 */
.point__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 930/600;
  object-fit: cover;
}

/* Point お知らせボックス */
.point__notice {
  box-sizing: border-box;
  width: calc(100% - 40px);
  max-width: 1200px;
  margin-inline: auto;
  padding: 30px 20px;
  background-color: #fff;
  color: #333;
}

@media screen and (min-width: 769px) {
  .point__notice {
    width: calc(100% - 50px);
    padding: 40px 30px;
  }
}

@media screen and (min-width: 1024px) {
  .point__notice {
    padding: 50px 40px;
  }
}

/* お知らせタイトル */
.point__notice-title {
  display: inline-block;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #665f53;
  color: #333;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 1024px) {
  .point__notice-title {
    font-size: 24px;
  }
}

/* お知らせ本文 */
.point__notice-text {
  margin: 20px 0 0;
  color: #333;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.875;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

@media screen and (min-width: 769px) {
  .point__notice-text {
    font-size: 15px;
  }
}

@media screen and (min-width: 1024px) {
  .point__notice-text {
    font-size: 16px;
  }
  .point__item {
    padding-inline: 0;
  }
  .point__content {
    box-sizing: border-box;
    width: calc(100% - clamp(30px, 5.46875vw, 105px) - 25px);
    max-width: 495px;
    min-width: 0;
  }
  .point__item:not(.point__item--reverse) .point__content {
    justify-self: end;
    margin-right: clamp(30px, 5.46875vw, 105px);
  }
  .point__item--reverse .point__content {
    justify-self: start;
    margin-left: clamp(30px, 5.46875vw, 105px);
  }
  .point__image {
    width: 100%;
    max-width: 930px;
  }
  .point__item--reverse .point__image {
    justify-self: end;
  }
}

/* Point テキスト位置調整 */

/* テキスト共通 */

/* Point01・03：左側のテキスト */

/* Point02・04：右側のテキスト */

/* 画像はインナーの制限を受けない */

/* Related 関連情報 */
.related {
  padding-block: 80px;
  background-color: #fff;
  color: #333;
  font-family: "Shippori Mincho", "Yu Mincho", serif;
  font-weight: 400;
}

@media screen and (min-width: 769px) {
  .related {
    padding-top: 100px;
    padding-bottom: 100px;
  }
}

@media screen and (min-width: 1024px) {
  .related {
    padding-top: 157px;
    padding-bottom: 120px;
  }
}

/* Related インナー */
.related__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: 1250px;
  margin-inline: auto;
  padding-inline: 20px;
}

@media screen and (min-width: 769px) {
  .related__inner {
    padding-inline: 25px;
  }
}

/* Related 見出し */
.related__heading {
  text-align: center;
}

/* 英字タイトル */
.related__heading-en {
  margin: 0;
  color: #c0b1a3;
  font-family: "Mrs Saint Delafield", cursive;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .related__heading-en {
    font-size: 46px;
  }
}

@media screen and (min-width: 1024px) {
  .related__heading-en {
    font-size: 54px;
  }
}

/* 日本語タイトル */
.related__heading-ja {
  margin: 20px 0 0;
  color: #333;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

@media screen and (min-width: 769px) {
  .related__heading-ja {
    margin-top: 24px;
    font-size: 34px;
  }
}

@media screen and (min-width: 1024px) {
  .related__heading-ja {
    margin-top: 28px;
    font-size: 40px;
  }
}

/* Related ボタンエリア */
.related__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  margin-top: 40px;
}

@media screen and (min-width: 769px) {
  .related__links {
    gap: 30px;
    margin-top: 50px;
  }
}

@media screen and (min-width: 1024px) {
  .related__links {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 60px;
    margin-top: 60px;
  }
}

/* SPの文章の改行を調整 */
@media screen and (max-width: 768px) {
  .concept-intro__text,
  .point__text,
  .point__notice-text {
    text-wrap: pretty;
    overflow-wrap: normal;
    text-align: justify;
    text-wrap: wrap;
  }
}

/* コンセプトページのみ：679px以上は管理画面の改行を生かして中央寄せ */
@media screen and (min-width: 679px) {
  body:has(.point) .concept-intro__text {
    text-align: center;
    text-wrap: wrap;
  }
  body:has(.point) .concept-intro__text br {
    display: inline;
  }
}

/* 左寄せになる678px以下では、2行目に追加した改行を非表示 */
@media screen and (max-width: 678px) {
  body:has(.point) .concept-intro__text br:nth-of-type(2) {
    display: none;
  }
}

/* 追加した2箇所の改行は、1113px以上では非表示 */
@media screen and (min-width: 1113px) {
  body:has(.point) .concept-intro__text br:nth-of-type(2),
  body:has(.point) .concept-intro__text br:nth-of-type(8) {
    display: none;
  }
}

/* Keep content clear of the fixed desktop buttons. */
@media screen and (min-width: 1024px) and (max-width: 1399px) {
  .concept__inner,
  .point__notice,
  .related__inner {
    width: calc(100% - 135px);
    margin-inline-end: 110px;
  }
  .point__item {
    padding-inline-end: 110px;
  }
  .point__title {
    font-size: clamp(24px, 4.255319vw - 19.574468px, 40px);
    letter-spacing: 0;
    text-wrap: balance;
  }
}


