
/* Unified header, drawer and footer styling loaded after page CSS */
.kg-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 100%;
  padding: 22px 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: transparent;
  transition: background .3s ease, backdrop-filter .3s ease;
}

body.kg-header-scrolled .kg-header {
  background: rgba(35,56,45,.18);
  backdrop-filter: blur(10px);
}

.kg-header__brand,
.kg-drawer__brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.kg-header__brand { gap: 12px; }
.kg-drawer__brand { gap: 14px; }

.kg-header__mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
}

.kg-header__mark img,
.kg-drawer__mark img,
.kg-site-footer__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kg-header__name {
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 16px;
  letter-spacing: .14em;
  font-weight: 400;
  white-space: nowrap;
}

.kg-header__right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.kg-page-nav {
  display: none;
  align-items: center;
  gap: 20px;
  color: rgba(255,255,255,.84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .12em;
}

.kg-page-nav a {
  color: inherit;
  text-decoration: none;
}

.kg-lang {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .12em;
}

.kg-lang a,
.kg-drawer a {
  color: inherit;
  text-decoration: none;
}

.kg-lang__link { opacity: .72; }
.kg-lang__link--current { opacity: 1; color: #a68655; }
.kg-lang__separator { opacity: .5; }

.kg-menu-button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.kg-menu-button__line {
  width: 18px;
  height: 1px;
  background: #fff;
}

body.kg-menu-open { overflow: hidden; }

.kg-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(166,134,85,.16) 0 1px, transparent 1px 100%),
    #23382d;
  transition: opacity .32s ease, visibility .32s ease;
}

body.kg-menu-open .kg-drawer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.kg-drawer__inner {
  min-height: 100dvh;
  padding: 24px 6vw 30px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.kg-drawer__head,
.kg-drawer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.kg-drawer__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.kg-drawer__name {
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 18px;
  letter-spacing: .14em;
}

.kg-drawer__close {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.kg-drawer__close-line {
  grid-area: 1 / 1;
  width: 18px;
  height: 1px;
  background: #fff;
}

.kg-drawer__close-line:first-child { transform: rotate(42deg); }
.kg-drawer__close-line:last-child { transform: rotate(-42deg); }

.kg-drawer__nav {
  width: min(100%, 960px);
  margin: auto 0;
  display: grid;
  gap: 20px;
}

.kg-drawer__group {
  display: grid;
  gap: 9px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .36s ease, transform .36s ease;
}

body.kg-menu-open .kg-drawer__group {
  opacity: 1;
  transform: translateY(0);
}

body.kg-menu-open .kg-drawer__group:nth-child(2) { transition-delay: .04s; }
body.kg-menu-open .kg-drawer__group:nth-child(3) { transition-delay: .08s; }
body.kg-menu-open .kg-drawer__group:nth-child(4) { transition-delay: .12s; }

.kg-drawer__category {
  margin: 0;
  color: #a68655;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .16em;
}

.kg-drawer__list {
  display: grid;
  gap: 8px;
}

.kg-drawer__link {
  position: relative;
  width: fit-content;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 28px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 29px;
  line-height: 1.08;
  letter-spacing: .04em;
  font-weight: 400;
}

.kg-drawer__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: #a68655;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .24s ease;
}

.kg-drawer__link:hover::after { transform: scaleX(1); }

.kg-service-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.kg-service-card__link:focus-visible {
  outline: 2px solid #a68655;
  outline-offset: 4px;
}

.kg-service-card__detail {
  display: inline-flex;
  color: #23382d;
}

.kg-drawer__lang,
.kg-drawer__instagram {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .14em;
}

.kg-drawer__lang {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kg-drawer__lang-link--current,
.kg-drawer__instagram {
  color: #a68655;
}

.kg-drawer__separator { opacity: .5; }

.kg-cta {
  background: #23382d !important;
  color: #fff !important;
}

.kg-cta::before,
.crea-cta::before,
.cottage-art-cta::before,
.tennis-cta::before,
.restaurant-cta::before {
  content: none !important;
  display: none !important;
}

.kg-cta .kg-section-label {
  color: #a68655 !important;
}

.kg-cta__title {
  color: #fff !important;
}

.kg-cta__text {
  color: rgba(255,255,255,.78) !important;
}

.kg-cta__buttons,
.restaurant-cta__buttons,
.tennis-cta__buttons,
.cottage-art-cta__actions,
.crea-cta__buttons {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 16px !important;
}

.kg-cta .kg-button,
.restaurant-cta .restaurant-button,
.tennis-cta .tennis-button,
.cottage-art-cta .cottage-button,
.crea-cta .crea-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: min(100%, 240px) !important;
  min-height: 56px !important;
  padding: 14px 28px !important;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: .08em !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: background-color .28s ease, border-color .28s ease, color .28s ease, transform .28s ease, box-shadow .28s ease !important;
}

.kg-cta .kg-button--primary,
.restaurant-cta .restaurant-button--primary,
.tennis-cta .tennis-button--primary,
.cottage-art-cta .cottage-button--primary,
.crea-cta .crea-button--primary {
  background: #b79a62 !important;
  border-color: #b79a62 !important;
  color: #fff !important;
}

.kg-cta .kg-button--outline,
.restaurant-cta .restaurant-button--outline,
.tennis-cta .tennis-button--outline,
.cottage-art-cta .cottage-button--outline,
.crea-cta .crea-button--outline {
  background: transparent !important;
  border-color: rgba(255,255,255,.62) !important;
  color: #fff !important;
}

.kg-cta .kg-button--primary:hover,
.restaurant-cta .restaurant-button--primary:hover,
.tennis-cta .tennis-button--primary:hover,
.cottage-art-cta .cottage-button--primary:hover,
.crea-cta .crea-button--primary:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #23382d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.18) !important;
}

.kg-cta .kg-button--outline:hover,
.restaurant-cta .restaurant-button--outline:hover,
.tennis-cta .tennis-button--outline:hover,
.cottage-art-cta .cottage-button--outline:hover,
.crea-cta .crea-button--outline:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: #23382d !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 34px rgba(0,0,0,.18) !important;
}

.kg-site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 6vw 30px;
  background: #1c2b23;
  color: rgba(255,255,255,.76);
}

.kg-site-footer::before {
  content: "";
  position: absolute;
  right: -54px;
  bottom: -120px;
  width: clamp(260px, 42vw, 520px);
  aspect-ratio: 1;
  background: #fff;
  opacity: .045;
  pointer-events: none;
  -webkit-mask: url("../images/logo.svg") center / contain no-repeat;
  mask: url("../images/logo.svg") center / contain no-repeat;
}

.kg-site-footer__inner {
  position: relative;
  display: grid;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
}

.kg-site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.kg-site-footer__mark {
  width: 42px;
  height: 42px;
}

.kg-site-footer__name {
  color: #fff;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif;
  font-size: 18px;
  letter-spacing: .14em;
}

.kg-site-footer__text {
  max-width: 420px;
  margin: 22px 0 0;
  color: rgba(255,255,255,.64);
  font-size: 13px;
  line-height: 2;
}

.kg-site-footer__nav {
  display: grid;
  gap: 10px;
}

.kg-site-footer__label {
  margin: 0 0 8px;
  color: #a68655;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: .16em;
}

.kg-site-footer__nav a {
  color: rgba(255,255,255,.78);
  font-size: 13px;
  text-decoration: none;
}

.kg-site-footer__bottom {
  position: relative;
  max-width: 1180px;
  margin: 54px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.52);
  text-align: center;
}

@media (min-width: 760px) {
  .kg-site-footer__inner {
    grid-template-columns: 1.2fr .8fr .8fr;
    gap: 56px;
  }
}

@media (min-width: 960px) {
  .kg-page-nav { display: flex; }
}

@media (min-width: 768px) {
  .kg-drawer__link {
    font-size: 34px;
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  .kg-drawer__link {
    padding: 4px 0;
    font-size: 28px;
  }
}

@media (max-width: 640px) {
  .kg-header { padding: 18px 5vw; }
  .kg-header__name { display: none; }
  .kg-header__right { gap: 12px; }
  .kg-drawer__inner { padding: 20px 5vw 24px; }
  .kg-drawer__link {
    padding: 6px 0;
    font-size: clamp(25px, 7.4vw, 32px);
  }
}

/* Final drawer normalization: keep all pages aligned with the approved top-page mock. */
body .kg-drawer .kg-drawer__close {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  border: 1px solid rgba(255,255,255,.42) !important;
  border-radius: 999px !important;
  background: transparent !important;
}

body .kg-drawer .kg-drawer__close-line {
  display: none !important;
}

body .kg-drawer .kg-drawer__close::before,
body .kg-drawer .kg-drawer__close::after {
  content: none !important;
  display: none !important;
}

body .kg-drawer .kg-drawer__close-icon {
  display: none !important;
}

body .kg-drawer .kg-drawer__close-mark {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  transform: none !important;
}

body .kg-drawer .kg-drawer__close-bar {
  grid-area: 1 / 1 !important;
  display: block !important;
  width: 18px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #fff !important;
  transform-origin: center !important;
}

body .kg-drawer .kg-drawer__close-bar:first-child {
  transform: rotate(45deg) !important;
}

body .kg-drawer .kg-drawer__close-bar:last-child {
  transform: rotate(-45deg) !important;
}

body .kg-drawer .kg-drawer__link {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: fit-content !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  font-family: Georgia, "Times New Roman", "Noto Serif JP", serif !important;
  font-size: 29px !important;
  font-weight: 400 !important;
  line-height: 1.08 !important;
  letter-spacing: .04em !important;
}

@media (min-width: 768px) {
  body .kg-drawer .kg-drawer__link {
    font-size: 34px !important;
  }
}

@media (min-width: 768px) and (max-height: 820px) {
  body .kg-drawer .kg-drawer__link {
    padding: 4px 0 !important;
    font-size: 28px !important;
  }
}

@media (max-width: 640px) {
  body .kg-drawer .kg-drawer__link {
    padding: 6px 0 !important;
    font-size: clamp(25px, 7.4vw, 32px) !important;
  }
}

.kg-mock--en .kg-section-title,
.crea--en .crea-section-title,
.cottage--en .cottage-art-title,
.tennis--en .tennis-section-title,
.restaurant--en .restaurant-section-title {
  word-break: normal;
  overflow-wrap: anywhere;
}

.cottage-fixed-booking {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 1200;
}

.cottage-fixed-booking__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 58px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #b79a62;
  color: #fff;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 18px 34px rgba(15, 28, 22, .22);
  transition: transform .28s ease, box-shadow .28s ease, background-color .28s ease;
}

.cottage-fixed-booking__link:hover {
  transform: translateY(-2px);
  background: #c5a970;
  box-shadow: 0 24px 40px rgba(15, 28, 22, .28);
}

.cottage-fixed-booking__main,
.cottage-fixed-booking__sub {
  display: block;
  line-height: 1.2;
}

.cottage-fixed-booking__main {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
}

.cottage-fixed-booking__sub {
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .78;
  text-transform: uppercase;
}

.kg-contact-en {
  max-width: 1120px;
}

.kg-contact-en__lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(35, 56, 45, .74);
  font-size: 16px;
  line-height: 2;
}

.kg-contact-en__layout {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.kg-contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(35, 56, 45, .12);
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: 0 22px 50px rgba(24, 44, 35, .08);
}

.kg-contact-form__fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0;
  padding: 0 0 8px;
  border: 0;
}

.kg-contact-form__legend,
.kg-contact-form__field span {
  margin-bottom: 8px;
  color: #9b7c43;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kg-contact-form__fieldset label,
.kg-contact-form__field {
  color: #23382d;
  font-size: 14px;
  font-weight: 600;
}

.kg-contact-form__field {
  display: grid;
  gap: 8px;
}

.kg-contact-form input[type="text"],
.kg-contact-form input[type="email"],
.kg-contact-form input[type="tel"],
.kg-contact-form input[type="number"],
.kg-contact-form textarea {
  width: 100%;
  border: 1px solid rgba(35, 56, 45, .16);
  border-radius: 12px;
  background: #fff;
  color: #23382d;
  font: inherit;
  padding: 13px 14px;
}

.kg-contact-form textarea {
  resize: vertical;
}

.kg-contact-form__submit {
  justify-self: start;
}

.kg-contact-en__aside {
  padding: 32px;
  border-radius: 28px;
  background: #17382a;
  color: #fff;
}

.kg-contact-en__aside-label {
  color: #c0a36b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.kg-contact-en__tel {
  display: inline-block;
  margin-top: 18px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 5vw, 34px);
  text-decoration: none;
}

.kg-contact-en__aside-text {
  margin-top: 18px;
  color: rgba(255,255,255,.72);
  line-height: 1.9;
}

.kg-contact-en__links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.kg-contact-en__links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 10px;
}

@media (min-width: 860px) {
  .kg-contact-en__layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .kg-contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kg-contact-form__fieldset,
  .kg-contact-form__field--full,
  .kg-contact-form__submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .cottage-fixed-booking {
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
  }

  .cottage-fixed-booking__link {
    width: 100%;
    min-height: 54px;
  }

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