/* ==========================================================
   琉球ぱわーすとーん  style.css
   Wix 版 (980px 固定レイアウト) の見た目を、一から HTML/CSS で再現したもの。
   PC (1000px 以上) は元サイトと同じ寸法。スマホは同じ素材を縦に並べる。
   数値の出典: artifacts/wix-rescue-2026-09/source/layout-summary.txt
   ========================================================== */

:root {
  --w: 980px;                       /* 元サイトのコンテンツ幅 */
  --olive: #4a410d;                 /* 見出し・ナビの茶 */
  --card-title: #465e52;
  --card-text: #1d3e40;
  --gray-title: #605e5e;
  --nav-active: rgba(43, 124, 116, .41);
  --card-border: rgba(176, 169, 134, .42);
  --inner-border: #8baa95;
  --paper: #fafafa;
  --sky-pale: #e3f2fa;
  --footer: #36578a;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "MS PMincho", serif;
  --maru: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Rounded Mplus 1c", "Yu Gothic", Meiryo, sans-serif;
  --gothic: Meiryo, "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: #000;
  font-family: var(--gothic); font-size: 15px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #2b7c74; outline-offset: 2px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- ページ背景 (下層ページの上 800px に写真) ---------- */
.page-bg {
  position: absolute; left: 0; top: 0; width: 100%; height: 800px; z-index: -1;
  background: #fff center top / cover no-repeat;
}
.page-bg--hotaru { background-image: url("../images/bg-sea-sky.webp"); background-position: center 60%; }
.page-bg--stones { background-image: url("../images/bg-moon.webp"); background-position: center 30%; }
.page-bg--parts  { background-image: radial-gradient(circle at 20% 30%, #b9c3cc 0, transparent 35%), radial-gradient(circle at 75% 70%, #a5b1bd 0, transparent 40%), linear-gradient(180deg, #98a6b3, #7d8c9a); }
body { position: relative; }

.wrap { width: var(--w); margin: 0 auto; position: relative; }

/* ---------- ヘッダー (183px) ---------- */
.site-header { background: #fff; height: 183px; position: relative; }
.site-header .wrap { height: 183px; }
.tagline {
  position: absolute; left: 8px; top: 7px;
  font-family: var(--serif); font-weight: 700; font-size: 17px; line-height: 22px; color: var(--olive);
}
.logo { position: absolute; left: 0; top: 50px; width: 491px; }
.logo img { width: 491px; height: 76px; }
.btn-access {
  position: absolute; left: 706px; top: 92px; width: 243px; height: 25px;
  border: 1px solid #000; border-radius: 5px; background: rgba(255, 255, 255, .67);
  font-family: var(--maru); font-size: 13px; letter-spacing: 1.3px; line-height: 23px; text-align: center; color: #000;
}
.btn-access::after { content: "＞"; font-size: 11px; margin-left: 2px; }
.site-nav { position: absolute; left: 0; top: 143px; width: var(--w); height: 40px; background: rgba(255, 255, 255, .12); }
.site-nav ul { display: flex; height: 40px; padding-left: 186px; gap: 11px; }
.site-nav a {
  display: block; height: 40px; padding: 0 5px; line-height: 40px; text-align: center;
  font-family: var(--maru); font-size: 15px; color: var(--olive); white-space: nowrap;
}
.site-nav a:hover { background: rgba(43, 124, 116, .18); }
.site-nav a[aria-current="page"] { background: var(--nav-active); color: #fff; }
.nav-toggle { display: none; }

/* ---------- ホーム: スライドショー (551px) ---------- */
.slideshow { position: relative; height: 551px; overflow: hidden; background: #fff; }
.slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s;
  background: center / cover no-repeat;
}
.slide.is-active { opacity: 1; }
.slide__inner { position: relative; width: 1085px; max-width: 100%; height: 100%; margin: 0 auto; }
.slide--1 { background-image: url("../images/slide-1.webp"); }
.slide--2 { background-image: url("../images/slide-2.webp"); }
.slide--4 { background-image: url("../images/slide-4.webp"); }   /* 3 枚目 (ハブ玉) は商標の都合で削除済 (2026-09-10) */
.slide__badge { position: absolute; left: -9px; top: -29px; width: 482px; }
.slide__caption {
  position: absolute; left: 74px; top: 32px;
  font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--gray-title);
}
.slide__badges { position: absolute; top: 213px; left: 200px; display: flex; gap: 22px; }
.slide__badges img { width: 138px; height: 138px; }
.slide__badges img + img { margin-left: 0; }
.slideshow__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 60px; border: 0; background: transparent; color: rgba(255, 255, 255, .85);
  font-size: 34px; line-height: 60px; text-shadow: 0 0 6px rgba(0, 0, 0, .5);
}
.slideshow__btn--prev { left: 36px; }
.slideshow__btn--next { right: 36px; }
.slideshow__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.slideshow__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .55); }
.slideshow__dots button[aria-current="true"] { background: #fff; }

/* ---------- ホーム: 空の帯 (313px) ---------- */
.sky-strip { height: 313px; background: url("../images/bg-moon.webp") center 22% / cover no-repeat; }

/* ---------- ホーム: 3 つのカード ---------- */
.cards-section { background: var(--paper); height: 698px; }
.cards { position: relative; height: 698px; }
.card {
  position: absolute; top: 20px; width: 232px; height: 609px;
  border: 1px solid var(--card-border); background: transparent;
}
.card--1 { left: 128px; }
.card--2 { left: 376px; }
.card--3 { left: 624px; }
.card__img { position: absolute; left: -1px; top: 1px; width: 234px; height: 359px; object-fit: cover; }
.card a { display: block; }
.card a:hover .card__img { opacity: .85; }
.card__body h2 a:hover { text-decoration: underline; }
.card__body {
  position: absolute; left: 14px; top: 372px; width: 208px; height: 207px;
  background: #fff; border: 1px solid var(--inner-border); padding: 16px 8px 0;
}
.card__body h2 {
  font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 40px; text-align: center; color: var(--card-title);
}
.card__body p {
  margin-top: 10px; font-family: var(--gothic); font-size: 13px; line-height: 20px; text-align: justify; color: var(--card-text);
}

/* ---------- ホーム: 店舗情報 (写真の並び) ---------- */
.shop-section { background: var(--sky-pale); height: 753px; }
.shop { position: relative; height: 753px; }
.shop__rule { position: absolute; left: 7px; top: 22px; width: 33px; height: 0; border-top: 1px solid var(--gray-title); }
.shop__title {
  position: absolute; left: 7px; top: 50px;
  font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 46px; color: var(--gray-title);
}
.shop .tile { position: absolute; }
.shop__p1 { left: 2px;   top: 135px; width: 567px; height: 384px; }
.shop__p2 { left: 2px;   top: 527px; width: 279px; height: 157px; }
.shop__p3 { left: 289px; top: 527px; width: 280px; height: 157px; }
.shop__p4 { left: 577px; top: 135px; width: 403px; height: 289px; }
.shop__p5 { left: 577px; top: 432px; width: 403px; height: 252px; }

/* ---------- ホーム: 住所・地図の箱 ---------- */
.info-section { background: var(--paper); height: 850px; }
.info { position: relative; height: 850px; }
.info__name {
  position: absolute; left: 58px; top: 122px;
  font-family: var(--serif); font-weight: 700; font-size: 27px; line-height: 46px; color: var(--gray-title);
}
.info__line { position: absolute; left: 58px; font-family: var(--gothic); font-size: 18px; line-height: 27px; color: #000; white-space: nowrap; }
.info__addr  { top: 192px; }
.info__tel   { top: 239px; }
/* 営業時間と定休日の行は 2026-09-14 に客の依頼で削除 */
.info__photo { position: absolute; left: 650px; top: 124px; width: 284px; height: 202px; object-fit: cover; }
.info__map { position: absolute; left: 54px; top: 430px; width: 871px; height: 304px; border: 0; }


/* ---------- 下層ページ: 白いカード ---------- */
.sheet { position: relative; width: var(--w); margin: 70px auto 0; background: var(--paper); }
.sheet + .sheet { margin-top: 0; }
.sheet--hotaru-hero {
  height: 1150px; background: var(--paper) url("../images/hotaru-hero-beach.webp") center top / 980px 1150px no-repeat;
}
.vertical-copy { position: absolute; left: 81px; top: 56px; width: 134px; }
.hero-badge {
  position: absolute; left: 381px; top: 62px; width: 653px; max-width: none;
  animation: slide-in-from-right 1.2s cubic-bezier(.22, .8, .3, 1) .2s both;   /* 右から左へ滑り込む (Wix 版と同じ動き) */
}
@keyframes slide-in-from-right {
  from { transform: translateX(60vw); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
.feature-badges { position: absolute; top: 890px; left: 122px; display: flex; gap: 0; }
.feature-badges img { width: 192px; height: 192px; }
.feature-badges img:nth-child(2) { margin-left: 0; }
.feature-badges img:nth-child(3) { margin-left: -1px; }
.feature-badges img:nth-child(4) { margin-left: 1px; }

.sheet__title {
  position: absolute; left: 62px; top: 22px;
  font-family: var(--serif); font-weight: 700; font-size: 35px; line-height: 59px; color: var(--olive); white-space: nowrap;
}
.title-card { height: 504px; background-size: 980px 500px; background-position: center top; background-repeat: no-repeat; }
.title-card--stones { background-image: url("../images/stones-title-card.webp"); }
.title-card--parts  { background-image: url("../images/parts-title-card.webp"); }
.title-card h1 {
  position: absolute; left: 46px; top: 27px;
  font-family: var(--serif); font-weight: 700; font-size: 35px; line-height: 41px; color: var(--olive);
}
.title-card p {
  position: absolute; left: 46px; width: 352px;
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.6; color: var(--olive);
}
.title-card .lead { top: 157px; }
.title-card .lead-2 { top: 333px; }
.sub-title {
  position: absolute; left: 33px; top: 22px;
  font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 37px; color: var(--olive);
}

/* モザイク: PC は元サイトと同じ絶対配置 (各ページの HTML に座標を書く) */
.mosaic { position: relative; }
.mosaic .tile { position: absolute; }

/* 写真の枠 (tile): マウスを載せると題名が出る。クリックで拡大 */
.tile { margin: 0; overflow: hidden; cursor: zoom-in; background: #eee; }
.tile img, .tile video { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile__cap {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 12px; text-align: center; color: #fff; background: rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.tile:hover .tile__cap, .tile:focus-visible .tile__cap { opacity: 1; }
.tile__title { font-family: var(--serif); font-weight: 700; font-size: 18px; line-height: 1.4; }
.tile__desc { font-size: 13px; margin-top: 4px; }

/* ---------- フッター (504px) ---------- */
.site-footer { background: var(--footer); color: #fff; margin-top: 25px; }
.site-footer .wrap { height: 504px; }
.site-footer__rule { position: absolute; left: 32px; top: 55px; width: 30px; border-top: 1px solid #fff; }
.site-footer__text {
  position: absolute; left: 32px; top: 97px;
  font-family: var(--serif); font-size: 15px; line-height: 21px; font-style: normal;
}
.site-footer__text a { text-decoration: underline; }
.site-footer__copy { position: absolute; left: 32px; top: 219px; font-family: var(--serif); font-size: 14px; }
.site-footer nav { display: none; }

/* ---------- ライトボックス (クリックで拡大) ---------- */
.is-zoomable { cursor: zoom-in; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox__stage img, .lightbox__stage video {
  display: block; max-width: 92vw; max-height: 82vh; width: auto; height: auto; margin: auto; background: #000;
}
.lightbox__caption { color: #fff; text-align: center; margin-top: 10px; font-family: var(--serif); }
.lightbox__caption .tile__title { font-size: 20px; }
.lightbox__caption .tile__desc { display: block; font-size: 14px; opacity: .85; }
.lightbox__close {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: #333; font-size: 24px; line-height: 44px; padding: 0;
}

/* ---------- 上へ戻るボタン ---------- */
.to-top {
  position: fixed; right: 0; bottom: 90px; z-index: 40;
  width: 81px; height: 82px; border: 0; padding: 0; background: transparent;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top img { width: 81px; height: 82px; }

/* ==========================================================
   スマホ / タブレット (1000px 未満): 同じ素材を縦に並べる
   ========================================================== */
@media (max-width: 999px) {
  :root { --w: 100%; }
  body { font-size: 15px; }
  .page-bg { height: 420px; }
  .wrap { width: 100%; padding: 0 16px; }

  /* ヘッダー */
  .site-header, .site-header .wrap { height: auto; }
  .site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; padding: 8px 16px 0; }
  .tagline { position: static; width: 100%; font-size: 12px; line-height: 1.5; }
  .logo { position: static; flex: 1 1 0; min-width: 0; width: auto; max-width: 300px; margin: 6px 12px 8px 0; }   /* 右のメニューボタンと重ならないよう幅を余らせる */
  .logo img { width: 100%; height: auto; }
  .btn-access { position: static; display: block; order: 2; width: 100%; max-width: 320px; margin: 0 0 8px; }
  .nav-toggle {
    display: block; order: 1; flex: 0 0 44px; width: 44px; height: 44px; margin-left: auto;
    border: 1px solid #ccc; border-radius: 6px; background: #fff; position: relative;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; position: absolute; left: 10px; width: 22px; height: 2px; background: var(--olive);
  }
  .nav-toggle span { top: 21px; }
  .nav-toggle span::before { left: 0; top: -7px; }
  .nav-toggle span::after { left: 0; top: 7px; }
  .site-nav { position: static; order: 3; width: calc(100% + 32px); height: auto; background: none; display: none; margin: 0 -16px; }
  .site-nav.is-open { display: block; }
  .site-nav ul { display: block; height: auto; padding: 0; }
  .site-nav a { text-align: left; padding: 0 16px; border-top: 1px solid #eee; }

  /* スライドショー */
  .slideshow { height: 52vw; min-height: 200px; }
  .slide__badge { width: 44%; left: -2%; top: -4%; }
  .slide__caption { left: 5%; top: 6%; font-size: 14px; }
    .slide__badges { left: 50%; top: auto; bottom: 8%; transform: translateX(-50%); gap: 2vw; }
  .slide__badges img { width: 18vw; height: 18vw; max-width: 138px; max-height: 138px; }
  .slideshow__btn--prev { left: 4px; }
  .slideshow__btn--next { right: 4px; }

  .sky-strip { height: 160px; }

  /* カード */
  .cards-section, .cards { height: auto; }
  .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; padding: 24px 0 32px; justify-items: center; }
  .card { position: relative; left: auto !important; top: auto; }

  /* 店舗情報 */
  .shop-section, .shop { height: auto; }
  .shop { padding: 24px 0 24px; }
  .shop__rule { position: static; margin-bottom: 8px; }
  .shop__title { position: static; margin-bottom: 16px; font-size: 22px; line-height: 1.4; }
  .shop .tile { position: static; width: 100%; height: auto; aspect-ratio: 3 / 2; margin-bottom: 10px; }

  .info-section, .info { height: auto; }
  .info { padding: 28px 0 32px; }
  .info__name, .info__line { position: static; white-space: normal; }
  .info__name { font-size: 22px; line-height: 1.4; margin-bottom: 12px; }
  .info__line { font-size: 16px; line-height: 1.7; }
  .info__photo { position: static; width: 100%; height: auto; margin: 16px 0; }
  .info__map { position: static; width: 100%; height: 280px; }


  /* 下層ページ */
  .sheet { width: 100%; margin-top: 16px; }
  .sheet--hotaru-hero { height: auto; padding-top: 117%; background-size: 100% auto; }
  .vertical-copy { left: 4%; top: 4%; width: 13%; }
  .hero-badge { left: 36%; top: 5%; width: 64%; }
  .feature-badges { position: static; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 12px 20px; margin-top: -18%; }
  .feature-badges img { width: 100%; height: auto; margin: 0 !important; }

  .sheet__title, .sub-title { position: static; padding: 16px 16px 0; font-size: 22px; line-height: 1.4; white-space: normal; }
  .title-card { height: auto; background-size: 100% auto; padding-top: 42%; }
  .title-card h1, .title-card p { position: static; }
  .title-card h1 { font-size: 26px; line-height: 1.3; padding: 0 16px; }
  .title-card p { width: auto; padding: 12px 16px 0; font-size: 17px; }
  .title-card .lead-2 { padding-bottom: 20px; }

  .mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px; height: auto !important; }
  .mosaic .sheet__title, .mosaic .sub-title { grid-column: 1 / -1; padding: 4px 0 8px; }
  .mosaic .tile { position: static !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 3; left: auto !important; top: auto !important; }
  .mosaic .tile.wide { grid-column: span 2; aspect-ratio: 16 / 9; }
  .tile__cap { opacity: 0; }   /* スマホはマウスオーバーが無いので、題名は拡大時に出す */

  /* フッター */
  .site-footer .wrap { height: auto; padding: 40px 16px 32px; }
  .site-footer__rule, .site-footer__text, .site-footer__copy { position: static; }
  .site-footer__rule { margin-bottom: 20px; }
  .site-footer__copy { margin-top: 24px; }
  .to-top { width: 60px; height: 61px; bottom: 16px; }
  .to-top img { width: 60px; height: 61px; }
}

@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
  .hero-badge { animation: none; }
}
