/* サイト全体で共有するCSS */
:root {
  --inner-width: 1000px;
  --side-space: 20px;
  --btn-color: #747482;
}

body {
  font-family: "游明朝", "Yu Mincho", "Hiragino Mincho ProN", serif;
}
.inner {
  width: min(var(--inner-width), calc(100% - var(--side-space) * 2));
  margin-inline: auto;
}
br .br_sp {
  display: none;
}
.mv {
  padding-top: 116px;
}

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

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--btn-color) 75%, white), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.header.is-scrolled:not(.is-menu-open)::before {
  opacity: 1;
}
.header.is-menu-open {
  background: #fff;
}
.header__inner {
  padding: 20px 30px;
}
.header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--btn-color);
}
.contact_btn {
  display: flex;
  align-items: center;
  gap:10px;
  margin-bottom: 20px;
}
.contact_btn a {
  background-color: var(--btn-color);
  color: #fff;
  padding: 4px 12px;
}
h1 {
  font-size: 16px;
  font-weight: 500;
}
.header__logo {
  z-index: 102;
  width: min(180px, 34%);
}
.header__top ul {
  display: flex;
  font-size: 16px;
  justify-content: right;
}
.header__top ul li:not(:last-child)::after {
  content: "／";
  margin: 0 8px;
}

/* =========================
  hamburger
========================= */

.hamburger {
  position: absolute;
  right: 30px;
  z-index: 102;
  width: 100px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  position: absolute;
  left: 5px;
  width: 90px;
  height: 2px;
  background: #000;
  transition:
    top 0.35s ease,
    transform 0.35s ease,
    opacity 0.25s ease;
}

.hamburger span:nth-child(1) {
  top: 10px;
}

.hamburger span:nth-child(2) {
  top: 19px;
}

.hamburger span:nth-child(3) {
  top: 28px;
}

@media (min-width: 769px) {
  .header__inner {
    display: grid;
    grid-template-columns: 100px 1fr;
    align-items: center;
  }

  .header__top {
    grid-area: 1 / 1 / 2 / -1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .header__logo {
    grid-column: 2;
    width: 180px;
  }

  .header__top > div {
    grid-column: 3;
    justify-self: end;
  }

  .hamburger {
    grid-area: 1 / 1;
    position: relative;
    right: auto;
  }
}


/* 開いた時 */
.hamburger.is-open span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open span:nth-child(3) {
  top: 19px;
  transform: rotate(-45deg);
}


/* =========================
  menu
========================= */
.menu {
  position: fixed;
  inset: 0;
  z-index: 101;
  width: 100%;
  margin-top: 100px;
  box-sizing: border-box;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
}
.menu__inner {
  position: relative;
  max-width: 830px;
  margin-inline: auto;
}
.menu__close {
  display: none;
}
.menu.is-open {
  opacity: 1;
  visibility: visible;
}

/* 横長 */
.menu__wide {
  display: block;
  width: 100%;
  margin-bottom: 15px;
}

.menu__wide img {
  display: block;
  width: 100%;
  height: auto;
}

/* 2列 */
.menu__columns {
  display: flex;
  gap: 15px;
}

.menu__column {
  flex: 1;
  min-width: 0;
  margin-bottom: 20px;
}

.menu__link {
  display: block;
}
.menu__link + .menu__link {
  margin-top: 15px;
}

.menu__link img {
  display: block;
  width: 100%;
  height: auto;
}

.menu__link--disabled {
  position: relative;
  cursor: not-allowed;
  background-color: #333;
}

.menu__link--disabled img {
  filter: grayscale(1);
  opacity: 0.35;
}

#global-nav a {
  filter: brightness(1);
  transition: filter 0.4s ease;
}

#global-nav a:hover {
  filter: brightness(1.3);
}

/* 背景ページは固定 */
body.is-menu-open {
  overflow: hidden;
}

/* =========================
  footer
========================= */
.footer {
  padding: 180px 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 60px;

  a {
    opacity: 1;
    transition: opacity 0.4s ease;
  }

  a:hover {
    opacity: 0.7;
  }

  .contact_btns {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .btns {
    display: flex;
    gap: 40px;
    padding: 0 60px;
  }
  .sp_menu_btns {
    display: none;
    position: fixed;
    width: 100%;
    left: 0;
    bottom: 0;
    z-index: 15;
  }
  .sp_menu_btns ul {
    display: flex;
    align-items: center;
  }
  .sp_menu_btns ul li {
    height: 60px;
    width: calc(100% / 4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
  }
  .sp_menu_btns ul li:nth-child(odd) {
    background-color: var(--btn-color);
  }
  .sp_menu_btns ul li:nth-child(even) {
    background-color: #900000;
  }
  small {
    font-family: "Tinos", serif;
  }
}



/* =========================
  下からふわっと Fade animation
========================= */

.js-fade {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-fade.is-show {
  opacity: 1;
  transform: translateY(0);
}


/* =========================
  左からふわっと Fade from left
========================= */

.js-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-fade-left.is-show {
  opacity: 1;
  transform: translateX(0);
}


/* =========================
  右から Fade from right
========================= */

.js-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.js-fade-right.is-show {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
  上から Fade down
========================= */
.js-fade-down {
  opacity: 0;
  transform: translateY(-200px);
  transition:
    opacity 1.4s ease,
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.js-fade-down.is-show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
  左上 → 右下に画像が見えてくる Image reveal
========================= */
.js-reveal {
  overflow: hidden;
}
.js-reveal__inner {
  clip-path: polygon(
    0 0,
    0 0,
    0 0,
    0 0
  );
  transition: clip-path 2.2s cubic-bezier(0.77, 0, 0.175, 1), transform 4s ease;
}

/* 表示時 */
.js-reveal.is-show .js-reveal__inner {
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    0 100%
  );
}

.js-reveal img {
  display: block;
  width: 100%;
  height: auto;
}

/* ========================================
    Scroll Scale
    スクロールに合わせて画像をゆっくり縮小
======================================== */

.scroll-scale {
  width: 100%;
  overflow: hidden;
}

.scroll-scale img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.2);
  transform-origin: center center;
  will-change: transform;
}

/* アニメーションを抑制する設定 */
@media (prefers-reduced-motion: reduce) {
  .scroll-scale img {
    transform: none !important;
    will-change: auto;
  }
}


/* =========================
    Delay
========================= */

.delay-01 {
  transition-delay: 0.1s;
}

.delay-02 {
  transition-delay: 0.2s;
}

.delay-03 {
  transition-delay: 0.3s;
}

.delay-04 {
  transition-delay: 0.4s;
}

.delay-05 {
  transition-delay: 0.5s;
}

/* =========================
      スライド 
========================= */
.slider-container {
  max-width: 100%; /* コンテナの幅を画面いっぱいに */
  margin: 0 auto;
  overflow: hidden; /* スライダーの外にはみ出る部分を隠す */
  position: relative;
  .slider {
    img {
      width: 100%;
      height: auto; /* 縦横比を保持 */
      margin: 0;
      touch-action: auto;
    }
  }
  .slider .slick-slide {
    box-sizing: border-box;
    padding: 0;
  }
  .slick-prev, .slick-next {
    z-index: 3;
  }
  .slick-prev {
    left: 4px;
  }
  .slick-next {
    right: 4px;
  }
  .slick-prev, .slick-next {
    width: 30px;
    height: 30px;
  }
}
.slick-slide p {
  padding: 40px 80px;
  line-height: 1.8;
}

.slick-slide p span {
  font-size: 80%;
}

/* スライド再生ボタン */
.slick-play,
.slick-pause {
width: 30px;
height: 30px;
border-radius: 50%;
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
margin: 0 0 15px 0;
}
.slick-play i,
.slick-pause i {
font-size: 15px;
}
.play_pause {
  display: flex;
}
.modalBox {
  width: 85%;
  max-width: 420px;
  margin: auto;
  overflow: hidden;
  opacity: 1;
  display: none;
  border-radius: 3px;
  z-index: 1000;
}
.modalInner {
  padding: 10px;
  text-align: center;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.slick-prev,.slick-next{
  width: 40px;
  height: 40px;
}
.slick-prev:before, .slick-next:before {
  font-size: 40px;/*少し大きくする*/
  opacity: 0.8;
}


/* =========================
    prefers-reduced-motion
========================= */

@media (prefers-reduced-motion: reduce) {
  .js-fade,
  .js-fade-left,
  .js-fade-right,
  .js-fade-down,
  .js-reveal {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  .mv {
    padding-top: 65px;
  }
  br .br_sp {
    display: block;
  }
  .js-fade-down,
  .js-fade-down.is-show {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .header__top > div, .hamburger {
    display: none;
  }
  .header__inner {
    padding: 15px;
  }
  .header__top {
    margin-bottom: 0;
  }

  .menu__close {
    display: block;
    margin: 0 0 15px auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-family: inherit;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
  }
  .menu {
    margin-top: 0;
  }
  .menu__inner {
    padding: 0 10px;
  }
  .menu__wide, .menu__column {
    margin-bottom: 6px;
  }
  .menu__link + .menu__link {
    margin-top: 6px;
  }
  .menu__columns {
    gap: 6px;
  }
  .footer {
    padding: 90px 10px 80px 10px;
  }
  .footer .btns {
    flex-direction: column;
    align-items: center;
    padding: 0;
    gap: 20px;
  }
  /* 高さ 58px に揃え、画面が狭いときは横長のロゴを幅に合わせて縮める */
  .footer .btns a img {
    max-width: 100%;
    max-height: 58px;
  }
  .footer .sp_menu_btns { 
    display: block;
  }
}
