/* ============================================================
   ONGROUP — pages.css
   Shared styles for standalone pages:
   news / contact / privacy / 404 / thanks
   Inherits site.css tokens + home.css components (.btn, .cta…).
   ============================================================ */

/* ---------- generic page hero ---------- */
.page-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 56px) 24px 64px;
  overflow: hidden;
}
.page-hero--full { min-height: 100vh; }
.page-hero--tall { min-height: 80vh; }
.page-hero--mid { min-height: 60vh; }
.page-hero__glow {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(48% 42% at 50% 38%, rgba(255,215,0,0.08), transparent 70%);
}
.page-hero__inner { position: relative; z-index: 2; max-width: 1000px; }
.page-hero__eyebrow {
  font-family: var(--font-anton);
  font-size: clamp(14px, 1.5vw, 18px);
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.page-hero__title {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(40px, 8vw, 116px);
  line-height: 1.12;
  letter-spacing: 0.02em;
  color: var(--white);
}
.page-hero__lead {
  margin-top: clamp(24px, 3.5vw, 40px);
  font-family: var(--font-serif);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 2;
  color: var(--white);
  opacity: 0.9;
}

/* shared section header */
.page-head { text-align: center; margin-bottom: clamp(48px, 7vw, 88px); }
.page-head__sub {
  font-family: var(--font-playfair);
  font-style: italic;
  font-size: clamp(14px, 1.5vw, 20px);
  color: var(--white);
  opacity: 0.7;
  margin-bottom: 14px;
}
.page-head__title {
  font-family: var(--font-mincho);
  font-weight: 800;
  font-size: clamp(34px, 5.4vw, 72px);
  line-height: 1.2;
  color: var(--white);
}

.page-section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.page-wrap { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }

/* ============================================================
   NEWS
   ============================================================ */
.news-list__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 2.6vw, 32px);
}
/* single-item layout: one large centered card */
.news-list__grid:has(.news-item:only-child) {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}
/* black × classic-gold brand placeholder (empty thumbnail) */
.news-item__brandph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 50%, rgba(212,175,55,0.15) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #1a1612 40%, #2a2010 70%, #1a1612 100%);
  font-family: var(--font-anton);
  font-size: clamp(28px, 5vw, 52px);
  letter-spacing: 0.02em;
  color: #D4AF37;
  text-shadow: 0 0 20px rgba(212,175,55,0.5), 0 0 40px rgba(212,175,55,0.3);
}

/* article modal */
.news-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.news-modal.open { display: block; }
.news-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.news-modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100% - 48px, 760px);
  max-height: 86vh; overflow-y: auto;
  background: #0c0c0c;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 8px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9), 0 0 50px rgba(212,175,55,0.15);
  padding: clamp(32px, 5vw, 56px);
}
.news-modal__close {
  position: absolute; top: 16px; right: 20px;
  font-size: 30px; line-height: 1; color: var(--white);
  opacity: 0.7; transition: opacity 0.25s, color 0.25s;
}
.news-modal__close:hover { opacity: 1; color: var(--gold); }
.news-modal__meta { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.news-modal__date { font-family: var(--font-num); font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }
.news-modal__title {
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.45; color: var(--white);
  margin-bottom: clamp(24px, 3.5vw, 36px);
}
.news-modal__body p {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(15px, 1.5vw, 17px); line-height: 2; color: var(--white);
  opacity: 0.92; margin-bottom: 1.2em;
}
.news-modal__body p:last-child { margin-bottom: 0; }

/* category filter tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.filter-tab {
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(12px, 1.2vw, 14px);
  letter-spacing: 0.02em;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--ease);
}
.filter-tab:hover { border-color: #D4AF37; color: #D4AF37; background: rgba(212,175,55,0.05); box-shadow: 0 0 20px rgba(212,175,55,0.2); }
.filter-tab.active { background: #D4AF37; border-color: #D4AF37; color: #000; font-weight: 700; box-shadow: 0 0 20px rgba(212,175,55,0.4); }
.news-item.is-hidden { display: none; }
.no-news-message {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--font-serif);
  color: var(--white);
  opacity: 0.6;
  padding: 80px 24px;
  font-size: 16px;
}
@media (max-width: 768px) {
  .filter-tabs {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: #D4AF37 transparent;
  }
  .filter-tabs::-webkit-scrollbar { height: 4px; }
  .filter-tabs::-webkit-scrollbar-thumb { background: #D4AF37; border-radius: 2px; }
  .filter-tab { padding: 8px 16px; font-size: 12px; flex-shrink: 0; }
}
.news-item {
  display: flex; flex-direction: column;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.news-item__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #1a1a1a; }
.news-item__media .ph {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, #161616 0 14px, #0e0e0e 14px 28px);
  display: grid; place-items: center;
}
.news-item__media .ph span { font-family: var(--font-num); font-size: 11px; letter-spacing: 0.02em; color: rgba(255,255,255,0.4); }
.news-item__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) brightness(0.72); transition: transform 0.5s var(--ease), filter 0.4s var(--ease); }
.news-item__body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 13px; flex: 1; }
.news-item__meta { display: flex; align-items: center; gap: 14px; }
.news-item__tag {
  font-family: var(--font-en-body); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  padding: 4px 11px; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px;
}
.news-item__date { font-family: var(--font-num); font-size: 12.5px; letter-spacing: 0.02em; color: rgba(255,255,255,0.6); }
.news-item__title { font-family: var(--font-mincho); font-weight: 800; font-size: clamp(18px, 1.9vw, 22px); line-height: 1.5; color: var(--white); transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.news-item__excerpt {
  font-family: var(--font-serif); font-size: 13.5px; line-height: 1.85; color: rgba(255,255,255,0.82);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-item__more {
  margin-top: auto; padding-top: 6px;
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-en-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase; color: var(--white);
  transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease);
}
.news-item__more svg { width: 15px; height: 15px; transition: transform 0.3s var(--ease); }
.news-item:hover {
  transform: scale(1.03);
  border-color: rgba(255,215,0,0.5);
  box-shadow: 0 28px 60px -30px rgba(0,0,0,0.9), 0 0 30px rgba(255,215,0,0.45), 0 0 60px rgba(255,215,0,0.2);
}
.news-item:hover .news-item__media img { transform: scale(1.06); filter: grayscale(0.05) brightness(0.85); }
.news-item:hover .news-item__title,
.news-item:hover .news-item__more { color: var(--gold); text-shadow: 0 0 10px var(--gold), 0 0 20px var(--gold), 0 0 40px rgba(255,215,0,0.6); }
.news-item:hover .news-item__more svg { transform: translateX(4px); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-windows__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2vw, 24px);
}
.window-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: clamp(28px, 3vw, 40px) clamp(22px, 2.4vw, 30px);
  min-height: clamp(200px, 24vw, 280px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.window-card__en {
  font-family: var(--font-playfair); font-style: italic; font-weight: 700;
  font-size: clamp(18px, 2vw, 27px); color: var(--white); line-height: 1.2; margin-bottom: 14px;
}
.window-card__jp { font-family: var(--font-mincho); font-weight: 800; font-size: clamp(16px, 1.7vw, 20px); color: var(--white); margin-bottom: 12px; }
.window-card__text { font-family: var(--font-serif); font-size: clamp(13px, 1.2vw, 15px); line-height: 1.8; color: rgba(255,255,255,0.82); }
.window-card:hover {
  transform: scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 0 30px rgba(255,215,0,0.5), 0 0 60px rgba(255,215,0,0.2);
}
.window-card:hover .window-card__en { color: var(--gold); text-shadow: 0 0 10px var(--gold), 0 0 20px rgba(255,215,0,0.6); }

/* form */
.contact-form-section { padding: clamp(64px, 8vw, 110px) 0; background: rgba(255,255,255,0.02); border-top: 1px solid rgba(255,255,255,0.06); }
.contact-form__lead {
  text-align: center;
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(22px, 3vw, 38px); line-height: 1.6; color: var(--white);
  margin: 0 auto clamp(56px, 7vw, 80px); max-width: 24ch;
}
.contact-form { max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 30px; }
.form-group label {
  display: block; font-family: var(--font-serif); font-size: 14px; color: var(--white);
  margin-bottom: 12px; letter-spacing: 0.02em;
}
.form-group .required { color: var(--gold); text-shadow: 0 0 5px var(--gold); margin-left: 4px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 16px; background: transparent;
  border: 1px solid rgba(255,255,255,0.3); color: var(--white);
  font-family: var(--font-en-body); font-size: 16px; border-radius: 4px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-sizing: border-box;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 10px rgba(255,215,0,0.4), 0 0 20px rgba(255,215,0,0.2);
}
.form-group textarea { resize: vertical; min-height: 160px; }
.form-group select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
.form-group select option { background: #0a0a0a; color: var(--white); }
.btn-submit {
  display: block; width: 100%; max-width: 400px; margin: 56px auto 0;
  padding: 22px 60px; background: transparent;
  border: 1px solid rgba(255,255,255,0.5); color: var(--white);
  font-family: var(--font-anton); font-size: 20px; letter-spacing: 0.02em;
  border-radius: 999px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.btn-submit:hover {
  background: var(--gold); border-color: var(--gold); color: var(--black-pure);
  box-shadow: 0 0 30px rgba(255,215,0,0.8), 0 0 60px rgba(255,215,0,0.4);
}

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy-content { max-width: 900px; margin: 0 auto; padding: clamp(64px, 8vw, 100px) 24px clamp(80px, 10vw, 130px); }
.privacy-article { margin-bottom: clamp(44px, 6vw, 64px); }
.privacy-article:last-child { margin-bottom: 0; }
.privacy-article h2 {
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(20px, 2.4vw, 28px); color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.16);
}
.privacy-article h2 .num {
  font-family: var(--font-anton); font-size: 0.7em; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.55); margin-right: 14px;
}
.privacy-article p {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(15px, 1.4vw, 17px); line-height: 2; color: var(--white);
  opacity: 0.92; margin-bottom: 14px;
}
.privacy-article ul {
  font-family: var(--font-serif); font-size: clamp(15px, 1.4vw, 17px);
  line-height: 2; color: var(--white); opacity: 0.92;
  padding-left: 22px; margin-bottom: 14px;
}
.privacy-article li { list-style: disc; margin-bottom: 4px; }
.privacy-article .addr { font-style: normal; line-height: 2; }
.privacy-article a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; transition: color 0.3s var(--ease), text-shadow 0.3s var(--ease); }
.privacy-article a:hover { color: var(--gold); text-shadow: 0 0 5px var(--gold), 0 0 12px rgba(255,215,0,0.6); }

/* ============================================================
   404 / THANKS  (error-style center page)
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 40px) 24px 80px;
  position: relative;
}
.error-code {
  font-family: var(--font-anton);
  font-size: clamp(120px, 20vw, 280px);
  color: #D4AF37;
  letter-spacing: -0.05em; line-height: 0.9;
  margin-bottom: clamp(36px, 5vw, 60px);
  text-shadow: 0 0 30px rgba(212,175,55,0.5), 0 0 60px rgba(212,175,55,0.3);
}
.error-message {
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(26px, 4vw, 56px); line-height: 1.5; color: var(--white);
  margin-bottom: clamp(24px, 3vw, 32px);
}
.error-sub {
  font-family: var(--font-serif); font-size: clamp(14px, 1.4vw, 16px);
  color: var(--white); opacity: 0.7; margin-bottom: clamp(56px, 8vw, 80px);
}
.thanks-quote {
  margin: clamp(40px, 6vw, 60px) auto 0;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 500px; width: 100%;
  font-family: var(--font-mincho); font-weight: 800;
  font-size: clamp(17px, 1.8vw, 22px); line-height: 1.6; color: var(--white);
}
.thanks-quote p { margin: 0 0 8px; }
.thanks-quote .quote-author { font-size: clamp(13px, 1.2vw, 15px); color: rgba(255,255,255,0.6); font-weight: 400; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .news-list__grid { grid-template-columns: 1fr 1fr; }
  .contact-windows__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .news-list__grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-windows__grid { grid-template-columns: 1fr; }
}
