/* Nowguys合同会社 コーポレートサイト */
:root {
  --main: #1F3A5F;
  --main-dark: #162a45;
  --text: #222;
  --gray: #666;
  --line: #ddd;
  --bg-soft: #f4f6f9;
  --ph: #d9dce1;
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "游ゴシック", Meiryo, "メイリオ", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }
a { color: var(--main); }
a:hover { text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid #7aa3d6; outline-offset: 2px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 20px; padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--main); line-height: 1.2; }
.brand-mark { font-size: 1.5rem; font-weight: 700; letter-spacing: .12em; }
.brand-sub { font-size: .75rem; color: var(--gray); }

.site-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--main); color: var(--main); }

.menu-toggle {
  display: none; background: none; border: 1px solid var(--main); color: var(--main);
  font: inherit; padding: 6px 14px; border-radius: 4px; cursor: pointer;
}

@media (max-width: 720px) {
  /* JS が有効なときだけ折りたたむ。無効ならメニューは常に表示 */
  .js .menu-toggle { display: block; }
  .js .site-nav { display: none; width: 100%; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 12px 0; border-bottom: 0; }
  .site-nav { width: 100%; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--main); color: #fff; margin-top: 80px; padding: 40px 0 24px; font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-name { font-weight: 700; font-size: 1.0625rem; margin: 0; }
.footer-address { margin: 4px 0 20px; font-style: normal; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; list-style: none; margin: 0 0 24px; padding: 0; }
.copyright { margin: 0; font-size: .8125rem; opacity: .85; }

/* ---------- common ---------- */
main { display: block; }
.section { padding: 56px 0 0; }
h1, h2, h3 { color: var(--main); line-height: 1.4; }
h2 { font-size: 1.5rem; margin: 0 0 24px; padding-bottom: 10px; border-bottom: 2px solid var(--main); }
h3 { font-size: 1.1875rem; margin: 0 0 8px; }
.page-title { background: var(--bg-soft); padding: 44px 0; }
.page-title h1 { margin: 0; font-size: 1.75rem; }
.page-title p { margin: 8px 0 0; color: var(--gray); }
.note { color: var(--gray); font-size: .9375rem; }

.btn {
  display: inline-block; background: var(--main); color: #fff; text-decoration: none;
  padding: 12px 28px; border-radius: 4px; border: 1px solid var(--main); font-weight: 600;
}
.btn:hover { background: var(--main-dark); }
.btn-outline { background: #fff; color: var(--main); }
.btn-outline:hover { background: var(--bg-soft); }

/* ---------- hero ---------- */
.hero { background: var(--bg-soft); padding: 88px 0; }
.hero p.sub { margin: 0 0 12px; color: var(--gray); letter-spacing: .08em; }
.hero h1 { margin: 0; font-size: 2rem; }
@media (max-width: 720px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 1.5rem; }
}

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { margin: 0; }
.card-body .btn { align-self: flex-start; margin-top: auto; }
.card-meta { margin: 0; padding: 0; list-style: none; color: var(--gray); font-size: .9375rem; }
.card-link { text-decoration: none; color: inherit; }
.card-link:hover h3 { text-decoration: underline; }

/* ---------- photo placeholder ---------- */
.photo-ph {
  background: var(--ph); color: #555; display: flex; align-items: center; justify-content: center;
  text-align: center; font-size: .875rem; padding: 12px; aspect-ratio: 3 / 2;
}
.gallery-main { aspect-ratio: 16 / 9; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumbs .photo-ph { aspect-ratio: 3 / 2; font-size: .75rem; }
.gallery img, .card > img, .card > a > img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ph); }
.card > img, .card > a > img { aspect-ratio: 3 / 2; height: auto; }
.gallery-thumbs a { display: block; aspect-ratio: 3 / 2; }
@media (max-width: 720px) { .gallery-thumbs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- tables ---------- */
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 14px 16px; border: 1px solid var(--line); }
.info-table th { width: 9em; background: var(--bg-soft); font-weight: 600; white-space: nowrap; }
@media (max-width: 720px) {
  .info-table th { width: 7em; padding: 12px; }
  .info-table td { padding: 12px; }
}

/* ---------- stay page ---------- */
.catch { margin: 8px 0 0; color: var(--gray); font-size: 1.0625rem; }
.book-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.lang-switch { margin-top: 40px; }
.stay-text p { margin: 0 0 1em; }
.license { margin: 0; }

.text-block p { margin: 0 0 1em; }
.text-block h2:not(:first-child) { margin-top: 40px; }
.email { word-break: break-all; }

/* ---------- 背景写真（半透明の白を重ねる） ---------- */
.hero, .page-title {
  background:
    linear-gradient(rgba(255, 255, 255, .78), rgba(255, 255, 255, .78)),
    url("/images/stays/grand-soleil/living-dining.jpg") center / cover no-repeat;
}

/* ---------- 画面移動時のロゴ表示 ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(31, 58, 95, .8); color: #fff; /* 透け具合は .8 で調整 */
  font-size: 2rem; font-weight: 700; letter-spacing: .2em;
  pointer-events: none;
  animation: logo-out .6s ease .35s forwards; /* 表示直後に消える */
}
.loader span { display: inline-block; animation: hop .5s ease-in-out infinite; }
.loader span:nth-child(2) { animation-delay: .08s; }
.loader span:nth-child(3) { animation-delay: .16s; }
.loader span:nth-child(4) { animation-delay: .24s; }
.loader span:nth-child(5) { animation-delay: .32s; }
.loader span:nth-child(6) { animation-delay: .40s; }
.loader span:nth-child(7) { animation-delay: .48s; }
html.is-leaving .loader { animation: none; opacity: 1; visibility: visible; transition: opacity .2s; }
@keyframes hop { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-.35em); } }
@keyframes logo-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ---------- 写真切り替えボタン ---------- */
.gallery-main { position: relative; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(31, 58, 95, .6); color: #fff; font-size: 1.75rem; line-height: 1; cursor: pointer;
}
.gallery-btn:hover { background: rgba(31, 58, 95, .85); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
