@charset "utf-8";

em {
  font-style: normal;
}

#first-view {
  scroll-margin-top: 120px;
  /* ヘッダーの高さ */
}

/*共通クラス*/

.title-jp {
  font-size: 40px;
}

.catch {
  margin-top: 60px;
  font-size: 25px;
}

.text {
  margin-top: 40px;
  line-height: 2.2;
}

.c-btn img {
  width: 15px;
}

.c-btn {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  padding: 12px 36px;
  background-color: #ffff8f;
  width: 100%;
  font-size: 18px;
  line-height: 1.6;
  text-decoration: none;
  /* リンクの下線を消す */
  color: #333;
  /* 文字色はお好みで */
  box-sizing: border-box;
}

/* 下から出てくるタイトル */
.js-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-slide-up.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* 左から出てくる catch */
.js-slide-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.js-slide-left.is-show {
  opacity: 1;
  transform: translateX(0);
}

/* catch 全体 */
.js-split-catch {
  overflow: hidden;
}

/* 1文字ずつ */
.js-split-catch span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
}

/* 表示状態 */
.js-split-catch.is-show span {
  animation: catchChar 0.6s ease forwards;
}

/* アニメーション */
@keyframes catchChar {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/*メインビューここから*/

.first-view {
  height: calc(100vh - 210px);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.first-view-slider {
  height: 100%;
  display: flex;
  transition: transform 1s ease-in-out;
}

.slide-item {
  flex: 0 0 auto;
  width: 100vw;
  height: 100%;
  position: relative;
}

.first-view-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.first-view-frame {
  height: calc(100vh - 210px);
  background-image: url(../images/index/main-frame.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

.first-view-text {
  position: absolute;
  right: 8%;
  top: 5%;
  writing-mode: vertical-rl;
  line-height: 3.5rem;
  letter-spacing: 0.3rem;
}

/* h1 全体 */
.js-split-h1 {
  position: relative;
  overflow: visible;
}

/* 1文字 */
.js-split-h1 span {
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateX(20px);
}

/* 縦書き用 underline（左側） */
.js-split-h1 span::before {
  content: '';
  position: absolute;
  top: 0;
  left: -0.05rem;
  /* underline-offset 相当 */
  width: 3px;
  height: 0;
  /* ★ 最初はゼロ */
  background: currentColor;
}

/* 文字アニメ */
.js-split-h1.is-show span {
  animation: h1CharIn 0.8s ease forwards;
}

/* underline アニメ */
.js-split-h1.is-show span::before {
  animation: underlineFlow 0.8s ease forwards;
  animation-delay: inherit;
  /* ★ 文字と同期 */
}

@keyframes h1CharIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes underlineFlow {
  to {
    height: 100%;
  }
}


/*NEWSここから*/

.topics {
  display: flex;
  border-top: 1px solid;
  border-bottom: 1px solid;
}

.topics-title {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  font-size: 24px;
  letter-spacing: 0;
}

.topics-wrap {
  flex: 1;
  overflow-x: auto;
}

.topics-wrap img {
  width: 80px;
  margin-right: 20px;
}

.topics-list {
  display: flex;
  height: 80px;
  white-space: nowrap;
}

.topics-list li {
  display: flex;
  border-right: 1px solid;
}

h2 {
  font-size: 30px;
}

.topics-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  padding: 12px 30px;
}

/*満天星についてここから*/

.about {
  padding: 165px 0 130px;
  text-align: center;
}

.about-wrap {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.about-cnt {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  text-align: left;
}

.about-img {
  width: 40%;
  height: 40%;
  box-shadow: 10px 10px #8989ff;
  position: relative;
}

.about-illust1 {
  position: absolute;
  width: 130px;
  box-shadow: none;
  top: -5%;
  right: -1%;
}

.about-illust2 {
  position: absolute;
  width: 100px;
  box-shadow: none;
  bottom: 9%;
  left: -8%;
  transform: rotate(-30deg);
}

.about-link {
  margin-top: 50px;
}

.c-btn-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

/* 矢印をCSSで表示（リクエストを発生させない） */
.c-btn-inner::before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  /* ここにSVGデータを直接記述（Data URI） */
  background-image: url("data:image/svg+xml,%3C!--%3Fxml version='1.0' encoding='utf-8'%3F--%3E%3C!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='_x32_' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 512 512' style='width: 256px; height: 256px; opacity: 1;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%234B4B4B;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M499.436,225.905L295.858,24.536c-16.623-16.438-43.428-16.305-59.866,0.328 c-16.438,16.613-16.294,43.418,0.329,59.856l130.356,128.958H42.329C18.956,213.679,0,232.624,0,255.997 c0,23.383,18.956,42.328,42.329,42.328h324.347L236.321,427.273c-16.623,16.438-16.767,43.254-0.329,59.867 c16.438,16.622,43.243,16.766,59.866,0.328l203.578-201.368c8.044-7.963,12.564-18.792,12.564-30.102 C512,244.685,507.479,233.866,499.436,225.905z' style='fill: rgb(0, 0, 0);'%3E%3C/path%3E%3C/g%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ホバー時の動き（共通化） */
.c-btn:hover .c-btn-inner {
  transform: translateX(4px);
}

/*画像挿入*/

.second-view {
  margin: 0 auto;
  position: relative;
}

.second-view-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.view-illust1 {
  width: 140px;
  position: absolute;
  bottom: -10%;
  left: 10%;
}

.view-illust2 {
  width: 130px;
  position: absolute;
  top: -9%;
  right: 8%;
}

/*プラネタリウム*/

.planetarium {
  padding: 165px 0 130px;
  text-align: center;
}

.planetarium-wrap {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.planetarium-cnt {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  text-align: left;
  position: relative;
}

.planetarium-illust {
  width: 150px;
  position: absolute;
  top: 5%;
  right: -10%;
  transform: rotate(30deg);
}

.planetarium-img {
  width: 40%;
  height: 40%;
  box-shadow: 10px 10px #8989ff;
}

.planetarium-link {
  margin-top: 50px;
}

.planetarium-link a .c-btn-inner {
  display: block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.planetarium-link a:hover .c-btn-inner {
  transform: translateX(4px);
}

/*星空観察会*/

.hosikan {
  padding: 165px 0 130px;
  text-align: center;
}

.hosikan-wrap {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.hosikan-cnt {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  text-align: left;
}

.hosikan-img {
  width: 40%;
  height: 40%;
  box-shadow: 10px 10px #8989ff;
  position: relative;
}

.hosikan-illust {
  width: 130px;
  box-shadow: none;
  position: absolute;
  left: -3%;
  bottom: 4%;
}

.hosikan-link {
  margin-top: 50px;
}

.hosikan-link a .c-btn-inner {
  display: block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.hosikan-link a:hover .c-btn-inner {
  transform: translateX(4px);
}

/*キャラクター*/

.character {
  padding: 165px 0 130px;
  text-align: center;
}

.character-wrap {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.character-cnt {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  text-align: left;
}

.character-img {
  width: 40%;
  height: 40%;
}

/*you tubeの紹介*/

.movie {
  width: 930px;
  max-width: 90%;
  background-color: #8989ff;
  padding: 50px 60px;
  margin-top: 55px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 200px;
}

.movie-head-text {
  font-size: 40px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
}

.video-container {
  position: relative;
  /* 子要素の iframe の基準点とする */
  width: 100%;

  /* 16:9 のアスペクト比を維持するために bottom-padding を設定 */
  /* 計算式: 9 / 16 * 100 = 56.25% */
  padding-bottom: 56.25%;
  height: 0;
  /* 高さはパディングで確保するため0にする */
  overflow: hidden;
}

.movie iframe {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.movie-text {
  line-height: 2.2;
  margin-top: 2rem;
}

/*画像挿入2個目*/

.third-view {
  margin: 0 auto;
}

.third-view img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/*アストロコテージ*/

.astro {
  position: relative;
}

.astro-title {
  padding-top: 105px;
  padding-bottom: 75px;
  text-align: center;
  font-size: 40px;
}

.astro-catch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  top: 5.6rem;
  right: 4rem;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
  writing-mode: vertical-rl;
  z-index: 10;
}

.astro-price {
  padding-top: 72px;
  padding-bottom: 146px;
  background-color: #8989ff;
  text-align: center;
  position: relative;
}

.astro-illust {
  width: 130px;
  position: absolute;
  left: 10%;
  top: -15%;
}

.astro-price-box {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 27px 54px;
  background-color: white;
}

.astro-price-box dt {
  padding: 10px 24px;
  border: solid 1px;
}

.astro-price-box dd em {
  font-size: 18px;
  margin-right: 0.5rem;
  margin-left: 1rem;
}

.astro-img {
  display: flex;
  flex-wrap: nowrap;
  gap: 50px;
  overflow-x: auto;
  padding: 0 px;
  margin-top: -70px;

  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.astro-img img {
  flex: 0 0 320px;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.astro-gallery {
  position: relative;
}


/* ナビボタン */
.astro-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.astro-nav.prev {
  left: 10px;
}

.astro-nav.next {
  right: 10px;
}

/* インジケーター */
.astro-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.astro-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
}

.astro-dots button.active {
  background: #333;
}

.astro-text {
  margin-top: 45px;
  padding-left: 20px;
  padding-right: 20px;
}

.astro-link {
  margin: 57px auto;
  text-align: center;
  max-width: 570px;
}

.astro-c-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px 36px;
  gap: 10px;
  background-color: #ffff8f;
  width: 100%;
  font-size: 18px;
  line-height: 1.6;
  text-align: right;
}

.astro-c-btn img {
  width: 15px;
}

.astro-link a .c-btn-inner {
  display: block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.astro-link a:hover .c-btn-inner {
  transform: translateX(4px);
}

/*やなぎだ植物園*/

.garden {
  padding: 165px 0 130px;
  text-align: center;
}

.garden-wrap {
  display: flex;
  justify-content: center;
  justify-content: space-around;
}

.garden-cnt {
  box-sizing: border-box;
  width: 40%;
  height: 40%;
  text-align: left;
}

.garden-img {
  width: 40%;
  height: 40%;
  box-shadow: 10px 10px #8989ff;
  position: relative;
}

.garden-illust {
  width: 120px;
  box-shadow: none;
  position: absolute;
  top: -10%;
  right: 0;
}

.garden-link {
  margin-top: 50px;
}

.garden-link a .c-btn-inner {
  display: block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.garden-link a:hover .c-btn-inner {
  transform: translateX(4px);
}

/*アクセス*/

.guide {
  padding-top: 135px;
  padding-bottom: 50px;
}

.guide-inner {
  margin: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 5%;
}

.guide-map {
  flex-shrink: 0;
  padding-bottom: 0px;
  position: relative;
  width: 45%;
  height: 600px;
  overflow: hidden;
}

.guide-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.guide-list {
  display: grid;
  flex: 1;
  gap: 60px;
  position: relative;
}

.guide-title {
  font-size: 40px;
}

.guide-illust {
  width: 100px;
  position: absolute;
  right: 15%;
  transform: rotate(-25deg)
}

.guide-item {
  display: flex;
  justify-content: flex-start;
  gap: 45px;
  align-items: flex-start;
}

.guide-item dt {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 120px;
  min-height: 42px;
  border: 1px solid;
  letter-spacing: 0.06em;
  flex-shrink: 0;
  padding: 0 10px;
}

.guide-item dd {
  flex: 1;
  line-height: 1.8;
}

.guide-item dd p:not(:last-child) {
  margin-bottom: 1em;
}

.guide-link a .c-btn-inner {
  display: block;
  transition: transform 0.3s ease;
  transform: translateX(0);
}

.guide-link a:hover .c-btn-inner {
  transform: translateX(4px);
}






/*レスポンシブ*-----------------------------------------------------------*/

@media screen and (max-width: 800px) {
  /*共通クラス*/

  .title-jp {
    font-size: 38px;
  }

  .catch {
    margin-top: 60px;
    font-size: 18px;
  }

  .text {
    margin-top: 40px;
    line-height: 2.2;
    font-size: 14px;
  }

  /*ファーストビュー*/

  .first-view-frame {
    height: 100vh - 80px;
    background-image: url(../images/index/main-frame-sp.png);
  }

  .first-view-text {
    position: absolute;
    writing-mode: horizontal-tb;
    line-height: 2.8em;
    gap: calc(1 / 375 * 100vw);
    top: auto;
    right: calc(10 / 375 * 100vw);
    bottom: calc(155 / 375 * 100vw);
    left: auto;
    margin: 0;
    font-size: calc(11 / 375 * 100vw);
    text-shadow: #fff 0 0 5px;
  }

  .js-split-h1 span::before {
    content: none;
    /* ★ 縦線を消す */
  }

  .js-split-h1 span {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    text-decoration-skip-ink: none;
  }



  /*ニュース*/

  .topics {
    position: relative;
    z-index: 10;
    background: var(--color-white);
  }

  .topics-title {
    width: 84px;
    font-size: 16px;
    position: sticky;
    left: 0;
    background-color: white;
    z-index: 10;
    flex-shrink: 0;
  }

  .topics-list {
    height: 60px;
  }

  .topics-item {
    font-size: 13px;
  }

  .topics-item img {
    width: 40px;
    margin-right: 10px;
  }

  /*満天星について*/

  .about {
    padding: 60px 0;
  }

  .about-wrap {
    flex-direction: column;
  }

  .about-img {
    order: 1;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: auto;
    box-shadow: 5px 5px #8989ff;
  }

  .about-cnt {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  .about-illust1 {
    width: 80px;
  }

  .about-illust2 {
    display: none;
  }

  /*画像挿入*/

  .view-illust1 {
    width: 80px;
  }

  .view-illust2 {
    width: 80px;
  }


  /*プラネタリウムについて*/

  .planetarium {
    padding: 80px 0;
  }

  .planetarium-wrap {
    flex-direction: column;
  }

  .planetarium-img {
    order: 1;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: auto;
    box-shadow: 5px 5px #8989ff;
  }

  .planetarium-cnt {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  .planetarium-illust {
    width: 80px;
    right: 4%;
  }

  /*星空観察会について*/

  .hosikan {
    padding: 80px 0;
  }

  .hosikan-wrap {
    flex-direction: column;
  }

  .hosikan-img {
    order: 1;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: auto;
    box-shadow: 5px 5px #8989ff;
  }

  .hosikan-cnt {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  .hosikan-illust {
    width: 90px;
    left: 2%;
  }

  /*キャラクター*/

  .character {
    padding: 60px 0;
  }

  .character-wrap {
    flex-direction: column;
  }

  .character-img {
    order: 1;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: auto;
  }

  .character-cnt {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  /*you tube*/

  .movie {
    padding: 30px 20px;
    margin-bottom: 100px;
    margin-top: 30px;
  }

  .movie-head-text {
    font-size: 20px;
    margin-bottom: 2rem;
  }

  .movie-text {
    font-size: 14px;
    line-height: 1.2;
    margin-top: 1rem;
  }

  /*アストロコテージ*/

  .astro-title {
    padding-top: 48px;
    padding-bottom: 38px;
    font-size: 38px;
    text-align: left;
    margin-left: 10px;
  }

  .astro-catch {
    gap: 3px;
    font-size: 15px;
    position: absolute;
    top: 5%;
    right: 1%;
  }

  .astro-price {
    padding: 32px 30px 100px;
  }

  .astro-price-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
  }

  .astro-price-box dt {
    padding: 4px 15px;
    font-size: 13px;
  }

  .astro-price-box dd {
    line-height: 1.8;
    text-align: left;
  }

  .astro-price-box dd em {
    font-size: 16px;
  }

  .astro-price-box dd small {
    font-size: 13px;
  }

  .astro-img {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    margin-top: -40px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .astro-img img {
    flex: 0 0 80%;
    max-width: 80%;
    border-radius: 8px;
    scroll-snap-align: center;
  }

  .astro-illust {
    display: none;
  }

  .astro-c-btn {
    width: 90%;
  }


  /*やなぎだ植物園*/

  .garden {
    padding: 60px 0;
  }

  .garden-wrap {
    flex-direction: column;
  }

  .garden-img {
    order: 1;
    width: 90%;
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 20px;
    height: auto;
    box-shadow: 5px 5px #8989ff;
  }

  .garden-cnt {
    order: 2;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px 20px;
  }

  .garden-illust {
    width: 70px;
  }

  /*アクセス*/

  .guide {
    padding: 60px 0;
  }

  .guide-inner {
    flex-direction: column;
    margin: 0 10px;
    gap: 0;
  }

  .guide-map {
    order: 1;
    width: 100%;
    max-width: none;
    margin: 0 0 30px 0;
    height: 0;
    padding: 0;
    padding-bottom: 75%;
  }

  .guide-list {
    order: 2;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 30px;
  }

  .guide-item {
    gap: 20px;
    flex-direction: column;
  }

  .guide-item dt {
    width: 100%;
    justify-content: flex-start;
  }

  .guide-item dd {
    padding: 0 10px;
  }

  .guide-illust {
    width: 50px;
  }
}