/* ============================================
   Loading Curtain
   ============================================ */
.loading-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: #2B0F09;
  display: flex;
  align-items: center;
  justify-content: center;
  /* transition: transform 1.4s cubic-bezier(.22, 1, .36, 1); */
  opacity: 1;
  transition: all 0.8s ease;
}

.loading-curtain__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .6s ease;
}

.loading-curtain__logo img {
  width: 240px;
  height: auto;
}

.loading-curtain.is-loaded {
  /* transform: translate3d(0, -100%, 0); */
  transform: scale(1.5);
  opacity: 0;
}

.loading-curtain.is-loaded .loading-curtain__logo {
  opacity: 0;
  transition: opacity .6s ease;
}

/* Prevent scroll while loading */
body.is-loading {
  overflow: hidden;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  color: #3b2a1a;
  background-color: #f4f4ef;
  line-height: 1.8;
  font-feature-settings: "palt";
  letter-spacing: .35px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: rgba(244, 244, 239, 0.98);
  backdrop-filter: blur(8px);
}

/* WP admin bar offset (32px on desktop, 46px on mobile) */
.admin-bar .header {
  top: 32px;
}

.admin-bar .hero {
  padding-top: 132px;
}

@media (max-width: 782px) {
  .admin-bar .header {
    top: 46px;
  }

  .admin-bar .hero {
    padding-top: 110px;
  }
}

.header__inner {
  margin: 0 auto;
  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header__logo-symbol {
  height: 44px;
  width: auto;
  flex-shrink: 0;
}

.header__logo-text {
  height: 15px;
  width: auto;
  margin-left: -8px;
  flex-shrink: 0;
}

.header__nav ul {
  display: flex;
  gap: 36px;
}

.header__nav a {
  position: relative;
  font-family: "Jost", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #2b0f09;
  transition: opacity 0.3s;
}

.header__nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #2b0f09;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding-top: 100px;
  overflow: hidden;
}

/* Copy area */
.hero__content {
  position: relative;
  z-index: 1;
  width: 88%;
  margin: 0 auto;
  padding-top: 1.2vw;
}

.hero__title {
  font-family: "Jost", sans-serif;
  font-size: clamp(3.313rem, 2.049rem + 6.32vw, 9.75rem);
  font-weight: 500;
  line-height: 0.85;
  letter-spacing: -0.02em;
  letter-spacing: 0.02em;
  margin-bottom: clamp(0.75rem, 0.566rem + 0.92vw, 1.688rem);
  margin-left: -.55vw;
}

.hero__title-line {
  display: block;
}

.hero__title strong {
  color: #2B0F09;
  margin-left: -.5rem;
  font-weight: 500;
  margin-right: 1vw;
}
.hero__title .hero__title-min {
  color: #aa9f9d;
  margin-left: 0;
  font-size: 6.5vw;
  font-weight: 500;
}

.hero__subtitle {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.5;
  color: #2b0f09;
  display: flex;
  align-items: center;
}
.hero__subtitle h2{
  font-size: min(2vw, 29px);
}
.hero__subtitle p{
  font-size: min(1.4vw,19px);
  border-left: 1px solid #aa9f9d;
  padding-left: 1.4vw;
  margin-left: 1.4vw;
}

/* 3D Slider - 1450x890 aspect ratio, responsive scaling */
.hero__slider {
  width: 100%;
  max-width: none;
  aspect-ratio: 1450 / 890;
  margin-top: -20vw;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
}

.hero__slider canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* ============================================
   About
   ============================================ */
.about {
  position: relative;
  z-index: 1;
  /* 24vw ≈ 35% of slider height */
  margin-top: -19vw;
  padding: 0 0 3vw;
}

.about__inner {
  width: 88%;
  margin: 0 auto;
  display: flex;
  gap: 3.8vw;
  align-items: flex-start;
}

.about__image {
  flex-shrink: 0;
  width: 30%;
  border-radius: 999px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

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

.about__text {
  width: 52%;
}

.about__badge {
  margin-bottom: 1.5vw;
}

.about__badge img {
  width: 7vw;
  height: auto;
}

.about__heading {
  font-size: 1.7vw;
  font-weight: 700;
  margin-bottom: 1vw;
  line-height: 1.5;
}

.about__description {
  font-size: max(13px, 1.15vw);
  line-height: 1.8;
  color: #5a4a3a;
}
.about__description p {
    margin-bottom: .5vw;
}

/* ============================================
   Works
   ============================================ */
.works {
}

.works__header {
  background-color: #f4f4ef;
}

.works__header-inner {
  margin: 0 auto;
  width: 88%;
}

.works__heading {
  font-family: "Jost", sans-serif;
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #2b0f09;
  padding-top: 80px;
  margin-bottom: -8px;
  line-height: 1;
  padding-bottom: 0;
  position: relative;
  z-index: 1;
}

.works__body {
  background-color: #2b0f09;
  color: #fff;
  padding: 48px 0 100px;
}

.works__inner {
  margin: 0 auto;
  width: 88%;
}

.works__category {
  margin-bottom: 48px;
}

.works__category:last-child {
  margin-bottom: 0;
}

.works__category-title {
  font-family: "Jost", sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.works__category-title a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.works__category-title a:hover .works__arrow-icon{
  transform: translateX(4px);
}

.works__arrow-icon {
  height: 14px;
  width: auto;
  transition: all 0.3s ease;
}

.works__carousel {
  position: relative;
}

.works__carousel-track {
  display: flex;
  gap: 1.03vw;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
}

.works__carousel-track::-webkit-scrollbar {
  display: none;
}

.works__card {
  flex-shrink: 0;
  width: 13.65vw;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s;
  scroll-snap-align: start;
}

.works__card:hover {
  /* opacity: 0.7; */
}

.works__card-image {
  width: 13.65vw;
  height: auto;
  aspect-ratio: 1 / 1.42;
  background-color: #3a2a24;
  border-radius: 4px;
  margin-bottom: 8px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  position: relative;
}
.works-page__card-image {
  background-size: cover;
  background-position: center center;
  position: relative;
}
.works__card-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 13.65vw;
  height: auto;
  aspect-ratio: 1 / 1.42;
  background-color: rgba(43, 15, 9, .3);
  backdrop-filter: blur(5px);
}

.works__card-image img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: contain;
  display: block;
  transition: all .3s ease;
  position: relative;
  z-index: 2;
}
.works__card:hover img {
  transform: scale(1.05);
}

.works__card-title {
  font-size: 12px;
  line-height: 1.5;
  color: #ddd;
}

.works__carousel-track.is-dragging {
  scroll-behavior: auto;
  cursor: grabbing;
  user-select: none;
}

.works__carousel-track.is-dragging .works__card {
  user-select: none;
}

.works__carousel-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  transition: opacity 0.3s;
}

.works__carousel-btn img {
  width: 40px;
  height: 40px;
}

.works__carousel-btn:hover {
  opacity: 0.7;
}

.works__carousel-btn--prev {
  left: -4vw;
}

.works__carousel-btn--next {
  right: -4vw;
}

/* ============================================
   Promotion
   ============================================ */
.promotion {
  background-color: #f4f4ef;
  padding: 70px 0 80px;
}

.promotion__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.promotion__heading {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
}

.promotion__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 2;
  color: #5a4a3a;
  margin-bottom: 35px;
}

.promotion__note {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #958784;
  margin-bottom: 60px;
}

.promotion__diagram {
  position: relative;
}

.promotion__top-label {
  text-align: center;
  margin-bottom: 20px;
}

.promotion__diagram-title {
  font-family: "Jost", sans-serif;
  font-size: 41px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #2b0f09;
}

.promotion__diagram-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  color: #2b0f09;
  margin-top: -2px;
}

.promotion__circles {
  display: flex;
  justify-content: center;
  gap: 40px;
  position: relative;
}

.promotion__circle-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
}

.promotion__circle-group:nth-child(odd) {
  margin-top: 60px;
}

.promotion__circle {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}

.promotion__circle--publicity {
  border: 3px solid #c8a0c8;
  background: rgba(200, 160, 200, 0.05);
}

.promotion__circle--planning {
  border: 3px solid #d4a926;
  background: #d4a926;
  color: #fff;
  z-index: 2;
}

.promotion__circle--digital {
  border: 3px solid #7ec8b8;
  background: rgba(126, 200, 184, 0.05);
}

.promotion__circle-en {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: block;
  text-align: center;
  line-height: 1.3;
}

.promotion__circle-ja {
  font-size: 12px;
  display: block;
  margin-top: 6px;
}

.promotion__circle--planning .promotion__circle-en,
.promotion__circle--planning .promotion__circle-ja {
  color: #fff;
}

.promotion__list {
  text-align: left;
  margin-bottom: 20px;
  min-height: 120px;
}

.promotion__list li {
  font-size: 13px;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.promotion__list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 8px;
}

.promotion__circle-group--left .promotion__list li::before {
  background-color: #c8a0c8;
}

.promotion__circle-group--center .promotion__list li::before {
  background-color: #d4a926;
}

.promotion__circle-group--right .promotion__list li::before {
  background-color: #7ec8b8;
}

.promotion__circle-group--center .promotion__list {
  min-height: auto;
  margin-top: 20px;
  margin-bottom: 0;
}

.promotion__circle-img {
  width: 100%;
  height: auto;
}

.promotion__circle-img--sp {
  display: none;
}

/* Scroll-triggered slide-in animation */
.promotion__circle-group {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.promotion__circle-group--left {
  transform: translateX(-80px);
}

.promotion__circle-group--center {
  transform: translateY(60px);
}

.promotion__circle-group--right {
  transform: translateX(80px);
}

.promotion__circle-group.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.promotion__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 500;
  margin-top: 20px;
  color: #2b0f09;
  background-color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  transition: opacity 0.3s;
}

.promotion__link:hover {
}
.promotion__link:hover .promotion__link-arrow{
  transform: translateX(4px);
}

.promotion__link-arrow {
  height: 14px;
  width: auto;
  vertical-align: middle;
  transition: all 0.3s ease;
}

/* ============================================
   Clients
   ============================================ */
.clients {
  background-color: #fff;
  padding: 80px 0 60px;
}

.clients__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.clients__heading {
  font-family: "Jost", sans-serif;
  font-size: 30px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #2b0f09;
  margin-bottom: 40px;
}

.clients__image {
  margin-bottom: 24px;
}

.clients__image img {
  width: 100%;
  height: auto;
}

.clients__note {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  color: #958784;
}

/* ============================================
   News
   ============================================ */
.news {
  background-color: #3b2a1a;
  color: #fff;
  padding: 80px 0 100px;
}

.news__inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.news__heading {
  font-family: "Jost", sans-serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.news__heading a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.news__heading a .news__arrow-icon {
  transition: all 0.3s ease;
}
.news__heading a:hover .news__arrow-icon{
  transform: translateX(4px);
}

.news__list {
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.news__arrow-icon {
  width: 20px;
  height: auto;
  vertical-align: middle;
}

.news__item {
}

.news__item a {
  display: flex;
  align-items: center;
  padding: 24px 0;
  gap: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.news__item a:hover {
}
.news__item a::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 1px;
  top: 100%;
  left: 0;
  background: #ffffff;
  transition: transform .5s;
  transform: scaleX(0);
  transform-origin: right 50%;
}
.news__item a:hover::after {
  transform: scaleX(1);
  transform-origin: left 50%;
}

.news__date {
  font-family: "Jost", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  flex-shrink: 0;
  width: 100px;
}

.news__title {
  flex: 1;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  color: #fff;
  line-height: 1.6;
}

.news__arrow, .news-page__arrow {
  flex-shrink: 0;
  font-size: 15px;
  color: #fff;
  position: relative;
  text-indent: -9999px;
}
.news__arrow::after, .news-page__arrow::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  transition: all 0.3s;
}

.news__item a:hover .news__arrow::after, .news__item a:hover .news-page__arrow::after {
  transform: translateX(4px)rotate(-45deg);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background-color: #f4f4ef;
  padding: 80px 0 40px;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer__logo {
  margin-bottom: 80px;
}

.footer__logo img {
  height: 120px;
  margin: 0 auto;
}

.footer__copyright {
  font-family: "Jost", sans-serif;
  font-size: 12px;
  color: #958784;
  letter-spacing: 0.1em;
}

/* ============================================
   Responsive
   ============================================ */
/* Hamburger button (SP only) */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #3b2a1a;
  transition: transform 0.3s, opacity 0.3s;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 767px) {
  .header__inner {
    padding: 16px 20px;
  }

  .header__hamburger {
    display: flex;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(244, 244, 239, 0.98);
    padding: 20px;
  }

  .header__nav.is-open {
    display: block;
  }

  .header__nav ul {
    flex-direction: column;
    gap: 16px;
  }

  .header__nav a {
    font-size: 14px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero__content {
    width: inherit;
    margin: 2vw 20px 0;
  }

  .hero__slider {
    width: 150%;
    max-width: none;
    aspect-ratio: 1450 / 890;
    margin-top: -30vw;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 39%;
    transform: translateX(-50%);
  }

  .hero__title{
    font-size: 15vw;
  }

  .hero__title .hero__title-min{
    font-size: 11vw;
  }
  .hero__title strong {
      margin-right: 2vw;
  }

  .hero__subtitle {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__subtitle h2{
    font-size: 17px;
    margin-bottom: 5px;
  }

  .hero__subtitle p{
    font-size: 13px;
    margin-left: 0;
    padding-left: 0;
    border: none;
  }

  .works__card {
    width: 35vw;
  }
  .works__card:last-child {
    width: calc(35vw + 20px);
  }
  .works__card:last-child .works__card-title{
    width: 35vw;
  }
  .works__card-image {
    width: 35vw;
    height: auto;
    aspect-ratio: 1 / 1.4;
  }
  .works__card-image::before {
    width: 35vw;
  }

  .about {
    margin-top: -29vw;
    padding: 0;
  }

  .about__inner {
    flex-direction: column-reverse;
    gap: 6vw;
    width: 100%;
    padding: 0 20px;
  }

  .about__image {
    width: 70%;
    margin: 0 auto;
  }

  .about__text {
    width: 100%;
  }

  .about__badge {
    margin-bottom: 1.5vw;
  }
  .about__badge img {
    width: 18vw;
  }

  .about__heading {
    font-size: 18px;
  }

  .about__description {
    font-size: 13px;
  }
  .about__description br{
    display: none;
  }

  .works__heading {
    font-size: 32px;
    padding-top: 12vw;
  }

  .works__category-title {
    font-size: 18px;
    margin-bottom: 3vw;
  }

  .works__header-inner {
    padding: 0 20px;
    width: inherit;
  }

  .works__inner {
    padding: 0 0 0 20px;
    width: inherit;
  }

  .works__body {
    padding: 8vw 0;
  }

  .works__category {
    margin-bottom: 4vw;
  }

  .works__carousel-track {
    padding-bottom: 0;
    gap: 2.5vw;
  }

  .works__carousel-btn {
    display: none;
  }

  .works__carousel-btn--prev {
    left: -8px;
  }

  .works__carousel-btn--next {
    right: -8px;
  }

  .promotion {
      padding: 60px 0;
  }

  .promotion__inner {
    padding: 0 20px;
  }

  .promotion__heading {
    font-size: 22px;
  }

  .promotion__lead {
    line-height: 1.8;
  }
  
  .promotion__note {
    margin-bottom: 40px;
  }

  .promotion__circles {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .promotion__circle-group {
    width: 100%;
    max-width: 300px;
  }

  .promotion__circle-group--center {
    order: -1;
  }

  .promotion__circle-img--pc {
    display: block;
  }

  .promotion__circle-img--sp {
    display: none;
  }

  .promotion__circle-img {
    width: 85%;
  }

  .promotion__circle-group:nth-child(odd) {
    margin-top: 0;
  }

  .clients__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .clients__inner {
    padding: 0 20px;
  }

  .news__inner {
    padding: 0 20px;
    flex-direction: column;
    gap: 24px;
  }

  .news__item a {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .news__date {
    width: auto;
  }

  .news__arrow::after {
    right: 8px;
  }

  .footer__inner {
    padding: 0 20px;
  }

  .footer__logo img {
    height: 95px;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {


  .hero__slider {
    width: 125%;
    max-width: none;
    margin-top: -25vw;
    margin-left: 0;
    margin-right: 0;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .hero__content::after {
    height: 28vw;
  }

  .works__heading {
    padding-top: 4vw;
  }

  .works__carousel-btn--prev {
    left: -5.5vw;
  }

  .works__carousel-btn--next {
    right: -5.5vw;
  }

  .about {
    margin-top: -24vw;
  }

  .about__inner {
    padding: 0;
    gap: 4vw;
    width: 88%;
  }

  .about__image {
  }

  .about__heading {
    font-size: 1.6vw;
  }

  .about__description {
    font-size: 1.3vw;
  }
  .about__description br{
    display: none;
  }

}