@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&family=Zen+Kaku+Gothic+New:wght@300;400;500;700;900&display=swap');

/* ==========================================
   1. 基本・リセット・共通クラス
   ========================================== */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Zen Kaku Gothic New', 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background-color: #ffffff;
  color: #111827;
}

.roboto {
  font-family: 'Roboto', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* レスポンシブ表示切り替え */
.hidden { display: none !important; }
.block { display: block !important; }

@media (min-width: 640px) {
  .sm-hidden { display: none !important; }
  .sm-block { display: block !important; }
}

/* 汎用レイアウト */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.flex-grow { flex-grow: 1; }
.w-full { width: 100%; }
.relative { position: relative; }
.absolute { position: absolute; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.font-bold { font-weight: bold; }

/* ==========================================
   2. オープニングカーテン (OpCurtain)
   ========================================== */
.op-curtain {
  background: #ffffff;
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.toriko-op-logo,
.op-1,
.op-2,
.op-3 {
  opacity: 0;
}

/* ==========================================
   3. ヒーローセクション / ファーストビュー
   ========================================== */
.hero-section {
  width: 100%;
  height: calc(100vh + 250px);
  background-color: #F9E300;
  overflow: hidden;
}

.bg-scroll {
  background-image: url("../assets/images/bg-f.png");
  background-size: 1784px auto;
  animation: bg-f 30s linear infinite;
}

@keyframes bg-f {
  0% { background-position: 0px 0px; }
  100% { background-position: -1784px -1289px; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: -100px;
}

.hero-logo-group {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .hero-logo-group {
    flex-direction: row;
    gap: 5rem;
  }
}

.atori-wrap img,
.takao-wrap img {
  width: 100%;
  height: auto;
}

.atori-wrap .sp-img { width: 340px; padding: 0 2.5rem; }
.takao-wrap .sp-img { max-width: 360px; }

@media (min-width: 640px) {
  .atori-wrap .sp-img,
  .takao-wrap .sp-img { display: none !important; }
  .atori-wrap .pc-img,
  .takao-wrap .pc-img { display: block !important; max-width: 150px; }
}

@media (min-width: 1536px) {
  .atori-wrap .pc-img,
  .takao-wrap .pc-img { max-width: 200px; }
}

.hero-logo-set {
  width: 100%;
  max-width: 250px;
  min-width: 200px;
  margin-top: -4rem;
}

@media (min-width: 640px) { .hero-logo-set { max-width: 400px; } }
@media (min-width: 1536px) { .hero-logo-set { max-width: 600px; } }

/* Scroll インジケーター */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  left: 0.75rem;
  top: -0.25rem;
}

.scroll-indicator p {
  font-weight: bold;
  font-size: 1rem;
}

@media (min-width: 640px) {
  .scroll-indicator p { font-size: 1.25rem; }
}

.heart1 { width: 0.5rem; }
.heart2 { width: 1rem; }
.heart3 { width: 1.5rem; }

/* ==========================================
   4. かくれとりこ & ブランド説明
   ========================================== */
.kakure-toriko-wrapper {
  display: flex;
  justify-content: center;
  position: relative;
}

.kakure-toriko-inner {
  width: 50%;
  position: absolute;
  transform: translateY(-90%);
}

@media (min-width: 640px) {
  .kakure-toriko-inner { width: 16.666667%; }
}

.border-bottom {
  position: relative;
}

.border-bottom h2 {
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  margin-top: 6rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .border-bottom h2 { font-size: 2.25rem; }
}

.border-bottom::after {
  content: "";
  display: block;
  width: 100%;
  position: absolute;
  height: 10px;
  background: #F9E300;
  bottom: 0;
  z-index: -1;
}

.brand-text {
  padding: 0 1.25rem;
  font-size: 0.75rem;
  font-weight: bold;
  line-height: 1.8;
  text-align: center;
}

@media (min-width: 640px) {
  .brand-text {
    font-size: 1.25rem;
    white-space: nowrap;
  }
}

/* ==========================================
   5. 画像無限スライダー & TorikoLine
   ========================================== */
.slider-overflow-wrap {
  overflow: hidden;
  position: relative;
  padding-bottom: 200px;
}

@media (min-width: 640px) {
  .slider-overflow-wrap { padding-bottom: 400px; }
}

.image-slider {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.25rem;
  margin-top: 5rem;
  position: absolute;
  padding: 0;
  list-style: none;
  animation: image-slider 50s linear infinite;
}

@keyframes image-slider {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50%, 0); }
}

.slider-item {
  width: 200px;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .slider-item { width: 500px; }
}

.slider-item-inner {
  overflow: hidden;
  border-radius: 0.5rem;
}

.slider-item-inner img {
  width: 100%;
  display: block;
}

/* TorikoLine */
.toriko-line-container {
  overflow: hidden;
  position: relative;
  padding-bottom: 70px;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .toriko-line-container { padding-bottom: 120px; }
}

.toriko-line-list {
  display: flex;
  gap: 2.5rem;
  position: absolute;
  justify-content: center;
  left: 50%;
  transform: translateX(-50%);
  padding: 0;
  margin: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .toriko-line-list { gap: 6rem; }
}

.toriko-line-list li {
  width: 70px;
}

@media (min-width: 640px) {
  .toriko-line-list li { width: 120px; }
}

.toriko-line-list img {
  width: 100%;
}

/* ==========================================
   6. セクションタイトル & オリジナルグッズ
   ========================================== */
.section-title-wrap {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.section-title-wrap img {
  width: auto;
}

@media (min-width: 640px) {
  .section-title-wrap img { width: 100px; }
}

.section-title-wrap h3 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 4px;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .section-title-wrap h3 { font-size: 2.25rem; }
}

.goods-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2.5rem;
  margin-top: 5rem;
  padding: 1.25rem;
  max-width: 1600px;
  width: 100%;
}

@media (min-width: 640px) {
  .goods-container {
    flex-direction: row;
  }
}

.goods-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
}

.goods-item img {
  width: 100%;
  max-width: 350px;
  height: auto;
}

.goods-item p {
  margin: 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.25rem;
}

.goods-subtitle {
  font-size: 0.8rem;
  font-weight: normal;
}

.goods-price {
  color: #999999;
  font-size: 1.25rem;
  margin: 0;
}

.btn-goods-link {
  font-weight: bold;
  border-bottom: 4px solid #000000;
  padding-bottom: 0.5rem;
}

/* ==========================================
   7. おすすめ商品 (Nesnoo & MyGift)
   ========================================== */
.product-section-inner {
  max-width: 1080px;
  width: 100%;
  margin-top: 5rem;
}

.product-note {
  text-align: center;
  padding: 0 2.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .product-note { text-align: right; }
}

.product-logo-centered {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.product-logo-centered img {
  width: 180px;
  filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 1));
}

@media (min-width: 640px) {
  .product-logo-centered img { width: 220px; }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem 1.25rem;
  padding: 1.25rem;
  list-style: none;
  margin: 0;
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5rem 2.5rem;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.product-card-title {
  font-size: 0.875rem;
  font-weight: bold;
  flex-grow: 1;
  margin: 0;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .product-card-title { font-size: 1.125rem; }
}

.btn-buy-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .btn-buy-group { gap: 1.25rem; font-size: 1rem; }
}

.btn-buy {
  flex-grow: 1;
  padding: 0.5rem 0;
  border-radius: 0.5rem;
  color: #ffffff;
  text-align: center;
  display: block;
}

.btn-rakuten { background-color: #BF0000; }
.btn-yahoo { background-color: #FF0033; }
.btn-disabled { opacity: 0.1; pointer-events: none; }

.price-main { font-size: 1.2em; }
.price-unit { font-size: 0.8em; }

/* ==========================================
   8. お問い合わせ & フッター
   ========================================== */
.contact-section {
  padding-bottom: 5rem;
}

.contact-btn-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
  max-width: 700px;
  margin: 2.5rem auto 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .contact-btn-group { flex-direction: row; }
}

.btn-contact {
  background-color: #FFD222;
  width: 100%;
  max-width: 340px;
  padding: 0.5rem 0;
  border-radius: 10px;
  flex-grow: 1;
  text-align: center;
  font-size: 0.875rem;
}

.btn-contact-text {
  font-weight: bold;
  font-size: 1.25rem;
}

.footer-section {
  background-color: #F0EDE8;
  padding: 8rem 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
}

.footer-banner img {
  max-width: 600px;
  width: 100%;
}

.footer-logo-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

.footer-logo-item {
  flex-grow: 1;
  width: 100%;
}

.footer-logo-item img {
  width: 100%;
  max-width: 180px;
}
