@charset "utf-8";
/* *****************************
common（共通設定）
***************************** */
:root {
  /* 色 */
  --primary-white: #ffffff;
  --primary-font: #545454;
  --primary-creamYellow: #fffaf0;
  --primary-lightPink: #f8cdc9;
  --primary-salmonPink: #e68c84;
  --primary-darkPink: #d97f77;
  --primary-brown: #bf7c40;
  --primary-lightGray: #d8d8d8;
  --primary-gray: #9e9e9e;
}

/*全コンテンツを囲むコンテナにも設定（これがないと上に余白が空く） */
.container {
  margin: 0;
  padding: 0;
}

.section {
  width: 89.33vw;
  max-width: 670px;
  margin: 0 auto;
}

h2 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

h2 span {
  color: var(--primary-gray);
}

/* フェードイン */
/* フェードインする前には隠しておく*/
.fadeIn {
  opacity: 0; /* 透明にして隠す */
  transition: opacity 1.2s ease-in-out;
}

/* 隠していた状態のものを見えるようにする */
.fadeIn.animated {
  opacity: 1;
}

/* ------------------------
      common pc
    ------------------------ */
/* スクロールエリアは画面の右半分 */
@media screen and (min-width: 840px) {
  body {
    margin: 0;
    padding: 0;
  }
  .main {
    width: 50vw;
    margin-left: 50vw;
    margin-right: 0;
    padding: 0;
  }

  /* containerの設定 */
  body #container {
    /*  common.cssで設定されているpadding-top: 122px;を削除 */
    padding-top: 0;
    /*  containerの最大幅を画面幅に制限 */
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* ナビゲーションの背景も調整 */
  body .nav {
    background-image: none;
  }

  .section {
    width: 32.64vw;
    /* max-width: 670px; */
    margin: 0 auto;
  }
}
/* pc 840 */

/* ==============================
 別ページ遷移ボタン
 ============================== */
.toPageBtn {
  width: clamp(200px, 68.53vw, 350px);
  margin-left: auto;
  margin-top: clamp(40px, 15.47vw, 80px);
}

.toPageBtn a {
  display: flex;
  justify-content: center; /* テキストと矢印を中央寄せ */
  align-items: center; /* 垂直方向の中央揃え */
  position: relative;
  /* テキストの折り返しを禁止にする */
  white-space: nowrap;
  width: 100%;
  /* サイズと余白 */
  padding-top: clamp(10px, 4.8vw, 25px); /* 18px -> 4.8vw */
  padding-right: clamp(30px, 12.27vw, 60px); /* 46px -> 12.27vw */
  padding-bottom: clamp(10px, 4.53vw, 25px); /* 17px -> 4.53vw */
  padding-left: clamp(20px, 9.33vw, 50px); /* 35px -> 9.33vw */
  /* 色 */
  background-color: var(--primary-salmonPink);
  color: var(--primary-creamYellow);
  border: 1px solid var(--primary-salmonPink);
  /* 角丸 */
  border-radius: 30px;
  /* 影 */
  box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.1);
  /* ホバー時のアニメーション */
  transition: all 0.5s ease-in-out;
}

.toPageBtn a:hover {
  /* ホバー時の挙動 */
  /* --- 背景色を白に --- */
  background-color: var(--primary-white);
  /* 文字色を元の背景色に反転 */
  color: var(--primary-salmonPink);
  border: solid 1px var(--primary-salmonPink);
  /* 立体的に */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* カーソルをポインターに変える */
  cursor: pointer;
}

/* 疑似要素：矢印アイコン */
.toPageBtn a::after {
  /* アイコン画像 */
  content: "";
  background-image: url(../images/1_home/icon_toPage.svg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  /* アイコンの幅と高さ */
  width: 12px;
  height: 12px;
  /* 位置 */
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-38%);
  transition: right 0.3s;
}
/* ホバーしたら画像が変わる */
.toPageBtn a:hover::after {
  background-image: url(../images/1_home/icon_toPage_hover.svg);
  right: 10px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .toPageBtn {
    margin-top: 60px;
    width: clamp(257px, 17.85vw, 351px);
    /* width: 100%; */
  }
}

/* pc 840 */

/* *****************************  */

/* *****************************
header
***************************** */
/* ==============================
 メインビジュアル
 ============================== */
.mainVisual {
  width: 100%;
  height: 100svh;
  position: relative;
}

.image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;

  /* アニメーションを24秒に*/
  animation: fadeSlide 15s infinite;
}

.src1 {
  background-image: url(../images/1_home/mainVisual_sp01.webp);
}
.src2 {
  background-image: url(../images/1_home/mainVisual_sp02.webp);
}
.src3 {
  background-image: url(../images/1_home/mainVisual_sp03.webp);
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
  }
  13.333% {
    opacity: 1;
  } /* 2秒かけてフェードイン完了 (15sの2/15) */
  33.333% {
    opacity: 1;
  } /* 5秒時点まで表示を維持（次の画像がスタート） (15sの5/15) */
  46.666% {
    opacity: 0;
  } /* 7秒時点でフェードアウト完了（次の画像が完全に不透明になった後） (15sの7/15) */
  100% {
    opacity: 0;
  }
}

/* 画像ごとのスタートタイミング (合計周期15秒) */
.image:nth-of-type(1) {
  animation-delay: 0s;
}
.image:nth-of-type(2) {
  animation-delay: 5s; /* 15sの1/3 */
}
.image:nth-of-type(3) {
  animation-delay: 10s; /* 15sの2/3 */
}
/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  /* 画面の左半分に固定 */
  .mainVisual {
    width: 50vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    z-index: 10;
  }

  .image {
    position: absolute;
    background-size: cover;
    background-position: center;
    opacity: 0;
  }

  /* 画像指定 */
  .src1 {
    background-image: url(../images/1_home/mainVisual_pc01.webp);
  }
  .src2 {
    background-image: url(../images/1_home/mainVisual_pc02.webp);
  }
  .src3 {
    background-image: url(../images/1_home/mainVisual_pc03.webp);
  }
}
/* pc 840 */

/* ==============================
 キャッチコピー
 ============================== */
.header {
  position: relative;
  padding: 0;
  display: block;
  width: 100%;
  height: 100svh;
  background-image: none;
}
/* キャッチコピー */
.mainVisual__text {
  /* 画像の上に表示させるためにz-indexを追加 */
  position: absolute;
  color: var(--primary-creamYellow);
  /* 375pxで24px (6.4vw) を基準とし、最小18px/最大36pxに制限 */
  font-size: clamp(18px, 6.4vw, 36px);
  top: 5.1%;
  left: 5%;
  /* 縦書きモードを設定: vertical-rl は「縦方向、右から左へ」の流れ */
  writing-mode: vertical-rl;
  /* CJK文字（漢字、ひらがな、カタカナ）を常に直立 */
  text-orientation: upright;
  /* pタグのデフォルトのマージンをリセット */
  margin: 0;
  padding: 0;
  /* 縦書きなので、幅は自動調整（w-auto） */
  width: auto;
  z-index: 10; /* 画像の上に表示 */
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .mainVisual__text {
    /* 1440pxで44px (約3.06vw) を基準とし、最小30px/最大50pxに制限 */
    font-size: clamp(30px, 3.06vw, 50px);
    line-height: 1;
    position: fixed;
    top: 6.77%; /* 上から58px */
    left: 4.1%; /* 左から60px */
  }
}

/* ==============================
 ギャラリー一覧への遷移
 ============================== */
.mainVisual__toGallery {
  display: block;
  position: absolute;
  left: 4.82vw;
  bottom: clamp(10px, 7vw, 30px);
  z-index: 10;
  text-align: right;
}
.mainVisual__toGallery a {
  font-size: clamp(8px, 3.2vw, 22px);
  color: var(--primary-creamYellow);
  display: inline-block; /* 矢印を下に配置するため */
  text-decoration: none;
}

/* 矢印 */
.arrow {
  display: block;
  display: inline-block;
  position: absolute;
  width: 29.27vw; /* 1440pxで約148px相当 */
  height: 0.07vw; /* 1440pxで約1px相当 */
  border-radius: 9999px;
  left: 4.82vw;
  bottom: clamp(10px, 7.5vw, 30px);
  z-index: 10;
  margin-top: 10px;
  background-color: var(--primary-creamYellow);
}

.arrow::before {
  display: block;
  content: "";
  position: absolute;
  border-radius: 9999px;
  background-color: var(--primary-creamYellow);
  transform: rotate(45deg);
  /* 線の太さ(0.07vw)の半分に合わせて位置を微調整 */
  top: calc(50% - 0.05vw);
  right: 0;
  /* 画面幅に応じて幅が変化 */
  width: 1.25vw; /* 1440pxで約18px相当 */
  /* 線の太さに合わせる */
  height: 0.07vw;
  /* 回転の中心もビューポート単位に合わせて微調整 */
  transform-origin: calc(100% - 0.07vw) 50%;
}

/* 現れるアニメーション */
/* キーフレームの定義 */
@keyframes fadeInAnimation {
  /* アニメーション開始時（0%）は透明で縮小した状態からスタート */
  from {
    opacity: 0;
    transform: scale(0.97); /* わずかに縮小させて奥行き感を出す */
  }
  /* アニメーション終了時（100%）は通常の状態（完全に不透明） */
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 要素へのアニメーション適用 */
.mainVisual__toGallery,
.arrow {
  animation-name: fadeInAnimation;

  /* 継続時間 */
  animation-duration: 2s;

  /* 実行タイミング: ページ読み込み後すぐに開始 */
  animation-delay: 0s;

  /* 繰り返し回数: 1回のみ */
  animation-iteration-count: 1;

  /* 終了時の状態: 最終フレームの状態を保持する */
  animation-fill-mode: forwards;

  /* その他の調整: イージング (緩やかな動き) */
  animation-timing-function: ease-out;
}

@media screen and (min-width: 840px) {
  .mainVisual__toGallery {
    display: block;
    font-weight: 600;
    position: absolute;
    position: fixed;
    left: 36.82vw;
    bottom: 1.5vw;
    z-index: 10;
    text-align: right;
  }
  .mainVisual__toGallery a {
    color: var(--primary-font);
    font-size: 1vw;
    display: inline-block; /* 矢印を下に配置するため */
    text-decoration: none;
  }

  /* 矢印 */
  .arrow {
    display: block;
    position: fixed;
    display: inline-block;
    width: 10.27vw; /* 1440pxで約148px相当 */
    height: 0.07vw; /* 1440pxで約1px相当 */
    border-radius: 9999px;
    background-color: var(--primary-font);
    left: 36.82vw;
    bottom: 1.5vw;
    z-index: 10;
    margin-top: 10px;
  }

  .arrow::before {
    display: block;
    content: "";
    position: absolute;
    border-radius: 9999px;
    background-color: var(--primary-font);
    transform: rotate(45deg);
    /* 線の太さ(0.07vw)の半分に合わせて位置を微調整 */
    top: calc(50% - 0.05vw);
    right: 0;
    /* 画面幅に応じて幅が変化 */
    width: 1.25vw; /* 1440pxで約18px相当 */
    /* 線の太さに合わせる */
    height: 0.07vw;
    /* 回転の中心もビューポート単位に合わせて微調整 */
    transform-origin: calc(100% - 0.07vw) 50%;
  }
}

/* ==============================
 ハンバーガーボタン
 ============================== */
.header__btn {
  position: absolute;
  top: 5%;
  right: 4.8%;
  display: block;
  cursor: pointer; /* クリック可能 */
  width: 30px;
  height: 14px;
  z-index: 999;
}

/* 三本線 */
.header__btn-line {
  background-color: var(--primary-creamYellow);
}

/* MVをこえたら固定 */
.header.is-fixed .header__btn {
  position: fixed;
  top: 34px;
}

/* MVをこえたら色を変える */
.header__btn.scrolled .header__btn-line {
  background-color: var(--primary-font);
}

.header__btn.active .header__btn-line:first-child,
.header__btn.active .header__btn-line:last-child {
  background-color: var(--primary-font);
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  /* ハンバーガーボタン非表示 */
  .header__btn {
    display: none;
  }

  .nav {
    width: 100%;
    text-align: right;
  }

  .nav__list {
    display: flex;
    justify-content: flex-end;
    margin: 68px 4.72% 0;
  }

  .nav__item {
    margin-left: 25px;
    margin-bottom: 0;
    /* 項目間の左のマージンをレスポンシブに */
    margin-left: 1.71vw;
    margin-bottom: 0;
  }
  /* フォントサイズをレスポンシブに（1440pxで約16px） */
  .nav__item a {
    font-size: clamp(10px, 1.11vw, 24px);
  }
}

/* pc 840 */

/* ==============================
 ロゴ
 ============================== */
.header__logo_image {
  max-width: 350px;
  /* ロゴも画像の上に表示させるためにz-indexを追加 */
  position: absolute;
  width: 66.93vw;

  /* 右下に配置 */
  bottom: clamp(
    10px,
    5vw,
    30px
  ); /* 10px〜30pxの間で、画面幅に応じてマージンを確保 */
  right: 0; /* 右から0に固定 */
  top: auto;
  left: auto;
  z-index: 10;
}

/* ロゴが現れるアニメーション */
/* キーフレームの定義 */
@keyframes fadeInAnimation {
  /* アニメーション開始時（0%）は透明で縮小した状態からスタート */
  from {
    opacity: 0;
    transform: scale(0.97); /* わずかに縮小させて奥行き感を出す */
  }
  /* アニメーション終了時（100%）は通常の状態（完全に不透明） */
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* 要素へのアニメーション適用 */
.header__logo_image {
  animation-name: fadeInAnimation;

  /* 継続時間 */
  animation-duration: 2s;

  /* 実行タイミング: ページ読み込み後すぐに開始 */
  animation-delay: 0s;

  /* 繰り返し回数: 1回のみ */
  animation-iteration-count: 1;

  /* 終了時の状態: 最終フレームの状態を保持する */
  animation-fill-mode: forwards;

  /* その他の調整: イージング (緩やかな動き) */
  animation-timing-function: ease-out;
}
/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .header__logo_image {
    max-width: none;
    bottom: 12.26%;
    right: 5.62%;
    top: auto;
    left: auto;
    width: 17.43vw;
  }
}

/* pc 840 */

/* *****************************
main
***************************** */
/* ==============================
 はじめに
 ============================== */
.content--mainTopics {
  margin: 120px auto;
  position: relative;
  width: 76.8vw;
}

.mainTopics__content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.mainTopics__txt {
  /* 縦書きモードを設定: vertical-rl は「縦方向、右から左へ」の流れ */
  writing-mode: vertical-rl;
  /* CJK文字（漢字、ひらがな、カタカナ）を常に直立 */
  text-orientation: upright;
  /* pタグのデフォルトのマージンをリセット */
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  /* 幅の固定を解除し、コンテンツの行数に合わせて自動で幅を確保 */
  width: auto;
  /* width: 76.8vw; は、縦書きでは行の数となり、コンテンツがはみ出す原因になるため解除 */
}

.mainTopics__txt--line {
  margin-right: 2.67vw;
}
.mainTopics__txt--line:first-child {
  margin: 0;
}
.mainTopics__txt__motive,
.mainTopics__txt__conclusion {
  margin-right: 8.5vw;
}

/* 疑似要素：はじめにを挟む線 */
.content.content--mainTopics::before,
.content.content--mainTopics::after {
  content: "";
  position: absolute;
  background-color: var(--primary-gray);
  display: block;
  width: 76.8vw;
  height: 1px;
  top: -60px;
  left: 50%; /* 親要素の左端から50%の位置に移動 */
  transform: translateX(-50%);
  /* 要素の幅の半分だけ左に戻し、完全に中央に配置 */
}

.content.content--mainTopics::after {
  top: auto;
  bottom: -60px; /* コンテナ下端から60px下に配置 */
}

/* ------------------------
      common pc
    ------------------------ */
/* pc 840 */
@media screen and (min-width: 840px) {
  /* これを基準に子要素を制御 */
  .content--mainTopics {
    width: 20vw;
  }
  .mainTopics__content {
    width: 100%; /* 親要素(40vw)の幅いっぱいに設定 */
    margin: 0 auto; /* block要素を中央に配置 */
  }

  /*  縦書きテキストブロックの調整 */
  .mainTopics__txt {
    /* テキストブロックの幅を調整: 縦書きの場合、これは「行の数」を意味する。 */
    /* 縦書きの広がる方向を考慮し、親要素内で右寄せを解除します。 */
    width: auto; /* widthの固定を外し、コンテンツの幅に合わせる */
    margin: 0 auto; /* 縦書きでは効きづらい */
    text-align: left; /* 縦書きには影響しないが、保持 */
    font-size: clamp(14px, 1.11vw, 20px);
  }

  /* 縦書き全体を中央揃えにするため、親要素にflexboxを適用する */
  .mainTopics__content {
    display: flex; /* 子要素 (.mainTopics__txt) の配置を制御 */
    justify-content: center; /* 子要素を中央に配置 */
  }

  /* 各行と区切りごとのマージン調整 */
  .mainTopics__txt--line {
    margin-right: 1vw; /* 行間の調整 */
  }
  .mainTopics__txt__motive,
  .mainTopics__txt__conclusion {
    margin-right: 2.1vw; /* 節間のマージン調整 */
  }

  /* 疑似要素：線 */
  .content.content--mainTopics::before,
  .content.content--mainTopics::after {
    width: 20vw;
  }
}
/* pc 840 */

/* ==============================
   ギャラリー
 ============================== */
.section--homeGallery {
  margin-top: 120px;
}
.homeGallery__content {
  margin-top: 75px;
}
.homeGallery__item {
  margin-top: 60px;
}
.homeGallery__image {
  border-radius: 10px;
  box-shadow: 4px 4px 4px 0 rgba(0, 0, 0, 0.08);
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .section--homeGallery {
    width: 32.64vw;
    margin-top: 180px;
  }
}

/* pc 840 */

/* ==============================
   カルチャーセンター
 ============================== */
.section--homeCulturecenter {
  margin-top: 60px;
}
.homeCulturecenter__content {
  margin-top: 50px;
}
.homeCulturecenter__image {
  border-radius: 10px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .section--homeCulturecenter {
    width: 66.26%;
    margin-top: 100px;
  }
  .homeCulturecenter__image {
    margin-top: 30px;
  }
}

/* ==============================
   footer
 ============================== */
.footer {
  margin-top: 160px;
}

/* ------------------------
      common pc
    ------------------------ */
@media screen and (min-width: 840px) {
  .footer {
    width: 50vw;
    margin-top: 100px;
    margin-left: auto;
    margin-right: 8.3%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .logo.footer__logo {
    margin-top: 0;
  }

  .footer__image {
    display: none;
  }
  .footer__menu a {
    font-size: clamp(11px, 1.11vw, 24px);
  }
  .footer__menu-list--lower {
    margin-left: clamp(16px, 2.0833vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 0px;
    align-items: flex-end;
  }
}

/* pc 840 */
