:root {
  --sand:       #f5ede0;
  --sand-dark:  #e8d9c5;
  --terracotta: #c0612b;
  --brown-dark: #3d1f0a;
  --gold:       #c8973a;
  --gold-light: #e0b86a;
  --text:       #3a2a1a;
  --text-light: #7a6050;
  --white:      #fdfaf6;
  --font-ja:    'Zen Kaku Gothic New', sans-serif;
  --font-en:    'Inder', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  background: var(--sand);
  color: var(--text);
  font-family: var(--font-ja);
  font-size: 14px;
  line-height: 1.9;
  overflow-x: hidden;
  position: relative;
  isolation: isolate;
  animation: fadeIn 1.3s ease both;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 2px,
      rgba(160,120,70,.02) 2px,
      rgba(160,120,70,.02) 4px
    ),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@view-transition {
navigation: auto;
}

img { display: block; width: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ===== HEADER ===== */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 202;
  background: transparent;
  display: flex; align-items: stretch; justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 48px) 0;
  gap: 24px;
}
.logo {
  display: flex; align-items: center;
  font-family: var(--font-en);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 400; letter-spacing: .04em;
  margin-left: 2vw;
  color: var(--brown-dark);
  white-space: nowrap; flex-shrink: 0;
  transition: opacity .3s ease;
}
body.drawer-open .logo {
  opacity: 0; visibility: hidden; pointer-events: none;
}

header nav {
  display: flex;
  background: rgba(253, 250, 246, .92);
  backdrop-filter: blur(8px);
  border-radius: 12px 12px 0 12px;
  border: 1px solid rgb(0, 0, 0);
  box-shadow: 0 2px 16px rgba(60, 20, 0, .08);
  gap: 0;
}
header nav a {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1px;
  padding: clamp(8px, 1.2vw, 13px) clamp(14px, 2vw, 26px);
  position: relative;
}
header nav a:not(:last-child)::after {
  content: '';
  position: absolute; right: 0; top: 20%; height: 60%;
  width: 1px; background: var(--sand-dark);
}
header nav a .nav-ja {
  font-family: var(--font-ja);
  font-size: clamp(.7rem, 1vw, .88rem);
  font-weight: 500; color: var(--text); white-space: nowrap;
  transition: color .2s;
}
header nav a .nav-en {
  font-family: var(--font-en);
  font-size: clamp(.6rem, .8vw, .72rem);
  color: var(--gold); white-space: nowrap; letter-spacing: .04em;
}
header nav a:hover .nav-ja { color: var(--gold); }
header nav a.active .nav-ja { color: var(--gold); }

header nav a:first-child { padding-left: clamp(20px, 2.8vw, 40px); }
header nav a:last-child {
  margin-left: clamp(8px, 2vw, 24px);
  padding-left: clamp(16px, 2.2vw, 30px);
  padding-right: clamp(20px, 2.8vw, 40px);
}
header nav a:last-child::after { display: none; }

/* お問い合わせ 楕円 */
header nav a:last-child svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130%; height: auto;
  z-index: 10; pointer-events: none; overflow: visible;
}
header nav a:last-child .cls-1 {
  fill: none; stroke: var(--gold); stroke-width: 1.5px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .5s ease-in-out;
}
header nav a:last-child:hover .cls-1 { stroke-dashoffset: 0 !important; }

/* ハンバーガーボタン */
.hamburger {
  display: none; cursor: pointer; padding: 4px;
  z-index: 201; position: relative;
  background: none; border: none;
  width: 48px; height: 48px;
}
.hamburger img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ===== DRAWER ===== */
.nav-drawer {
  display: flex;
  position: fixed; inset: 0;
  background: #b8906a;
  flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
  overflow: hidden;
}
.nav-drawer.open { opacity: 1; pointer-events: auto; }

.nav-drawer-links {
  display: flex; flex-direction: column;
  align-items: center; gap: clamp(18px, 3.5vw, 32px);
  position: relative; z-index: 1;
}
.nav-drawer-links a {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none;
}
.nav-drawer-links a .nav-ja {
  font-family: var(--font-ja);
  font-size: clamp(.85rem, 2.2vw, 1.05rem);
  font-weight: 400; color: var(--white); letter-spacing: .12em;
}
.nav-drawer-links a .nav-en {
  font-family: var(--font-en);
  font-size: clamp(.6rem, 1.4vw, .75rem);
  color: rgba(255, 255, 255, .7); letter-spacing: .1em;
}
.nav-drawer-links a.contact-link {
  position: relative; padding: 8px 24px;
  margin-top: clamp(8px, 2vw, 20px);
}
.nav-drawer-links a.contact-link svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 115%; height: auto;
  pointer-events: none; overflow: visible;
}
.nav-drawer-links a.contact-link .oval-line {
  fill: none; stroke: var(--white); stroke-width: 1.2px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .6s ease-in-out;
}
@media (min-width: 701px) {
  .nav-drawer-links a.contact-link:hover .oval-line {
    stroke-dashoffset: 0 !important;
  }
}

.nav-drawer-backtop {
  position: absolute; bottom: clamp(20px, 5vw, 40px); right: clamp(20px, 5vw, 40px);
  font-family: var(--font-ja); font-size: clamp(.65rem, 1.6vw, .8rem);
  color: var(--white); letter-spacing: .08em; cursor: pointer;
  background: none; border: none; text-decoration: none;
  z-index: 1;
}

/* ドロワー用ウェービーライン */
.drawer-wavy-svg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.drawer-wavy-path {
  fill: none; stroke: #ffffff;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ===== PAGE TOP SPACER ===== */
.page-top {
  height: clamp(80px, 14vw, 120px);
  background: var(--sand);
}

/* ===== SECTION TITLE ===== */
.section-title {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 48px);
  z-index: 1;
}
.section-title h2 {
  font-family: var(--font-ja);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 500; letter-spacing: .12em;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.section-title h2::before,
.section-title h2::after { content: '✦'; color: var(--gold); font-size: .75em; animation: sparkle-gem 3.6s ease-in-out infinite;}
.section-title .en-sub {
  font-family: var(--font-en);
  font-size: clamp(.8rem, 1.6vw, .95rem);
  color: var(--text-light); letter-spacing: .08em; margin-top: 6px;
}
/* ===== SECTION TITLE — ✦ sparkle animation ===== */
@keyframes sparkle-gem {
  0%    { transform:    scale(1);    opacity: 1;   }
  50%   { transform:   scale(1);    opacity: 1;   }
  70%   { transform:  scale(0.08); opacity: 0.1; }
  70.5% { transform: scale(1.15); opacity: 1;   }
  75%   { transform: scale(0.92); opacity: 1;   }
  80%   { transform: scale(1);    opacity: 1;   }
  100%  { transform:  scale(1);    opacity: 1;   }
}


/* ===== OVAL BUTTON ===== */
.oval-btn-link {
  display: inline-block; position: relative;
  font-family: var(--font-ja); font-size: .9rem; font-weight: 500;
  padding: 12px 40px;
  letter-spacing: .1em; text-decoration: none;
}
.oval-btn-link svg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: auto;
  pointer-events: none; overflow: visible;
}
.oval-btn {
  fill: none; stroke: var(--gold); stroke-width: 1.5px;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke-dashoffset .5s ease-in-out;
}
.oval-btn-link:hover .oval-btn { stroke-dashoffset: 0 !important; }

/* ===== NEWS ===== */
.news-item {
  border-bottom: 1px solid var(--sand-dark);
  padding: clamp(14px, 2.5vw, 22px) 0;
  display: flex; flex-direction: column; gap: 8px; align-items: flex-start;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.news-item.is-visible { opacity: 1; transform: translateY(0); }
.news-item:last-child { border-bottom: none; }
.news-date {
  font-family: var(--font-en); font-size: .65rem;
  letter-spacing: .06em;
  border: 1px solid;
  border-radius: 5px 5px 5px 0;
  background-color: white;
  padding: 1px 7px;
  display: inline-block;
}
.news-text  { font-size: clamp(.8rem, 1.5vw, .88rem); text-align: justify; font-weight: 500; line-height: 1.85; }
.link-gold {
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.link-gold:hover { border-color: var(--gold); }

/* ===== WAVY LINES ===== */
.wavy-svg {
  position: absolute; top: 0; left: 0;
  width: 100%;
  pointer-events: none; z-index: 20; overflow: visible;
}
.wavy-path {
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.wavy-path-a { stroke: var(--gold); stroke-width: 2.0; }
.wavy-path-b { stroke: var(--gold); stroke-width: 2.0; }

/* ===== FOOTER BAND ===== */
.footer-band {
  position: relative; z-index: 20;
  height: clamp(80px, 12vw, 140px);
  overflow: hidden;
}
.footer-elephant {
  position: absolute;
  right: clamp(60px, 10vw, 150px);
  bottom: -1px;
  width: 50px;
}
.footer-elephant svg { width: 100%; height: auto; display: block; }
.footer-elephant svg path { fill: var(--gold); }

/* ===== FOOTER ===== */
footer {
  position: relative; z-index: 20;
  background: #c8973a;
  padding: clamp(14px, 2vw, 20px) clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0;
}
.footer-logo {
  position: relative; z-index: 21;
  font-family: var(--font-en);
  font-size: clamp(.95rem, 1.8vw, 1.3rem);
  font-weight: 400; letter-spacing: .06em;
  color: var(--white);
  grid-column: 1; grid-row: 1;
}
.footer-address {
  position: relative; z-index: 21;
  grid-column: 2; grid-row: 1;
  text-align: center;
  font-family: var(--font-ja);
  font-size: clamp(.6rem, 1.1vw, .75rem);
  line-height: 1.5; color: var(--white);
}
.footer-up {
  position: relative; z-index: 21;
  grid-column: 3; grid-row: 1;
  justify-self: end;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; text-decoration: none;
}
.footer-up-label {
  font-family: var(--font-en);
  font-size: .6rem; letter-spacing: .14em; color: var(--white);
}
.footer-up-arrow {
  width: 0; height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 30px solid var(--white);
}
.footer-copy {
  position: relative; z-index: 21;
  grid-column: 1 / -1; grid-row: 2;
  text-align: center;
  font-family: var(--font-en);
  font-size: clamp(.55rem, .9vw, .68rem);
  letter-spacing: .1em; color: rgba(255, 255, 255, .75);
  margin-top: 10px;
}

.footer-address-break { display: none; }

/* ===== MOBILE NAV ===== */
@media (max-width: 700px) {
  header nav { display: none; }
  .hamburger  { display: flex; }

  footer {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto;
    justify-items: center;
    padding: clamp(20px, 5vw, 32px);
    position: relative;
  }
  .footer-address-break { display: block; }
  .footer-logo    { grid-column: 1; grid-row: 1; text-align: center; }
  .footer-address { grid-column: 1; grid-row: 2; margin-top: 12px; }
  .footer-up      { grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: end; }
  .footer-copy    { grid-column: 1 / -1; grid-row: 3; }
  .footer-elephant { right: auto; left: 12vw; bottom: -1px; }
}
@media (max-width: 420px) { .logo { font-size: 1.1rem; } }