/* Karu - shared styles
   Layout concept: dark, quiet pages in the colours of the "For My Angel" cover.
   Bold condensed headings, wide-spaced labels, one red accent for actions. */

:root {
  --night: #090C11;
  --navy: #14232C;
  --panel: #152731;
  --panel-deep: #0D161D;
  --line: #28404B;
  --teal: #6FB0BB;
  --red: #C2352A;
  --red-dark: #A82D23;
  --text: #F2F5F7;
  --muted: #C4CFD5;
  --dim: #98A7AF;
  --font-head: 'Barlow Condensed', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-body: 'Montserrat', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--night);
  background-image: linear-gradient(180deg, #14232C 0, #0B1219 520px, #090C11 100%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  line-break: strict;
  overflow-wrap: break-word;
}

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

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: #E8806F; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

/* Language switching: only the elements in the current language show. */
html[lang="ja"] [lang="en"],
html[lang="en"] [lang="ja"] { display: none !important; }

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  background: var(--red);
  color: #fff;
  padding: 10px 18px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-block: 24px;
}
.brand img { height: 48px; width: auto; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.nav a {
  display: block;
  padding: 6px 0 4px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .16em;
  text-transform: uppercase;
  line-height: 1.4;
}
.nav a[aria-current="page"] { border-bottom-color: var(--red); }

.lang { display: flex; gap: 4px; }
.lang button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  border: 1px solid #3A525D;
  font-family: var(--font-head);
  font-size: 16px;
  letter-spacing: .16em;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.lang button:hover { border-color: var(--teal); }
.lang button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- Shared bits ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 20px;
  letter-spacing: .28em;
  color: var(--teal);
  text-transform: uppercase;
  line-height: 1.4;
}
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(64px, 11vw, 96px);
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.lead { font-size: 17px; line-height: 1.9; color: var(--muted); max-width: 640px; }

.btn, .btn-outline {
  display: inline-block;
  min-height: 48px;
  padding: 14px 34px;
  font-family: var(--font-head);
  font-size: 18px;
  letter-spacing: .2em;
  text-transform: uppercase;
  line-height: 1.4;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn { background: var(--red); border: 1px solid var(--red); color: #fff; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.btn-outline { border: 1px solid var(--teal); color: var(--text); }
.btn-outline:hover { background: rgba(111, 176, 187, .14); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; }

.section { padding-block: 72px 24px; }
.section-head { display: flex; align-items: center; gap: 24px; margin-bottom: 40px; }
.section-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 44px);
  letter-spacing: .04em;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ---------- Home ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  min-height: 640px;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  padding-block: 48px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(104px, 15vw, 168px);
  line-height: .9;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.hero-text .lead { max-width: 440px; }
.hero-text .actions { margin-top: 8px; }
.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  margin-right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
}
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0E1A22 0%, rgba(14, 26, 34, 0) 22%),
    linear-gradient(0deg, #090C11 0%, rgba(9, 12, 17, 0) 28%);
}

.release { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.release-cover { flex: 0 1 360px; width: 360px; max-width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.release-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.release-info { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.release-meta { font-family: var(--font-head); font-size: 18px; letter-spacing: .24em; color: var(--teal); text-transform: uppercase; }
.release-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(48px, 8vw, 72px); line-height: 1; letter-spacing: .02em; }
.release-info .btn { margin-top: 12px; }

.prose { max-width: 780px; font-size: 17px; line-height: 2; color: var(--muted); }

.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%);
}
.band-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.band-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(38px, 6vw, 52px); letter-spacing: .03em; line-height: 1.1; text-transform: uppercase; }
.band-text p { color: var(--muted); line-height: 1.9; }

/* ---------- Works ---------- */
.page-head { display: flex; flex-direction: column; gap: 16px; padding-block: 56px 16px; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 40px; }
.work { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; }
.work-cover { display: block; width: 100%; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.work-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.work-meta { font-family: var(--font-head); font-size: 17px; letter-spacing: .22em; color: var(--teal); text-transform: uppercase; }
.work-title { font-family: var(--font-head); font-weight: 700; font-size: 40px; line-height: 1.05; letter-spacing: .02em; }
.platforms { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border-top: 1px solid #1E313B; padding-block: 40px 88px; margin-top: 16px; }
.platforms-label { font-family: var(--font-head); font-size: 20px; letter-spacing: .24em; text-transform: uppercase; margin-right: 12px; }
.platforms .btn-outline { padding: 11px 26px; font-size: 17px; letter-spacing: .18em; }

/* ---------- Lessons ---------- */
.lesson-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); align-items: center; gap: 48px; padding-block: 56px 16px; }
.lesson-head .text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.text-link { margin-top: 8px; font-family: var(--font-head); font-size: 18px; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); border-bottom: 1px solid var(--teal); padding-bottom: 4px; }
.text-link:hover { color: var(--text); border-bottom-color: var(--text); }
.lesson-photo { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 60% 30%; box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }

.details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-block: 40px; }
.detail { display: flex; flex-direction: column; gap: 12px; padding: 32px; border: 1px solid var(--line); background: linear-gradient(160deg, #132630 0%, #0C151B 100%); min-width: 0; }
.detail-label { font-family: var(--font-head); font-size: 17px; letter-spacing: .24em; color: var(--teal); text-transform: uppercase; }
.detail-value { font-family: var(--font-head); font-weight: 700; font-size: 32px; line-height: 1.2; letter-spacing: .02em; }
.detail-note { font-size: 15px; line-height: 1.8; color: var(--muted); }

.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 16px 96px; }
.price-card { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); min-width: 0; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: clamp(52px, 8vw, 72px); line-height: 1; }
.price-note { font-size: 17px; color: var(--muted); }
.price-rule { height: 1px; background: var(--line); }
.cta-card { justify-content: center; background: linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%); }
.cta-card p { color: var(--muted); line-height: 1.9; }
.cta-card .btn { align-self: flex-start; }
.address { font-size: 15px; color: var(--muted); }
.address a { color: var(--text); border-bottom: 1px solid var(--line); user-select: all; }
.address a:hover { border-bottom-color: #E8806F; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; padding-block: 40px 96px; }
.panel { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); min-width: 0; }
.panel-accent { background: linear-gradient(135deg, var(--panel) 0%, var(--panel-deep) 100%); }
.panel p { color: var(--muted); line-height: 1.9; }
.social-list { width: 100%; display: flex; flex-direction: column; }
.social-list li + li { border-top: 1px solid var(--line); }
.social-list a { display: block; padding-block: 14px; font-family: var(--font-head); font-weight: 700; font-size: 36px; letter-spacing: .04em; line-height: 1.2; }

/* ---------- Footer ---------- */
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 40px 56px;
  border-top: 1px solid #1E313B;
}
.footer-inner img { height: 40px; width: auto; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-social a { padding-block: 8px; font-family: var(--font-head); font-size: 17px; letter-spacing: .16em; text-transform: uppercase; }
.copy { font-size: 13px; color: var(--dim); }
.site-footer { margin-top: 56px; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 960px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lesson-head { grid-template-columns: minmax(0, 1fr); }
  .lesson-photo { max-width: 460px; }
}
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-visual {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  }
  .hero-visual::after { background: linear-gradient(0deg, #090C11 0%, rgba(9, 12, 17, 0) 35%); }
  .hero-text { padding-block: 8px 24px; }
  .pricing, .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .works-grid, .details { grid-template-columns: minmax(0, 1fr); }
  .nav { gap: 4px 20px; }
  .nav a { font-size: 16px; }
  .section { padding-block: 56px 16px; }
  .release { gap: 28px; }
  .platforms-label { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
