@charset "UTF-8";

/* =========================================================
   Base
   ブレイクポイント: sm 640px / md 768px / lg 1024px
   高さ方向: 899px / 700px / 500px 以下で段階的に圧縮
========================================================= */
:root {
  --color-brand: #055e6e;
  --color-brand-dark: #006977;
  --color-about-bg: #016a7a;
  --color-gallery-bg: #ebeaf1;
  --font-roboto-slab: "Roboto Slab", sans-serif;
  --font-noto-sans-jp: "Noto Sans JP", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

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

body {
  background: #fff;
  color: #0a0a0a;
  font-family: "Roboto Slab", "Noto Sans JP", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  font-weight: 500;
  color: inherit;
  background: none;
  cursor: pointer;
}

h1 {
  font-weight: 500;
}

.icon {
  flex-shrink: 0;
}

/* =========================================================
   Loader
========================================================= */
.loader {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: opacity 0.3s;
}

.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(5, 94, 110, 0.2);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   Top
========================================================= */
.top {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #fff;
  font-family: var(--font-noto-sans-jp);
}

.top__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  max-width: 1440px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- ハンバーガー --- */
.menu-button {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-brand);
  transition: opacity 0.15s;
}

.menu-button .icon {
  width: 24px;
  height: 24px;
}

.menu-button:hover {
  opacity: 0.7;
}

.is-menu-open .menu-button {
  opacity: 0;
  pointer-events: none;
}

/* --- ヘッダー --- */
.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  padding: 32px 0 16px;
}

.top-header__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  margin-bottom: 24px;
  transition: opacity 0.15s;
}

.top-header__logo:hover {
  opacity: 0.8;
}

.top-header__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.top-header__catch {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 0;
}

.top-header__title {
  color: var(--color-brand);
  font-family: var(--font-roboto-slab);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-align: center;
}

.top-header__title span {
  display: block;
}

.top-header__title .top-header__space {
  display: none;
}

/* --- プロダクト列（無限マーキー） --- */
.top__products {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-shrink: 1;
  width: 100vw;
  min-height: 0;
  margin-left: calc(-50vw + 50%);
  padding: 8px 0;
}

.marquee {
  position: relative;
  display: flex;
  width: 100%;
  overflow: hidden;
  padding: 16px 0;
  margin-bottom: 24px;
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.marquee__item {
  flex-shrink: 0;
  padding-right: 0;
}

.marquee__link {
  position: relative;
  display: block;
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  transition: transform 0.2s;
}

.marquee__link:hover {
  transform: scale(1.05);
}

.marquee__link:active {
  transform: scale(0.95);
}

.marquee__link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-user-drag: none;
  user-select: none;
}

.top__spacer {
  flex-shrink: 0;
  width: 100%;
  height: 80px;
}

/* --- 下部ナビゲーション --- */
.navigation-wrapper {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  pointer-events: none;
}

.navigation-wrapper__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
}

.navigation {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  margin: 40px 0;
  pointer-events: auto;
}

.navigation__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 4px 12px;
  transition: opacity 0.15s;
}

.navigation__button:hover {
  opacity: 0.7;
}

.navigation__text {
  color: var(--color-brand);
  font-family: var(--font-roboto-slab);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.navigation__icon {
  width: 14px;
  height: 14px;
  color: var(--color-brand);
}

/* --- スライドメニュー --- */
.slide-menu {
  visibility: hidden;
  transition: visibility 0s 0.25s;
}

.slide-menu.is-open {
  visibility: visible;
  transition: none;
}

.slide-menu__backdrop {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: opacity 0.2s;
}

.slide-menu.is-open .slide-menu__backdrop {
  opacity: 1;
}

.slide-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: 20%;
  min-width: 240px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

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

.slide-menu__header {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  padding: 16px;
}

.slide-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-brand);
  transition: opacity 0.15s;
}

.slide-menu__close:hover {
  opacity: 0.7;
}

.slide-menu__close .icon {
  width: 20px;
  height: 20px;
}

.slide-menu__list {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 20px;
}

.slide-menu__item {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  text-align: left;
  transition: opacity 0.15s;
}

.slide-menu__item:last-child {
  border-bottom: 0;
}

.slide-menu__item:hover {
  opacity: 0.7;
}

.slide-menu__item img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  object-fit: cover;
}

.slide-menu__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.slide-menu__name,
.slide-menu__tags {
  color: #000;
  font-family: var(--font-roboto-slab);
  line-height: 1.3;
}

.slide-menu__name {
  font-size: 14px;
}

.slide-menu__tags {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   2カラム（Detail / About 共通）
========================================================= */
.split {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100dvh;
  background: #fff;
}

.split__image {
  position: relative;
  flex-shrink: 0;
  order: 2;
  width: 100%;
  height: 50dvh;
  overflow: hidden;
}

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

.split__content {
  position: relative;
  order: 1;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

/* --- 右上（SPは右下）の操作ボタン --- */
.page-controls {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-controls__button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  color: var(--color-brand);
  transition: background-color 0.15s;
}

.page-controls__button:hover {
  background: #f9fafb;
}

.page-controls__button .icon {
  width: 24px;
  height: 24px;
}

.page-controls__button--black {
  color: #000;
}

/* =========================================================
   Detail
========================================================= */
.detail {
  display: flex;
  flex-direction: column;
  height: auto;
  background: #fff;
}

/* --- 商品画像ギャラリー --- */
.gallery {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--color-gallery-bg);
}

.gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery__slide.is-active {
  opacity: 1;
}

.gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  touch-action: pan-y;
  -webkit-user-drag: none;
  user-select: none;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-brand);
  transform: translateY(-50%);
}

.gallery__arrow--prev {
  left: 16px;
}

.gallery__arrow--next {
  right: 16px;
}

.gallery__arrow .icon {
  width: 32px;
  height: 32px;
  opacity: 0.7;
  filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.8));
  transition: opacity 0.15s;
}

.gallery__arrow:hover .icon {
  opacity: 1;
}

.gallery__dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  display: flex;
  gap: 16px;
  transform: translateX(-50%);
}

.gallery__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transform: translateY(8px);
  transition: transform 0.15s;
}

.gallery__dot:hover {
  transform: translateY(8px) scale(1.1);
}

.gallery__dot span {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: background-color 0.15s;
}

.gallery__dot.is-active span {
  background: var(--color-brand);
}

/* --- 商品情報 --- */
.detail__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  width: 100%;
  padding: 36px 24px;
}

.detail__info-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 600px;
}

.detail__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.detail__heading {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 8px;
  width: 100%;
}

.detail__name {
  color: #000;
  font-family: var(--font-roboto-slab);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0.025em;
}

.detail__tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail__tag {
  width: fit-content;
  color: #000;
  font-family: var(--font-roboto-slab);
  font-size: 24px;
  line-height: 1.2;
}

.detail__description {
  flex-grow: 1;
}

.detail__description p {
  color: #000;
  font-family: var(--font-noto-sans-jp);
  font-size: 16px;
  line-height: 1.75;
  text-align: justify;
  white-space: pre-wrap;
}

.detail__action {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
}

.shop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid var(--color-brand-dark);
  background: #fff;
  color: var(--color-brand);
  transition: background-color 0.3s, color 0.3s;
}

.shop-button:hover {
  background: var(--color-brand-dark);
  color: #fff;
}

.shop-button__text {
  font-family: var(--font-roboto-slab);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.shop-button__icon {
  width: 16px;
  height: 16px;
}

/* =========================================================
   About
========================================================= */
.about {
  font-family: var(--font-noto-sans-jp);
}

.about__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 50dvh;
  padding: 48px 24px;
  background: var(--color-about-bg);
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  max-width: 440px;
  margin: auto 0;
  color: #fff;
}

.about__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  white-space: pre-wrap;
}

.about__description {
  font-size: 15px;
  font-weight: 400;
  line-height: 28px;
  text-align: justify;
  white-space: pre-wrap;
}

.about__movie {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.about__movie iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   Responsive（横幅）
========================================================= */
@media (min-width: 640px) {
  .top__inner,
  .navigation-wrapper__inner {
    padding: 0 32px;
  }

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

  .top-header {
    padding: 64px 0 32px;
  }

  .top-header__logo {
    width: 180px;
    height: 180px;
    margin-bottom: 48px;
  }

  .top-header__catch {
    padding: 32px 0;
  }

  .top-header__title {
    font-size: 48px;
  }

  .top-header__title span,
  .top-header__title .top-header__space {
    display: inline;
  }

  .marquee {
    padding: 32px 0;
    margin-bottom: 64px;
  }

  .marquee__item {
    padding-right: 12px;
  }

  .marquee__link {
    width: 240px;
    height: 240px;
  }

  .top__spacer {
    height: 140px;
  }

  .navigation__button {
    padding: 8px 16px;
  }

  .navigation__text {
    font-size: 20px;
  }

  .navigation__icon {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 768px) {
  .split {
    flex-direction: row;
  }

  .split__image {
    order: 1;
    width: 50%;
    height: 100dvh;
  }

  .split__content {
    order: 2;
    width: 50%;
    height: 100dvh;
  }

  .page-controls {
    top: 32px;
    right: 32px;
    bottom: auto;
  }

  .gallery {
    aspect-ratio: auto;
    height: 60%;
  }

  .gallery__dot {
    transform: none;
  }

  .gallery__dot:hover {
    transform: scale(1.1);
  }

  .detail__info {
    padding: 48px 64px;
  }

  .detail__info-inner {
    gap: 28px;
  }

  .detail__row {
    flex-direction: row;
    gap: 64px;
  }

  .detail__heading {
    width: auto;
  }

  .detail__action {
    margin-top: 16px;
  }

  .about__content {
    padding: 48px;
  }

  .about__title {
    font-size: 32px;
  }

  .about__description {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .top-header__title {
    font-size: 64px;
  }
}

/* =========================================================
   Responsive（高さ）
========================================================= */
@media (max-height: 899px) {
  .top-header {
    padding: 32px 0 16px;
  }

  .top-header__logo {
    width: 140px;
    height: 140px;
    margin-bottom: 24px;
  }

  .top-header__catch {
    padding: 16px 0;
  }
}

@media (max-height: 700px) {
  .top-header {
    padding: 24px 0 12px;
  }

  .top-header__logo {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }

  .top-header__catch {
    padding: 12px 0;
  }

  .top-header__title {
    font-size: 40px;
  }

  .marquee {
    padding: 16px 0;
    margin-bottom: 24px;
  }

  .marquee__link {
    width: 200px;
    height: 200px;
  }

  .top__spacer {
    height: 80px;
  }

  .about__content {
    padding-top: 80px;
    padding-bottom: 100px;
  }
}

@media (max-height: 500px) {
  .top-header {
    padding: 16px 0 8px;
  }

  .top-header__logo {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
  }

  .top-header__catch {
    padding: 8px 0;
  }

  .top-header__title {
    font-size: 24px;
  }

  .marquee {
    padding: 8px 0;
    margin-bottom: 8px;
  }

  .marquee__link {
    width: 100px;
    height: 100px;
  }

  .top__spacer {
    height: 60px;
  }

  .navigation__text {
    font-size: 12px;
  }
}
