@charset "UTF-8";

/* =========================================================
   Ken Golf Club — Closing / Gratitude page
   Theme: dignified retirement (勇退) & gratitude (有終の美)
   ========================================================= */

:root {
  --green: #1f4a36;
  --green-deep: #0f2a1f;
  --green-soft: #e6efe4;
  --gold: #c09249;
  --gold-deep: #a9772f;
  --gold-soft: #f3e8cf;
  --ink: #1d271f;
  --muted: #5f6c62;
  --paper: #fcfbf5;
  --paper-deep: #f1ecde;
  --white: #ffffff;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Yu Gothic", Meiryo, serif;
  background: linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---------- English / accent type ---------- */
.eyebrow,
.section-label,
.serif-en {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(252, 251, 245, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease),
    box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.site-header.is-stuck {
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(252, 251, 245, 0.82);
  border-bottom: 1px solid rgba(31, 74, 54, 0.08);
  box-shadow: 0 14px 44px rgba(15, 42, 31, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: clamp(46px, 5vw, 60px);
  width: auto;
  transition: height 0.4s var(--ease), filter 0.4s var(--ease);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* On the hero (transparent header) the green logo would clash with the
   dark image, so show it in cream until the header sticks. */
.site-header .brand img {
  content: url("../img/logo_cream.png");
}
.site-header.is-stuck .brand img {
  content: url("../img/logo_green.png");
  filter: none;
}

.site-nav {
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  transition: color 0.4s var(--ease), background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}

.site-header.is-stuck .site-nav {
  border-color: rgba(31, 74, 54, 0.14);
  background: rgba(255, 255, 255, 0.5);
  color: var(--green);
}

.site-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.site-nav a:hover {
  color: var(--white);
  background: var(--gold);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--green-deep);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  transform: scale(1.08);
  animation: kenburns 22s ease-out forwards;
}

@keyframes kenburns {
  from {
    transform: scale(1.16) translateY(0);
  }
  to {
    transform: scale(1.02) translateY(-1.5%);
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 24, 16, 0.86), rgba(13, 36, 24, 0.42) 52%, rgba(13, 36, 24, 0.06) 84%),
    linear-gradient(0deg, rgba(8, 22, 15, 0.82), rgba(8, 22, 15, 0.05) 46%);
}

/* warm sun glow, slowly breathing — adds gentle life, not sadness */
.hero-glow {
  position: absolute;
  top: -14%;
  right: -8%;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(224, 178, 96, 0.34), rgba(224, 178, 96, 0) 62%);
  animation: glow 9s ease-in-out infinite alternate;
}

@keyframes glow {
  from { opacity: 0.55; transform: scale(0.96); }
  to   { opacity: 1;    transform: scale(1.08); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(96px, 14vh, 150px);
  color: var(--white);
}

.hero .eyebrow {
  margin: 0 0 22px;
  color: var(--gold-soft);
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 700;
  line-height: 1.32;
  text-wrap: balance;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.hero .lead {
  max-width: 40em;
  margin: 30px 0 0;
  font-size: clamp(15px, 1.7vw, 19px);
  line-height: 2.15;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.32);
}

.gold-rule {
  display: block;
  width: 78px;
  height: 2px;
  margin: 0 0 30px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform-origin: left center;
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 2;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero-scroll span {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), var(--gold-soft));
  overflow: hidden;
}

.hero-scroll span::after {
  content: "";
  display: block;
  width: 100%;
  height: 16px;
  background: var(--gold-soft);
  animation: scrollcue 2.2s var(--ease) infinite;
}

@keyframes scrollcue {
  0%   { transform: translateY(-18px); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* =========================================================
   Shared section bits
   ========================================================= */
.section-label {
  margin: 0 0 14px;
  color: var(--gold-deep);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 30px;
  color: var(--green-deep);
  font-size: clamp(26px, 3.7vw, 42px);
  line-height: 1.5;
  font-weight: 700;
  text-wrap: balance;
}

.message,
.section-inner,
.notice-layout {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   Message (letter)
   ========================================================= */
.message {
  position: relative;
  padding: clamp(86px, 13vw, 132px) 0;
}

.message::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1120px, calc(100% - 40px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(192, 146, 73, 0.6), transparent);
  transform: translateX(-50%);
}

.message-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.message-copy {
  padding: clamp(28px, 4vw, 46px);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 26px 80px rgba(31, 56, 41, 0.09);
}

.message-copy .date {
  margin: 0 0 18px;
  color: var(--gold-deep);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  letter-spacing: 0.12em;
}

.message-copy p {
  margin: 0 0 22px;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 2.25;
}

.message-copy .signature {
  margin-top: 44px;
  text-align: right;
  font-weight: 700;
  line-height: 1.9;
}

.message-copy .signature .name {
  font-size: 1.2em;
}

.message-photo {
  position: sticky;
  top: 118px;
  margin: 0;
}

.message-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 26px 26px 0 var(--gold-soft), 0 30px 72px rgba(31, 56, 41, 0.2);
}

.message-photo figcaption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* =========================================================
   Interlude — full-bleed parallax sunset
   ========================================================= */
.interlude {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 78vh;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background: var(--green-deep);
}

.interlude__media {
  position: absolute;
  inset: -12% 0;
  will-change: transform;
}

.interlude__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.interlude::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 22, 15, 0.62), rgba(8, 22, 15, 0.3) 50%, rgba(8, 22, 15, 0.62)),
    radial-gradient(circle at 70% 30%, rgba(224, 178, 96, 0.22), transparent 60%);
}

.interlude-inner {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 48px));
  padding: 70px 0;
}

.interlude .section-label {
  color: var(--gold-soft);
}

.interlude blockquote {
  margin: 0;
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.85;
  text-wrap: balance;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.interlude .cite {
  margin-top: 26px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   Thanks cards
   ========================================================= */
.thanks {
  padding: clamp(86px, 13vw, 128px) 0;
  background: linear-gradient(180deg, rgba(230, 239, 228, 0.85), rgba(243, 232, 207, 0.42));
}

.section-heading {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
  margin-bottom: 46px;
}

.thanks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.thanks-card {
  overflow: hidden;
  border: 1px solid rgba(31, 74, 54, 0.1);
  border-radius: 3px;
  background: var(--white);
  box-shadow: 0 18px 46px rgba(38, 64, 45, 0.1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.thanks-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 64px rgba(38, 64, 45, 0.18);
}

.thanks-card .card-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.thanks-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.thanks-card:hover .card-img img {
  transform: scale(1.07);
}

.thanks-card h3 {
  margin: 24px 24px 10px;
  color: var(--green-deep);
  font-size: 20px;
  line-height: 1.6;
}

.thanks-card p {
  margin: 0 24px 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}

/* =========================================================
   Notice
   ========================================================= */
.notice {
  padding: clamp(86px, 13vw, 128px) 0;
  background: var(--paper);
}

.notice-layout {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(30px, 6vw, 72px);
  padding: clamp(34px, 6vw, 60px);
  border-top: 4px solid var(--gold);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(243, 232, 207, 0.5));
  box-shadow: 0 22px 70px rgba(38, 64, 45, 0.1);
}

.notice-text p {
  margin: 0 0 18px;
  font-size: clamp(15px, 1.1vw, 16px);
  line-height: 2.1;
}

.notice-text .address {
  margin-top: 30px;
  color: var(--green-deep);
  font-weight: 700;
  line-height: 1.9;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  position: relative;
  padding: clamp(56px, 8vw, 84px) 18px clamp(40px, 6vw, 56px);
  text-align: center;
  color: var(--white);
  background: linear-gradient(160deg, var(--green-deep), var(--green));
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70px;
  height: 3px;
  background: var(--gold);
  transform: translateX(-50%);
}

.footer-logo {
  height: 86px;
  width: auto;
  margin: 0 auto 22px;
  opacity: 0.96;
}

.site-footer .thanks-en {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.06em;
}

.site-footer small {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  letter-spacing: 0.08em;
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal-rule.is-visible {
  transform: scaleX(1);
}

/* hero entrance animation (plays on load) */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroUp 1.1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.hero-rule {
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroRule 0.9s var(--ease) forwards;
  animation-delay: 0.15s;
}

@keyframes heroUp {
  to { opacity: 1; transform: none; }
}

@keyframes heroRule {
  to { transform: scaleX(1); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero h1 {
    line-height: 1.4;
  }

  .message-layout,
  .section-heading,
  .notice-layout {
    grid-template-columns: 1fr;
  }

  .message-photo {
    position: static;
    margin-top: 8px;
  }

  .message-photo img {
    box-shadow: 16px 16px 0 var(--gold-soft), 0 24px 56px rgba(31, 56, 41, 0.2);
  }

  .thanks-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .interlude {
    min-height: 64vh;
  }

  .notice-layout {
    padding: 30px 22px;
  }
}

@media (max-width: 520px) {
  .site-nav {
    gap: 2px;
    font-size: 12px;
  }

  .site-nav a {
    padding: 7px 11px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .brand img {
    height: 42px;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
  }

  .reveal-rule,
  .hero-rule {
    transform: none;
  }

  .hero__media img {
    transform: none;
  }
}
