:root {
  --color-ocean: #4a90a4;
  --color-ocean-dark: #2f6b7c;
  --color-coral: #ec8a5a;
  --color-coral-dark: #d4703f;
  --color-bg: #fbfaf6;
  --color-bg-alt: #f2f6f5;
  --color-text: #33393b;
  --color-text-light: #6b7577;
  --color-border: #e2e4de;
  --radius: 12px;
  --max-width: 960px;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Meiryo", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.85;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-ocean-dark);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 246, 0.95);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
  line-height: 1.35;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-ocean-dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.site-nav.open {
  max-height: 300px;
}

.site-nav a {
  padding: 14px 20px;
  text-decoration: none;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
}

/* Blogger固定ページタイトルは可変長のため、ヘッダーナビでは
   1行表示を必ず維持し、はみ出す場合はCSS側でも省略する
   （JS側で文字数を10文字+「…」に切り詰めた上での二重の安全策） */
.nav-notice-link {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* Hero */
.hero {
  position: relative;
  background: var(--color-bg);
}

.hero-media {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
}

.hero-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: hero-marquee 68s linear infinite;
  will-change: transform;
}

.hero-panel {
  flex: none;
  height: 100%;
  aspect-ratio: var(--photo-ratio);
  max-width: 118vw;
  margin: 0;
  overflow: hidden;
}

.hero-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 45%;
}

@keyframes hero-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-motion {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(19, 28, 29, 0.4);
  color: #fff;
  opacity: 0.8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-motion:hover,
.hero-motion:focus-visible {
  background: rgba(19, 28, 29, 0.65);
  opacity: 1;
}

.hero-motion:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-motion-icon {
  display: block;
}

.hero-motion-icon-pause {
  position: relative;
  width: 3px;
  height: 13px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 6px 0 0 currentColor;
  margin-right: 3px;
}

.hero-motion-icon-play {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
  margin-left: 2px;
}

.hero.is-paused .hero-motion-icon-pause {
  display: none;
}

.hero:not(.is-paused) .hero-motion-icon-play {
  display: none;
}

.hero.is-paused .hero-track {
  animation-play-state: paused;
}

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

  .hero-motion {
    display: none;
  }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 24, 20, 0) 35%, rgba(20, 24, 20, 0.6) 100%);
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 20px 36px;
}

.hero-content-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: 1.7rem;
  line-height: 1.5;
  margin: 0 0 16px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-cta {
  display: inline-block;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn-primary {
  background: var(--color-coral);
  color: #fff;
}

.btn-form {
  border: none;
  cursor: pointer;
  width: 100%;
}

.btn-form[disabled] {
  background: #c9b9ad;
  cursor: not-allowed;
}

/* Sections */
.section {
  padding: 44px 20px;
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* お知らせ（Blogger固定ページ連携アコーディオン） */
.notice-section {
  padding: 28px 20px 8px;
}

.notice-section[hidden] {
  display: none;
}

.notice-card {
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(47, 107, 124, 0.1);
  overflow: hidden;
}

.notice-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.notice-summary::-webkit-details-marker {
  display: none;
}

.notice-summary::marker {
  content: "";
}

.notice-summary:hover {
  background: var(--color-bg-alt);
}

.notice-summary:focus-visible {
  outline: 2px solid var(--color-ocean);
  outline-offset: -2px;
}

.notice-summary-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
}

.notice-summary-icon {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--color-ocean);
  border-bottom: 2px solid var(--color-ocean);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.notice-card[open] .notice-summary-icon {
  transform: rotate(-135deg);
}

.notice-body {
  padding: 0 18px 20px;
  border-top: 1px solid var(--color-border);
}

.notice-body-inner {
  padding-top: 16px;
  color: var(--color-text);
  font-size: 0.95rem;
  line-height: 1.85;
  overflow-wrap: break-word;
  /* Blogger本文が画像をfloatさせた場合に、はみ出さずカード内に
     きちんと収まるよう新しいブロック整形コンテキストを作る */
  overflow: hidden;
}

.notice-body-inner p {
  margin: 0 0 1em;
}

.notice-body-inner p:last-child {
  margin-bottom: 0;
}

.notice-body-inner img {
  /* Bloggerの画像リンクは実測でmargin-left/right: 1em前後を使うため、
     画像自体をmax-width:100%にするだけだとその余白の分だけ
     コンテナ幅をはみ出す（overflow:hiddenで隠れて片側が欠けて見える）。
     2em分を差し引いて予約しておくことで、余白込みで確実に収まる。 */
  max-width: calc(100% - 2em);
  height: auto;
  border-radius: var(--radius);
  /* サイト共通の img{display:block} を上書き。インライン系のままにしないと
     Bloggerの中央寄せ（親のtext-align:centerで画像を中央寄せする方式）が
     効かなくなる。floatさせた左右寄せの画像は元々display値に関わらず
     ブロック化されるため、この変更による影響はない。 */
  display: inline-block;
  vertical-align: middle;
}

.notice-body-inner a {
  color: var(--color-ocean-dark);
}

.notice-body-inner table {
  /* Bloggerのtableに付いたborder系のinline styleはサニタイズで
     除去されるため、表と分かる最低限の見た目をサイト側CSSで用意する */
  max-width: 100%;
  border-collapse: collapse;
  margin: 0 0 1em;
}

.notice-body-inner th,
.notice-body-inner td {
  border: 1px solid var(--color-border);
  padding: 0.4em 0.6em;
}

.section-title {
  font-size: 1.35rem;
  color: var(--color-ocean-dark);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-coral);
  display: inline-block;
}

.section-lead {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.9;
}

.section-text {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: 1.05rem;
  line-height: 1.9;
}

.section-note {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 28px;
}

.photo-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 520px;
}

.photo-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.photo-grid img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.photo-grid figcaption {
  padding: 8px 10px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  text-align: center;
}

/* About (クマノミ園について) — warm & playful organic charm cluster */
.about-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin: 0 0 36px;
}

.about-intro {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.about-intro-text {
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-intro-text.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-message {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.85;
  color: var(--color-text);
  margin: 0 0 18px;
}

.about-accent-coral {
  color: var(--color-coral-dark);
}

.about-accent-ocean {
  color: var(--color-ocean-dark);
}

.about-text {
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--color-text-light);
  margin: 0 auto;
  max-width: 520px;
}

/* 狭い画面でも、意味のまとまりの位置で改行する（「す。」だけが次の行に残らないように） */
.about-text-phrase {
  display: inline-block;
}

/* Charm cluster */
.about-charms {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.about-charm {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-charm.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.about-charm:nth-child(1) {
  transition-delay: 0s;
}

.about-charm:nth-child(2) {
  transition-delay: 0.15s;
}

.about-charm:nth-child(3) {
  transition-delay: 0.3s;
}

.about-charm:nth-child(4) {
  transition-delay: 0.45s;
}

.about-charm-frame {
  margin: 0;
  width: 220px;
  height: 220px;
  overflow: hidden;
  background: var(--color-bg-alt);
  box-shadow: 0 14px 28px rgba(47, 107, 124, 0.14);
}

.about-charm-room .about-charm-frame {
  border-radius: 62% 38% 55% 45% / 45% 60% 40% 55%;
  transform: rotate(-3deg);
}

.about-charm-meal .about-charm-frame {
  border-radius: 45% 55% 62% 38% / 55% 45% 58% 42%;
  transform: rotate(2deg);
}

.about-charm-bath .about-charm-frame {
  border-radius: 55% 45% 40% 60% / 40% 55% 45% 60%;
  transform: rotate(-1.5deg);
}

.about-charm-dining .about-charm-frame {
  border-radius: 50% 50% 38% 62% / 55% 42% 58% 45%;
  transform: rotate(4deg);
}

.about-charm-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-charm-label {
  margin: 16px 0 0;
  padding: 7px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(47, 107, 124, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
}

/* Bubble accents */
.about-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: about-bubble-float 4.5s ease-in-out infinite;
}

.about-bubble-a {
  width: 22px;
  height: 22px;
  background: rgba(236, 138, 90, 0.6);
  top: -8px;
  right: 6px;
  animation-delay: 0.2s;
}

.about-bubble-b {
  width: 13px;
  height: 13px;
  background: rgba(74, 144, 164, 0.45);
  bottom: 30px;
  left: -10px;
  animation-delay: 1.1s;
}

@keyframes about-bubble-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-charm,
  .about-intro-text {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .about-bubble {
    animation: none;
  }
}

/* Room & Meal & Seasonal coral scene (お部屋・お食事・季節のお楽しみ) */
.life-section {
  overflow: hidden;
}

.life-intro {
  font-size: 1.05rem;
  line-height: 1.95;
  color: var(--color-text-light);
  margin: 0 0 40px;
  max-width: 640px;
}

.life-after-coral {
  margin-top: 56px;
}

.life-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.life-info-block {
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.life-info-title {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-ocean-dark);
}

.life-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--color-text);
}

.life-info-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
}

/* 「サービス内容」「設備」と同じ並びに置く、文章形式のブロック */
.life-info-text {
  margin: 0;
  padding: 6px 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--color-text);
  word-break: auto-phrase;
}

/* Floorplan (間取り図) */
.life-floorplan {
  margin-top: 48px;
  text-align: center;
}

.life-floorplan-figure {
  margin: 0 auto;
  width: 100%;
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(30, 34, 30, 0.08);
  cursor: pointer;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.life-floorplan-figure:hover,
.life-floorplan-figure:focus-visible {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(30, 34, 30, 0.14);
  outline: none;
}

.life-floorplan-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.life-floorplan-text {
  margin: 16px auto 0;
  max-width: 420px;
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--color-text-light);
}

.life-coral-lead {
  margin: 38px 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.coral-scene-inner {
  --pz: 1.3;
  max-width: 1120px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.coral-cluster {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.coral-cluster.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.coral-cluster-room {
  width: 300px;
}

.coral-cluster-meal {
  width: 260px;
}

.coral-cluster-season {
  width: 300px;
}

.coral-illustration {
  position: relative;
  width: 100%;
  z-index: 1;
  transform-origin: 50% 85%;
  transition: transform 0.5s ease;
}

.coral-cluster:hover .coral-illustration,
.coral-cluster:focus-within .coral-illustration {
  transform: scale(1.045) rotate(-1deg) translateY(-4px);
}

.coral-illustration img {
  width: 100%;
  height: auto;
  display: block;
}

.coral-label {
  margin: 20px 0 0;
  padding: 7px 18px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(47, 107, 124, 0.12);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
  position: relative;
  z-index: 4;
}

/* Fish mascot (body-only illustration, gentle drifting motion) */
.coral-fish {
  position: absolute;
  width: 60px;
  height: auto;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.7s ease 0.5s;
  animation: coral-fish-swim 7s ease-in-out infinite;
  animation-play-state: paused;
}

.coral-cluster.is-revealed .coral-fish {
  opacity: 1;
  animation-play-state: running;
}

.coral-cluster-room .coral-fish {
  top: 6%;
  right: -6%;
}

.coral-cluster-meal .coral-fish {
  top: 4%;
  left: -14%;
}

.coral-cluster-season .coral-fish {
  top: 4%;
  right: -8%;
}

@keyframes coral-fish-swim {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(6px, -5px);
  }
  50% {
    transform: translate(-4px, 4px);
  }
  75% {
    transform: translate(5px, 3px);
  }
}

/* Photo cards: hidden inside the coral until hover/focus, then pop out */
.coral-photo {
  --rot: 0deg;
  --dx: 0px;
  --dy: 46px;
  position: absolute;
  margin: 0;
  width: var(--w, 118px);
  left: calc(var(--cx) - var(--w, 118px) / 2);
  bottom: calc(var(--cy) - var(--w, 118px) / var(--ratio, 1.2) / 2);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(47, 107, 124, 0.18);
  opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(calc(0.5 * var(--pz, 1))) rotate(var(--rot));
  transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--exit-delay, 0s);
  z-index: 0;
  pointer-events: none;
  cursor: pointer;
}

.coral-cluster:hover .coral-photo,
.coral-cluster:focus-within .coral-photo {
  opacity: 1;
  transform: translate(0, 0) scale(var(--pz, 1)) rotate(var(--rot));
  transition-delay: var(--enter-delay, 0s);
  z-index: 3;
  pointer-events: auto;
}

.coral-photo:focus-visible {
  outline: 2px solid var(--color-ocean);
  outline-offset: 2px;
}

.coral-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 1.2);
  object-fit: cover;
  object-position: 50% 38%;
  display: block;
}

.coral-photo-1 {
  --enter-delay: 0s;
  --exit-delay: 0.3s;
}

.coral-photo-2 {
  --enter-delay: 0.15s;
  --exit-delay: 0.15s;
}

.coral-photo-3 {
  --enter-delay: 0.3s;
  --exit-delay: 0s;
}

/* 写真1枚ごとの設定
   --w: 幅(px) / --ratio: 縦横比(幅÷高さ。元写真に近づけて被写体の欠けを減らす) /
   --cx, --cy: 写真の中心位置(サンゴ枠の左端・下端からの%)。表示は --pz 倍に拡大される */
/* ホームのようす */
.coral-cluster-room .coral-photo-1 {
  --w: 88px;
  --ratio: 1.35;
  --cx: 18.1%;
  --cy: 16.7%;
  --rot: -8deg;
  --dx: 70px;
  --dy: 14px;
  --enter-delay: 0s;
  --exit-delay: 0.4s;
}

.coral-cluster-room .coral-photo-2 {
  --w: 66px;
  --ratio: 1;
  --cx: 21.4%;
  --cy: 45.8%;
  --rot: 6deg;
  --dx: 34px;
  --dy: 38px;
  --enter-delay: 0.1s;
  --exit-delay: 0.3s;
}

.coral-cluster-room .coral-photo-3 {
  --w: 74px;
  --ratio: 1;
  --cx: 48.1%;
  --cy: 28.5%;
  --rot: -5deg;
  --dx: 6px;
  --dy: 50px;
  --enter-delay: 0.2s;
  --exit-delay: 0.2s;
}

.coral-cluster-room .coral-photo-4 {
  --w: 76px;
  --ratio: 1.3;
  --cx: 76.5%;
  --cy: 47%;
  --rot: 9deg;
  --dx: -30px;
  --dy: 40px;
  --enter-delay: 0.3s;
  --exit-delay: 0.1s;
}

.coral-cluster-room .coral-photo-5 {
  --w: 90px;
  --ratio: 1.3;
  --cx: 78.9%;
  --cy: 17.4%;
  --rot: -7deg;
  --dx: -66px;
  --dy: 16px;
  --enter-delay: 0.4s;
  --exit-delay: 0s;
}

/* お食事 */
.coral-cluster-meal .coral-photo-1 {
  --w: 96px;
  --ratio: 1.3;
  --cx: 23.7%;
  --cy: 13.7%;
  --rot: -10deg;
  --dx: 62px;
  --dy: 22px;
  --enter-delay: 0s;
  --exit-delay: 0.3s;
}

.coral-cluster-meal .coral-photo-2 {
  --w: 96px;
  --ratio: 1.3;
  --cx: 27.7%;
  --cy: 37%;
  --rot: 4deg;
  --dx: 20px;
  --dy: 50px;
  --enter-delay: 0.15s;
  --exit-delay: 0.15s;
}

.coral-cluster-meal .coral-photo-3 {
  --w: 96px;
  --ratio: 1.35;
  --cx: 69.3%;
  --cy: 12.3%;
  --rot: -6deg;
  --dx: -20px;
  --dy: 28px;
  --enter-delay: 0.3s;
  --exit-delay: 0s;
}

.coral-cluster-meal .coral-photo-4 {
  --w: 96px;
  --ratio: 1.15;
  --cx: 73.1%;
  --cy: 35.9%;
  --rot: 9deg;
  --dx: -62px;
  --dy: 34px;
  --enter-delay: 0.3s;
  --exit-delay: 0s;
}

/* 季節のお楽しみ */
.coral-cluster-season .coral-photo-1 {
  --w: 102px;
  --ratio: 1.5;
  --cx: 20.4%;
  --cy: 16.3%;
  --rot: -4deg;
  --dx: 42px;
  --dy: 34px;
  --enter-delay: 0s;
  --exit-delay: 0.3s;
}

.coral-cluster-season .coral-photo-2 {
  --w: 102px;
  --ratio: 1.4;
  --cx: 31.5%;
  --cy: 45.8%;
  --rot: 3deg;
  --dx: -8px;
  --dy: 46px;
  --enter-delay: 0.15s;
  --exit-delay: 0.15s;
}

.coral-cluster-season .coral-photo-3 {
  --w: 102px;
  --ratio: 1.3;
  --cx: 69.3%;
  --cy: 40.1%;
  --rot: -3deg;
  --dx: -42px;
  --dy: 55px;
  --enter-delay: 0.3s;
  --exit-delay: 0s;
}

.coral-cluster-season .coral-photo-4 {
  --w: 102px;
  --ratio: 1.3;
  --cx: 76.8%;
  --cy: 72.2%;
  --rot: 4deg;
  --dx: -66px;
  --dy: 62px;
  --enter-delay: 0.3s;
  --exit-delay: 0s;
}

/* Bubble accents (rising, reusing the about-bubble visual language) */
.coral-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 1;
}

.coral-cluster.is-revealed .coral-bubble {
  animation: coral-bubble-rise 7s ease-in infinite;
}

.coral-bubble-1 {
  width: 16px;
  height: 16px;
  background: rgba(74, 144, 164, 0.35);
  left: 8%;
  bottom: 8%;
  animation-delay: 1.5s;
}

.coral-bubble-2 {
  width: 10px;
  height: 10px;
  background: rgba(236, 138, 90, 0.4);
  right: 14%;
  bottom: 2%;
  animation-delay: 2.3s;
}

.coral-bubble-3 {
  width: 12px;
  height: 12px;
  background: rgba(74, 144, 164, 0.3);
  left: 44%;
  bottom: -2%;
  animation-delay: 3.1s;
}

@keyframes coral-bubble-rise {
  0% {
    transform: translateY(0);
    opacity: 0;
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-140px);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coral-cluster,
  .coral-photo,
  .coral-illustration {
    transition: none;
  }

  .coral-fish,
  .coral-bubble {
    animation: none;
  }
}

/* Coral gallery modal (写真クリックで拡大表示) */
.coral-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.coral-gallery-modal[hidden] {
  display: none;
}

.coral-gallery-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 25, 0.55);
}

.coral-gallery-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  max-width: 620px;
  width: 100%;
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  padding: 44px 20px 16px;
  display: flex;
  flex-direction: column;
}

.coral-gallery-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coral-gallery-close:hover {
  background: var(--color-border);
}

.coral-gallery-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-height: 0;
}

.coral-gallery-media img {
  max-width: 100%;
  max-height: 40vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
}

/* 縦長写真：横長写真と同じワイドな箱だと左右の余白が大きくなるため、
   写真の比率に合わせてモーダル自体を細身にする */
.coral-gallery-modal.is-portrait .coral-gallery-dialog {
  max-width: 380px;
}

.coral-gallery-modal.is-portrait .coral-gallery-media img {
  max-height: 46vh;
}

.coral-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  color: var(--color-ocean-dark);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.coral-gallery-nav:hover {
  background: var(--color-bg-alt);
}

.coral-gallery-prev {
  left: 4px;
}

.coral-gallery-next {
  right: 4px;
}

.coral-gallery-info {
  flex: 0 0 auto;
  margin-top: 14px;
  text-align: center;
}

.coral-gallery-category {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-coral-dark);
}

.coral-gallery-category:empty {
  display: none;
}

.coral-gallery-title {
  margin: 0 0 5px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
}

.coral-gallery-title:empty {
  display: none;
}

.coral-gallery-caption {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--color-text);
}

/* Floorplan modal (間取り図の拡大表示：サンゴギャラリーとは独立) */
.floorplan-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.floorplan-modal[hidden] {
  display: none;
}

.floorplan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 25, 0.55);
}

.floorplan-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 44px 20px 20px;
}

.floorplan-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floorplan-modal-close:hover {
  background: var(--color-border);
}

.floorplan-modal-dialog img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* Feature list */
.feature-list {
  margin-bottom: 24px;
}

.feature-list h3 {
  font-size: 1.1rem;
  color: var(--color-text);
  margin: 0 0 12px;
  border-left: 4px solid var(--color-ocean);
  padding-left: 10px;
}

.feature-list ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 1.05rem;
  line-height: 1.9;
}

.feature-list li {
  margin-bottom: 6px;
}

/* Price cards */
.price-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.price-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 22px 20px;
}

.price-card-label {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}

.price-card-amount {
  margin: 0 0 16px;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--color-ocean-dark);
  line-height: 1.2;
}

.price-card-amount .unit {
  font-size: 1.1rem;
  font-weight: 600;
  margin-left: 2px;
}

/* Accordion */
.price-accordion {
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.price-accordion summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  padding: 10px 16px;
  border: 1px solid var(--color-ocean);
  border-radius: 999px;
  color: var(--color-ocean-dark);
  font-weight: 600;
  font-size: 0.9rem;
  width: fit-content;
  margin: 0 auto;
  user-select: none;
}

.price-accordion summary::-webkit-details-marker {
  display: none;
}

.price-accordion summary::marker {
  content: "";
}

.price-accordion .acc-close {
  display: none;
}

.price-accordion[open] .acc-open {
  display: none;
}

.price-accordion[open] .acc-close {
  display: inline;
}

.price-accordion summary:hover {
  background: var(--color-bg-alt);
}

.acc-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
  transition: transform 0.2s ease;
}

.price-accordion[open] .acc-icon {
  transform: rotate(-135deg);
  margin-top: 2px;
}

.price-detail {
  margin-top: 18px;
}

.price-detail-note {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.price-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-detail-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

.price-detail-list li:first-child {
  padding-top: 0;
}

.price-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  font-size: 0.95rem;
}

.price-detail-sub {
  margin-top: 6px;
}

.price-detail-sub p {
  margin: 2px 0;
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.price-detail-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  background: #fdf1ea;
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--color-coral-dark);
}

.price-footnote {
  margin-top: 4px;
}

/* Map */
.map-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  margin: 20px 0 10px;
}

.map-iframe {
  display: block;
  width: 100%;
  height: 280px;
  border: 0;
}

.map-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 28px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.map-caption a {
  color: var(--color-ocean-dark);
  font-weight: 600;
  text-decoration: none;
}

.map-caption a:hover {
  text-decoration: underline;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 32px;
}

.contact-info h3,
.contact-form-wrap h3 {
  font-size: 1.05rem;
  margin: 0 0 16px;
  border-left: 4px solid var(--color-ocean);
  padding-left: 10px;
}

.info-list {
  margin: 0 0 24px;
}

.info-list > div {
  display: flex;
  flex-direction: column;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.info-list dt {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.info-list dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-success {
  background: #eaf4f5;
  border: 1px solid var(--color-ocean);
  color: var(--color-ocean-dark);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 20px;
}

.form-success p {
  margin: 0;
  font-weight: 600;
  line-height: 1.8;
}

.form-success-note {
  margin-top: 10px !important;
  font-size: 0.8rem;
  font-weight: 400 !important;
  color: var(--color-text-light);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.required {
  color: var(--color-coral-dark);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--color-coral-dark);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  /* 16px未満だと、iPhoneのSafariが入力欄にふれた時に画面を自動で拡大してしまう */
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--color-text);
}

/* 押しやすいよう、1行の入力欄と選択欄は高さを揃えて広げる */
.form-row input,
.form-row select {
  min-height: 48px;
}

.form-row textarea {
  resize: vertical;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  background: var(--color-ocean-dark);
  color: #eaf4f5;
}

/* Tablet / Desktop */
@media (min-width: 768px) {
  .notice-section {
    padding: 40px 20px 12px;
  }

  .notice-summary {
    padding: 20px 28px;
  }

  .notice-summary-label {
    font-size: 1.1rem;
  }

  .notice-body {
    padding: 0 28px 26px;
  }

  .notice-body-inner {
    padding-top: 20px;
    font-size: 1rem;
  }

  .price-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-intro {
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 72px;
  }

  .about-intro-text {
    text-align: center;
    max-width: 720px; /* 見出し文の2行目(約645px)が1行に収まる幅 */
  }

  .about-message {
    font-size: 1.55rem;
  }

  .about-charms {
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
  }

  /* 4枚を横一列に並べる幅(196px×4＋隙間)が確保できない画面幅では、
     枠を最大196pxのまま均等に縮めて、横スクロールが出ないようにする */
  .about-charm {
    flex: 1 1 0;
    min-width: 0;
    max-width: 196px;
  }

  .about-charm-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .about-charm-meal {
    margin-top: -30px;
  }

  .about-charm-bath {
    margin-top: 24px;
  }

  .about-charm-dining {
    margin-top: -10px;
  }

  .life-coral-lead {
    margin: 52px 0;
  }

  .life-info-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }

  .life-floorplan-figure {
    max-width: min(25vw, 380px);
    min-width: 260px;
  }

  .coral-scene-inner {
    --pz: 1.3;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 48px;
  }

  .coral-cluster-room {
    width: 320px;
  }

  .coral-cluster-meal {
    width: 260px;
  }

  .coral-cluster-season {
    width: 320px;
  }

  .coral-cluster-room .coral-photo-1 {
    --w: 92px;
    --cx: 13.5%;
    --cy: 16.6%;
    --dx: 84px;
    --dy: 20px;
  }

  .coral-cluster-room .coral-photo-2 {
    --w: 68px;
    --cx: 24.7%;
    --cy: 44.2%;
    --dx: 42px;
    --dy: 46px;
  }

  .coral-cluster-room .coral-photo-3 {
    --w: 78px;
    --cx: 48.2%;
    --cy: 21.2%;
    --dx: 8px;
    --dy: 60px;
  }

  .coral-cluster-room .coral-photo-4 {
    --w: 80px;
    --cx: 74.7%;
    --cy: 45.3%;
    --dx: -36px;
    --dy: 48px;
  }

  .coral-cluster-room .coral-photo-5 {
    --w: 94px;
    --cx: 86.1%;
    --cy: 17.3%;
    --dx: -80px;
    --dy: 20px;
  }

  .coral-cluster-meal .coral-photo-1 {
    --w: 112px;
    --cx: 22.8%;
    --cy: 16.1%;
    --dx: 78px;
    --dy: 26px;
  }

  .coral-cluster-meal .coral-photo-2 {
    --w: 112px;
    --cx: 25.6%;
    --cy: 42.2%;
    --dx: 26px;
    --dy: 58px;
  }

  .coral-cluster-meal .coral-photo-3 {
    --w: 112px;
    --cx: 73%;
    --cy: 14.5%;
    --dx: -26px;
    --dy: 34px;
  }

  .coral-cluster-meal .coral-photo-4 {
    --w: 112px;
    --cx: 77%;
    --cy: 40.3%;
    --dx: -78px;
    --dy: 40px;
  }

  .coral-cluster-season .coral-photo-1 {
    --w: 122px;
    --cx: 19.1%;
    --cy: 18.7%;
    --dx: 52px;
    --dy: 36px;
  }

  .coral-cluster-season .coral-photo-2 {
    --w: 122px;
    --cx: 32.7%;
    --cy: 50.8%;
    --dx: -10px;
    --dy: 50px;
  }

  .coral-cluster-season .coral-photo-3 {
    --w: 122px;
    --cx: 68.5%;
    --cy: 36%;
    --dx: -52px;
    --dy: 60px;
  }

  .coral-cluster-season .coral-photo-4 {
    --w: 122px;
    --cx: 80.8%;
    --cy: 70%;
    --dx: -80px;
    --dy: 72px;
  }

  .coral-fish {
    width: 68px;
  }

  .coral-gallery-dialog {
    padding: 44px 44px 18px;
  }

  .coral-gallery-media img {
    max-height: 46vh;
  }

  .coral-gallery-modal.is-portrait .coral-gallery-media img {
    max-height: 54vh;
  }

  .coral-gallery-prev {
    left: -18px;
  }

  .coral-gallery-next {
    right: -18px;
  }

  .map-iframe {
    height: 400px;
  }

  .hero-media {
    height: 68vh;
    min-height: 500px;
    max-height: 760px;
  }

  .hero-track {
    animation-duration: 64s;
  }

  .hero-panel {
    max-width: none;
  }

  .hero-panel img {
    object-position: center;
  }

  .hero-content {
    padding: 0 20px 72px;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-lead {
    font-size: 1.08rem;
    max-width: 560px;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .photo-grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid img {
    height: 180px;
  }

  .photo-grid-2 img {
    height: 220px;
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pc-only {
    display: inline;
  }
}

/* ヘッダーナビの横並び表示は1024px以上でのみ有効にする。
   header-innerはmax-width:960pxで頭打ちになるため、1024px以上の
   ビューポートなら常に960px前後の安定した幅を確保できるが、
   768〜1023pxではビューポートそのものが960pxを下回り、5項目＋
   ロゴ＋お知らせタイトル(最大10文字)を1行ずつ収めるには狭すぎて
   横あふれが起きる。そのため、この中間幅ではスマホと同じ
   ハンバーガーメニューにフォールバックする。 */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    flex-direction: row;
    align-items: center;
    max-height: none;
    overflow: visible;
    border: none;
    background: transparent;
    gap: 18px;
  }

  .site-nav a {
    border-top: none;
    padding: 0;
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 767px) {
  .pc-only {
    display: none;
  }

  /* ファーストビュー説明文：フォント環境によって画面幅からはみ出すのを防ぐ */
  .hero-lead {
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* ファーストビュー説明文：狭い画面でも意味のまとまりの位置で改行する */
  .hero-lead-phrase {
    display: inline-block;
  }

  /* 料金表：項目名を折り返し可・金額側は1行を維持して崩れを防ぐ */
  .price-detail-row {
    align-items: baseline;
    gap: 8px;
  }

  .price-detail-row span:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .price-detail-row span:last-child,
  .price-detail-total span:last-child {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}
