/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #111;
  font-family: "Times New Roman", serif;
  overflow-x: hidden;
}

/* =========================
   PAGE FADE IN
========================= */

body {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  transition-delay: 0.15s;
}

body.is-loaded {
  opacity: 1;
  transform: translateY(0);
}

/* ===== HEADER ===== */

.site-header {
  position: fixed;
  top: 13px;
  left: 0;
  width: 100%;
  padding: 18px 28px;
  display: flex;
  justify-content: center;
  z-index: 50;
}

.site-title {
  font-size: 1rem;
  font-style: italic;
  text-decoration: none;
  color: #111;
}

.site-title:hover {
  opacity: 0.6;
}

/* ===== MENU BUTTON ===== */

.menu-button {
  position: absolute;
  right: 40px;
  top: 32px;
  width: 24px;
  height: 16px;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 0;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 1px;
  background: #111;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== FOOTER ===== */

.site-footer {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  color: #888;
  font-style: italic;
  z-index: 20;
}

/* =========================
   HOME
========================= */

.site-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding-top: 0;
}

.site-main.home-main {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 1.8s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== MAIN IMAGE ===== */

.hero-image-wrapper {
  position: relative;
  z-index: 3;
  display: inline-block;
  margin: 0 auto;
  max-width: min(40vw, 520px);
  max-height: 72vh;
}

.hero-main-image {
  position: relative;
  z-index: 1;
  display: block;
  max-width: min(40vw, 520px);
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  -webkit-user-drag: none;
  user-select: none;
}

.image-blocker {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: transparent;
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.hero-caption {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  font-size: 13px;
  font-style: italic;
  color: #666;
  text-align: center;
}

/* ===== PREVIEW COMMON ===== */

.hero-preview {
  position: absolute;
  top: 50%;
  display: block;
  width: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
  filter: grayscale(100%);
  -webkit-user-drag: none;
  user-select: none;
}

/* ===== OUTER PREVIEWS ===== */

.hero-preview-left-2 {
  left: 7%;
  height: 42vh;
  opacity: 0.06;
  z-index: 0;
}

.hero-preview-right-2 {
  right: 7%;
  height: 42vh;
  opacity: 0.06;
  z-index: 0;
}

/* ===== INNER PREVIEW FRAMES ===== */

.hero-preview-frame {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: #fff;
  pointer-events: none;
  overflow: hidden;
}

.hero-preview-frame-left-1 {
  left: 10.5%;
}

.hero-preview-frame-right-1 {
  right: 10.5%;
}

.hero-preview-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 0;
}

.hero-preview-frame .hero-preview {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  transform: none;
  display: block;
  height: 54vh;
  width: auto;
  opacity: 0.12;
  z-index: 1;
}

.hero-preview-frame-left-1 .hero-preview {
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.12) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.hero-preview-frame-right-1 .hero-preview {
  -webkit-mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.12) 100%
  );
  mask-image: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 1) 62%,
    rgba(0, 0, 0, 0.55) 82%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

/* =========================
   BIOページ
========================= */

.site-main.bio-main {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 160px;
}

.bio-inner {
  width: min(1100px, calc(100vw - 120px));
  display: grid;
  grid-template-columns: minmax(520px, 620px) minmax(280px, 420px);
  column-gap: clamp(56px, 8vw, 140px);
  align-items: center;
}

.bio-text {
  max-width: 620px;
}

.bio-image {
  justify-self: end;
  transform: translateY(-20px);
}

.bio-image img {
  width: 100%;
  max-width: 420px;
  display: block;
}

.bio-title,
.bio-role,
.bio-ja,
.bio-ja p,
.bio-en,
.bio-en p {
  margin: 0;
  padding: 0;
}

.bio-title {
  font-size: 1.05rem !important;
  font-weight: 400 !important;
  line-height: 1.2 !important;
  font-style: normal !important;
}

.bio-role {
  font-size: 0.9rem !important;
  margin: 0 0 10px 0 !important;
  opacity: 0.7 !important;
  font-style: italic !important;
}

.bio-ja {
  margin: 0 0 28px 0 !important;
}

.bio-ja p {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 6px !important;
}

.bio-en p {
  font-size: 0.8rem;
  line-height: 1.45;
  margin-bottom: 6px !important;
  opacity: 0.6 !important;
  font-style: italic !important;
}

/* =========================
   CONTACT
========================= */

.contact {
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  min-height: 60vh;
  margin: 0 auto !important;
  gap: 14px;
  font-style: italic;
}

.contact a {
  text-decoration: none;
  color: #111;
}

.contact a:hover {
  opacity: 0.5;
}

/* =========================
   SIDE MENU
========================= */

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s ease, visibility 0.75s ease;
  z-index: 40;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 80vw;
  height: 100vh;
  background: #f3f3f1;
  padding: 120px 24px 32px;
  transform: translateX(110%);
  transition: transform 0.75s ease;
  z-index: 45;
  display: flex;
  flex-direction: column;
}

.side-menu.is-open {
  transform: translateX(0);
}

.menu-links {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.menu-links a {
  text-decoration: none;
  color: #2d3720;
  font-style: italic;
  font-size: 0.95rem;
}

.menu-links a.active {
  opacity: 0.4;
}

.menu-divider {
  width: 30px;
  height: 1px;
  background: #777;
  margin: 28px 0;
}

.menu-instagram {
  text-decoration: none;
  color: #2d3720;
  font-style: italic;
  font-size: 0.95rem;
}

.menu-footer {
  margin-top: auto;
  font-size: 0.65rem;
  color: #8a8a8a;
  font-style: italic;
}

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

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

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

/* =========================
   TRIANGLE PERIMETER LOADING
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.triangle-perimeter-loader {
  position: relative;
  width: 120px;
  height: 120px;
  filter: url(#goo-loader);
}

.loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #111;
  will-change: transform;
  transform: translate(0, 0);
}

/* =========================
   HERO CLICK ARROWS
========================= */

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 0;
}

.hero-arrow-left {
  left: 0;
  right: auto;
}

.hero-arrow-right {
  right: 0;
  left: auto;
}

.hero-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(17, 17, 17, 0.35);
  border-right: 1px solid rgba(17, 17, 17, 0.35);
}

.hero-arrow-left::before {
  transform: translate(-30%, -50%) rotate(-135deg);
}

.hero-arrow-right::before {
  transform: translate(-70%, -50%) rotate(45deg);
}

.hero-arrow:hover::before {
  border-top-color: rgba(17, 17, 17, 0.55);
  border-right-color: rgba(17, 17, 17, 0.55);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1440px) {
  .hero-arrow {
    width: 88px;
    height: 88px;
  }
}

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

  .menu-button {
    right: 20px;
    top: 24px;
  }

  .bio-inner {
    width: min(100%, calc(100vw - 40px));
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .bio-image {
    display: none;
  }

  .hero-image-wrapper {
    max-width: 76vw;
    max-height: 66vh;
  }

  .hero-main-image {
    max-width: 76vw;
    max-height: 66vh;
  }

  .hero-preview-left-2 {
    left: 2%;
    height: 28vh;
  }

  .hero-preview-right-2 {
    right: 2%;
    height: 28vh;
  }

  .hero-preview-frame-left-1 {
    left: 6%;
  }

  .hero-preview-frame-right-1 {
    right: 6%;
  }

  .hero-preview-frame .hero-preview {
    height: 38vh;
  }

  .hero-arrow {
    display: none;
  }
}

@media (min-width: 1600px) {
  .hero-image-wrapper {
    max-width: min(30vw, 560px);
    max-height: 72vh;
  }

  .hero-main-image {
    max-width: min(30vw, 560px);
    max-height: 72vh;
  }

  .hero-caption {
    margin-top: 16px;
  }

  .hero-preview-left-2 {
    left: 6%;
    height: 34vh;
    opacity: 0.05;
  }

  .hero-preview-right-2 {
    right: 6%;
    height: 34vh;
    opacity: 0.05;
  }

  .hero-preview-frame-left-1 {
    left: 9%;
  }

  .hero-preview-frame-right-1 {
    right: 9%;
  }

  .hero-preview-frame .hero-preview {
    height: 46vh;
    opacity: 0.1;
  }
}

/* =========================
   GIF-LIKE GOO LOADING
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.triangle-perimeter-loader {
  position: relative;
  width: 160px;
  height: 160px;
  filter: url(#goo-loader);
}

.loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 999px;
  will-change: transform, box-shadow, opacity;
  transform: translate(0, 0) scale(1);
}

.loader-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 62%;
  height: 52%;
  transform: translateX(-50%) translateY(10px) scale(1, 0.72);
  border-radius: 999px;
  filter: blur(8px);
  opacity: 0.34;
  pointer-events: none;
}

.dot-1 {
  background: #ff5a66;
  box-shadow: 0 0 14px rgba(255, 90, 102, 0.18);
}

.dot-1::after {
  background: rgba(255, 90, 102, 0.34);
}

.dot-2 {
  background: #ffd06a;
  box-shadow: 0 0 14px rgba(255, 208, 106, 0.18);
}

.dot-2::after {
  background: rgba(255, 208, 106, 0.34);
}

.dot-3 {
  background: #ff9362;
  box-shadow: 0 0 14px rgba(255, 147, 98, 0.18);
}

.dot-3::after {
  background: rgba(255, 147, 98, 0.34);
}

.loader-dot::after {
  opacity: var(--shadow-opacity, 0.26);
}

/* =========================
   LOADING SCREEN
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.triangle-perimeter-loader {
  position: relative;
  width: 160px;
  height: 160px;
  filter: url(#goo-loader);
}

.loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  border-radius: 999px;
  background: #111;
  will-change: transform, opacity;
  transform: translate(0, 0) scale(1);
}

.loader-dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 62%;
  height: 42%;
  transform: translateX(-50%) translateY(8px) scale(1, 0.72);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  filter: blur(7px);
  opacity: var(--shadow-opacity, 0.16);
  pointer-events: none;
}

.loader-parent {
  z-index: 3;
}

.loader-child {
  z-index: 2;
}

/* =========================
   SMOOTH DOT RING LOADER
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dot-ring-loader {
  position: relative;
  width: 160px;
  height: 160px;
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translate(0, 0) scale(1);
}

.ring-dot {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translate(0, 0) scale(1);
}

/* =========================
   SMOOTH ARC DOT LOADER
========================= */

.loading-screen {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dot-ring-loader {
  position: relative;
  width: 120px;
  height: 120px;
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translate(0, 0) scale(1);
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;

  border-radius: 50%;
  background: #111;

  opacity: 0;
  transform: translate3d(0,0,0) scale(1);

  will-change: transform;
  backface-visibility: hidden;
}

.site-title {
  font-size: 18px;
}

@media (min-width: 1600px) {
  .hero-preview-left-2 {
    left: 10% !important;
  }

  .hero-preview-right-2 {
    right: 10% !important;
  }

  .hero-preview-frame-left-1 {
    left: 12% !important;
  }

  .hero-preview-frame-right-1 {
    right: 12% !important;
  }
}


/* =========================
   BIO CLIENTS
========================= */

.bio-clients {
  margin-top: 72px;
  max-width: 620px;
}

.bio-clients p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #666;
  font-style: italic;
  margin: 0;
}

/* 少し大きい画面 */
@media (min-width: 1400px) {
  .bio-clients {
    margin-top: 88px;
  }
}

/* スマホ */
@media (max-width: 900px) {
  .bio-clients {
    margin-top: 56px;
  }

  .bio-clients p {
    font-size: 0.75rem;
    line-height: 1.6;
  }
}

.bio-clients {
  margin-top: 120px;
}

@media (min-width: 1600px) {
  .bio-clients {
    margin-top: 160px;
  }
}

.bio-image {
  justify-self: end;
  transform: translateY(-120px);
}


@media (max-width: 900px) {
  .site-main.bio-main {
    padding-bottom: 120px;
  }
}

@media (max-width: 900px) {
  .site-main.bio-main {
    padding-top: 160px;
    padding-bottom: 140px !important;
  }

  .site-footer {
    bottom: 12px;
  }
}

@media (max-width: 900px) {
  .bio-inner {
    padding-bottom: 80px;
  }
}

@media (max-width: 900px) {
  .site-main.bio-main {
    padding-bottom: 140px !important;
  }

  .bio-inner {
    padding-bottom: 80px;
  }
}

/* =========================
   MOBILE: ARROW DISABLE
========================= */

@media (max-width: 900px) {
  .hero-arrow {
    display: none !important;
    pointer-events: none !important;
  }
}

/* =========================
   BIO FIX (FOOTER OVERLAP)
========================= */

@media (max-width: 900px) {
  .site-main.bio-main {
    padding-bottom: 140px !important;
  }

  .bio-inner {
    padding-bottom: 80px;
  }
}

@media (max-width: 900px) {
  .bio-clients {
    margin-top: 36px !important;
  }
}

@media (max-width: 900px) {
  .site-main.bio-main {
    padding-bottom: 90px !important;
  }

  .bio-inner {
    padding-bottom: 40px;
  }
}

/* =========================
   FIRST SLIDE FIX
========================= */

.hero-slider.is-initialized .hero-slide {
  transition: opacity 1.8s ease;
}

.hero-slider:not(.is-initialized) .hero-slide {
  transition: none !important;
}

.dot-ring-loader {
  width: 90px;
  height: 90px;
}

.ring-dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
}

/* =========================
   HERO FIRST FADE IN
========================= */

.hero-slider {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slider.is-visible {
  opacity: 1;
}

.loading-screen {
  opacity: 1;
  visibility: visible;
}

/* =========================
   LOADER RESTORE
========================= */

.dot-ring-loader {
  position: relative;
  width: 90px;
  height: 90px;
}

.ring-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  border-radius: 999px;
  background: #111;
  opacity: 0;
  will-change: transform, opacity, filter;
  transform: translate3d(0, 0, 0) scale(1);
  backface-visibility: hidden;
}

/* =========================
   HERO FIRST FADE IN
========================= */

.hero-slider {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero-slider.is-visible {
  opacity: 1;
}

.hero-slider {
  opacity: 0;
}
