
/* 全体の基本設定 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #211F20;
  color: #F5F0E8;
  font-family: "Noto Sans JP", sans-serif;
}

/* ヘッダー */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 6%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  z-index: 10;
}

/* ロゴ */
.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: #F5F0E8;
  text-decoration: none;
}

/* ナビゲーション */
.navigation {
  display: flex;
  gap: 32px;
}

.navigation a {
  color: #F5F0E8;
  font-size: 16px;
  text-decoration: none;
}

/* ファーストビュー */
.hero {
  min-height: 100vh;
  padding-top: 130px;

  display: flex;
  flex-direction: column;

position: relative;
overflow: hidden;
background-color: #211F20;
}

/* コピーの配置 */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 6%;
}

/* メインコピー */
.hero-content h1 {
  font-family: "Shippori Mincho", serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 2px;
  margin: 0;
}

/* サブコピー */
.hero-content p {
  font-size: 16px;
  color: #C5B8A7;
  margin: 24px 0 0;
}

/* ボタン */
.hero-button {
  display: inline-block;
  background-color: #DCC4A1;
  color: #211F20;

  padding: 16px 28px;
  margin-top: 40px;
  border-radius: 100px;

  text-decoration: none;
}

/* 世界切り替え */
.hero-worlds {
  display: flex;
  gap: 30px;
  padding: 0 6% 40px;
  font-size: 14px;
}


/* 3つの背景画像 */
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-bg[data-world="forest"] {
  background-image: url("images/hero-forest.jpg");
}

.hero-bg[data-world="sea"] {
  background-image: url("images/hero-sea.jpg");
}

.hero-bg[data-world="castle"] {
  background-image: url("images/hero-castle.jpg");
}

/* 表示中の背景 */
.hero-bg.active {
  opacity: 1;
}

/* 背景の上に重ねる暗いグラデーション */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(33, 31, 32, 0.95) 0%,
    rgba(33, 31, 32, 0.65) 45%,
    rgba(33, 31, 32, 0.1) 100%
  );
  pointer-events: none;
}

/* 文字やボタンを背景より手前に表示 */
.hero-content,
.hero-worlds {
  position: relative;
  z-index: 1;
}

/* 世界切り替えボタン */
.hero-worlds button {
  border: none;
  background: none;
  padding: 0 0 8px;
  color: #F5F0E8;
  font: inherit;
  cursor: pointer;
}

.hero-worlds button.active {
  color: #DCC4A1;
  border-bottom: 1px solid #DCC4A1;
}

.hero-worlds button:focus-visible {
  outline: 2px solid #DCC4A1;
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
}

/* スマホ用デザイン */
@media (max-width: 767px) {

  /* ヘッダー */
.site-header {
  padding: 24px;
  background-color: #211F20;
}

  .logo {
    font-size: 28px;
  }

  .navigation {
    display: none;
  }

  /* ファーストビュー */
  .hero {
    min-height: 100svh;
    padding-top: 90px;
  }

  /* キャッチコピー */
.hero-content {
  justify-content: flex-end;
  align-items: stretch;  /* centerから変更 */
  text-align: left;     /* centerから変更 */
  padding: 0 24px 48px;
}

  .hero-content h1 {
    font-size: 28px;
    line-height: 1.6;
    letter-spacing: 1px;
  }

  .hero-content p {
    font-size: 13px;
    line-height: 1.8;
    margin-top: 20px;
  }

  /* ボタン */
.hero-button {
  margin-top: 28px;
  padding: 15px 30px;
  font-size: 14px;

  align-self: center;
  width: min(100%, 300px);
  text-align: center;
}

  /* 世界切り替え */
  .hero-worlds {
    justify-content: center;
    gap: 28px;
    padding: 0 24px 30px;
  }

  /* 背景画像の位置 */


.hero-bg {
  background-size: auto 65%;
  background-position: calc(50% - 110px) 70px;
  background-repeat: no-repeat;
}


  /* スマホ専用グラデーション */

.hero::after {
  background: linear-gradient(
    to bottom,
    rgba(33,31,32,0.2) 0%,
    rgba(33,31,32,0.05) 30%,
    rgba(33,31,32,0.65) 52%,
    #211F20 70%
  );
}


/* メニューボタン */
.menu-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;

  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

/* 三本線の共通デザイン */
.menu-line {
  position: absolute;
  width: 26px;
  height: 1.5px;
  background-color: #F5F0E8;

  transition:
    transform 0.35s ease,
    opacity 0.25s ease;
}

/* 閉じている状態 */
.menu-line:nth-child(1) {
  transform: translateY(-8px);
}

.menu-line:nth-child(2) {
  transform: translateY(0);
}

.menu-line:nth-child(3) {
  transform: translateY(8px);
}

/* 開いた状態：×に変形 */
.menu-toggle[aria-expanded="true"]
.menu-line:nth-child(1) {
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"]
.menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]
.menu-line:nth-child(3) {
  transform: rotate(-45deg);
}



/* 閉じている状態 */
.navigation {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  padding: 24px;

  flex-direction: column;
  align-items: center;
  gap: 0;

  background-color: rgba(33, 31, 32, 0.6);
  backdrop-filter: blur(8px);

  opacity: 0;
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  pointer-events: none;

  transition:
    clip-path 0.45s ease,
    opacity 0.35s ease,
    visibility 0.45s;
}

/* 開いた状態 */
.navigation.is-open {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  visibility: visible;
  pointer-events: auto;
}

/* メニューの各項目 */
.navigation a {
  display: block;
  width: 100%;
  padding: 18px 0;
  text-align: center;
}

/* 2番目以降の項目の上に区切り線 */
.navigation a + a {
  border-top: 1px solid rgba(245, 240, 232, 0.3);
}

}


/* =================================
   共通のセクションデザイン
================================= */

.section-kicker {
  font-size: 13px;
  letter-spacing: 3px;
  color: #685646;
  margin: 0 0 20px;
}

.text-link {
  display: inline-block;
  color: #59483B;
  font-size: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #59483B;
}

/* =================================
   Collection
================================= */

.collection-section {
  background: #F5F0E8;
  color: #38312D;
  padding: 110px 6%;
}

.section-heading {
  text-align: center;
  margin-bottom: 65px;
}

.section-heading h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 40px;
  font-weight: 400;
  margin: 0 0 20px;
}

.section-heading > p:last-child {
  color: #655A50;
  font-size: 15px;
  line-height: 1.9;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1280px;
  margin: 0 auto;
}


.collection-card {
  text-align: center;
}

.collection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 405 / 440;
  object-fit: cover;
}

.collection-name {
  font-size: 13px;
  letter-spacing: 3px;
  color: #685646;
  margin: 24px 0 8px;
}

.collection-card h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
}

/* =================================
   About / Story
================================= */

.split-section {
  padding: 100px 6%;
  color: #38312D;
}

.about-section {
  background: #EAE3DA;
}

.story-section {
  background: #F5F0E8;
}

.split-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 8%;
  max-width: 1280px;
  margin: 0 auto;
}

.split-image img {
  display: block;
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.split-content h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.7;
  margin: 0 0 30px;
}

.split-copy {
  font-size: 15px;
  line-height: 2.4;
  color: #655A50;
  margin: 0 0 34px;
}

/* =================================
   Ending CTA
================================= */

.ending-cta {
  min-height: 420px;
  padding: 70px 24px;
  background: #211F20;
  color: #F5F0E8;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ending-cta .section-kicker {
  color: #DCC4A1;
}

.ending-inner h2 {
  font-family: "Shippori Mincho", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 0 22px;
}

.ending-inner > p:not(.section-kicker) {
  font-size: 15px;
  line-height: 1.9;
  color: #C5B8A7;
  margin: 0;
}

.ending-button {
  display: inline-block;
  margin-top: 34px;
  padding: 16px 36px;
  border-radius: 100px;
  background: #DCC4A1;
  color: #211F20;
  text-decoration: none;
  font-size: 14px;
}

/* =================================
   Footer
================================= */

.site-footer {
  background: #F5F0E8;
  color: #38312D;
  padding: 50px 6% 28px;
}

.footer-main,
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: #38312D;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  text-decoration: none;
  font-size: 13px;
  color: #685646;
}

.footer-bottom {
  border-top: 1px solid #D3C9BE;
  padding-top: 22px;
  margin-top: 36px;
  color: #80746B;
  font-size: 12px;
}


/* Footerのリンク */

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #80746B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #38312D;
}

/* スマホ表示 */
@media (max-width: 767px) {
  .footer-links {
    justify-content: center;
    gap: 20px;
  }
}


/* STEP 47：Collectionのフェードイン */

/* アニメーション開始前 */
.collection-section.motion-ready .collection-card {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 表示される状態 */
.collection-section.motion-ready .collection-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PCの時間差 */
.collection-section.motion-ready
.collection-card:nth-child(2) {
  transition-delay: 0.15s;
}

.collection-section.motion-ready
.collection-card:nth-child(3) {
  transition-delay: 0.3s;
}

/* スマホでは遅延をなくす */
@media (max-width: 767px) {
  .collection-section.motion-ready .collection-card {
    transition-delay: 0s;
  }
}

/* 動きを減らす設定への対応 */
@media (prefers-reduced-motion: reduce) {
  .collection-section.motion-ready .collection-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* STEP 48：商品写真のホバー演出 */

/* 写真の表示枠 */
.collection-image {
  overflow: hidden;
}

/* 写真だけをアニメーション */
.collection-image img {
  transition: transform 0.9s
    cubic-bezier(0.22, 1, 0.36, 1);
}

/* マウス操作ができる端末のみ */
@media (hover: hover) and (pointer: fine) {
  .collection-image:hover img {
    transform: scale(1.045);
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .collection-image img {
    transition: none;
  }

  .collection-image:hover img {
    transform: none;
  }
}

/* STEP 49：About・Storyのフェードイン */

/* アニメーション開始前 */
.split-section.motion-ready .split-image,
.split-section.motion-ready .split-content {
  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 0.9s ease-out,
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 表示状態 */
.split-section.motion-ready .is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* PCでは2つ目を少し遅らせる */
@media (min-width: 768px) {
  .split-section.motion-ready
  .split-inner > :nth-child(2) {
    transition-delay: 0.2s;
  }
}

/* 動きを減らす設定 */
@media (prefers-reduced-motion: reduce) {
  .split-section.motion-ready .split-image,
  .split-section.motion-ready .split-content {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.prototype-note {
  margin: 48px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
  color: #8A7C6E;
}
/* =================================
   スマホ対応
================================= */

@media (max-width: 767px) {

  .collection-section {
    padding: 72px 24px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .collection-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }


  .collection-card h3 {
    font-size: 25px;
  }

  .split-section {
    padding: 70px 24px;
  }

  .split-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .split-content {
    order: -1;
  }

  .split-content h2 {
    font-size: 27px;
    margin-bottom: 22px;
  }

  .split-copy {
    font-size: 14px;
    line-height: 2.2;
  }

  .split-image img {
    height: auto;
    aspect-ratio: 1.15;
    object-fit: cover;
  }

  .ending-cta {
    min-height: 460px;
    padding: 60px 24px;
  }

  .ending-inner h2 {
    font-size: 28px;
  }

  .ending-inner > p:not(.section-kicker) {
    font-size: 13px;
  }

  .site-footer {
    padding: 44px 24px 30px;
  }

  .footer-main,
  .footer-bottom {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-nav {
    gap: 20px;
  }

  .footer-nav a {
    font-size: 13px;
  }

  .footer-bottom {
    margin-top: 30px;
    padding-top: 24px;
    gap: 16px;
  }
}
