@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

/* メニューオープン時 */
@media (max-width: 599px) {
  body.menu-open {
    overflow: clip;
  }
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}

.section {
  margin: 86px 0;

  @media (min-width: 600px) {
    margin: 120px 0;
  }
}

.section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  text-align: center;
  padding: 8px;
  position: relative;

  @media (min-width: 600px) {
    margin-bottom: 24px;
  }

  &::before {
    position: absolute;
    border-bottom: 3px solid #353656;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    content: '';
  }
}
/* sub title marker */
/* h2 span {
  background: linear-gradient(transparent 50%, rgba(108, 225, 249, 0.5) 50%);
}
h2 {
  text-align: center;
  margin-top: 30px;
  font-size: 2rem;
} */

.wrapper {
  margin: 0 auto;
  padding: 0 4%;
  max-width: 1200px;
}

/* --- スクロールで全要素がフェードインする共通クラス --- */
.scroll-fadein {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.scroll-fadein.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* footer */

footer {
  background: #353656;
  margin-top: 50px;
  position: relative;
  width: 100%;
}
footer a {
  color: #fff;
}
footer p {
  text-align: center;
  padding: 20px 0 5px;
  color: #fff;
}
.copyright {
  padding: 1.5rem 0;
  background: #353656;
  text-align: center;
  color: #fff;
  width: 100%;
  position: absolute;
}

/* header
================================ */

.header {
  width: 100%;
  background-color: rgba(53, 54, 86, 0.8);
  z-index: 1999;
  position: fixed;
  top: 0;
  left: 0;

  @media (max-width: 599px) {
    height: 75px;
  }
  @media (min-width: 600px) {
    height: 100px;
  }
}

.header_container {
  margin: 0 auto;
  padding-left: 4%;
  padding-right: 4%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  a {
    display: block;
    line-height: 1;

    img {
      width: 55px;
      height: auto;

      @media (min-width: 600px) {
        width: 70px;
      }
    }
  }
}

/* gnav */
#gnav ul {
  display: flex;
}
#gnav a {
  text-transform: uppercase;
}

/* sp menu */
@media (max-width: 1099px) {
  #gnav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100svh;
    background: #353656;
    opacity: 0.9;
    overflow-y: auto;
    visibility: hidden;
    z-index: 998;
    transition: all 0.3s;
  }
  .menu-open #gnav {
    translate: -100%;
    visibility: visible;
  }
  #gnav ul {
    height: 100%;
    flex-direction: column;
    justify-content: center;
    font-size: 1.25rem;
  }
  #gnav li {
    text-align: center;
    height: 66px;
    line-height: 66px;
  }
  #gnav a {
    color: #fff;
    display: block;
  }
  #top {
    padding-top: 100px; /* headerの高さ60px以上の余白を指定 */
  }
}

/* pc menu hover */

@media (min-width: 1100px) {
  #gnav ul {
    gap: 25px;
    font-size: 1rem;
  }
  #gnav a {
    color: #fff;
    position: relative;

    &::after {
      position: absolute;
      bottom: -8px;
      left: 0;
      content: '';
      width: 100%;
      height: 2px;
      background: #fff;
      transform: scale(0, 1);
      transform-origin: center top;
      transition: 0.3s;
    }

    &:hover::after {
      transform: scale(1, 1);
    }
  }

  .gnav-ham {
    display: none;
  }
}

/* login botton */
.header-login-btn {
  color: #fff;
  padding: 2px 6px 2px 26px;
  border: 1px solid #fff;
  border-radius: 6px;
  position: relative;
  line-height: 1;

  &::after {
    display: none;
  }

  &::before {
    position: absolute;
    content: '';
    display: block;
    width: 17px;
    height: 17px;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-image: url(../images/header-login-btn.png);
    background-size: contain;
  }
}

.login-li {
  @media (max-width: 1100px) {
    display: none;
  }
}

/* dropdown */

.gnav-dropdown {
  display: none;
}

@media (min-width: 1100px) {
  .gnav-dropdown {
    display: block;
    position: relative;
    transition: transform 0.3s ease;

    &:hover .gnav-dropdown-contents {
      display: flex;
      flex-direction: column;
      visibility: visible;
    }
  }

  .gnav-dropdown-text {
    color: #fff;
    cursor: pointer;
    position: relative;
  }

  .gnav-dropdown-contents {
    display: none;
    width: 120px;
    position: absolute;
    left: 0;
    bottom: -96px;
    z-index: 999;
    background-color: #353656;
    opacity: 0.7;
    padding: 10px;
    animation: dropdown 1s;
    animation-fill-mode: forwards;
  }

  @keyframes dropdown {
    from {
      opacity: 0;
      transform: translateY(-10%);
    }
    to {
      opacity: 0.65;
      transform: translateY(0);
    }
  }

  .dropdown-a {
    display: inline-block;
    width: 100px;
    padding: 6px;
    position: relative;

    &::after {
      position: absolute;
      bottom: -8px;
      left: 0;
      content: '';
      width: 100%;
      height: 2px;
      background: #fff;
      transform: scale(0, 1);
      transform-origin: center top;
      transition: 0.3s;
    }

    &:hover::after {
      transform: scale(1, 1);
    }
  }
}

/* .dropdown-a-nanba {
  font-size: 0.875rem;
  text-align: center;
} */

/* menu-btn */

#menu-btn {
  width: 44px;
  height: 44px;
  border: none;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 999; /* #gnavより上のレイヤーに */

  @media (min-width: 1100px) {
    position: fixed;
  }
}

.bar,
.bar::before,
.bar::after {
  content: '';
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: #fff; /* 3本ラインの色を変更 */
  position: absolute;
  transition: all 0.4s ease-out;
}
.bar::before {
  bottom: 8px;
}
.bar::after {
  top: 8px;
}
.menu-open .bar {
  background: transparent;
}
.menu-open .bar::before {
  bottom: 0;
  width: 28px;
  rotate: 45deg;
}
.menu-open .bar::after {
  top: 0;
  width: 28px;
  rotate: -45deg;
}

@media (min-width: 1100px) {
  #menu-btn {
    display: none;
  }
}

/* main-visual
================================= */

/* .top-main-visual-contents {
  position: absolute;
  background: url(../image/bg_fv.png) center center no-repeat;
  width: 100%;
  height: 250px;
  margin: 0;
  padding: 0;
  bottom: 10px;
  background-size: 100% auto;
} */

/* top-main-visualにフェードイン＋ズームのアニメーションを追加 */
/* top-main-visualの画像の上にテキストを重ねて中央配置＋アニメーション */

/* #top-main-visual {
  position: relative;
  overflow: hidden;
}

.top-main-visual-img img,
.top-main-visual-img source {
  display: block;
  min-width: 100%;
  height: 106vh;
  object-fit: cover;
  animation: visual-zoom-fade 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.top-main-visual-img source {
  display: none;
}

@keyframes visual-zoom-fade {
  0% {
    transform: scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
} */

/* メインビジュアルのスライダー用調整 */
#top-main-visual,
.swiper,
.swiper-slide {
  position: relative;
  overflow: hidden;
}
/* フェードイン＋ズームのみ */
.top-main-visual-img img {
  min-width: 100%;
  height: 100vh;
  object-fit: cover;
  display: block;
  opacity: 1;
  animation: visual-zoom-fade-move 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  background: #222;
}

@keyframes visual-zoom-fade-move {
  0% {
    transform: scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* テキストを画像の上に中央配置 */
.top-main-visual-contents {
  position: absolute;
  z-index: 2;
  width: 65%;
  text-align: left;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  opacity: 0;
  animation: visual-content-fade 1.2s 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  font-size: 3rem;
  padding: 28px;
  bottom: 12%;
  left: 4%;
  letter-spacing: 0.07em;
  line-height: 1.7;
  background-color: rgba(50, 50, 50, 0.5);
  /* border-radius: 12px; */

  p {
    padding: 6px;
  }

  @media (min-width: 600px) {
    font-size: 1.75rem;
    width: 40%;
    background-color: rgba(50, 50, 50, 0.4);
  }
}

@keyframes visual-content-fade {
  to {
    opacity: 1;
    /* transform: translate(-50%, -50%); */
  }
}

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .top-main-visual-contents {
    font-size: 1rem;
    padding: 0 10px;
  }
}

/* テキストのフェードイン・フェードアウトアニメーションを調整 */

.top-main-visual-contents {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-main-visual-contents.is-animate.fadein-up {
  opacity: 1;
  transform: translateY(0);
}

.top-main-visual-contents.fadeout-up {
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* 画像より早く消えるように0.4sに */
}

/* すべてのスライド画像を非表示に */
.top-main-visual-img img {
  opacity: 0 !important;
  transition: opacity 0.2s;
}

/* Swiperのactiveスライドだけ表示＆アニメーション */
.swiper-slide-active .top-main-visual-img img,
.swiper-slide-duplicate-active .top-main-visual-img img {
  opacity: 1 !important;
}

/* アニメーションはactiveスライドの画像だけに適用 */
.swiper-slide-active .top-main-visual-img img.is-animate.slidein-right,
.swiper-slide-duplicate-active .top-main-visual-img img.is-animate.slidein-right {
  animation: slidein-right 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.swiper-slide-active .top-main-visual-img img.is-animate.slidein-left,
.swiper-slide-duplicate-active .top-main-visual-img img.is-animate.slidein-left {
  animation: slidein-left 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.swiper-slide-active .top-main-visual-img img.is-animate.slidein-up,
.swiper-slide-duplicate-active .top-main-visual-img img.is-animate.slidein-up {
  animation: slidein-up 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.swiper-slide-active .top-main-visual-img img.is-animate.slidein-down,
.swiper-slide-duplicate-active .top-main-visual-img img.is-animate.slidein-down {
  animation: slidein-down 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.swiper-slide-active .top-main-visual-img img.is-animate.fadein-zoom,
.swiper-slide-duplicate-active .top-main-visual-img img.is-animate.fadein-zoom {
  animation: fadein-zoom 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slidein-right {
  0% {
    transform: translateX(60px) scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes slidein-left {
  0% {
    transform: translateX(-60px) scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}
@keyframes slidein-up {
  0% {
    transform: translateY(60px) scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes slidein-down {
  0% {
    transform: translateY(-60px) scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes fadein-zoom {
  0% {
    transform: scale(1.08);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* news
================================= */

.top-news-link {
  display: block;
  align-items: center;
  padding: 24px 20px;
  transition: background-color 0.5s;
}
.top-news-link:not(:first-of-type) {
  border-top: 1px solid #ccc;
}
.top-news-info {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  margin-bottom: 12px;
}
.top-news-date {
  color: #333;
  font-size: 14px;
}
.top-news-category {
  background-color: #353656;
  color: #fff;
  font-size: 0.75rem;
  margin-left: 10px;
  padding: 0 8px;
  border-radius: 8px;
}
.top-news-title {
  line-height: 1.5;
  font-size: 0.75rem;
}
.top-news-link:hover {
  background-color: #d9d9d9;
}

.btn {
  position: relative;
  display: block;
  width: 280px;
  padding: 15px 0;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;

  &::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: -20px;
    width: 9px;
    height: 9px;
    margin: auto;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    box-sizing: border-box;
  }
}

/* information
================================= */
.top-grid {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(1, 1fr);
  border-radius: 12px;

  @media (min-width: 600px) {
    max-width: 1100px;
    grid-template-columns: repeat(2, 1fr);
    justify-content: space-between;
    gap: 80px;
  }
}

.top-card {
  width: 100%;
  height: 100%;
  background: #f0f0f0;
  border-radius: 12px;
  padding: 0 0 12px;
  box-shadow: 0 0 8px #ccc;
  display: grid;
  gap: 16px;
  grid-row: span 4;
}

.top-card-img-cv {
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.top-card-img {
  transition: all 0.3s ease-in-out;

  &:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }

  img {
    aspect-ratio: 3/2;
    object-fit: cover;
    opacity: 0.85;
  }
}

.top-card-title {
  font-size: 1.5rem;
  font-weight: normal;
  font-weight: bold;
  margin: 0 20px;
}
.top-card-text {
  font-size: 0.875rem;
  text-align: justify;
  margin: 0 20px;
}

.btn {
  position: relative;
  display: block;
  width: 280px;
  padding: 15px 0;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;

  &::after {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    right: -14px;
    width: 10px;
    height: 10px;
    margin: auto;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
    transform: rotate(45deg);
    box-sizing: border-box;
    transition: 0.3s ease;
  }

  &:hover::after {
    translate: 4px;
  }
}

.top-card-link {
  margin: 0 20px;
  width: 100px;
}

/* ==============================
=================================
=================================
access
=================================
=================================
================================= */

.access-main-visual {
  @media (max-width: 599px) {
    p {
      margin-top: 75px;
      color: #fff;
      font-size: 2rem;
      background: linear-gradient(0deg, #49496b, #fff);
      top: 75px;
      left: 0;
      width: 100%;
      display: block;
      padding: 8px;
    }
  }

  @media (min-width: 600px) {
    background: url(../images/access-top.webp);
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;

    p {
      position: absolute;
      color: #fff;
      font-size: 4rem;
      padding: 56px;
      left: 0;
      bottom: 0;
      background-color: transparent;
    }
  }
}

/* access-umeda
================================= */

@media (min-width: 600px) {
  .access-wrapper {
    padding: 0 96px;
  }

  .access-contents-cv {
    display: flex;
    justify-content: space-between;
  }
}

.access-address {
  margin-top: 36px;
}

.access-gmap {
  width: 100%;
  margin-top: 36px;
}

.access-contents {
  margin-top: 48px;

  p {
    margin-top: 12px;
  }
}

.access-title-train {
  margin-left: 32px;
  position: relative;

  &::before {
    position: absolute;
    content: '';
    background: url(../images/access-train.png) no-repeat;
    background-size: contain;
    top: 0;
    left: -36px;
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
  }
}

.access-title-car {
  margin-left: 32px;
  position: relative;

  &::before {
    position: absolute;
    content: '';
    background: url(../images/access-car.png) no-repeat;
    background-size: contain;
    top: 0;
    left: -36px;
    width: 28px;
    height: 28px;
    display: inline-block;
    vertical-align: middle;
  }
}
.page-top {
  width: 80px;
  height: 60px;
  background: url(../images/pagetop.svg) no-repeat center/60%;
  background-color: rgb(56 62 69 / 0.7);
  border-radius: 30% 0 0 30%;
  position: fixed;
  right: -100px;
  bottom: 140px;
  transition: transform 1s linear;
}

.page-top.slidein {
  transform: translateX(-100px);
}
