/* ============================================
   SHORE of KOTOGAHAMA — Brand stylesheet
   ============================================ */

:root {
  --color-bg: #fafaf7;
  --color-bg-alt: #f0ede5;
  --color-text: #1a1a1a;
  --color-text-soft: #555;
  --color-accent: #1f3a5f;
  --color-line: #d8d4c8;

  --font-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-en: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: min(1200px, 92vw);
  --container-narrow: min(820px, 90vw);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  line-height: 1.8;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.6; }

/* ============================================
   Header (logo image)
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 250, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-line);
}

.site-header .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-header .brand img {
  height: 48px;
  width: auto;
  display: block;
}

.site-header .brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  align-items: center;
}

.site-header .brand .brand-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}

.site-header .brand .brand-jp {
  font-family: var(--font-jp);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--color-text-soft);
  margin-top: 2px;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  align-items: center;
}

.site-nav .lang {
  font-size: 0.75rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-text);
  letter-spacing: 0.1em;
}

@media (max-width: 720px) {
  .site-header { padding: 0.75rem 1rem; }
  .site-header .brand img { height: 38px; }
  .site-header .brand .brand-text { display: none; }
  .site-nav { gap: 1rem; font-size: 0.75rem; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 60%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  z-index: 2;
  padding: 0 2rem;
}

.hero-content .en {
  font-family: var(--font-en);
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  letter-spacing: 0.5em;
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  text-wrap: balance;
}

.hero-content .tagline {
  margin-top: 2rem;
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  letter-spacing: 0.3em;
  font-weight: 300;
  opacity: 0.9;
  text-wrap: balance;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  z-index: 2;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============================================
   Section common
   ============================================ */
section { padding: 8rem 0; }

.container { width: var(--container); margin: 0 auto; }
.container-narrow { width: var(--container-narrow); margin: 0 auto; }

.section-label {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: var(--font-jp);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 4rem;
  text-wrap: balance;
}

.section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  margin: 1.5rem auto 0;
}

@media (max-width: 720px) {
  section { padding: 5rem 0; }
  .section-title { margin-bottom: 3rem; font-size: 1.35rem; text-wrap: unset; }
  .hero-content h1 { text-wrap: unset; }
  .hero-content .tagline { text-wrap: unset; }
  .split .text h2 { text-wrap: unset; font-size: 1.3rem; }
  .concept-text { text-align: left; text-wrap: unset; }
  .split .text p { text-wrap: unset; }
  .property-card .desc { text-wrap: unset; }
}

/* PC/SP breakpoint utility */
.sp-only { display: none; }
@media (max-width: 720px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}

/* ============================================
   Concept text
   ============================================ */
.concept-text {
  text-align: center;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  line-height: 2.4;
  letter-spacing: 0.1em;
  text-wrap: pretty;
}

.concept-text p + p { margin-top: 1.8rem; }

.concept-text .lead {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  letter-spacing: 0.15em;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

/* ============================================
   Property cards
   ============================================ */
.properties { background: var(--color-bg-alt); }

.property-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.property-card {
  display: block;
  background: #fff;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  opacity: 1;
}

.property-card .image { aspect-ratio: 4 / 3; overflow: hidden; }

.property-card .image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}

.property-card:hover .image img { transform: scale(1.05); }

.property-card .body { padding: 2.5rem 2rem 3rem; text-align: center; }

.property-card .en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--color-text-soft);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.property-card h3 {
  font-family: var(--font-jp);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
}

.property-card .desc {
  font-size: 0.95rem;
  line-height: 2;
  color: var(--color-text-soft);
  margin-bottom: 2rem;
}

.property-card .more {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--color-text);
}

@media (max-width: 720px) {
  .property-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery .item { aspect-ratio: 4 / 3; overflow: hidden; }
.gallery .item.wide { grid-column: span 2; aspect-ratio: 8 / 3; }
.gallery .item.tall { grid-row: span 2; aspect-ratio: 3 / 4; }

.gallery .item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery .item:hover img { transform: scale(1.04); }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .item.wide, .gallery .item.tall {
    grid-column: span 2; grid-row: span 1; aspect-ratio: 4 / 3;
  }
}

/* ============================================
   Info table
   ============================================ */
.info-table { width: 100%; border-collapse: collapse; }

.info-table th, .info-table td {
  padding: 1.25rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-line);
  font-size: 0.95rem;
  line-height: 1.8;
  vertical-align: top;
}

.info-table th {
  font-weight: 500;
  width: 28%;
  letter-spacing: 0.15em;
  color: var(--color-text-soft);
}

@media (max-width: 600px) {
  .info-table th, .info-table td {
    display: block; width: 100%; padding: 0.5rem 0; border: none;
  }
  .info-table th {
    border-top: 1px solid var(--color-line);
    padding-top: 1.25rem; margin-top: 1rem;
  }
  .info-table tr:first-child th { border-top: none; margin-top: 0; }
}

/* ============================================
   CTA
   ============================================ */
.cta-section { text-align: center; background: var(--color-bg-alt); }

.btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--color-text);
  color: #fff;
  opacity: 1;
}

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

.btn-primary:hover { background: transparent; color: var(--color-accent); }

/* ============================================
   Split section
   ============================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 70vh;
}

.split .visual { width: 100%; height: 100%; min-height: 50vh; overflow: hidden; }
.split .visual img { width: 100%; height: 100%; object-fit: cover; }

.split .text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split.reverse .visual { order: 2; }
.split.reverse .text { order: 1; }

.split .text .en {
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.split .text h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-wrap: balance;
}

.split .text p {
  font-size: 0.95rem;
  line-height: 2.2;
  letter-spacing: 0.08em;
  text-wrap: pretty;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: auto; }
  .split.reverse .visual { order: 1; }
  .split.reverse .text { order: 2; }
  .split .text { padding: 4rem 2rem; }
  .split .visual { min-height: 60vw; }
}

/* ============================================
   Map (Access page)
   ============================================ */
.map-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--color-line);
}

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

.access-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 4rem;
}

.access-info .block h3 {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.access-info .block p {
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.05em;
}

.access-info .block a { border-bottom: 1px solid var(--color-line); }

@media (max-width: 720px) {
  .access-info { grid-template-columns: 1fr; gap: 2rem; }
}

/* ============================================
   Instagram feed (Behold.so)
   ============================================ */
.instagram-section {
  padding: 6rem 0 4rem;
  background: var(--color-bg);
  text-align: center;
}

.instagram-section .ig-handle {
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  margin-bottom: 2.5rem;
  display: inline-block;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 0.25rem;
}

.instagram-section .behold-widget { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: #111;
  color: #fff;
  padding: 4rem 0 2rem;
  text-align: center;
}

.site-footer .footer-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 1rem;
  filter: invert(1);
}

.site-footer .brand-jp-foot {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: #999;
  margin-bottom: 2.5rem;
}

.site-footer .links {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  flex-wrap: wrap;
}

.site-footer .contact {
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 2rem;
  letter-spacing: 0.1em;
}

.site-footer .contact a { color: #fff; border-bottom: 1px solid #555; }

.site-footer .copyright {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: #777;
  padding-top: 2rem;
  border-top: 1px solid #333;
}

/* ============================================
   Fade-in
   ============================================ */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Hero slideshow (home only) — siran style
   ============================================ */
.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroKenburns 28s infinite;
}
.hero-slideshow .slide:nth-child(1) { animation-delay: 0s; }
.hero-slideshow .slide:nth-child(2) { animation-delay: 7s; }
.hero-slideshow .slide:nth-child(3) { animation-delay: 14s; }
.hero-slideshow .slide:nth-child(4) { animation-delay: 21s; }

@keyframes heroKenburns {
  0%   { opacity: 0; transform: scale(1.06); }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  25%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slideshow .slide { animation-duration: 28s; }
  .hero-slideshow .slide { transform: none !important; }
}

/* Centered brand mark over the slideshow */
.hero-mark {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 34% at center, rgba(0,0,0,0.30) 0%, rgba(0,0,0,0.12) 45%, rgba(0,0,0,0) 72%);
}
.hero-mark img {
  height: 60px;
  width: auto;
  margin: 0 auto 1.2rem;
  filter: invert(1) brightness(1.6) drop-shadow(0 2px 12px rgba(0,0,0,0.45));
}
.hero-mark .jp {
  font-family: var(--font-jp);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.35em;
  text-indent: 0.35em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-mark .en {
  font-family: var(--font-en);
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  opacity: 0.85;
  margin-top: 0.9rem;
}

/* Transparent header over hero (home only), turns solid on scroll */
.site-header--overlay {
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}
.site-header--overlay:not(.is-solid) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}
.site-header--overlay:not(.is-solid) .brand img {
  filter: invert(1) brightness(1.6) drop-shadow(0 1px 6px rgba(0,0,0,0.4));
}
.site-header--overlay:not(.is-solid) .brand .brand-en,
.site-header--overlay:not(.is-solid) .brand .brand-jp,
.site-header--overlay:not(.is-solid) .site-nav a {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.site-header--overlay:not(.is-solid) .site-nav .lang {
  border-color: rgba(255,255,255,0.7);
}
