/*
Theme Name: ANMITU WORKSHOP
Theme URI: https://example.com/
Author: ANMITU
Description: Static LP theme for ANMITU WORKSHOP with custom post type based workshop listing.
Version: 1.0.0
Text Domain: anmitu-workshop
*/

:root {
  --color-text: #342b20;
  --color-muted: #5a5047;
  --color-beige: #f7d993;
  --color-white: #f7f7f5;
  --color-brown: #aa7309;
  --inner: 960px;
  --side-padding: 24px;
  --serif: "Noto Serif JP", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  --sans: "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
}

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

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

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(22px, 3vw, 42px) clamp(24px, 4vw, 58px);
  pointer-events: none;
}

.site-header__logo {
  display: inline-block;
  width: clamp(120px, 11vw, 170px);
  pointer-events: auto;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  background: #9a907d;
}

.hero__collage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero__tile {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  overflow: hidden;
}

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

.hero__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.hero__center-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(160px, 16vw, 240px);
  transform: translate(-50%, -50%);
  z-index: 2;
}

.scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 5vh, 60px);
  z-index: 3;
  padding-top: 60px;
  color: #fff;
  text-align: center;
  transform: translateX(-50%);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

.scroll span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
}

.scroll::before {
  animation: scroll 2s infinite;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  content: "";
  height: 20px;
  left: 0;
  margin: auto;
  position: absolute;
  right: 0;
  top: 0;
  width: 20px;
}

@keyframes scroll {
  0% {
    opacity: 0;
    transform: rotate(-45deg) translate(0, 0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: rotate(-45deg) translate(-20px, 20px);
  }
  100% {
    opacity: 0;
  }
}

.section {
  padding-left: var(--side-padding);
  padding-right: var(--side-padding);
}

.section--beige {
  background: var(--color-beige);
}

.section--white {
  background: var(--color-white);
}

.inner {
  width: min(100%, var(--inner));
  margin-inline: auto;
}

.inner--narrow {
  max-width: 620px;
}

.intro {
  padding-top: clamp(92px, 10vw, 150px);
  padding-bottom: clamp(92px, 10vw, 145px);
  text-align: center;
}

.intro__logo {
  width: clamp(160px, 18vw, 240px);
  margin: 0 auto 38px;
}

.section-lead {
  margin: 0;
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0.08em;
}

.ornament {
  width: 88px;
  height: 1px;
  margin: 30px auto 0;
  background: currentColor;
  opacity: 0.55;
}

.intro__body {
  margin-top: 62px;
  font-size: 16px;
  line-height: 2.25;
}

.intro__body p {
  margin: 0;
}

.intro__body p + p {
  margin-top: 30px;
}

.workshops {
  padding-top: clamp(78px, 9vw, 118px);
  padding-bottom: clamp(90px, 10vw, 138px);
}

.section-title {
  margin: 0;
  text-align: center;
  font-weight: 400;
  font-size: 32px;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.featured-card {
  margin-top: 76px;
  overflow: hidden;
  background: #111;
}

.workshop-card__link {
  position: relative;
  display: block;
}

.featured-card__image {
  position: relative;
  margin: 0;
  height: min(50vw, 520px);
  min-height: 420px;
  overflow: hidden;
}

.featured-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-card .workshop-card__link:hover img {
  transform: scale(1.04);
}

.featured-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.48) 0%, rgba(0,0,0,0.16) 32%, rgba(0,0,0,0.04) 100%);
}

.featured-card__content {
  position: absolute;
  left: 44px;
  bottom: 34px;
  z-index: 2;
  color: #fff;
  padding-right: 44px;
}

.workshop-card__number {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.workshop-card__title {
  margin: 16px 0 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
}

.workshop-card__date {
  margin: 4px 0 0;
  font-size: 16px;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.small-card__image {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}

.small-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.small-card .workshop-card__link:hover img {
  transform: scale(1.04);
}

.small-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.workshop-card__number--overlay {
  position: absolute;
  z-index: 1;
  right: 26px;
  bottom: 23px;
  color: #fff;
  font-size: 32px;
}

.small-card__title {
  margin: 20px 0 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}

.small-card__date {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

.faq {
  padding-top: clamp(84px, 9vw, 124px);
  padding-bottom: clamp(92px, 10vw, 142px);
}

.faq-list {
  margin-top: 72px;
}

.faq-item {
  border-bottom: 1px solid rgba(52, 43, 32, 0.68);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-question {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 26px 52px 26px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 1.8;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::before,
.faq-question::after {
  content: "";
  position: absolute;
  right: 17px;
  top: 50%;
  width: 17px;
  height: 1px;
  background: currentColor;
  transition: transform 0.45s ease;
}

.faq-question::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-question::after {
  transform: rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 18px;
  padding: 0 70px 30px 14px;
  font-size: 16px;
  line-height: 2;
}

.faq-answer p {
  margin: 0;
}

.cta {
  padding-top: clamp(94px, 10vw, 122px);
  padding-bottom: clamp(94px, 10vw, 118px);
  background: var(--color-brown);
  color: #fff;
}

.cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.cta-card {
  min-height: 250px;
  padding: 44px 46px 38px;
  border: 2px solid rgba(255,255,255,0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-card__title {
  margin: 0;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.06em;
}

.cta-card p {
  width: 100%;
  margin: 25px 0 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.9;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  min-height: 38px;
  margin-top: auto;
  padding: 8px 20px;
  font-size: 16px;
  line-height: 1.4;
  transition: background 0.3s ease, color 0.3s ease;
}

.button--outline {
  border: 1px solid rgba(255,255,255,0.95);
}

.button--outline:hover {
  color: var(--color-brown);
  background: #fff;
}

.site-footer {
  display: grid;
  min-height: 58px;
  place-items: center;
  background: #fff;
  color: #564c42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}


/* Scroll reveal */
.is-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.is-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Smooth accordion */
.faq-item {
  overflow: hidden;
  transition: height 0.7s ease;
}

.faq-answer {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.faq-item[open] .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .is-reveal,
  .faq-item,
  .faq-answer,
  .small-card__image img,
  .button {
    transition: none !important;
  }

  .scroll::before {
    animation: none !important;
    opacity: 1;
    transform: rotate(-45deg);
  }

  .is-reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 900px) {
  :root {
    --side-padding: 20px;
  }

  body {
    font-size: 16px;
  }


  .hero__tile {
    width: calc(var(--w) * 1.45%);
  }

  .intro__body br {
    display: none;
  }

  .featured-card__image {
    min-height: 320px;
    height: 58vw;
  }

  .featured-card__content {
    left: 28px;
    bottom: 26px;
    padding-right: 24px;
  }

  .workshop-grid,
  .cta__inner {
    grid-template-columns: 1fr;
  }

  .workshop-grid {
    gap: 34px;
  }

  .small-card__image {
    aspect-ratio: 16 / 9;
  }

  .cta-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 18px 20px;
  }

  .site-header__logo {
    width: 120px;
  }

  .hero__center-logo {
    width: 150px;
  }

  .scroll {
    bottom: 26px;
    padding-top: 48px;
  }

  .scroll::before {
    width: 18px;
    height: 18px;
  }

  .intro,
  .workshops,
  .faq,
  .cta {
    padding-top: 72px;
    padding-bottom: 82px;
  }

  .intro__logo {
    width: 180px;
    margin-bottom: 28px;
  }

  .intro__body {
    margin-top: 48px;
    text-align: left;
    line-height: 2.2;
  }

  .featured-card {
    margin-top: 58px;
  }

  .featured-card__image {
    min-height: 280px;
  }

  .workshop-card__number {
    font-size: 32px;
  }

  .faq-list {
    margin-top: 54px;
  }

  .faq-question,
  .faq-answer {
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding-left: 0;
  }

  .faq-question {
    padding-right: 40px;
  }

  .faq-answer {
    padding-right: 0;
  }

  .cta-card {
    padding: 34px 24px 32px;
  }
}


/* Mobile: make the featured workshop card match the standard card layout */
.workshop-card__number--featured-mobile {
  display: none;
}

@media (max-width: 900px) {
  .featured-card {
    overflow: visible;
    background: transparent;
  }

  .featured-card__image {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    background: #ddd;
  }

  .featured-card__image::after {
    background: rgba(0, 0, 0, 0.2);
  }

  .workshop-card__number--featured-mobile {
    display: block;
  }

  .featured-card__content {
    position: static;
    margin-top: 20px;
    padding-right: 0;
    color: var(--color-text);
  }

  .featured-card__content .workshop-card__number {
    display: none;
  }

  .featured-card .workshop-card__title {
    margin: 20px 0 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.8;
  }

  .featured-card .workshop-card__date {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.6;
  }
}
