﻿/* =============================================
   X SIGHT — Design Tokens
   Green accent (#4E7A68), Black/White base
   ============================================= */
:root {
  --green: #4E7A68;
  --green-2: #D0E8DC;
  --green-deep: #2B5243;
  --green-vivid: #3D6B5A;
  --paper: #FFFFFF;
  --paper-2: #F4F9F6;
  --ink: #0A0A0A;
  --ink-80: rgba(10, 10, 10, .8);
  --ink-60: rgba(10, 10, 10, .55);
  --ink-40: rgba(10, 10, 10, .35);
  --ink-20: rgba(10, 10, 10, .15);
  --line: rgba(10, 10, 10, .10);

  --ff-en: "Barlow Condensed", "Noto Sans JP", sans-serif;
  --ff-jp: "Noto Sans JP", "Barlow Condensed", sans-serif;

  --container: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --sy: clamp(88px, 11vw, 150px);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-full: 999px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-sp: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 260ms;
  --t-base: 520ms;
  --t-slow: 900ms;
}

@media (max-width: 768px) {
  :root {
    --sy: clamp(40px, 11vw, 88px);
  }
}

/* =========== Reset =========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Hard guard against horizontal overflow on every page */
  overflow-x: clip;
  max-width: 100%;
  /* Disable pinch / double-tap zoom while keeping vertical & horizontal panning */
  touch-action: pan-x pan-y;
}

body {
  font-family: var(--ff-jp);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.9;
  overflow-x: clip;
  max-width: 100%;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--green-2);
  color: var(--ink);
}

/* =========== Layout =========== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wide {
  width: 100%;
  max-width: calc(var(--container) + 80px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =========== Custom Cursor =========== */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: transform .1s, width .3s var(--ease), height .3s var(--ease), background .3s;
  will-change: transform;
}

#cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  z-index: 9998;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), border-color .3s, opacity .3s;
  will-change: transform;
  opacity: .5;
}

body.cursor-hover #cursor-dot {
  width: 56px;
  height: 56px;
  background: var(--green-2);
  mix-blend-mode: multiply;
}

body.cursor-hover #cursor-ring {
  opacity: 0;
}

@media (hover: none) {

  #cursor-dot,
  #cursor-ring {
    display: none;
  }
}

/* =========== Typography Utilities =========== */
.big-en {
  font-family: var(--ff-en);
  font-weight: 900;
  line-height: .9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink-60);
  letter-spacing: .02em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(78, 122, 104, .6);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(78, 122, 104, 0);
  }
}

/* =========== Buttons =========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px 14px 26px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), transform .3s var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}

.btn:hover::before {
  transform: translateY(0);
}

.btn:hover {
  color: #fff;
}

.btn .arr {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform .5s var(--ease);
}

.btn:hover .arr {
  transform: translateX(4px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-40);
  transition: color .05s, transform .3s var(--ease), border-color .3s;
}

.btn--ghost .arr {
  background: var(--ink);
  color: #fff;
}

.btn--ghost:hover {
  color: #fff;
}

.btn--ghost::before {
  background: var(--ink);
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mini-btn .dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s var(--ease), background .3s;
}

.mini-btn:hover .dot {
  background: var(--green);
  transform: rotate(-45deg) scale(1.06);
}

/* =========== Scroll Reveals =========== */
.rv {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* Freeze revealed elements — prevents Safari bfcache transition replay */
.rv[data-revealed],
.rv-stagger[data-revealed] > *,
.split-ln[data-revealed] .ln > span {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.rv-stagger>* {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.rv-stagger.in>* {
  opacity: 1;
  transform: none;
}

/* Line-by-line text reveal */
.split-ln .ln {
  display: block;
  overflow: hidden;
}

.split-ln .ln>span {
  display: inline-block;
  transform: translateY(115%) rotate(1.5deg);
  transition: transform .95s var(--ease);
  transition-delay: calc(var(--i, 0) * 100ms);
  will-change: transform;
}

.in .split-ln .ln>span,
.split-ln.in .ln>span {
  transform: none;
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--gutter);
  height: 76px;
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s;
}

.site-header.scrolled {
  padding-block: 12px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.logo {
  display: flex;
  align-items: center;
  align-self: stretch;
}

.logo img {
  height: 20px;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: center;
}

.site-nav a {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}

.site-nav a .en {
  display: none;
}

.site-nav a .jp {
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--green);
  transition: right .4s var(--ease);
}

.site-nav a:hover::after {
  right: 0;
}

@media (min-width: 901px) {
  .nav-split {
    display: contents;
  }

  .nav-split>.nav-links {
    display: flex;
    flex-direction: row;
    gap: 28px;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-split>.nav-links li {
    opacity: 1;
    transform: none;
  }

  .nav-num,
  .nav-en,
  .nav-info {
    display: none;
  }

  .nav-text {
    flex: none;
    writing-mode: horizontal-tb;
    letter-spacing: normal;
  }
}

@media (max-width:900px) {
  .site-nav ul {
    gap:0 !important;
    border-bottom: 0 !important;
  }

  .site-nav ul li {
    border-top: 0 !important;
    width: 100%;
    border-bottom: 0 !important;
  }

  .site-nav ul li a {
    white-space: nowrap !important;
    gap:5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start;
  }

  .site-nav ul li a span{
    display: inline-block;
  }
  a.nav-info-value{
    color:#ffffff !important;
  }
}

.hdr-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px 13px 36px;
  border-radius: var(--r-full);
  background: var(--ink);
  color: #fff;
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: color .3s;
}

.hdr-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .5s var(--ease);
  z-index: -1;
}

.hdr-cta:hover::before {
  transform: translateY(0);
}

.hdr-cta .c {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s infinite;
  flex-shrink: 0;
}

.hdr-cta:hover .c {
  background: #fff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: #fff;
  transition: transform .4s var(--ease), top .4s;
}

.menu-toggle span:nth-child(1) {
  top: 15px;
}

.menu-toggle span:nth-child(2) {
  top: 23px;
}

body.nav-open .menu-toggle span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

body.nav-open .menu-toggle span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

@media (max-width: 900px) {
  .site-header{
    height: 65px;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--ink);
    color: #fff;
    transform: translateX(100%);
    transition: transform .6s var(--ease), visibility .6s;
    z-index: 95;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.nav-open .site-nav {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  body.nav-open .site-header {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
  }

  /* Black logo would vanish on the dark panel — flip it to white while open */
  body.nav-open .logo img {
    filter: brightness(0) invert(1);
    transition: filter .3s;
  }

  /* 装饰背景文字 */
  .site-nav::before {
    content: "NAV";
    position: absolute;
    bottom: 2%;
    right: -3%;
    font-family: var(--ff-en);
    font-weight: 900;
    font-size: clamp(110px, 30vw, 260px);
    letter-spacing: -.04em;
    color: rgba(255, 255, 255, .03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    z-index: 0;
  }

  .nav-split {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: calc(env(safe-area-inset-top) + 104px) clamp(24px, 7vw, 44px) calc(env(safe-area-inset-bottom) + 36px);
    position: relative;
    z-index: 1;
  }

  /* ---- Link list: clean horizontal rows with dividers ---- */
  .nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    border-top: 1px solid rgba(255, 255, 255, .09);
    opacity: 0;
    transform: translateX(24px);
    transition: opacity .45s var(--ease), transform .45s var(--ease);
    transition-delay: calc(.1s + var(--i) * .055s);
  }

  .nav-links li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .09);
  }

  body.nav-open .nav-links li {
    opacity: 1;
    transform: translateX(0);
  }

  .nav-links a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: clamp(15px, 4vw, 20px) 2px;
    color: #fff;
    position: relative;
    width: 100%;
    transition: padding-left .35s var(--ease);
  }

  .nav-links a::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--green);
    transform: scaleY(0);
    transform-origin: center;
    transition: transform .35s var(--ease);
  }

  .nav-links a:hover,
  .nav-links a.active {
    padding-left: 14px;
  }

  .nav-links a:hover::before,
  .nav-links a.active::before {
    transform: scaleY(1);
  }

  /* Suppress the inherited desktop sweep-underline — the left bar is the indicator here */
  .nav-links a::after {
    display: none;
  }

  .nav-num {
    font-family: var(--ff-en);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .08em;
    color: var(--green);
    flex-shrink: 0;
    width: 22px;
    line-height: 1;
  }

  .nav-text {
    flex: 1;
    min-width: 0;
    font-family: var(--ff-jp);
    font-weight: 700;
    font-size: clamp(19px, 5vw, 25px);
    letter-spacing: .03em;
    line-height: 1.2;
    color: rgba(255, 255, 255, .78);
    transition: color .3s;
  }

  .nav-en {
    flex-shrink: 0;
    align-self: center;
    font-family: var(--ff-en);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    transition: color .3s;
  }

  .nav-links a:hover .nav-text,
  .nav-links a.active .nav-text {
    color: #fff;
  }

  .nav-links a:hover .nav-en,
  .nav-links a.active .nav-en {
    color: var(--green);
  }

  /* ---- Info / contact block, pinned to the bottom ---- */
  .nav-info {
    margin-top: auto;
    padding-top: clamp(28px, 7vw, 44px);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .45s var(--ease) .4s, transform .45s var(--ease) .4s;
  }

  body.nav-open .nav-info {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-info-row {
    display: flex;
    gap: 28px;
    margin-bottom: 26px;
  }

  .nav-info-block {
    flex: 1;
    min-width: 0;
  }

  .nav-info-label {
    display: block;
    font-family: var(--ff-en);
    font-weight: 600;
    font-size: 10px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .38);
    margin-bottom: 7px;
  }

  .nav-info-value {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.5;
    word-break: break-word;
  }

  a.nav-info-value {
    transition: color .3s;
  }

  a.nav-info-value:hover {
    color: var(--green);
  }

  .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 17px 28px;
    border-radius: var(--r-full);
    background: var(--green);
    color: #fff;
    border: 1px solid var(--green);
    font-family: var(--ff-jp);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .04em;
    white-space: nowrap;
    transition: background .3s, transform .2s var(--ease);
  }

  .nav-cta-ico {
    flex: none;
    transition: transform .35s var(--ease);
  }

  .nav-cta:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
  }

  .nav-cta:hover .nav-cta-ico {
    transform: translateY(-2px);
  }

  .nav-cta:active {
    transform: scale(.98);
  }

  /* CTA 是按钮，不要 .site-nav a 的下划线伪元素 */
  .site-nav a.nav-cta::after {
    display: none;
  }

  .hdr-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
    z-index: 101;
  }

  body.nav-open .menu-toggle {
    background: rgba(255, 255, 255, .14);
  }
}

/* =========== CTA =========== */
.cta {
  position: relative;
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, -61.0526px + 13.1579vw, 160px) 0;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 700px 320px at 15% 15%, rgba(78, 122, 104, .35) 0%, transparent 60%), radial-gradient(ellipse 600px 300px at 85% 85%, rgba(78, 122, 104, .28) 0%, transparent 60%);
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-en {
  font-family: var(--ff-en);
  font-weight: 900;
  font-size: clamp(80px, 13vw, 210px);
  line-height: .87;
  letter-spacing: -.022em;
  text-transform: uppercase;
}

.cta-en em {
  font-style: normal;
  color: var(--green);
}

.cta-jp {
  font-family: var(--ff-jp);
  font-weight: 500;
  font-size: clamp(14px, 1.5vw, 18px);
  line-height: 2;
  margin-top: 32px;
  max-width: 600px;
  color: rgba(255, 255, 255, .75);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

.cta .btn {
  background: #fff;
  color: var(--ink);
}

.cta .btn::before {
  background: var(--green);
}

.cta .btn:hover {
  color: #fff;
}

.cta .btn .arr {
  background: var(--ink);
  color: #fff;
}

.cta .btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
  transition: color .05s, transform .3s var(--ease), border-color .3s;
}

.cta .btn--ghost::before {
  background: #fff;
}

.cta .btn--ghost::after {
  background: #fff;
}

.cta .btn--ghost:hover {
  color: var(--ink) !important;
}

.cta-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 32px;
}

.cta-meta dt {
  font-family: var(--ff-en);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 4px;
}

.cta-meta dd {
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}

/* =========== Footer =========== */
.site-footer {
  background: var(--ink);
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0 clamp(24px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-bottom: clamp(40px, 6vw, 80px);
}

@media (min-width: 720px) {
  .footer-top {
    grid-template-columns: auto 1fr;
  }
}

.footer-lead {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.9;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 600px) {
  .footer-nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-nav > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav h5 {
  font-family: var(--ff-en);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
  margin-bottom: 14px;
}

.footer-nav a + h5 {
  margin-top: 14px;
}

.footer-nav a {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 8px;
  transition: color .3s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-wm {
  position: absolute;
  bottom: 0;
  right: -2%;
  font-family: var(--ff-en);
  font-weight: 900;
  font-size: clamp(60px, 10vw, 140px);
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .03);
  line-height: 1;
  pointer-events: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255, 255, 255, .4);
}

.footer-meta .links {
  display: flex;
  gap: 20px;
}

.footer-meta .links a {
  color: rgba(255, 255, 255, .4);
  transition: color .3s;
}

.footer-meta .links a:hover {
  color: #fff;
}

/* =========== Cookie Banner =========== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--ink);
  color: #fff;
  padding: 24px 32px;
  z-index: 9999;
  transform: translateY(100%);
  /* visibility:hidden keeps the slid-down banner from re-entering the viewport
     on iOS 26, where the new dynamic-toolbar behavior can reveal an element
     that is only hidden via transform. */
  visibility: hidden;
  pointer-events: none;
  transition: transform .5s var(--ease), visibility .5s var(--ease);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .15);
}

.cookie-banner.visible {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cookie-text h3 {
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.cookie-text p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .8);
}

.cookie-text a {
  color: var(--green-2);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 12px 24px;
  border-radius: var(--r-full);
  font-family: var(--ff-jp);
  font-weight: 700;
  font-size: 13px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all .3s var(--ease);
  white-space: nowrap;
}

.cookie-actions .btn-accept {
  background: var(--green);
  border-color: var(--green);
}

.cookie-actions .btn-accept:hover {
  background: var(--green-deep);
  border-color: var(--green-deep);
}

.cookie-actions .btn-reject:hover,
.cookie-actions .btn-settings:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

@media(max-width:768px) {
  .site-footer {
    padding-top: 20px;
  }

  .cookie-banner {
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    /* Never let the banner exceed the visible viewport; scroll internally if it does */
    max-height: 85dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 12px;
  }

  .cookie-text h3 {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .cookie-text p {
    font-size: 12px;
    line-height: 1.6;
  }

  .cookie-actions {
    gap: 8px;
  }

  .cookie-actions .btn {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 7px 10px;
    font-size: 12px;
  }
}