@charset "utf-8";
/* 見出しサイズ */

/* ─── ファーストビュー ─── */
.first-view {
  margin-top: 120px;
  margin-bottom: 0px;

  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.first-view__img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
}

/* レスポンシブモード */
@media (max-width: 1024px) {
  .first-view {
    margin-top: 120px;
  }

  .first-view__img {
    height: 80vh;
  }
}

@media (max-width: 768px) {
  .first-view {
    margin-top: 100px;
  }

  .first-view__img {
    height: 70vh;
  }
}

@media (max-width: 480px) {
  .first-view {
    margin-top: 80px;
  }

  .first-view__img {
    height: 60vh;
  }
}

.main {
  color: #333;
  background-color: #fff;
  max-width: 1160px;
  margin: 0 auto;
  /*（左右中央寄せ） */
  /* ← 既存の padding をそのまま */
  text-align: center;
}

/* 見出しサイズ */

h2 {
  font-size: 1.8rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.05rem;
  margin-top: 150px;
}

@media (max-width: 768px) {
  h2 {
  margin-top: 100px;
}
}

h3 {
  font-weight: 300;
  font-size: 1.4rem;
  text-align: center;
}

h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

h5 {
  font-weight: 500;
  text-align: right;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  h2 {
    font-size: 1.6rem;
  }

  h3 {
    font-size: 1.28rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.08rem;
  }
}

/* ───── br-for-mobile
（小タブレット・モバイルだけ改行）───── */
.br-for-mobile {
  display: none;
}

@media (max-width: 768px) {
  .br-for-mobile {
    display: inline;
  }
}

/* ─── お知らせ ─── */
.news-section {
  max-width: 950px;
  margin: 100px auto 100px auto;
  text-align: center;
}

.news-list {
  display: inline-grid;
  grid-template-columns: 12em 8em 1fr;
  column-gap: 1.5em;
  padding: 0;
  align-items: center;
}

.news-item {
  display: contents;
  font-weight: 300;
  text-align: left;
}

.news-item__label {
  grid-column: 1;
  font-weight: 600;
  display: flex;
  justify-content: center;
  /* 横中央 */
  align-items: center;
  /* 縦中央 */
  height: 3.0em;
  background: #bbb;
  color: #fff;
  border-radius: 0;
  font-size: 0.90em;
  text-align: center;
  line-height: 1.3;
  padding: 0.7em 0.7em;
}

.news-item__date {
  grid-column: 2;
  font-weight: 600;
  align-self: center;
}

.news-item__body {
  grid-column: 3;
}

/* レスポンシブモード */

@media (max-width: 768px) {
  .news-section {
    margin-top: 70px;
    margin-bottom: 70px;
    text-align: center;
    padding: 0 20px;
  }

  .news-list {
    display: block;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  .news-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .news-item__label,
  .news-item__date {
    text-align: center;
    align-self: center;
    margin: 0;
  }

  .news-item__body {
    text-align: left;
    align-self: center;
    margin: 16px auto 0 auto;
  }

}

@media (max-width: 480px) {
  .news-section {
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0 20px;
  }
}

/* ─── メッセージ ─── */
.message-view {
  width: 100%;
  max-width: 1000px;
  margin: 100px auto;
  text-align: center;
}

@media (max-width: 768px) {
  .message-view {
    width: 95%;
    margin: 70px auto;
  }
}

@media (max-width: 480px) {
  .message-view {
    width: 95%;
    margin: 60px auto;
  }
}

.message-view img {
  display: block;
  width: 100%;
  /* 親幅にフィット */
  height: auto;
  margin: 0 auto;
  /* 念のため中央揃え */
  max-width: 100%;
}

/* ─── もくじ ─── */
.contents-menu {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 1160px;
  margin: 100px auto 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.contents-menu__item {
  flex: 1 1 0;
  margin: 0;
}

.contents-menu--bottom {
  justify-content: center;
  gap: 0;
  margin-top: 70px;
}

.contents-menu__item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.contents-menu__item::after {
  content: '';
  display: block;
  width: 100%;
}

.contents-menu__item:nth-child(n+4) {
  margin-top: 100px;
}

.contents-menu__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 中央揃え */
  line-height: 0;
  /* ← テキストや矢印の下の行間を潰す */
  line-height: normal;
  /* ← ただし、子要素には戻す（矢印やテキストがつぶれないように） */
}

.contents-menu--bottom {
  justify-content: center;
  gap: 0;
}

.contents-menu__item--wide {
  max-width: 900px;
  width: 100%;
  flex: 0 1 900px;
}

.external-arrow {
  display: inline-block;
  align-self: flex-end;
  pointer-events: none;
  border-bottom: 1px solid #707f89;
  /* 線の色 */
  padding-bottom: 2px;
  opacity: 0.7;
  border-bottom-width: 0;
  /* ← 初期状態は線を消す */
  transition: border-bottom-width 0.2s, border-color 0.2s;
}

.contents-menu__item:hover .external-arrow,
.contents-menu__item:focus .external-arrow {
  border-bottom-width: 1px;
  /* ← 選んだ時だけ線を出す */
  border-bottom-color: #707f89;
  opacity: 1;
}

/* レスポンシブモード */
@media (max-width: 1024px) {
  .contents-menu {
    gap: 2.5vw;
  }
}

@media (max-width: 768px) {
  .contents-menu {
    margin-top: 70px;
    flex-direction: column;
    max-width: 768px;
    gap: 0;
  }

  .contents-menu__item {
    margin-bottom: 45px;
  }

  .contents-menu__item:last-child {
    margin-bottom: 0;
  }

  .contents-menu__item--wide {
    max-width: 100%;
    flex-basis: 100%;
  }

  .contents-menu--bottom {
    justify-content: center;
    gap: 0;
    margin-top: 45px;
  }
}

@media (max-width: 480px) {
  .contents-menu {
    margin-top: 60px;
  }

  .contents-menu__item {
    margin-bottom: 36px;
  }

  .contents-menu__item:last-child {
    margin-bottom: 0;
  }

  .contents-menu__item--wide {
    max-width: 100%;
    flex-basis: 100%;
  }

  .contents-menu--bottom {
    justify-content: center;
    gap: 0;
    margin-top: 36px;
  }
}

/* ─── プロフィール ─── */
.profile {
  display: flex;
  flex-direction: row;
  gap: 40px;
  max-width: 1000px;
  margin: 100px auto 0 auto;
  align-items: flex-start;
}

.profile-image {
  flex: 2;
}

.profile-image img {
  width: 100%;
  height: auto;
  display: block;
}

.profile-text {
  flex: 3;
  font-size: 14.5px;
  line-height: 1.8;
  text-align: justify;
  margin: 0 auto;
}

.profile-text p {
  margin-bottom: 1em;
}

.notice {
  max-width: 700px;
  font-size: 14.5px;
  margin: 70px auto 0 auto;
  align-items: center;
}

/* 1000px以下でワンカラム表示 */
@media (max-width: 1024px) {
  .profile {
    flex-direction: column;
    align-items: center;
    max-width: 700px;
  }

  .profile-text {
    margin: 0px auto 0 auto;
  }
}

@media (max-width: 768px) {
  .profile {
    margin-top: 70px;
  }

  .profile-text {
    padding: 0 20px;
    font-size: 14.5px;
  }

  .notice {
    max-width: 480px;
    font-size: 14.5px;
    margin: 24px auto 0 auto;
    align-items: center;
  }

}

@media (max-width: 480px) {
  .profile {
    margin-top: 60px;
  }

  .profile-text {
    padding: 0 15px;
    max-width: 100%;
  }

  .notice {
    margin: 24px auto 0 auto;
    text-align: justify;
    padding: 0 20px;
  }

  .notice .caution {
    display: block;
    text-align: center;
    line-height: 1.8;
    margin: 0 auto;
  }

  .br-pc-only {
    display: none !important;
  }
}