* { box-sizing: border-box; }
html,body { height:100%; }
:root {
  /* デフォルト値 */
  --header-height: 72px;
  --slide-height-min: 67vw;
  --slide-height-max: calc(100vh - var(--header-height));
  --control-size: 48px;
  --accent: #fff;
  --muted: rgba(255,255,255,0.35);
}
body {
  margin:0;
  font-family: "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color:#222;
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
  font-size:16px;
}
.container { max-width:1200px; margin:0 auto; padding:0 16px; }
/* ヘッダー */
.site-header {
  position:fixed; top:0; left:0; right:0;
  background:linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
  backdrop-filter: blur(4px);
  z-index:60; box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.header-inner { display:flex; align-items:center; justify-content:space-between; }
.brand img { height:40px; display:block; }
.brand img[src$="logo.png"] { width:225px; height:auto; max-width:225px; display:block; }
/* nav */
.nav { position:fixed; top:0; right:-320px; width:300px; height:100vh; background:#162e87; color:#fff; padding:80px 20px; transition: right .35s ease; z-index:79; }
.nav[aria-hidden="false"] { right:0; }
.nav ul { padding:0; margin:0; list-style:none; }
.nav li { margin-bottom:18px; }
.nav a { color:#fff; text-decoration:none; font-weight:600; display:block; }
.menu-toggle { position:fixed; top:14px; right:16px; background:none; border:0; width:44px; height:36px; display:flex; flex-direction:column; justify-content:center; gap:3px; cursor:pointer; z-index:81; }
.menu-toggle .bar { display:block; height:3px; width:34px; background:#162e87; border-radius:3px; transition: transform .3s, opacity .3s, background .3s; transform-origin: center center; margin:0 auto; }
.menu-toggle[aria-expanded="true"] .bar { background:#fff; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity:0; transform: scaleX(.2); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mask { position:fixed; inset:0; background:rgba(0,0,0,0.55); z-index:70; }
.nav-close { display:none; }
main { padding-top: var(--header-height); }
section { scroll-margin-top: calc(var(--header-height) + 16px); }
.section { padding:64px 0; }
.section.alt { background:#162e87; color: #fff; }
.section.small { padding:48px 0; }
.sec-title { text-align:center; font-size:clamp(20px, 3vw, 32px); margin:0 0 28px; }
/* Menu カルーセル */
.carousel-wrap { position:relative; display:flex; align-items:center; gap:12px; }
.carousel { display:flex; gap:18px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:8px; -webkit-overflow-scrolling:touch; scroll-behavior:smooth; }
.card { flex:0 0 80%; max-width:520px; background:#fff; border-radius:12px; overflow:hidden; scroll-snap-align:center; box-shadow:0 8px 22px rgba(0,0,0,0.08); transition: transform .25s; }
.card img { width:100%; height:260px; object-fit:cover; display:block; }
.card-body { padding:18px; }
.card-body h3 { margin:0 0 8px; font-size:1.1rem; }
.card-body p { margin:0 0 10px; color:#666; }
.price { font-weight:800; color:#b33; }
.carousel-btn { background:#111; color:#fff; border:0; width:44px; height:44px; border-radius:8px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:18px; }
/* gallery */
.gallery-grid { display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); }
.gallery-item { background:#fff; border-radius:10px; overflow:hidden; box-shadow:0 6px 18px rgba(0,0,0,0.06); }
.gallery-item img { width:100%; height:160px; object-fit:cover; display:block; }
.gallery-item figcaption { padding:12px; font-size:0.95rem; color:#444; }
/* reserve */
.form-grid { display:grid; gap:24px; grid-template-columns: 1fr 320px; align-items:start; }
@media (max-width:900px) { .form-grid { grid-template-columns: 1fr; } }
form { display:flex; flex-direction:column; gap:10px; }
input, select, textarea { width:100%; padding:10px 12px; border-radius:8px; border:1px solid #ddd; font-size:1rem; }
.form-actions { margin-top:8px; }
.reserve-info { background:#fff; padding:18px; border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,0.04); }
.section.dark { background:#162e87; color:#fff; }
.section.dark a { color:#fff; text-decoration:underline; }
.site-footer { padding:22px 0; background:#faf7f5; text-align:center; }
.footer-inner p { margin:0; color:#333; }
.contact-row { display:flex; gap:20px; align-items:flex-start; }
.contact-row .contact-left { flex:1; min-width:220px; }
.contact-row .contact-right { flex:1; display:flex; flex-direction:column; gap:12px; }
.contact-row .map-wrap { width:100%; }
.contact-row .map-wrap iframe { width:100%; height:320px; border:0; border-radius:8px; display:block; }
@media (max-width:900px) {
  .contact-row { flex-direction:column; }
  .contact-row .map-wrap iframe { height:260px; }
}
/* Back to top button */
#back-btn {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #fff;
  color: #162e87;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
#back-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (max-width:480px) {
  #back-btn { width:44px; height:44px; right:12px; bottom:12px; }
}
/* back button */
#back-btn svg { width: 1.05em; height: 1.05em; display:block; }
#back-btn:hover,
#back-btn:focus-visible {
  background: #162e87;
  color: #fff;
  transform: translateY(0) scale(1.06);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}
#back-btn:focus-visible { outline: 3px solid rgba(22,46,135,0.18); }
/* fadein */
.fadein { opacity:0; transform:translateY(20px) scale(.995); transition: opacity .8s ease, transform .8s ease; will-change: transform, opacity; }
.fadein.visible { opacity:1; transform:translateY(0) scale(1); }
/* responsive tweaks */
@media (max-width:600px) {
  .nav { width:100%; right:-100%; padding:80px 20px; }
  .card { flex:0 0 85%; }
  .header-inner { padding:10px 0; }
  .brand img { height:32px; }
}
/*　スライダー */
.swiper {
  width:100%;
  height: min(var(--slide-height-min), var(--slide-height-max));
  position:relative;
  overflow:hidden;
  background:#0f1724; 
}
.swiper-wrapper{ height:100%; }
.swiper-slide{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  overflow:hidden;
}
.swiper-img{
  position:absolute;
  inset:0;
  z-index:1;
  overflow:hidden;
  will-change:transform;
}
.swiper-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: none !important;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.slide-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.18) 40%, rgba(0,0,0,0.55) 100%);
  z-index:2;
  pointer-events:none;
}
.swiper-text{
  position:relative;
  z-index:3;
  left:6%;
  top:30%;
  transform:translateY(-50%);
  width:min(56%, 780px);
  color:var(--accent);
  text-shadow: 0 6px 16px rgba(0,0,0,0.6);
  pointer-events:none;
}
.text-card{
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius:16px;
  padding:24px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.6);
  backdrop-filter: blur(6px);
  border:1px solid rgba(255,255,255,0.03);
}
.swiper-title{ margin:0 0 8px 0; font-size: clamp(20px, 3.2vw, 48px); letter-spacing: .5px; font-weight:800; }
.swiper-desc{ margin:0; font-size: clamp(13px, 1.8vw, 20px); line-height:1.6; opacity:0.95; }
/* pagination & nav */
.swiper-pagination{ position:absolute; bottom:18px; left:50%; transform:translateX(-50%); z-index:5; display:flex; gap:10px; align-items:center; }
.swiper-pagination .swiper-pagination-bullet{ width:10px;height:10px;background:var(--muted);border-radius:50%;opacity:1;transition:all .35s; }
.swiper-pagination .swiper-pagination-bullet-active{ transform:scale(1.8);background:var(--accent); }
.swiper-button-prev, .swiper-button-next {
  width:var(--control-size);height:var(--control-size);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color:var(--accent);box-shadow: 0 8px 20px rgba(2,6,23,0.6);
  display:flex;align-items:center;justify-content:center;z-index:6;transition:transform .18s ease;
}
.swiper-button-prev{ left:14px }
.swiper-button-next{ right:14px }
.swiper-button-prev:hover, .swiper-button-next:hover{ transform: translateY(-3px) }
@media (max-width:900px){
  :root{ --slide-height-min:75vw }
  .swiper-text{ width:86%; left:4% }
  .text-card{ padding:18px; border-radius:12px }
}
@media (max-width:480px){
  :root{ --control-size:40px; --slide-height-min:90vw }
  .swiper-title{ font-size: clamp(18px, 6vw, 28px) }
  .swiper-desc{ font-size: 13px }
}
/* ループスライダー */
.gallery-swiper .swiper-wrapper {
  transition-timing-function: linear;
}
.gallery-swiper {
  padding: 12px 0;
  background: transparent;
}
.gallery-swiper .swiper-slide {
  width: auto; 
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-swiper .swiper-slide img {
  width: 100%;
  height: 310px;           
  object-fit: cover;
  border-radius: 10px;
  display:block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
/* 画面幅に応じて見え方調整 */
@media (min-width: 901px) {
  .gallery-swiper .swiper-slide { width: calc((100% / 3) - 18px); }
}
@media (min-width: 601px) and (max-width:900px) {
  .gallery-swiper .swiper-slide { width: calc((100% / 2) - 14px); }
}
@media (max-width:600px) {
  .gallery-swiper .swiper-slide { width: calc(100% - 24px); }
}
