
/* ─── shared.css — ykuw-design site-wide styles ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #1a1a1a;
  --sumi: #2d2926;
  --stone: #4a4540;
  --ash: #8a8580;
  --sand: #c8c0b8;
  --washi: #f0ece6;
  --shiro: #f8f6f2;
  --aka: #c23a2e;
  --aka-deep: #9e2f25;
  --kin: #b8974a;
  --kin-light: #d4b86a;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --mono: 'DM Mono', monospace;
  --max-w: 1200px;
  --section-py: 100px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--sumi); background: var(--shiro); line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }

/* ─── Language Toggle ─── */
.lang-toggle {
  position: fixed; top: 20px; right: 24px; z-index: 1000;
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--sand); border-radius: 4px; overflow: hidden;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
}
.lang-toggle button {
  border: none; background: transparent; padding: 6px 12px; cursor: pointer;
  color: var(--ash); transition: all 0.2s; font-family: inherit; font-size: inherit;
}
.lang-toggle button.active { background: var(--sumi); color: var(--shiro); }

/* ─── Header ─── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(248,246,242,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,192,184,0.5);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-img { height: 32px; width: auto; max-width: 200px; object-fit: contain; display: block; }
nav { display: flex; align-items: center; gap: 28px; }
nav > a, nav .nav-dropdown > a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  color: var(--stone); position: relative; padding-bottom: 2px; display: inline-block;
}
nav > a::after, nav .nav-dropdown > a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--aka); transition: width 0.25s ease;
}
nav > a:hover::after, nav .nav-dropdown:hover > a::after { width: 100%; }
nav > a:hover, nav .nav-dropdown:hover > a { color: var(--ink); }
nav > a.current, nav .nav-dropdown > a.current { color: var(--ink); }
nav > a.current::after, nav .nav-dropdown > a.current::after { width: 100%; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { cursor: default; }
.nav-dropdown > a .dd-arrow { font-size: 9px; margin-left: 4px; opacity: 0.5; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -12px; padding-top: 8px;
  display: none; z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu ul {
  background: rgba(248,246,242,0.98); backdrop-filter: blur(12px);
  border: 1px solid var(--sand); border-radius: 4px;
  padding: 8px 0; min-width: 200px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.nav-dropdown-menu li a {
  display: block; padding: 8px 20px; font-size: 13px; color: var(--stone);
  transition: all 0.15s; font-weight: 400;
}
.nav-dropdown-menu li a:hover { background: var(--washi); color: var(--ink); }
.nav-dropdown-menu li a::after { display: none; }

.nav-cta {
  background: var(--aka); color: var(--shiro) !important;
  padding: 8px 20px; border-radius: 3px;
  font-size: 12px !important; letter-spacing: 0.08em; font-weight: 500;
  transition: background 0.2s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--aka-deep); color: var(--shiro) !important; }

.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1.5px; background: var(--sumi);
  position: absolute; left: 6px; transition: all 0.2s;
}
.nav-hamburger span:nth-child(1) { top: 10px; }
.nav-hamburger span:nth-child(2) { top: 15px; }
.nav-hamburger span:nth-child(3) { top: 20px; }

/* ─── Section helpers ─── */
.section-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--aka); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-label::before { content: ''; width: 24px; height: 1.5px; background: var(--aka); }
.section-title {
  font-family: var(--serif); font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: var(--ink);
}
.section-desc {
  font-size: 15px; color: var(--stone); max-width: 620px; line-height: 1.9; margin-bottom: 48px;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--aka); color: var(--shiro);
  padding: 14px 32px; font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; border-radius: 3px; transition: background 0.2s;
}
.btn-primary:hover { background: var(--aka-deep); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(200,192,184,0.4); color: var(--sand);
  padding: 14px 32px; font-size: 14px; font-weight: 400;
  letter-spacing: 0.06em; border-radius: 3px; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--sand); color: var(--shiro); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--sand); color: var(--stone);
  padding: 14px 32px; font-size: 14px; font-weight: 400;
  letter-spacing: 0.06em; border-radius: 3px; transition: all 0.2s;
}
.btn-outline:hover { border-color: var(--aka); color: var(--aka); }

/* ─── Page Hero (sub pages) ─── */
.page-hero {
  padding: 160px 0 60px; background: var(--ink); color: var(--shiro);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; opacity: 0.04;
  background-image:
    repeating-linear-gradient(60deg, var(--shiro) 0, var(--shiro) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(-60deg, var(--shiro) 0, var(--shiro) 1px, transparent 1px, transparent 30px),
    repeating-linear-gradient(0deg, var(--shiro) 0, var(--shiro) 1px, transparent 1px, transparent 30px);
  background-size: 52px 90px;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--kin-light); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-hero-label::before { content: ''; width: 24px; height: 1.5px; background: var(--kin-light); }
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(28px, 4vw, 44px);
  font-weight: 900; line-height: 1.3; letter-spacing: 0.02em;
}
.page-hero-sub { margin-top: 12px; font-size: 15px; color: var(--sand); line-height: 1.7; max-width: 600px; }

/* ─── Footer ─── */
footer { padding: 48px 0; background: var(--ink); color: var(--ash); font-size: 13px; }
footer .container { display: flex; justify-content: space-between; align-items: start; gap: 48px; }
.footer-brand { max-width: 300px; }
.footer-brand .logo-img { height: 24px; width: auto; max-width: 160px; object-fit: contain; margin-bottom: 12px; }
.footer-brand p { font-size: 12px; line-height: 1.7; color: var(--ash); }
.footer-links { display: flex; gap: 48px; }
.footer-links h5 { font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sand); margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; color: var(--ash); margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: var(--shiro); }
.footer-copy { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 11px; font-family: var(--mono); letter-spacing: 0.04em; color: var(--stone); text-align: center; }

/* ─── Content section (sub pages) ─── */
.content-section { padding: 80px 0; }
.content-section.alt { background: var(--washi); }
.content-section h2 { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.content-section h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.content-section p { font-size: 15px; color: var(--stone); line-height: 1.9; margin-bottom: 16px; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  :root { --section-py: 72px; }
  nav { display: none; }
  nav.open {
    display: flex !important; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(248,246,242,0.98); padding: 24px 32px; gap: 20px;
    border-bottom: 1px solid var(--sand);
  }
  nav.open .nav-dropdown-menu { position: static; display: block; padding-top: 4px; }
  nav.open .nav-dropdown-menu ul { box-shadow: none; border: none; background: transparent; padding: 0 0 0 12px; }
  .nav-hamburger { display: block; }
  footer .container { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .lang-toggle { top: 12px; right: 12px; }
}


/* WordPress Custom Logo Support */
.custom-logo-link { display: block; }
.custom-logo-link img, .custom-logo { height: 32px; width: auto; max-width: 200px; object-fit: contain; display: block; }
