/* ========================================
   Takaramichi Theme Styles
   Converted from teaser site
======================================== */

/* ----------------------------------------
   Variables - CSS variables
---------------------------------------- */
:root {
  /* Colors */
  --color-primary: #FFFA1E;
  --color-background: #FFFFFF;
  --color-background-alt: #FAFAFA;
  --color-text: #000000;
  --color-label: #888502;
  --color-card-background: #eeeeee;
  --color-border: #e0e0e0;
  --color-text-muted: #666666;
  --color-text-disabled: #999999;
  --color-text-secondary: #323232;
  --color-background-warm: #f8f6f4;
  --color-background-hover: #f5f5f5;

  /* Typography */
  --font-primary: YakuHanJP, 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 48px;
  --spacing-2xl: 64px;

  /* Animation */
  --fade-in-stagger: 0.5s;

  /* Background Lines */
  --bg-lines-top: 0px;
  --bg-lines-width: 100vw;
  --bg-line-stroke: var(--color-primary);

  /* Layout */
  --header-height: 63px;
  --max-width: 393px;
  --content-padding: 21px;

  @media screen and (min-width: 768px) {
    --content-padding: 32px;
    --max-width: calc(650px + 2 * var(--content-padding));
  }
}

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

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

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.65;
  min-height: 100vh;
}

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

p {
  margin-bottom: var(--spacing-sm);
}

h3 {
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--content-padding);
  padding-left: var(--content-padding);
}

/* ----------------------------------------
   Utility Classes
---------------------------------------- */
/* Responsive visibility: sm (<768px), md (768-1023px), lg (>=1024px) */
.only-sm { display: inline; }
.only-md { display: none; }
.only-lg { display: none; }
.from-md { display: none; }  /* 768px+ */

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .only-sm { display: none; }
  .only-md { display: inline; }
  .only-lg { display: none; }
  .from-md { display: inline; }
}

@media screen and (min-width: 1024px) {
  .only-sm { display: none; }
  .only-md { display: none; }
  .only-lg { display: inline; }
  .from-md { display: inline; }
}

/* Rich text presets applied via TinyMCE style formats (see functions.php). */
.is-small-text {
  font-size: 13px;
  line-height: 1.8;
}

/* ----------------------------------------
   Site Header
---------------------------------------- */
.site-header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 20px;
  position: relative;
  @media screen and (min-width: 768px) {
    max-width: 100%;
    padding: 26px 37px;
  }
}

.site-header__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Language Toggle */
.lang-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s ease;
  background: transparent;
  border:none;

  @media (hover: hover) {
    &:hover {
      opacity: 0.7;
    }
  }
}

.lang-toggle__lang {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-disabled);
  transition: color 0.2s ease;

  @media screen and (min-width: 768px) {
    font-size: 20px;
  }

  &.is-active {
    color: var(--color-text);
  }
}

.lang-toggle__separator {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 16px;
  color: var(--color-text);
  @media screen and (min-width: 768px) {
    font-size: 20px;
  }
}

/* ----------------------------------------
   Site Content Wrapper
---------------------------------------- */
.site-content {
  position: relative;
  overflow: clip;
}

/* ----------------------------------------
   Site Main
---------------------------------------- */
.site-main {
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 1;
}

/* ----------------------------------------
   Background Lines
---------------------------------------- */
.bg-lines {
  position: absolute;
  top: var(--bg-lines-top);
  left: 50%;
  transform: translateX(-50%);
  width: var(--bg-lines-width);
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-lines__desktop {
  display: none;

  @media screen and (min-width: 768px) {
    display: block;
  }
}

.bg-lines__mobile {
  display: block;

  @media screen and (min-width: 768px) {
    display: none;
  }
}

.bg-lines svg {
  display: block;
  width: 100%;
  height: auto;
}

.bg-lines__path {
  transition: stroke 0.6s ease;
}

body.home {
  --bg-lines-top: 1000px;
  --bg-lines-width: 100vw;
}

/* ----------------------------------------
   Hero Section
---------------------------------------- */
.hero {
  padding: 38px var(--content-padding) 0;
  text-align: center;
  @media screen and (min-width: 768px) {
    padding: 40px var(--content-padding) 55px;
  }
}

/* Hero Logo */
.hero__logo {
  display: grid;
  place-items: center;
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto 57px;
  aspect-ratio: 340 / 289;
  @media screen and (min-width: 768px) {
    max-width: 430px;
    margin: 0 auto 55px;
  }
  img {
    width: 100%;
  }
}

.hero__logo-shape {
  width: 100%;
  height: 100%;
}

.hero__logo-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.hero__logo-text-particle {
  font-size: 28px;
  display: inline-block;
  margin: 4px 0;
  @media screen and (min-width: 768px) {
    font-size: 34px;
  }
}

.hero__logo-text-en {
  display: block;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  color: var(--color-text);
}

/* ----------------------------------------
   Intro Section
---------------------------------------- */
.intro {
  padding: 0 var(--content-padding);
  text-align: center;
  @media screen and (min-width: 768px) {
    max-width: 720px;
  }
}

.intro__content {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 2;

  @media screen and (min-width: 768px) {
    font-size: 22px;
    margin: 0 auto;
  }

  p {
    margin-bottom: 1em;
  }
}

/* English-specific styles for intro content */
[data-lang="en"] .intro__content {
  text-align: left;
  @media screen and (min-width: 768px) {
    text-align: justify;
  }
}


/* ----------------------------------------
   Highlights Section (Art + Landscape showcase)
---------------------------------------- */
.highlights {
  margin-top: 120px;
  margin-bottom: 160px;
}

/* --- Art works block --- */
.highlights__art {
  --max-width: 980px;
}

.highlights__art-header {
  margin-bottom: var(--spacing-xl);

  @media screen and (min-width: 768px) {
    text-align: center;
  }
}

.highlights__art-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  white-space: pre-wrap;

  @media screen and (min-width: 768px) {
    font-size: 48px;
  }
}

.highlights__art-description {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  max-width: 347px;

  @media screen and (min-width: 768px) {
    font-size: 18px;
    text-align: center;
    max-width: 772px;
    margin-left: auto;
    margin-right: auto;
  }
}

.highlights__art-cards {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);

  @media screen and (min-width: 768px) {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
  }
}

/* --- Landscape block --- */
.highlights__landscape {
  --max-width: 980px;
  margin-top: 110px;

  @media screen and (min-width: 768px) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 60px;
    margin-top: 151px;
  }
}

.highlights__landscape-header {
  margin-bottom: var(--spacing-xl);

  @media screen and (min-width: 768px) {
    flex: 1;
    margin-bottom: 0;
  }
}

.highlights__landscape-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 32px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: var(--spacing-md);

  @media screen and (min-width: 768px) {
    font-size: 28px;
    font-weight: var(--font-weight-medium);
  }
}

.highlights__landscape-description {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 1.8;
  text-align: justify;
  white-space: pre-wrap;

  @media screen and (min-width: 768px) {
    font-size: 18px;
    max-width: 410px;
  }
}

.highlights__landscape-card {
  @media screen and (min-width: 768px) {
    width: 380px;
    flex-shrink: 0;
  }
}

/* --- Shared card styles --- */
.highlights__card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;

  @media (hover: hover) {
    &:hover {
      transform: translateY(-4px);
    }
  }
}

.highlights__card-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 5px;
  transition: box-shadow 0.2s ease;

  @media (hover: hover) {
    .highlights__card:hover & {
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.highlights__card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.highlights__card-text {
  flex: 1;
  min-width: 0;
}

.highlights__card-arrow {
  width: 55px;
  height: 45px;
  flex-shrink: 0;
  transition: transform 0.2s ease;

  @media (hover: hover) {
    .highlights__card:hover & {
      transform: translateX(4px);
    }
  }
}

.highlights__card-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.highlights__card-artist {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;

  @media screen and (min-width: 768px) {
    font-size: 16px;
  }
}

/* ----------------------------------------
   Production Team
---------------------------------------- */
.production-team {
  --max-width: calc(650px + var(--content-padding) * 2);
  padding-bottom: 160px;
  background-color: var(--color-background-alt);
}

.production-team__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 32px;
  line-height: 1.75;
  text-align: left;
  margin-bottom: var(--spacing-lg);

  @media screen and (min-width: 768px) {
    font-size: 44px;
    text-align: center;
    margin-bottom: 50px;
  }
}

.production-team__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.production-team__item {
  margin: 0;
  padding: 0;
  list-style: none;
  &:not(:first-child) {
    border-top: 1px solid var(--color-text);
    padding-top: 30px;
  }
}

.production-team__details {
  width: 100%;
}

.production-team__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  cursor: pointer;
  list-style: none;

  &::-webkit-details-marker {
    display: none;
  }

  &::marker {
    content: none;
  }

  @media (hover: hover) {
    &:hover {
      opacity: 0.7;
    }
  }
}

.production-team__summary-text {
  flex: 1;
  min-width: 0;
}

.production-team__chevron {
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  transition: transform 0.3s ease;

  .production-team__details[open] & {
    transform: rotate(180deg);
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }
}

.production-team__body {
  margin-top: var(--spacing-md);
}

.production-team__item-name {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 20px;
  line-height: 1.75;
  margin: 0 0 14px;
}

.production-team__item-role {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}

.production-team__item-description {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
  margin: 0;

  @media screen and (min-width: 768px) {
    text-align: left;
  }
}

/* ----------------------------------------
   Grand Opening Announcement
---------------------------------------- */
.grand-opening {
  --max-width: 980px;
  margin-top: 120px;
  margin-bottom: 160px;
}
.grand-opening__header {
  @media screen and (min-width: 768px) {
    text-align: center;
  }
}

.grand-opening__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 32px;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);

  @media screen and (min-width: 768px) {
    font-size: 48px;
  }
}

.grand-opening__description {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;

  @media screen and (min-width: 768px) {
    font-size: 18px;
    text-align: center;
  }
}

/* ----------------------------------------
   About Section
---------------------------------------- */
.about {
  position: relative;
  margin-top: 120px;
  padding: 121px 0 var(--spacing-2xl);
  background-image: url("../images/about-background.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;
  @media screen and (min-width: 768px) {
    margin-top: 160px;
    padding: 175px 0 78px;
  }
  .container {
    z-index: 1;
    position: relative;
  }
}


/* About Title */
.about__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 24px;
  line-height: 1.75;
  text-align: center;
  padding-top: var(--spacing-sm);
  margin-bottom: 22px;
  position: relative;
  @media screen and (min-width: 768px) {
    font-size: 32px;
    margin-bottom: 33px;
  }
}

.about__title-line {
  display: block;
  width: 213px;
  height: 2px;
  background-color: var(--color-text);
  margin: 0 auto var(--spacing-md);
}

/* About Content */
.about__content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.about__text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 16px;
  line-height: 1.65;

  @media screen and (min-width: 768px) {
    font-size: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  p {
    margin-bottom: var(--spacing-sm);

    @media screen and (min-width: 768px) {
      margin-bottom: 20px;
    }
  }
}

/* About Logo Card */
.about__logo-card {
  background-color: var(--color-background);
  padding: 50px 20px 18px;

  @media screen and (min-width: 768px) {
    padding: 63px 35px 49px;
  }
}

.about__logo-shape {
  display: grid;
  place-items: center;
  margin: 0 auto;
  max-width: 200px;
  @media screen and (min-width: 768px) {
    max-width: 304px;
  }
  svg {
    width: 100%;
    height: 100%;
  }
}

/* About Description */
.about__description {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 14px;
  line-height: 1.65;
  margin: 40px auto 0;
  @media screen and (min-width: 768px) {
    font-size: 16px;
    margin: 52px auto 0;
  }
}

/* ----------------------------------------
   Site Footer
---------------------------------------- */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--color-background-alt);
  padding: var(--spacing-xl) var(--content-padding);
  text-align: center;
}

.site-footer__copyright {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 10px;
  line-height: 1.65;
  @media screen and (min-width: 768px) {
    font-size: 12px;
  }
}

/* ----------------------------------------
   Fade-in Animation
---------------------------------------- */

/* Initial state: hide direct children of .fade-in */
.fade-in > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.25s ease, transform 0.6s ease;
}

/* After animation: visible state with staggered delays */
.fade-in.is-visible > * {
  opacity: 1;
  transform: translateY(0);

  &:nth-child(1) { transition-delay: calc(var(--fade-in-stagger) * 0); }
  &:nth-child(2) { transition-delay: calc(var(--fade-in-stagger) * 1); }
  &:nth-child(3) { transition-delay: calc(var(--fade-in-stagger) * 2); }
  &:nth-child(4) { transition-delay: calc(var(--fade-in-stagger) * 3); }
  &:nth-child(5) { transition-delay: calc(var(--fade-in-stagger) * 4); }
  &:nth-child(6) { transition-delay: calc(var(--fade-in-stagger) * 5); }
  &:nth-child(7) { transition-delay: calc(var(--fade-in-stagger) * 6); }
  &:nth-child(8) { transition-delay: calc(var(--fade-in-stagger) * 7); }
}
