@charset "UTF-8"

/* 共通部分
----------------------------------------- */
html {
  font-size: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.7;
  color: black;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
}

html, body {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body, header, section, h1, p, ul {
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 768px) {
  section {
    padding: 0 1rem;
  }
}

section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* BACK TO TOP */

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  pointer-events: none; /* ← 非表示時にクリックできない */
  transition: opacity 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto; /* ← 表示時だけクリックOK */
}

.back-to-top img {
  width: 22px;
  height: 22px;
  filter: invert(1); /* ← 白っぽく反転（黒背景に合う） */
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  background: black;
  transform: translateY(-4px);
}

.back-to-top:hover img {
  transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
  .back-to-top {
    bottom: 80px; /* ← ナビの高さ分上に */
  }
}

/* HEADER
--------------------------------------- */
.logo {
  width: 450px;
  margin: 0;
  display: block;
}

.pc-main-nav {
  display: flex;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
  list-style: none;
}

.pc-main-nav li {
  margin-left: 36px;
}

.pc-main-nav a {
  color: rgb(255, 255, 255);
}

.pc-main-nav a:hover {
  color: darkgrey;
}

.mobile-bottom-nav {
  display: none;
}

/* --- スマホ表示時 --- */
@media screen and (max-width: 768px) {
  .pc-main-nav {
    display: none;
  }

  .mobile-bottom-nav {
   display: flex;
   justify-content: space-around;
   align-items: center;
   position: fixed;
   bottom: 0;
   width: 100%;
   height: 64px;
   background: #fff;
   border-top: 1px solid #eee;
   box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
   z-index: 1000;
   padding-bottom: env(safe-area-inset-bottom); /* ← iPhoneのホームバー対応 */
   constant(safe-area-inset-bottom); /* ← 古いiOS対応 */
  }

  body {
  padding-bottom: calc(64px + env(safe-area-inset-bottom));
}

  .nav-item {
  display: flex;
  flex-direction: column;   /* ←これで縦方向 */
  align-items: center;
  justify-content: center;
  flex: 1;
  text-decoration: none;
  color: #444;
  font-size: 11px;
  transition: color 0.3s ease;
  }

  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 20px;
  }

  .mobile-bottom-nav span {
   font-size: 10px;
   color: #666;
   margin-top: 2px;
   letter-spacing: 0.05em;
 }  

  /* スクロール領域が隠れないように余白をつける */
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
}

.page-header {
  display: flex;
  align-items: center;   /* ←縦方向の中央揃え */
  justify-content: space-between;
  background-color: black;
  margin-bottom: -1px;
  padding: 10px 3%;
}

.wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 3%;
}

.page-header.wrapper {
  padding-top: 0;
  padding-bottom: 0;
}

/* HOME
--------------------------------------- */
#hero {
  background-size: cover;
  background-position: center top;
  background-image: url(../img/top_bg.jpg);
  background-color:rgba(255,255,255,0.5);
  background-blend-mode:lighten;
  margin: 0;
  padding: 0;
  line-height: 0; 
  font-size: 0;   
  overflow: hidden;
}

#hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}


/* ABOUT
--------------------------------------- */
#about {
  background-size: cover;
  background-position: center top;
  background-image: url(../img/menu_bg.jpg);
  background-color:rgba(255,255,255,0.5);
  background-blend-mode:lighten;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Grid配置 PC用*/
.image-top {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.text {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}

.image-bottom {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

/* スタイル調整 */
.about-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.text h2 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.text p {
  line-height: 1.6;
}

/* スマホ用：縦並びに変更 */
@media screen and (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;   /* ← 1カラムに */
    grid-template-rows: auto;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .image-top,
  .text,
  .image-bottom {
    grid-column: 1 / 2;  /* 全部1列に */
    grid-row: auto;      /* 自動配置 */
  }

  .text {
    text-align: left;
  }

  .text h2 {
    text-align: center;  /* 小さい画面では中央見出しも◎ */
    font-size: 1.4rem;
  }

  .text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }
}

/* GALLERY
--------------------------------------- */

.page-title {
  text-align: center;
  padding-top: 0;
  padding-bottom: 2rem;
}

.grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-items: center;        /* ← 画像を常に中央寄せ！ */
  max-width: 1100px;
  margin: 6% auto 50px;         /* ← 真ん中配置 */
  padding: 0 1rem;              /* ← スマホ時に自然な余白 */
  box-sizing: border-box;
}

.grid img {
  transition: transform 0.5s ease, filter 0.5s ease;
}
.grid img:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

.big-box {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

/* MENU
--------------------------------------- */

#menu {
  background-color: darkgray;
  padding: 4rem 1rem;
  text-align: center;
}

#menu h2 {
  margin-bottom: 2rem;
}

.menu_section h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

#menu ul {
  text-align: center;
  list-style: none;
  line-height: 1.7;
}


.menu_grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1200px;
  padding: 2rem;
}

.menu_item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.menu_item .name {
  text-align: left;
}

.menu_item .price {
  text-align: right;
}

.full_width {
  grid-column: 2 / span 2;
  justify-self: center;
}

/* ===== レスポンシブ対応 ===== */

/* タブレット（2列） */
@media screen and (max-width: 1024px) {
  .menu_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .full_width {
    grid-column: 1 / -1; /* 全幅で中央に */
  }
}

/* スマホ（1列） */
@media screen and (max-width: 768px) {
  .menu_grid {
    grid-template-columns: 1fr; /* ← 縦並びに切り替え */
    gap: 2rem;
    text-align: left;
  }

  .menu_section {
    padding: 0 1rem;
    background: rgba(255,255,255,0.15); border-radius: 8px;
  }

  .menu_item {
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
  }

  .full_width {
    grid-column: 1 / -1;
    justify-self: stretch; /* ←左右いっぱいに広げる */
    width: 100%;
  }

  #menu h3 {
    text-align: left;
    font-size: 1.1rem;
    border-left: 3px solid #333;
    padding-left: 0.5rem;
  }

  .price { 
    color: #333; font-weight: 600; 
  }
}


/* RESERVE
--------------------------------------- */

#reserve {
  padding: 4rem 0;
  background-size: cover;
  background-position: center top;
  background-image: url(../img/reserve_bg.jpg);
  min-height: 100vh;
  min-height: 100dvh; /* ← 新ブラウザで上書き */
  overflow: visible;
  background-color:rgba(255,255,255,0.5);
  background-blend-mode:lighten;
  display: flex;              /* ← 中央寄せのためのflex */
  justify-content: center;    /* 横方向中央寄せ */
  align-items: flex-start;    /* 上詰め */
  padding-top: 4rem;          /* 上に少し余白 */
  padding-bottom: 4rem;
  text-align: left;           /* フォームの中身は左寄せ */
}

.reserve-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;         /* 中央寄せ */
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.page-title {
  margin: 0 0 1rem;
  /* text-align: center; にしたければここで */
}

#reserve form {
  width: 100%;
  max-width: 600px;           /* ← フォームの横幅を制限 */
  padding: 0 1.5rem;          /* ← スマホでも余白あり */
  box-sizing: border-box;
}

label {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  display: block;
}

input[type="text"],
input[type="email"],
input[type="checkbox"],
input[type="datetime-local"],
textarea {
  background: rgba(255, 255, 255, .5);
  border: 1px #fff solid;
  border-radius: 5px;
  padding: 10px;
  font-size: 1rem;
}

input[type="text"],
input[type="email"],
input[type="checkbox"],
input[type="datetime-local"] {
  width: 100%;
  max-width: 240px;
}
textarea {
  width: 100%;
  max-width: 480px;
  height: 6rem;
}

input[type="submit"] {
  display: block;
  margin: 2rem auto 0;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.checkbox_group {
  display: flex;
  flex-wrap: wrap;
  gap: 1.3rem;
  margin-bottom: 1.3rem;
  max-width: 100%;       /* ← これが重要！ */
  box-sizing: border-box; /* ← ギャップ含めて幅を制御 */
}

.checkbox_group label {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;    /* ← ラベル文字を折り返さず安定 */
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  appearance: none;        /* ← Safariのデフォ見た目を無効 */
  border: 1.5px solid #444;
  border-radius: 3px;
  background: #fff;
  position: relative;
}

input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: -1px;
  left: 3px;
  font-size: 14px;
  color: #000;
}

.button {
  font-size: 1.375rem;
  background: black;
  color: white;
  border-radius: 5px;
  padding: 18px 32px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* ← ふわっと浮かせる */
  transition: all 0.3s ease;
}

.button:hover {
  background: darkgray;
  transform: translateY(-3px);
}

.button:active {
  transform: scale(0.96);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3) inset;
}

.text-content {
  max-width: 90%; margin: 0 auto;
  margin-bottom: 1.5rem; /* 各ボックス間の余白 */
  display: flex;
  flex-direction: column;  /* ラベルと入力欄を縦並びに */
}

@media screen and (max-width: 768px) {
  .checkbox_group {
    flex-direction: column;  /* ← 縦並びに変更！ */
    align-items: flex-start; /* 左寄せに戻す */
    gap: 0.75rem;            /* 少し間を詰める */
  }

  .checkbox_group label {
    font-size: 1rem;
  }
}

/* ACCESS
--------------------------------------- */

.access-content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.info {
  width: 22%;
}

.info h4 {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  border-left: 3px solid black;
  padding-left: 0.5rem;
}

.info p {
  padding: 12px 10px;
}

.map {
  width: 74%;
}

@media screen and (max-width: 768px) {
  .access-content {
    flex-direction: column; /* ←縦並びに変更 */
    align-items: center;    /* 中央寄せ */
  }

  .info,
  .map {
    width: 100%;           /* 幅を全幅に */
    padding: 0 1rem; /* ← 左右に1remずつ余白 */
    box-sizing: border-box; /* ← 余白込みで幅100%扱いにする */
  }

  .map iframe {
    width: 100%;           /* iframeもスマホ幅にフィット */
    height: 300px;         /* 高さも少し調整 */
    border-radius: 8px; /* ← 角丸入れると高級感UP */
  }

  .info {
    margin-bottom: 2rem;   /* 下に少し余白をとる */
    text-align: center;    /* 文字も中央寄せにして見やすく */
    padding: 0 1rem; /* ← 左右に余白追加！ */
    box-sizing: border-box;
  }

  .info h4 {
    border-left: none;          /* ← スマホでは左線を消すか */
    border-bottom: 2px solid #000; /* ← 下線に切り替えても◎ */
    display: inline-block;      /* ← 下線用にブロック化 */
    padding-left: 0;            /* ← 左余白リセット */
    padding-bottom: 4px;
    margin-bottom: 1rem;
  }
}

/* FOOTER
--------------------------------------- */
footer {
  background: black;
  text-align: center;
  padding: 26px 0;
}

footer p {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}


/* MOBILE
--------------------------------------- */

@media (max-width: 768px) {
  .page-title {
    font-size: 1.5rem;
  }

  .page-header {
    flex-direction: column;
    align-items: center;
  }

  /* HEADER */
  .main-nav {
    font-size: 1rem;
    margin-top: 10px;
  }

  .main-nav li {
    margin: 0 20px;
  }

  /* GALLARY */
  .big-box {
    grid-column: auto;
    grid-row: auto;
  }

  .big-box img {
    height: auto;
  }
}

/* === フェードインアニメーション === */
.fadein {
  opacity: 0;
  transform: translateY(40px); /* ← 少し下から */
  transition: all 0.8s ease-out;
}

/* スクロールで表示されたとき */
.fadein.show {
  opacity: 1;
  transform: translateY(0);
}