@charset 'utf-8';

/* CSS Document */

/* =========================
   Header
========================= */
#header {
  position: fixed;
  top: 0;
  left: 0;
}

.headerBottom {
  background-color: #fff;
}

.headerCard,
.headerCard:last-of-type {
  border: none;
  margin-right: 12px;
  flex-direction: row;
}

.headerCard:last-of-type {
  margin-right: 0;
}

#header .flexwrap > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  background-color: #fff;
  border-radius: 8px;
  color: #cd2e3a;
  text-decoration: none;
}

#header .flexwrap > a::before,
#header .flexwrap > a::after {
  content: "|||";
  font-size: 0.9em;
  font-weight: bold;
  color: #333;
}

#header .flexwrap > a p {
  margin: 0;
}

.hide {
  display: none;
}

/* =========================
   MV
========================= */
.slide-box {
  position: relative;
  width: 100%;
  margin-top: 74px;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}

.slide-box .slide,
.slide-box .item,
.slide-box .slide-content {
  width: 100%;
  height: 100%;
}

.slide-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mv-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.mv-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.mv-dot.is-active {
  background: #fff;
}

.mv-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.mv-arrow-prev {
  left: 16px;
}

/* =========================
   MV Nav
========================= */
.mv-nav {
  background: #fff;
  border-top: 3px solid #cd2e3a;
  border-bottom: 1px solid #e5e5e5;
}

.mv-nav-list {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.mv-nav-list li {
  flex: 1;
  text-align: center;
  border-right: 1px solid #ddd;
}

.mv-nav-list li:first-child {
  border-left: 1px solid #ddd;
}

.mv-nav-list a {
  display: block;
  padding: 22px 10px;
  color: #222;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.mv-nav-list li:hover {
  background: #ecf0fd;
}

.mv-nav-list li:hover a {
  color: #cd2e3a;
}

/* =========================
   Location
========================= */
.location {
  width: 100%;
  max-width: 1000px;
  height: 380px;
}

#location .in {
  padding: 0;
}

.location__wrap {
  position: relative;
}

.location__wrap img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 48%;
  min-width: 490px;
  min-height: 258px;
  height: auto;
  background-color: #fff;
  border: 2px solid #c73f3f;
}

.location__wrap p {
  position: absolute;
  top: 34px;
  right: 0;
  width: 48%;
  min-width: 540px;
  min-height: 256px;
  height: auto;
  padding: 50px;
  background-color: #ffe9e9;
  font-size: 16px;
}

/* =========================
   About
========================= */
#about {
  padding: 80px 20px;
  background: #fafafa;
}

.about-container {
  max-width: 1100px;
  margin: auto;
}

.about-title {
  margin-bottom: 60px;
  font-size: 32px;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.about-card {
  padding: 30px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.about-card-above {
  background: rgba(205, 46, 58, 0.2);
}

.about-card-below {
  background: rgba(1, 71, 160, 0.2);
}

.about-card-other {
  background: rgba(0, 0, 0, 0.05);
}

.about-card img {
  width: 100%;
  margin-bottom: 20px;
}

.about-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.about-card p {
  font-size: 15px;
  line-height: 1.8;
}

.about-korean {
  position: relative;
  padding: 0 36px;
}

.about-korean::before,
.about-korean::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 1px;
  height: 1.8em;
  background: #000;
  transform: translateY(-50%);
}

.about-korean::before {
  left: 8px;
  box-shadow:
    4px 0 0 #000,
    8px 0 0 #000;
}

.about-korean::after {
  right: 8px;
  box-shadow:
    -4px 0 0 #000,
    -8px 0 0 #000;
}

.about-wide {
  grid-column: 1 / span 2;
  text-align: left;
}

/* =========================
   Kanko Map
========================= */
#kanko-map a {
  display: block;
}

#kanko-map img {
  border: 1px solid #333;
  border-top: none;
}

/* =========================
   Responsive
========================= */

/* 1024px */
@media (max-width: 1024px) {
  .slide-box {
    aspect-ratio: 16 / 9;
  }
}

/* 1001px */
@media screen and (max-width: 1001px) {
  ul li p {
    font-size: 10px;
  }

  .location {
    height: auto;
  }

  .location__wrap {
    text-align: center;
  }

  .location__wrap img {
    position: unset;
    width: 100%;
    margin-bottom: 40px;
  }

  .location__wrap p {
    position: unset;
    top: unset;
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  .mapFlex__item-left {
    width: 20%;
  }

  .mapFlex__item-right {
    width: 70%;
  }

  .mapFlex__item--2 .mapButtons {
    width: auto;
    margin: 0 auto;
    grid-template-columns: 1fr 1fr;
  }

  .mapFlex__item--2 .mapButtons button,
  .mapFlex__item--4 .mapButtons button {
    width: auto;
  }

  .mapFlex__item--4 .mapButtons {
    width: auto;
  }
}

/* 876px */
@media screen and (max-width: 876px) {
  .viewMainImg {
    height: auto;
    aspect-ratio: 1.5 / 1;
  }

  ul > div {
    flex-wrap: wrap;
  }

  ul li {
    width: calc(100% / 4);
    margin-bottom: 20px;
  }

  ul li p {
    font-size: 12px;
  }

  .aboutHachioji {
    max-height: unset;
  }

  .aboutFlex {
    flex-direction: column;
  }

  .aboutFlex img {
    width: 100%;
    height: auto;
  }
}

/* 768px */
@media (max-width: 768px) {
  .slide-box {
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .mv-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .mv-arrow-prev {
    left: 10px;
  }

  .mv-dots {
    bottom: 10px;
    gap: 8px;
  }

  .mv-dot {
    width: 10px;
    height: 10px;
  }

  .mv-nav {
    display: none;
  }

  .mv-nav-list {
    flex-wrap: wrap;
  }

  .mv-nav-list li {
    width: 50%;
    border-bottom: 1px solid #eee;
  }

  .mv-nav-list li:nth-child(2n) {
    border-right: none;
  }

  .mv-nav-list a {
    padding: 16px 10px;
    font-size: 14px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-wide {
    grid-column: auto;
  }
}

/* 692px */
@media screen and (max-width: 692px) {
  .location__wrap p,
  .location__wrap img {
    min-width: unset;
    min-height: unset;
  }

  #about {
    padding: 80px 0;
  }

  .aboutHachioji {
    grid-template-columns: 1fr;
  }

  .aboutFlex img,
  .aboutFlex p {
    width: 90%;
    margin: 0 auto;
  }

  .mapFlex__item {
    flex-direction: column-reverse;
  }

  .mapFlex__item-right {
    width: 100%;
    margin-bottom: 40px;
  }

  .mapFlex__item-left {
    width: 100%;
    height: auto;
    text-align: center;
  }

  .mapFlex__item-left img {
    width: 30%;
    height: auto;
  }
}

/* 601px */
@media screen and (max-width: 601px) {
  .slide-box {
    aspect-ratio: 1;
    margin-top: 90px;
  }
}

/* 476px */
@media screen and (max-width: 476px) {
  ul {
    padding: 12px 0;
  }

  ul li {
    width: calc(100% / 3);
    margin-bottom: 20px;
  }

  ul > div {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .EnTop.lower p {
    font-size: 14px;
  }

  .mapFlex__item-right h3.mapFlex__item-title {
    font-size: 20px;
    text-align: center;
  }

  .mapFlex__item .mapButtons {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .mapFlex__item--1 .mapButtons button,
  .mapFlex__item--2 .mapButtons button,
  .mapFlex__item--4 .mapButtons button {
    width: 100%;
  }

  .mapFlex__item--2 .mapButtons {
    width: 100%;
  }

  .mapFlex__item--2 .mapButtons button:nth-child(1) {
    height: 49px;
  }

  .mapFlex__item--3 .mapButtons {
    width: 100%;
  }

  .mapFlex__item--3 .mapButtons button {
    width: 90%;
    margin: 0 auto 16px;
  }

  .aboutHachioji .aboutFlex p {
    font-size: 14px;
  }

  #about .mt15rem,
  #about .aboutHachioji__other .mt15rem {
    padding: 40px 32px;
  }
}
