/* ============================================
   ベーススタイル（Apple風のクリーンデザイン）
   ============================================ */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background-image: url(/img/bg.jpeg);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #111827;
  line-height: 1.6;
  position: relative;
}

/* ============================================
   メインコンテナ
   ============================================ */

.entrance {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
  animation: fadeIn 1.2s ease-out;
}

/* ============================================
   ヒーローセクション（タイトル・サブタイトル）
   ============================================ */

.entrance-hero {
  text-align: center;
  margin-bottom: 44px;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.entrance-title {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: #111827;
  text-shadow: 
    0 0 20px rgba(255, 255, 255, 1),
    0 0 40px rgba(255, 255, 255, 0.8),
    0 2px 10px rgba(255, 255, 255, 0.9),
    0 4px 20px rgba(255, 255, 255, 0.7),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.entrance-subtitle {
  font-size: 1.05rem;
  color: #1a1a1b;
  line-height: 1.8;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),
    0 0 30px rgba(255, 255, 255, 0.7),
    0 2px 8px rgba(255, 255, 255, 0.8),
    0 1px 3px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ブランドグリッド（2カラムレイアウト）
   ============================================ */

.brand-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

/* ============================================
   ブランドカード
   ============================================ */

.brand-card {
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  padding: 40px 36px 44px;
  display: flex;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  animation: fadeInUp 1s ease-out 0.6s both;
}

.brand-card:nth-child(2) {
  animation-delay: 0.75s;
}

.brand-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

.brand-card-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

/* ============================================
   ブランドロゴ・説明
   ============================================ */

.brand-logo {
  width: auto;
  height: 44px;
  margin-bottom: 12px;
  object-fit: contain;
  max-width: 100%;
}

.brand-description {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 8px;
  text-align: center;
}

/* ============================================
   リンクバナー（化粧品・サプリをイメージした華やかなデザイン）
   ============================================ */

.brand-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.brand-link-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  transform: translateY(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  min-height: 100px;
}

/* 装飾的な円形（化粧品ボトルやサプリカプセルをイメージ） */
.banner-decorative-circle {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  top: -30px;
  right: 60px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.banner-decorative-circle-2 {
  width: 80px;
  height: 80px;
  top: auto;
  bottom: -20px;
  right: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* 商品情報バナー専用：キラキラ効果（化粧品の輝き） */
.brand-link-products::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

/* 会員ページバナー：商品情報と同じキラキラ効果 */
.brand-link-members::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

/* ラベル（PRODUCTS / MEMBERS） */
.brand-link-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  opacity: 0.85;
  display: block;
  margin-bottom: 2px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* コンテンツ */
.brand-link-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.brand-link-title {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  line-height: 1.3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-link-desc {
  font-size: 0.88rem;
  opacity: 0.92;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 2px;
}

/* 矢印 */
.banner-arrow {
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

/* PC専用：ホバー効果 */
@media (hover: hover) and (pointer: fine) {
  .brand-link-banner::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 50%,
      rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 22px;
  }

  .brand-link-banner:hover::after {
    opacity: 1;
  }

  .brand-link-banner:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 
      0 8px 20px rgba(0, 0, 0, 0.15),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  }

  .brand-link-banner:hover .banner-decorative-circle {
    transform: scale(1.15) translate(5px, -5px);
    opacity: 0.8;
  }

  .brand-link-banner:hover .banner-decorative-circle-2 {
    transform: scale(1.1) translate(-5px, 5px);
    opacity: 0.7;
  }

  .brand-link-banner:hover .banner-arrow {
    transform: translateX(6px);
  }

  .brand-link-banner:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 3px;
  }

  .brand-link-banner:active {
    transform: translateY(-3px) scale(1);
  }
}

/* ============================================
   シェルビオブランド（グリーン #0c6f34）
   ============================================ */

.brand-shellbio .brand-link-products {
  background: 
    linear-gradient(135deg, 
      #158141 0%, 
      #0e8041 30%, 
      #10934d 60%,
      #12a659 100%
    );
  box-shadow: 
    0 6px 20px rgba(12, 111, 52, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-shellbio .brand-link-members {
  background: 
    linear-gradient(135deg, 
      #158141 0%, 
      #0e8041 30%, 
      #10934d 60%,
      #12a659 100%
    );
  box-shadow: 
    0 6px 20px rgba(12, 111, 52, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .brand-shellbio .brand-link-products:hover {
    box-shadow: 
      0 8px 20px rgba(12, 111, 52, 0.35),
      0 0 30px rgba(12, 111, 52, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .brand-shellbio .brand-link-members:hover {
    box-shadow: 
      0 8px 20px rgba(12, 111, 52, 0.35),
      0 0 30px rgba(12, 111, 52, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* ============================================
   ピュアライフジャパンブランド（ピンク #ad3b56）
   ============================================ */

.brand-purelife .brand-link-products {
  background:
    linear-gradient(135deg, #b34a63 0%, #cd335c 30%, #d94a73 60%, #d35178 100%);
  box-shadow:
    0 6px 20px rgba(173, 59, 86, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand-purelife .brand-link-members {
  background: 
    linear-gradient(135deg, #b34a63 0%, #cd335c 30%, #d94a73 60%, #d35178 100%);
  box-shadow: 
    0 6px 20px rgba(173, 59, 86, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .brand-purelife .brand-link-products:hover {
    box-shadow: 
      0 8px 20px rgba(173, 59, 86, 0.35),
      0 0 30px rgba(173, 59, 86, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }

  .brand-purelife .brand-link-members:hover {
    box-shadow: 
      0 8px 20px rgba(173, 59, 86, 0.35),
      0 0 30px rgba(173, 59, 86, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}
.br-mobile {
    display: none;
  }
/* ============================================
   レスポンシブ対応（タブレット・スマホ）
   ============================================ */

@media (max-width: 768px) {
  .entrance {
    padding: 32px 16px 40px;
  }

  .entrance-hero {
    margin-bottom: 32px;
  }

  .entrance-title {
    font-size: 1.75rem;
    margin-bottom: 12px;
  }

  .entrance-subtitle {
    font-size: 0.92rem;
  }

  .brand-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    min-width: 100%;
  }

  .brand-card {
    padding: 28px 16px;
  }

  .brand-logo {
    width: auto;
    height: 32px;
    max-width: 100%;
  }

  .brand-description {
    font-size: 0.9rem;
  }

  .brand-links {
    gap: 14px;
  }

  .br-mobile {
    display: inline;
  }

  .brand-link-banner {
    padding: 22px 24px;
    min-height: 90px;
    /* スマホでは控えめなスタイル */
    box-shadow: 
      0 6px 18px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
  }

  .banner-decorative-circle {
    width: 100px;
    height: 100px;
    right: 40px;
  }

  .banner-decorative-circle-2 {
    width: 60px;
    height: 60px;
    right: 20px;
  }

  .brand-link-label {
    font-size: 0.65rem;
  }

  .banner-arrow {
    font-size: 1.8rem;
  }

  .brand-link-title {
    font-size: 1.12rem;
  }

  .brand-link-desc {
    font-size: 0.86rem;
  }

  /* スマホ専用：控えめなアクティブ効果 */
  .brand-link-banner:active {
    opacity: 0.92;
    transform: scale(0.98);
  }
}

/* ============================================
   アニメーション
   ============================================ */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   アクセシビリティ向上
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
