/* ===============================================
   ベイクドショップ Tore（トレ） style.css
   reset.css のカラー変数にフィットしたデザイン
   =============================================== */

/* -----------------------------------------------
   ベース設定
-------------------------------------------------- */
html {
  font-size: 16px;
  line-height: 1.75;
}

body {
  background-color: var(--color-bg-sub); /* ほんのりピンクベージュ */
  color: var(--color-text);
  font-family: var(--font-family);
  font-weight: 400;
}

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

h1,
h2 {
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* -----------------------------------------------
   ヘッダー
-------------------------------------------------- */

header {
  background-color: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.header-top {
  width: min(900px, 90%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 2rem;
  color: var(--color-primary-dark);
  font-family: var(--title-font-family);
  font-weight: 800;
  font-style: normal;
}

header nav ul {
  display: flex;
  gap: 2rem;
}

header nav a {
  text-decoration: none;
  transition: opacity 0.3s;
  color: var(--color-link);
  font-family: var(--title-font-family);
  font-weight: 600;
}

header nav a:hover {
  opacity: 0.7;
  color: var(--color-link-hover);
}

.kv img {
  width: 100%;
  display: block;
  height: 60vh;
  object-fit: cover;
}

/* -----------------------------------------------
   ベルトコンベア風スライド
-------------------------------------------------- */

.belt {
  overflow: hidden;
  padding: 2rem 0;
  background-color: var(--color-primary-light); /* ほんのりピンク背景 */
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.belt-track {
  display: flex;
  gap: 2rem;
  animation: belt-scroll 20s linear infinite;
  width: max-content;
}

@keyframes belt-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* -----------------------------------------------
   セクション共通
-------------------------------------------------- */

main section {
  width: min(900px, 90%);
  margin: 4rem auto;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  font-family: var(--title-font-family);
  font-weight: 600;
  font-style: normal;
}

/* -----------------------------------------------
   Shop（グリッド + ホバーアニメーション）
-------------------------------------------------- */

.works-list {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}
.works-list figcaption {
  font-size: 0.75rem;
}

/* -----------------------------------------------
   About セクション
-------------------------------------------------- */
.about-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
/* -----------------------------------------------
   Access セクション
-------------------------------------------------- */
#access p {
  margin-top: 1rem;
  text-align: center;
}

/* -----------------------------------------------
   フッター
-------------------------------------------------- */

footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 0rem;
  background-color: var(--color-primary-light);
  border-top: 1px solid var(--color-border);
  color: var(--color-primary-dark);
  font-size: 0.875rem;
}

/* 初期状態（非表示＋下にずらす） */
.fadein {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1s ease-out forwards;
}

/* アニメーション本体 */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 遅延で順番にふわっと出す（可愛い系） */
.fadein:nth-child(1) {
  animation-delay: 0s;
}
.fadein:nth-child(2) {
  animation-delay: 0.2s;
}
.fadein:nth-child(3) {
  animation-delay: 0.4s;
}
.fadein:nth-child(4) {
  animation-delay: 0.6s;
}
.fadein:nth-child(5) {
  animation-delay: 0.8s;
}
.fadein:nth-child(6) {
  animation-delay: 1s;
}

/* =============================
   スマホ用（〜767px）
============================= */
@media (max-width: 767px) {
  /* ----- ヘッダー ----- */
  .header-top {
    flex-direction: column;
    gap: 1rem;
  }

  header h1 {
    font-size: 1.6rem;
    text-align: center;
  }

  header nav ul {
    gap: 1.2rem;
    font-size: 0.9rem;
  }

  /* ----- KV画像 ----- */
  .kv img {
    height: 40vh; /* スマホは縦長なので少し短め */
    object-fit: cover;
  }

  /* ----- セクション余白 ----- */
  main section {
    margin: 2.5rem auto;
  }

  h2 {
    font-size: 1.6rem;
  }

  /* ----- About セクション：1カラムに ----- */
  .about-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .about-list img {
    border-radius: 8px;
  }

  .about-list p {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  /* ----- Shop：カード格子を広めに ----- */
  .works-list {
    grid-template-columns: 1fr 1fr; /* 2カラムがちょうど良い */
    gap: 1.5rem;
  }

  .works-list figure {
    border-radius: 8px;
  }

  .works-list figcaption {
    font-size: 0.7rem;
    padding: 0.5rem;
  }

  /* ----- Access：文章調整 ----- */
  #access p {
    padding: 0 1rem;
    font-size: 0.9rem;
  }

  /* ----- フッター ----- */
  footer {
    font-size: 0.8rem;
    padding: 1.5rem 0;
  }
}
