@charset "UTF-8";
@import url("grid.css");

img {
  display: block;
  height: auto;
  max-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}
img.loaded {
  opacity: 1;
}
a {
  display: block;
  color: #666;
  text-decoration-line: none;
}
a:hover {
  color: #999;
}
header h1 {
    border-bottom: 1px solid #cccccc; /* 下線 */
  color: #cccccc;
  text-align: center;
  padding: 0.3em;
  margin: 0;
  font-size: 1.0rem;
}

/* ヘッダー */
.header {
  padding: 2rem 0 0 0;
}
.header-box {
  margin-left: auto;
  margin-top: 8px;
  float: right;
}
.contact-button {
  padding: 1rem;
  border: 1px solid #c4360e;
}
nav ul {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  list-style: none;
  margin: 1rem 0 0 0;
}
nav li {
  flex: 1 0 auto;
}
nav li a {
  text-decoration: none;
  text-align: center;
  width: 100%;
}
nav a:hover {
  background-color: #f7f7f7;
}
nav a {
  padding: 0.5rem;
}

/* picture タグにはサイズ指定せず、レイアウト調整のみ */
.mainimg picture {
  display: block;
  max-width: 1440px;
  margin: 0 auto;
  aspect-ratio: 1440 / 516;
}

/* 実際の画像にだけ高さ・object-fitなどを適用 */
.mainimg img {
  display: block;
  width: 100%;
  height: 516px;
  object-fit: cover;
}

/* メインコンテンツ */
main {
  margin: 5rem 0 0 0;
}
section {
  margin: 5rem 0;
  padding: 3rem 0;
}
.gray-back {
  background-color: #f4f4f4;
}

/* キャッチコピー */
.catch {
  text-align: center;
}
.catch h2 {
  color: #c1c1c1;
  padding-bottom: 0.5rem;
}
.under {
  border-bottom: 0.2rem solid #c4360e;
  padding: 0 1rem 1rem 1rem;
}
.center {
  text-align: center;
  margin-bottom: 4rem;
}

/* フッター */
footer {
  background-color: #f7f7f7;
  padding: 5rem 0;
}
footer h4 {
  border-bottom: 3px solid #ccc;
}

/* コピーライト */
.copyright {
  text-align: center;
  padding: 1rem 0;
  background-color: #000;
}
.copyright a {
  color: #fff;
  text-decoration: none;
  display: inline;
}

/* PAGE TOP ボタン */
#pagetop {
  position: fixed;
  bottom: 15px;
  right: 15px;
}
#pagetop a {
  display: block;
  background: #000;
  color: #fff;
  width: 50px;
  padding: 10px 5px;
  text-align: center;
}
#pagetop a:hover {
  background: #666;
}

/* 問い合わせボックス */
.contact-flexbox {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 40px;
}
.contact-flexbox .contact-box {
  flex: 1 1 300px;
  max-width: 400px;
  box-sizing: border-box;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
}
.contact-flexbox .contact-box img {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
}

/* ギャラリー 表示切り替え */
@media screen and (min-width: 769px) {
  .gallery-pc {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0 16px;
    flex-wrap: nowrap;
  }

  .gallery-pc div {
    flex: 0 0 auto;
  }

  .gallery-pc img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }

  .gallery-mobile {
    display: none !important;
  }
}

@media screen and (max-width: 768px) {
  .gallery-pc {
    display: none;
  }

  .gallery-mobile {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
  }

  .gallery-mobile .swiper-wrapper {
    display: flex;
  }

  .gallery-mobile .swiper-slide {
    text-align: center;
  }

  .gallery-mobile .swiper-slide img {
    display: block;
    margin: 0 auto;
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
}

/* スマホ用レイアウト調整 */
@media screen and (max-width: 768px) {
  .header-box {
    display: none;
  }
  nav ul {
    flex-direction: column;
  }
  #open,
  #close {
    display: block;
    width: 50px;
    border: none;
    position: absolute;
    top: 20px;
    right: 12px;
  }
  #navi {
    display: none;
  }
  .contact-flexbox {
    flex-direction: column;
  }
  .greeting-text {
    font-size: 15px;
    line-height: 1.7;
  }
  .sp-hide {
    display: none;
  }
}

/* テキスト装飾 */
.greeting-text {
  line-height: 1.8;
  font-size: 16px;
  color: #333;
}
/* Swiper スマホ用スタイル追加 */
.gallery-mobile {
  position: relative;
}

.gallery-mobile .swiper {
  width: 100%;
  height: 100%;
}

.gallery-mobile .swiper-wrapper {
  display: flex;
  transition-timing-function: ease;
}

.gallery-mobile .swiper-slide {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  box-sizing: border-box;
}
.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
}
.gallery-mobile .swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-mobile .swiper-slide img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.ggmap {
  width: 100%;
  height: 400px; /* 高さを固定 */
  padding-bottom: 56.25%; /* 16:9比率 */
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .ggmap {
    height: 450px;
    padding-bottom: 0;
  }
}
.ggmap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.swiper {
  width: 100%;
  height: auto;
  overflow: hidden;
  touch-action: pan-y;
}
@media screen and (min-width: 769px) {
  #open,
  #close {
    display: none !important;
  }

  #navi {
    display: block !important;
  }
}
/* スマホ用（767px以下） */
.sp-only {
  display: none;
}

.pc-only {
  display: block;
}


@media screen and (max-width: 767px) {
  .sp-only {
    display: block !important;
  }

  .pc-only {
    display: none !important;
  }
}
.english-text {
  font-size: 90%;
  color: #666;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  max-width: 400px;
  margin: 1.5em auto 0;
  text-align: center;
}
.fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

  .cookie-consent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: -200px;
    left: calc(50% - 650px/2);
    width: 650px;
    font-size: 12px;
    background: #fff;
    padding: 1.2em;
    box-sizing: border-box;
    border: 1px solid #ddd;
    visibility: visible;
    transition: .5s;
  }
  .cookie-consent.is-show {
    bottom: 30px;
  }
  .cookie-text {
    width: 90%;
  }
  .cookie-agree {
    color: #fff;
    background: dodgerblue;
    padding: .5em 1.5em;
  }
  .cookie-agree:hover {
    cursor: pointer;
  }
  /* パッと消える */
  .cc-hide1 {
    display: none;
  }
  /* ゆっくり消える */
  .cc-hide2 {
    animation: hide 1s linear 0s;
    animation-fill-mode: forwards;
  }
  @keyframes hide {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
      visibility: hidden;
    }
  }
  /* メディアクエリ */
  @media screen and (max-width: 650px) {
    .cookie-consent {
      flex-direction: column;
      width: 300px;
      left: calc(50% - 300px/2);
    }
    .cookie-text {
      width: 100%;
      margin-bottom: 1em;
    }
  }